Dianne,

I understand that native code is not supported by Android at this time
but i did find a lot of examples that lets us run say a basic hello
world program in C on Android simulator. We already have an app
running in the linux space on the Android phone and would like it to
somehow start an android app.

Or is there any way we can start and stop an android app automatically
without manually gointo to the menu. I found out that we could have a
reviever listening for BOOT_COMPLETED event and then can start a
service. We can at that time start a socket and then communicate with C
++ app using sockets and instruct the android app to close itself when
work is done. We would like to restart the andopird app again without
having to restart the phone. So listening to  the BOOT completed event
will work only one time unless we restart the phone every time.

Thanks a lot for your help.
-Anshul

On Sep 10, 12:10 am, hackbod <[EMAIL PROTECTED]> wrote:
> Native code is not supported at this time.
>
> On Sep 9, 5:38 pm, Anshul <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello everyone,
>
> > I wanted to find out if there is any way for a native applicaion
> > written in C/C++ can start an android app. From this group I could
> > find answers to how to run a native app on the Andorid simulator and
> > also how to start an android app through adb shell (am start -n test/
> > test.HelloWorld).
>
> > Is there any way I can call say a system command in C++ native app and
> > pass the am command I passed to the adb shell to start the android
> > HelloWorld app?
> > Somethin like:
>
> > System ("am start -n test/test.HelloWorld");
>
> > or any other way.
>
> > Thanks
> > -Anshul- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to