Use Custom url to call b4a external can't retrieve param dat

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Use Custom url to call b4a external can't retrieve param dat

Post by BarrySumpter » Sun Apr 08, 2012 3:58 am

Hi all,
I'm trying to use the Custom URL on android where I can call a b4a app to retrieve the GPS speed or a barcode number.
But can't seem to find a way to pass the data back.
Anyone have a suggestion on a work around?

Already proven:
From a LC app I can custom url call a b4a app that I can retrieve the GPS Speed or a barcode number
and then custom url call a LC app that receives the speed or barcode number via the url parameters.

But the Android process thread keeps the
original LC app and the b4a app and the second LC app from exiting.
The only way you can get rid of the apps is to back button out of each one.
So when I back out of the 2nd LC app it wakes up the b4a speed or barcode app.
Which is not what I want to do.

So its pretty much Custom Call forward with parameter data.
And back button out of the process thread without data.

So I don't know how to send the data from my callee app back to my caller app.

I've tried to trap the wakeup kinda focus on the caller app once the callee app was exited - but with no success.
Otherwise it would have to be something like having the callee app write the data to a file.
And have the caller app Repeat loop cheking the file for an update.

This would be considered a kind of a workaround for calling external functions or apps. Maybe.

Any positive construction suggestion would be greatly appreciated.

tia
Last edited by BarrySumpter on Tue Apr 10, 2012 11:08 am, edited 2 times in total.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Use Custom url to call b4a external can't retrieve param dat

Post by BarrySumpter » Tue Apr 10, 2012 10:44 am

Here they seem to be quite adament about NOT using custom URL schemes.

http://groups.google.com/group/android- ... f3e4b9f86b
Last edited by BarrySumpter on Tue Apr 10, 2012 11:08 am, edited 1 time in total.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Use Custom url to call b4a external can't retrieve param dat

Post by BarrySumpter » Tue Apr 10, 2012 10:46 am

Code: Select all


<activity android:name=".activities.AppsUrlHandlerActivity">

    <intent-filter>

        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE"/>

        <data android:scheme="http"
            android:host="BGS.mobile.com" android:pathPrefix="/details" />
        <data android:scheme="http"
            android:host="BGS.mobile.com" android:pathPrefix="/apps" />
        <data android:scheme="http"
            android:host="BGS.mobile.com" android:pathPrefix="/search" />
        

        <data android:scheme="https"
            android:host="BGS.mobile.com" android:pathPrefix="/BarCode" />
        <data android:scheme="https"
            android:host="BGS.mobile.com" android:pathPrefix="/Speed" />
        <data android:scheme="https"
            android:host="BGS.mobile.com" android:pathPrefix="/QuickCalls" />
            
    </intent-filter>

</activity> 

All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply

Return to “Android Deployment”