Request: custom build hooks to embed services and receivers

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SamanthaLC
Posts: 22
Joined: Sat Jul 20, 2013 11:57 pm

Request: custom build hooks to embed services and receivers

Post by SamanthaLC » Tue Sep 03, 2013 7:43 pm

I would like the ability to be able to link in a third part JAR or library, and then configure AndroidManifest hooks into this library.

For example, consider adding the following IntentService:

Code: Select all

       <service android:name=".LCIntentSvcHook"
                 android:label="@string/app_name"
                 android:exported="false">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </service>
Or the following broadcast receiver:

Code: Select all

       <receiver
            android:name=".LCBrdcstRcv"
            android:enabled="true" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </receiver>

It would be great to specify such additions, with a jar, for inclusion in a project build for Android.

Does this seem reasonable? How does one petition for such enhancements?

Thanks! :D

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Request: custom build hooks to embed services and receiv

Post by monte » Sun Sep 08, 2013 10:43 pm

We're working out android externals on the engine contributors forum. I think what you want to do would be possible with what we have so far although you would probably provide the complete package name to match the external.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

SamanthaLC
Posts: 22
Joined: Sat Jul 20, 2013 11:57 pm

Re: Request: custom build hooks to embed services and receiv

Post by SamanthaLC » Tue Sep 24, 2013 6:48 am

The particular use case I am thinking of involves pulling in external Java code associated with an intent service or broadcast receiver into a LiveCode Android app. This would have to run separate from the main LiveCode activity (and accompanying externals) but would work in cooperation with the LiveCode parts.

To be clear, this could be any kind of class that might need to be added and triggered via various intents directly.

I don't see any of this kind of support mentioned in the docs I have read, but there does not seem to be much information about Android externals that I can find. Can you point me at specific documents or posts that might be useful?

Thanks!

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Request: custom build hooks to embed services and receiv

Post by monte » Tue Sep 24, 2013 7:15 am

There's no docs yet. Look at the android externals thread on the engine forum.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

SamanthaLC
Posts: 22
Joined: Sat Jul 20, 2013 11:57 pm

Re: Request: custom build hooks to embed services and receiv

Post by SamanthaLC » Wed Sep 25, 2013 2:51 am

Ok, thank you!

For anyone else reading this thread the Android Externals discussion is here: http://forums.runrev.com/viewtopic.php?f=66&t=15882

Post Reply