Beginning Android Development - Android Q&A, Help & Troubleshooting

you can ignore this. I'll leave the thread so people can learn from my mistake.
The error was because Java is case sensitive, unlike CFML. so linearLayout is not the same as LinearLayout.
I just started playing around with Android Development. I'm using Eclipse. I'm using the 1st set of Tutorials on the Android Development page from the Eclipse install. I'm on the Edit Form and Button part of the tutorial. When I try to run it in the Emulator or on my Sensation 4g, it 'expectantly shuts down'. Here is the LogCat which I'm not familiar with reading yet (any debugging tutorials would be awesome).
Code:
04-04 21:24:28.733: E/Trace(908): error opening trace file: No such file or directory (2)
04-04 21:24:29.703: D/AndroidRuntime(908): Shutting down VM
04-04 21:24:29.703: W/dalvikvm(908): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
04-04 21:24:29.738: E/AndroidRuntime(908): FATAL EXCEPTION: main
04-04 21:24:29.738: E/AndroidRuntime(908): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfirstapp/com.example.myfirstapp.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class linearLayout
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.ActivityThread.access$600(ActivityThread.java:141)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.os.Handler.dispatchMessage(Handler.java:99)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.os.Looper.loop(Looper.java:137)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.ActivityThread.main(ActivityThread.java:5041)
04-04 21:24:29.738: E/AndroidRuntime(908): at java.lang.reflect.Method.invokeNative(Native Method)
04-04 21:24:29.738: E/AndroidRuntime(908): at java.lang.reflect.Method.invoke(Method.java:511)
04-04 21:24:29.738: E/AndroidRuntime(908): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-04 21:24:29.738: E/AndroidRuntime(908): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-04 21:24:29.738: E/AndroidRuntime(908): at dalvik.system.NativeStart.main(Native Method)
04-04 21:24:29.738: E/AndroidRuntime(908): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class linearLayout
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
04-04 21:24:29.738: E/AndroidRuntime(908): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.Activity.setContentView(Activity.java:1881)
04-04 21:24:29.738: E/AndroidRuntime(908): at com.example.myfirstapp.MainActivity.onCreate(MainActivity.java:12)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.Activity.performCreate(Activity.java:5104)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
04-04 21:24:29.738: E/AndroidRuntime(908): ... 11 more
04-04 21:24:29.738: E/AndroidRuntime(908): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.linearLayout" on path: /data/app/com.example.myfirstapp-1.apk
04-04 21:24:29.738: E/AndroidRuntime(908): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
04-04 21:24:29.738: E/AndroidRuntime(908): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
04-04 21:24:29.738: E/AndroidRuntime(908): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.createView(LayoutInflater.java:552)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:643)
04-04 21:24:29.738: E/AndroidRuntime(908): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
04-04 21:24:29.738: E/AndroidRuntime(908): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
04-04 21:24:29.738: E/AndroidRuntime(908): ... 20 more
I'm not sure if the hangup is
Code:
04-04 21:24:29.738: E/AndroidRuntime(908): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.linearLayout" on path: /data/app/com.example.myfirstapp-1.apk
or if something in the beginning is causeing the error. I followed the tutorial to the letter so I'm not sure why the class isn't there. Any suggestions?
Sorry for the noob question, I know you guys have probably answered a million of these type of questions. Everyone has to start somewhere...

Related

[Q] i/o error on database

hello im getting the following errors in the logcat, this couses my phone to crush on acore and others as well.
any ideas about it?
thanks.
I/Database( 1277): sqlite returned: error code = 266, msg = disk I/O error
E/Database( 1277): CREATE TABLE android_metadata failed
E/Database( 1277): Failed to setLocale() when constructing, closing the database
E/Database( 1277): android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1987)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1855)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:854)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:847)
E/Database( 1277): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:551)
E/Database( 1277): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/Database( 1277): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)
E/Database( 1277): at com.android.providers.contacts.ContactsDatabaseHelper.getWritableDatabase(ContactsDatabaseHelper.java:2890)
E/Database( 1277): at com.android.providers.contacts.CallLogProvider.onCreate(CallLogProvider.java:114)
E/Database( 1277): at android.content.ContentProvider.attachInfo(ContentProvider.java:798)
E/Database( 1277): at android.app.ActivityThread.installProvider(ActivityThread.java:3554)
E/Database( 1277): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3309)
E/Database( 1277): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3265)
E/Database( 1277): at android.app.ActivityThread.access$2200(ActivityThread.java:117)
E/Database( 1277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
E/Database( 1277): at android.os.Handler.dispatchMessage(Handler.java:99)
E/Database( 1277): at android.os.Looper.loop(Looper.java:130)
E/Database( 1277): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/Database( 1277): at java.lang.reflect.Method.invokeNative(Native Method)
E/Database( 1277): at java.lang.reflect.Method.invoke(Method.java:507)
E/Database( 1277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
E/Database( 1277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
E/Database( 1277): at dalvik.system.NativeStart.main(Native Method)
D/AndroidRuntime( 1277): Shutting down VM
W/dalvikvm( 1277): threadid=1: thread exiting with uncaught exception (group=0x4001d560)
E/AndroidRuntime( 1277): FATAL EXCEPTION: main
E/AndroidRuntime( 1277): java.lang.RuntimeException: Unable to get provider com.android.providers.contacts.CallLogProvider: android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/AndroidRuntime( 1277): at android.app.ActivityThread.installProvider(ActivityThread.java:3557)
E/AndroidRuntime( 1277): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3309)
E/AndroidRuntime( 1277): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3265)
E/AndroidRuntime( 1277): at android.app.ActivityThread.access$2200(ActivityThread.java:117)
E/AndroidRuntime( 1277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
E/AndroidRuntime( 1277): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1277): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 1277): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 1277): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1277): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 1277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
E/AndroidRuntime( 1277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
E/AndroidRuntime( 1277): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1277): Caused by: android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1987)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1855)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:854)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:847)
E/AndroidRuntime( 1277): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:551)
E/AndroidRuntime( 1277): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)
E/AndroidRuntime( 1277): at com.android.providers.contacts.ContactsDatabaseHelper.getWritableDatabase(ContactsDatabaseHelper.java:2890)
E/AndroidRuntime( 1277): at com.android.providers.contacts.CallLogProvider.onCreate(CallLogProvider.java:114)
E/AndroidRuntime( 1277): at android.content.ContentProvider.attachInfo(ContentProvider.java:798)
E/AndroidRuntime( 1277): at android.app.ActivityThread.installProvider(ActivityThread.java:3554)
E/AndroidRuntime( 1277): ... 12 more
I/SurfaceFlinger( 1072): Boot is finished (28155 ms)
I/ActivityThread( 1239): Pub com.google.android.gsf.gservices: com.google.android.gsf.gservices.GservicesProvider
I/GservicesProvider( 1239): Gservices pushing to system: true; secure: true
I/ActivityThread( 1239): Pub com.google.android.providers.talk: com.google.android.gsf.talk.TalkProvider
E/OMXPlayer( 980): reset: 0x10240
D/ ( 980): setting block activity: 1

MTK6573 SNS content provider

Phone is a model C110 (some chinese clone MTK65x3). Came with a bunch of apps installed already. Since I don't even have a facebook account, deleted most of these apps.
Now when I try to open contacts it crashes. (with android.process.acore has stopped unexpectedly. Don't tell me to clear the contact storage cache. have done that already, even a factory reset)
Installed logcat. recorded errors:
09-05 15:54:55.298 E/ActivityThread( 1169): Failed to find provider info for com.mediatek.SnsContentProvider.SNSProvider
09-05 15:54:55.298 E/SNS::ERROR( 1169): END---------DataManager::getFaces SQL ERROR.
09-05 15:54:55.313 E/ActivityThread( 1169): Failed to find provider info for com.mediatek.SnsContentProvider.SNSProvider
09-05 15:54:55.313 E/SNS::ERROR( 1169): END---------DataManager::getAllSnsAccountInfo---------SQL ERROR
09-05 15:54:55.319 E/ActivityThread( 1169): Failed to find provider info for com.mediatek.SnsContentProvider.SNSProvider
09-05 15:54:55.319 E/SNS::ERROR( 1169): END---------DataManager::getTextShow SQL ERROR.
09-05 15:54:55.337 E/ActivityThread( 1169): Failed to find provider info for com.mediatek.SnsContentProvider.SNSProvider
09-05 15:54:55.337 E/SNS::ERROR( 1169): END---------DataManager::getTextShow SQL ERROR.
09-05 15:54:55.338 E/AndroidRuntime( 1169): FATAL EXCEPTION: Thread-18
09-05 15:54:55.338 E/AndroidRuntime( 1169): java.lang.NullPointerException
09-05 15:54:55.338 E/AndroidRuntime( 1169): at com.mediatek.wsp.util.EmotionParser.getEmotionNum(EmotionParser.java:383)
09-05 15:54:55.338 E/AndroidRuntime( 1169): at com.android.contacts.ContactsListActivity$InitLoaderThread.run(ContactsListActivity.java:1961)
09-05 15:54:55.457 E/ActivityThread( 1169): Failed to find provider info for com.mediatek.SnsContentProvider.SNSProvider
09-05 15:54:55.457 E/SNS::ERROR( 1169): END---------DataManager::getAllSnsAccountInfo---------SQL ERROR
09-05 15:54:55.672 E/AEE ( 180): read_cmdline:android.process.acore
09-05 15:54:55.779 E/ActivityThread( 1169): Activity com.android.contacts.ContactOwnerActivity has leaked IntentReceiver com.andr[email protected]4057c040 that was originally registered here. Are you missing a call to unregisterReceiver()?
09-05 15:54:55.779 E/ActivityThread( 1169): android.app.IntentReceiverLeaked: Activity com.android.contacts.ContactOwnerActivity has leaked IntentReceiver com.andr[email protected]4057c040 that was originally registered here. Are you missing a call to unregisterReceiver()?
Thought that I download this SNSContentProvider from somewhere and install it again. Nowhere to find such an application.
Found out that this is a samsung something, so searched for a samsung rom and extracted the SNSContetnProvider.apk, SNSCommon.apk, SNSWidget.apk, SNSWidget24.apk. Tried to install. no avail. It has some certificate problems. First error is that classes.dex is not signed, after signing it with signare 1.3 and jdk 1.7 still no luck. checking it with jarsigner -verify *.apk I get SHA1 digest errors.
Thought that maybe copying it to the system/app folder through adb will help, but no.
Is there some way to install a contacts apk that does not look for sns information at all?
I know that I should restore from backup. But if I had a backup I would not have tried all the other things at first.
Tried searching through the forum but it seems that no one else has this problem
thanks
tom
It seems that your phone has the same "system" like mine. try to copy my files into system/app, and install them via adb . i accidently deleted my launcher2.apk and got it back the same way. i hope that helps
Chrizzly92 said:
It seems that your phone has the same "system" like mine. try to copy my files into system/app, and install them via adb . i accidently deleted my launcher2.apk and got it back the same way. i hope that helps
Click to expand...
Click to collapse
First of all thanks for the files, but ...
- If I copy/install only the apk files then snscontentprovider stops "unexpectedly" with this error:
09-14 09:25:30.542 E/AndroidRuntime( 8406): FATAL EXCEPTION: main
09-14 09:25:30.542 E/AndroidRuntime( 8406): java.lang.RuntimeException: Unable to get provider com.mediatek.SnsContentProvider.SNSProvider: java.lang.ClassNotFoundException: com.mediatek.SnsContentProvider.SNSProvider in loader dalvik.system.PathClassLoader[/system/app/SnsContentProvider.apk]
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread.installProvider(ActivityThread.java:3653)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3405)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3361)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread.access$2200(ActivityThread.java:155)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1031)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.os.Handler.dispatchMessage(Handler.java:130)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.os.Looper.loop(SourceFile:351)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread.main(ActivityThread.java:3814)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at java.lang.reflect.Method.invokeNative(Native Method)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at java.lang.reflect.Method.invoke(Method.java:538)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:659)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at dalvik.system.NativeStart.main(Native Method)
09-14 09:25:30.542 E/AndroidRuntime( 8406): Caused by: java.lang.ClassNotFoundException: com.mediatek.SnsContentProvider.SNSProvider in loader dalvik.system.PathClassLoader[/system/app/SnsContentProvider.apk]
09-14 09:25:30.542 E/AndroidRuntime( 8406): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:271)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at java.lang.ClassLoader.loadClass(ClassLoader.java:582)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at java.lang.ClassLoader.loadClass(ClassLoader.java:542)
09-14 09:25:30.542 E/AndroidRuntime( 8406): at android.app.ActivityThread.installProvider(ActivityThread.java:3638)
09-14 09:25:30.542 E/AndroidRuntime( 8406): ... 12 more
09-14 09:25:30.963 E/AEE ( 180): read_cmdline:com.mediatek.SnsContentProvider
- if I copy the obex files also, then opening contacts hangs the phone.
So now I'm searching for two solutions:
- Compile my own android without all the irrelevant stuff (but a bit too newbie in this area)
- Get the stock rom from the manufacturer

[Q] [Help] Adding Su to build

I'm in the process of learning to build android from source. I've got my AOKP rom booting and am working on adding superuser to it, and am running into troubles. After much googling here is what I've done
Cloned Superuser source code
Code:
git clone git://github.com/ChainsDD/Superuser.git packages/apps/Superuser
Copied the su binary from my current rom (/system/xbin/su) to my device tree
Edited device.mk
Code:
# Build superuser
PRODUCT_PACKAGES := \
Superuser
# copy su binary
PRODUCT_COPY_FILES += \
device/lge/E973/su:system/xbin/su
Everything built fine and Superuser is in my app drawer when rom boots. If i try to open Superuser it force closes. Root checker shows that i am rooted, and typing 'su' in terminal emulator gets root access. Neither will give me a dialog asking to deny or grant.
If i install SuperSuperuser from the market, it will present all the normal dialogs and everything seems as it should.
I'm wondering what it is I'm doing wrong, and how I can correct it.
Here is a logcat of the failed attempt to open superuser
Code:
D/dalvikvm( 2157): Late-enabling CheckJNI
I/ActivityManager( 530): Start proc com.noshufou.android.su for activity com.noshufou.android.su/.Su: pid=2157 uid=10040 gids={50040, 3003, 1015, 1028}
I/dalvikvm( 2157): Turning on JNI app bug workarounds for target SDK version 11...
D/overlay ( 161): FROM_STATE = OV_BYPASS_3_LAYER TO_STATE = OV_CLOSED
I/ActivityThread( 2157): Pub com.noshufou.android.su.provider: com.noshufou.android.su.provider.PermissionsProvider
D/Su.HomeActivity( 2157): onCreate()
D/AndroidRuntime( 2157): Shutting down VM
W/dalvikvm( 2157): threadid=1: thread exiting with uncaught exception (group=0x40dd7930)
E/AndroidRuntime( 2157): FATAL EXCEPTION: main
E/AndroidRuntime( 2157): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.noshufou.android.su/com.noshufou.android.su.HomeActivity}: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
E/AndroidRuntime( 2157): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2356)
E/AndroidRuntime( 2157): at android.app.ActivityThread.access$600(ActivityThread.java:150)
E/AndroidRuntime( 2157): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
E/AndroidRuntime( 2157): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2157): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2157): at android.app.ActivityThread.main(ActivityThread.java:5193)
E/AndroidRuntime( 2157): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2157): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2157): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 2157): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 2157): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2157): Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:232)
E/AndroidRuntime( 2157): at com.actionbarsherlock.app.SherlockFragmentActivity.getSherlock(SherlockFragmentActivity.java:32)
E/AndroidRuntime( 2157): at com.actionbarsherlock.app.SherlockFragmentActivity.requestWindowFeature(SherlockFragmentActivity.java:265)
E/AndroidRuntime( 2157): at com.noshufou.android.su.HomeActivity.onCreate(HomeActivity.java:59)
E/AndroidRuntime( 2157): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 2157): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 2157): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
E/AndroidRuntime( 2157): ... 11 more
E/AndroidRuntime( 2157): Caused by: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at java.lang.Class.getConstructorOrMethod(Class.java:460)
E/AndroidRuntime( 2157): at java.lang.Class.getConstructor(Class.java:431)
E/AndroidRuntime( 2157): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:229)
E/AndroidRuntime( 2157): ... 17 more
W/ActivityManager( 530): Force finishing activity com.noshufou.android.su/.Su
D/dalvikvm( 2157): GC_CONCURRENT freed 219K, 15% free 2489K/2912K, paused 2ms+1ms, total 21ms
I/dalvikvm( 530): Jit: resizing JitTable from 8192 to 16384
W/ActivityManager( 530): Activity pause timeout for ActivityRecord{41681370 u0 com.noshufou.android.su/.Su}
I/Process ( 2157): Sending signal. PID: 2157 SIG: 9
I/ActivityManager( 530): Process com.noshufou.android.su (pid 2157) has died.
W/InputMethodManagerService( 530): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
D/dalvikvm( 530): GC_CONCURRENT freed 7964K, 44% free 13574K/23868K, paused 2ms+6ms, total 57ms
D/overlay ( 161): FROM_STATE = OV_CLOSED TO_STATE = OV_BYPASS_3_LAYER
just a lilttle bump, if anyone can just point me in the dirrection of where i'm going wrong here I would be very appreciative.

[Q] Porting PAC rom - some problems

Hello everyone,
I have some problems with porting PAC to HTC Sensation:
1. getVolumeState(/mnt/usbdisk): Unknown volume - beacuse of that I have f/c on settings/storage and can't mount SD card. Workaround - pull and push sd card than can it read it. Here is full logcat:
Code:
W/MountService( 436): getVolumeState(/mnt/usbdisk): Unknown volume
D/AndroidRuntime(13478): Shutting down VM
W/dalvikvm(13478): threadid=1: thread exiting with uncaught exception (group=0x40af5930)
E/AndroidRuntime(13478): FATAL EXCEPTION: main
E/AndroidRuntime(13478): java.lang.IllegalArgumentException
E/AndroidRuntime(13478): at android.os.Parcel.readException(Parcel.java:1429)
E/AndroidRuntime(13478): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime(13478): at android.os.storage.IMountService$Stub$Proxy.getVolumeState(IMountService.java:241)
E/AndroidRuntime(13478): at android.os.storage.StorageManager.getVolumeState(StorageManager.java:555)
E/AndroidRuntime(13478): at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.java:241)
E/AndroidRuntime(13478): at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updateApproximate(StorageVolumePreferenceCategory.java:335)
E/AndroidRuntime(13478): at com.android.settings.deviceinfo.StorageVolumePreferenceCategory$1.handleMessage(StorageVolumePreferenceCategory.java:91)
E/AndroidRuntime(13478): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(13478): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(13478): at android.app.ActivityThread.main(ActivityThread.java:5237)
E/AndroidRuntime(13478): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(13478): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(13478): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime(13478): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime(13478): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 436): Force finishing activity com.android.settings/.Settings
W/ActivityManager( 436): Activity pause timeout for ActivityRecord{40f15f58 u0 com.android.settings/.Settings}
W/ThrottleService( 436): unable to find stats for iface rmnet0
2. Menu settings doesn't work. After touching softkey or the key on the screen it doesn't show program settings. I don't know how to fix it...
Thanks for any help!
You can PM or answer this thread.
Regards,
Hellmanor.
bump.
bump again.
More logcat:
Code:
I/DefContainer-JNI( 1584): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0) returned 0
W/StorageMeasurement( 1919): Problem in container service
W/StorageMeasurement( 1919): java.lang.IllegalStateException: libcore.io.ErrnoException: statfs failed: ENOENT (No such file or directory)
W/StorageMeasurement( 1919): at android.os.Parcel.readException(Parcel.java:1433)
W/StorageMeasurement( 1919): at android.os.Parcel.readException(Parcel.java:1379)
W/StorageMeasurement( 1919): at com.android.internal.app.IMediaContainerService$Stub$Proxy.getFileSystemStats(IMediaContainerService.java:464)
W/StorageMeasurement( 1919): at com.android.settings.deviceinfo.StorageMeasurement$MeasurementHandler.measureApproximateStorage(StorageMeasurement.java:384)
W/StorageMeasurement( 1919): at com.android.settings.deviceinfo.StorageMeasurement$MeasurementHandler.handleMessage(StorageMeasurement.java:350)
W/StorageMeasurement( 1919): at android.os.Handler.dispatchMessage(Handler.java:99)
W/StorageMeasurement( 1919): at android.os.Looper.loop(Looper.java:137)
W/StorageMeasurement( 1919): at android.os.HandlerThread.run(HandlerThread.java:60)
I/DefContainer-JNI( 1584): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Android) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Podcasts) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/DCIM) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Ringtones) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Movies) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Alarms) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Music) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Notifications) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Pictures) returned 0
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0/Download) returned 0
I/DefContainer-JNI( 1584): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1919): getDirectorySize(/storage/sdcard0) returned 0
D/AndroidRuntime( 1919): Shutting down VM
W/dalvikvm( 1919): threadid=1: thread exiting with uncaught exception (group=0x40b09930)
W/MountService( 434): getVolumeState(/mnt/usbdisk): Unknown volume
E/AndroidRuntime( 1919): FATAL EXCEPTION: main
E/AndroidRuntime( 1919): java.lang.IllegalArgumentException
E/AndroidRuntime( 1919): at android.os.Parcel.readException(Parcel.java:1429)
E/AndroidRuntime( 1919): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 1919): at android.os.storage.IMountService$Stub$Proxy.getVolumeState(IMountService.java:241)
E/AndroidRuntime( 1919): at android.os.storage.StorageManager.getVolumeState(StorageManager.java:555)
E/AndroidRuntime( 1919): at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.java:241)
E/AndroidRuntime( 1919): at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updateApproximate(StorageVolumePreferenceCategory.java:335)
E/AndroidRuntime( 1919): at com.android.settings.deviceinfo.StorageVolumePreferenceCategory$1.handleMessage(StorageVolumePreferenceCategory.java:91)
E/AndroidRuntime( 1919): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1919): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1919): at android.app.ActivityThread.main(ActivityThread.java:5237)
E/AndroidRuntime( 1919): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1919): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1919): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime( 1919): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime( 1919): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 434): Force finishing activity com.android.settings/.Settings

[Q] SystemUI.apk crashes

Hi,
I'm bulding android for my single board computer with connected 7 inch lcd touch screen. It's working like a charm, but one issue. SystemUI.apk is crashing all the time with following error log:
Code:
I/ActivityManager( 368): Start proc com.android.systemui for restart com.android.systemui: pid=1883 uid=10001 gids={50001, 1028, 1015, 3002, 3001}
D/SystemUIService( 1883): loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
D/SystemUIService( 1883): running: [email protected]
I/StatusBarManagerService( 368): registerStatusBar [email protected]0
W/ResourceType( 1883): Failure getting entry for 0x7f0200db (t=1 e=219) in package 0 (error -75)
D/AndroidRuntime( 1883): Shutting down VM
W/dalvikvm( 1883): threadid=1: thread exiting with uncaught exception (group=0x40d30930)
E/AndroidRuntime( 1883): FATAL EXCEPTION: main
E/AndroidRuntime( 1883): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #48: Error inflating class com.android.systemui.statusbar.policy.CompatModeButton
Does anyone know how to fix this or what's the reason for the crash?
Thank you very much in advance.
Update
rotowsky said:
Hi,
I'm bulding android for my single board computer with connected 7 inch lcd touch screen. It's working like a charm, but one issue. SystemUI.apk is crashing all the time with following error log:
Code:
I/ActivityManager( 368): Start proc com.android.systemui for restart com.android.systemui: pid=1883 uid=10001 gids={50001, 1028, 1015, 3002, 3001}
D/SystemUIService( 1883): loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
D/SystemUIService( 1883): running: [email protected]
I/StatusBarManagerService( 368): registerStatusBar [email protected]0
W/ResourceType( 1883): Failure getting entry for 0x7f0200db (t=1 e=219) in package 0 (error -75)
D/AndroidRuntime( 1883): Shutting down VM
W/dalvikvm( 1883): threadid=1: thread exiting with uncaught exception (group=0x40d30930)
E/AndroidRuntime( 1883): FATAL EXCEPTION: main
E/AndroidRuntime( 1883): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #48: Error inflating class com.android.systemui.statusbar.policy.CompatModeButton
Does anyone know how to fix this or what's the reason for the crash?
Thank you very much in advance.
Click to expand...
Click to collapse
Hope for an Update , and that it works , ( I think so )
Mmh?

Categories

Resources