Please who knows android:sharedUserId="android.uid.system"

Put your problem here if it does not fit any of the other categories.

Please who knows android:sharedUserId="android.uid.system"

Postby solid_622 » Mon Mar 14, 2011 3:37 am

Hello, I have been sufferring in one problem for several days.
Currently I'm running in the source code of "Settings" on Android2.2.

In AdroidMenifest.xml, we can see:

android:sharedUserId="android.uid.system"

With this, many permissions can be accessed for the activities in Settings.
But with this statement, the sd card can't be accessed for Read/Write, I have tried to read files in directory
File f = new File("/mnt/sdcard/"+filename);
or
File f = new File("/sdcard/"+filename);

But all of them don't work, I got an exception telling me that the file didn't exist (I have already put the file there).

If I delete android:sharedUserId="android.uid.system", then I can access the file seccussfully . However, I need the android:sharedUserId="android.uid.system"
to make the other activitiese runs well.

Does anybody happened to meet the same problem, and have you solved it? Thanks!
solid_622
Freshman
Freshman
 
Posts: 6
Joined: Mon Jun 21, 2010 9:43 am

Top

Re: Please who knows android:sharedUserId="android.uid.syste

Postby jamesdietriq » Mon Apr 11, 2011 7:52 am

I also have the same problem. Did you solve this ? or anybody who can help me ??
jamesdietriq
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Dec 27, 2010 2:49 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: TurnitinBot [Bot] and 36 guests