[android-developers] Re: creating activity-less packages

2010-01-22 Thread Hugo Visser
I'm curious about what you are trying to do here? Nice that what you are trying is working, but what's your usecase? On Jan 22, 1:19 am, "guiha...@gmail.com" wrote: > Just in case it will be useful to someone, here's the manifest file > application part for my "library". > >     android:label="T

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Just in case it will be useful to someone, here's the manifest file application part for my "library". There's no even need to define an action. guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I just found the answer to one more question: how to remove from the launchers list an application. All you have to do is remove the >From your AndroidManifest.xml file. Then uninstall the app and install again (if you already had installed it), and it will not appear in the list

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I have one more question: can i load the view of another package, instead of calling another activity? In the sample above, i would call setContentView(LoaderView) someway. This would be perfect for me. thx guich -- You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, I got it working with this: public class Stub extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { //super.onCreate(savedInstanceState); Intent intent = new Intent("android.intent.action.MAIN"); inten

Re: [android-developers] Re: creating activity-less packages

2010-01-21 Thread Mark Murphy
> I used the option "wipe user data" and tried to reinstall the package. > The problem occurs with the very first installed package using the id. > In other words: the emulator if fully clean, and when i try to install > the first package, the error occurs. It occurs with all packages i try > to in

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Got it. Althought not mentioned anywhere, the id must have dots. Seems to be a restriction: it must be in the form of a package. So, i used "totalcross.app.sharedid" and it succeed. HTH, guich -- You received this message because you are subscribed to the Google Groups "Android Developers" g

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Also, i just tried to sign with another key and it gives the same result: R:\>adb install tcvm-android.apk 914 KB/s (614355 bytes in 0.656s) pkg: /data/local/tmp/tcvm-android.apk Failure [INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID] guich -- You received this message because you are subscrib

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, I used the option "wipe user data" and tried to reinstall the package. The problem occurs with the very first installed package using the id. In other words: the emulator if fully clean, and when i try to install the first package, the error occurs. It occurs with all packages i try to install

Re: [android-developers] Re: creating activity-less packages

2010-01-21 Thread Mark Murphy
> I thought that the debugging signature (which is the same for all > applications) would work... since i'm using the emulator. Hmmm... If you have not done so already, fully uninstall both apps, then try installing them. If you have been upgrading in place, it may not apply the new user ID. --

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I thought that the debugging signature (which is the same for all applications) would work... since i'm using the emulator. thx guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] Re: creating activity-less packages

2010-01-21 Thread Diego Torres Milano
Both must be signed with the same signature. On Jan 21, 5:40 pm, "guiha...@gmail.com" wrote: > Well... Very strange that Android doesn't support the creation of > application libraries... > > I putted this in the xml: > >       android:sharedUserId="totalcross" > > But when i run, i get INSTALL_P

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Well... Very strange that Android doesn't support the creation of application libraries... I putted this in the xml: android:sharedUserId="totalcross" But when i run, i get INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID Seems that it is not correctly formed... any tips of a valid shared user id?

Re: [android-developers] Re: creating activity-less packages

2010-01-21 Thread Mark Murphy
> Thanks for the reply. Is there a way to prevent the application list > from displaying an apk? No. That would be a security violation. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because yo

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, Thanks for the reply. Is there a way to prevent the application list from displaying an apk? I'll try to do another approach: use shareUserId and using two activities, one calling the other. Once (if) i succeed, i'll post the results here to help others. guich -- You received this message b