[android-developers] Re: Application using service in different project

2009-09-29 Thread Evgeny V
Thanks you very much!

Evgeny

On Mon, Sep 28, 2009 at 11:30 PM, Mark Murphy mmur...@commonsware.comwrote:


 Evgeny V wrote:
  Hi!
 
  I have some similar question.
  APK1 (not service) has public class A.
 
  How should I write class A or APK container to make it visble and
  importable from some other APK? In other words I need to use my first
  APK as library.
 
  Please advise.

 The closest thing to what you are asking is to export an interface via
 AIDL:

 http://developer.android.com/guide/developing/tools/aidl.html

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Android Development Wiki: http://wiki.andmob.org

 


--~--~-~--~~~---~--~~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application using service in different project

2009-09-28 Thread Evgeny V
Hi!

I have some similar question.
APK1 (not service) has public class A.

How should I write class A or APK container to make it visble and
importable from some other APK? In other words I need to use my first APK
as library.

Please advise.

Thanks in advance,
Evgeny

On Tue, Sep 1, 2009 at 4:02 PM, themanol thema...@gmail.com wrote:


 Thank you very much.

 The last link give me the life.

 On Sep 1, 11:52 am, Mark Murphy mmur...@commonsware.com wrote:
  themanol wrote:
   I want create a service and that other application use this service.
   I want that the other application is in a different project that the
   service.
 
   It is possible?
 
  Yes, via AIDL:
 
 
 http://developer.android.com/guide/developing/tools/aidl.htmlhttp://developer.android.com/guide/topics/fundamentals.html
 
   If is possible somebody can show me a sample code.
 
 
 http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e72735.
 ..
 
  --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy
 
  Need help for your Android OSS project?http://wiki.andmob.org/hado
 


--~--~-~--~~~---~--~~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application using service in different project

2009-09-28 Thread Mark Murphy

Evgeny V wrote:
 Hi!
  
 I have some similar question.
 APK1 (not service) has public class A.
  
 How should I write class A or APK container to make it visble and
 importable from some other APK? In other words I need to use my first
 APK as library.
  
 Please advise.

The closest thing to what you are asking is to export an interface via AIDL:

http://developer.android.com/guide/developing/tools/aidl.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~-~--~~~---~--~~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application using service in different project

2009-09-01 Thread Mark Murphy

themanol wrote:
 I want create a service and that other application use this service.
 I want that the other application is in a different project that the
 service.
 
 It is possible?

Yes, via AIDL:

http://developer.android.com/guide/developing/tools/aidl.html
http://developer.android.com/guide/topics/fundamentals.html

 If is possible somebody can show me a sample code.

http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/RemoteServiceController.html
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/RemoteServiceBinding.html
http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/AdvServices

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application using service in different project

2009-09-01 Thread themanol

Thank you very much.

The last link give me the life.

On Sep 1, 11:52 am, Mark Murphy mmur...@commonsware.com wrote:
 themanol wrote:
  I want create a service and that other application use this service.
  I want that the other application is in a different project that the
  service.

  It is possible?

 Yes, via AIDL:

 http://developer.android.com/guide/developing/tools/aidl.htmlhttp://developer.android.com/guide/topics/fundamentals.html

  If is possible somebody can show me a sample code.

 http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e72735...

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Need help for your Android OSS project?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---