[Q] MMS crashing - Galaxy S I9000 General

Sigh. This phone has given me so many problems, I'm seriously thinking of dropping it for something else like an HTC.
GPS just sucks. It keeps wondering around and loosing satellites. It is actually dangerous driving with this thing. Also battery dies in 8-9 hours. Not cool.
BUT right at the moment I'm finding that I can no longer TEXT my friends. This happened after I came back from a trip outside my local calling area. I was able to text in Quebec but after coming back to Ontario all I can do is see my messages coming in, but when I try and read them by clicking on the message, the balloons with the conversation appear but it then crashes.
Here is the log file that I extracted using adb logcat.
I/AudioHardwareALSA( 2367): Output standby called!!. Turn off PCM device.
V/InputDevice( 2484): ID[0]=0(0) Dn(0=>1)
V/WindowManager( 2484): Dsptch > Window{47f937f8 com.android.mms/com.android.mms.ui.ConversationList paused=false}
V/WindowManager( 2484): Dsptch > Window{47f937f8 com.android.mms/com.android.mms.ui.ConversationList paused=false}
V/InputDevice( 2484): ID[0]=0(0) Up(1=>0)
V/Mms/ConversationList( 4450): onListItemClick: position=4, id=32
I/ActivityManager( 2484): Starting activity: Intent { dat=content://mms-sms/conversations/32 cmp=com.android.mms/.ui.ComposeMessageActivity }
D/Mms/ConversationList( 4450): onSaveInstanceState
D/AudioHardwareALSA( 2367):
D/AudioHardwareALSA( 2367): ALSA OPEN mode 0,device 2
I/AudioHardwareALSA( 2367): Try to open ALSA PLAYBACK device AndroidPlayback_Speaker_normal
I/Mms/compose( 4450): mEncodingType:2
I/AudioHardwareALSA( 2367): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
D/AudioHardwareALSA( 2367): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA( 2367): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 2367): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA( 2367): Buffer size: 2048
D/AudioHardwareALSA( 2367): Latency: 46439
V/MmsProvider( 2645): Query uri=content://mms/drafts, match=6
D/Mms ( 4450): [1] setConversation null -> [4162757727;6479667280;+16479294276] (tid 32)
V/MmsSmsProvider( 2645): uri=content://mms-sms/conversations/32
I/Mms/compose( 4450): onResume mEncodingType:2
V/MmsSmsProvider( 2645): uri=content://mms-sms/conversations?simple=true
V/MmsSmsProvider( 2645): getSimpleConversations entered.
V/MmsSmsProvider( 2645): uri=content://mms-sms/undelivered
V/Mms/compose( 4450): message list : message list query is completed
V/Mms/MessageListItem( 4450): bind uri 1 content://sms/661
V/Mms/MessageListItem( 4450): bind uri 3 content://sms/661
I/wpa_supplicant( 2552): WPS-AP-AVAILABLE
I/wpa_supplicant( 2552): CTRL-EVENT-NO-CONNECTION
I/WifiMonitor( 2484): Event [ SCAN-RESULTS ]
I/WifiMonitor( 2484): Event [WPS-AP-AVAILABLE ]
I/WifiMonitor( 2484): Event [CTRL-EVENT-NO-CONNECTION]
I/NetworkStatusReceiver( 3467): action: android.net.wifi.SCAN_RESULTS
I/NetworkStatusReceiver( 3467): action: android.net.wifi.SHOW_AP_LIST_DIALOG
E/WifiManager( 3467): showApDialog
I/WifiService( 2484): isShowingAccessPointListDialog():false
I/WifiService( 2484): setShowAccessPointListDialog():false
V/Mms/MessageListItem( 4450): bind uri 1 content://sms/660
V/Mms/MessageListItem( 4450): bind uri 3 content://sms/660
V/Mms/MessageListItem( 4450): bind uri 1 content://sms/659
V/Mms/MessageListItem( 4450): bind uri 3 content://sms/659
D/dalvikvm( 4450): GC_FOR_MALLOC freed 3752 objects / 250280 bytes in 31ms
V/MmsSmsProvider( 2645): uri=content://mms-sms/conversations/32
V/MmsSmsProvider( 2645): uri=content://mms-sms/undelivered
V/MmsProvider( 2645): Query uri=content://mms/inbox, match=2
D/dalvikvm( 2645): GC_FOR_MALLOC freed 10549 objects / 584392 bytes in 43ms
V/MmsProvider( 2645): Query uri=content://mms, match=0
I/Database( 2794): sqlite returned: error code = 14, msg = cannot open file at source line 25467
I/Database( 2794): sqlite returned: error code = 14, msg = cannot open file at source line 25467
I/Database( 2794): sqlite returned: error code = 14, msg = unable to open database file
E/Database( 2794): CREATE TABLE android_metadata failed
E/Database( 2794): Failed to setLocale() when constructing, closing the database
E/Database( 2794): android.database.sqlite.SQLiteException: unable to open database file
E/Database( 2794): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/Database( 2794): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:2059)
E/Database( 2794): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1927)
E/Database( 2794): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:883)
E/Database( 2794): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:960)
E/Database( 2794): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:953)
E/Database( 2794): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:597)
E/Database( 2794): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/Database( 2794): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
E/Database( 2794): at com.sec.android.provider.badge.BadgeProvider.update(BadgeProvider.java:124)
E/Database( 2794): at android.content.ContentProvider$Transport.update(ContentProvider.java:216)
E/Database( 2794): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:201)
E/Database( 2794): at android.os.Binder.execTransact(Binder.java:288)
E/Database( 2794): at dalvik.system.NativeStart.run(Native Method)
E/DatabaseUtils( 2794): Writing exception to parcel
E/DatabaseUtils( 2794): android.database.sqlite.SQLiteException: unable to open database file
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:2059)
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1927)
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:883)
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:960)
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:953)
E/DatabaseUtils( 2794): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:597)
E/DatabaseUtils( 2794): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/DatabaseUtils( 2794): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
E/DatabaseUtils( 2794): at com.sec.android.provider.badge.BadgeProvider.update(BadgeProvider.java:124)
E/DatabaseUtils( 2794): at android.content.ContentProvider$Transport.update(ContentProvider.java:216)
E/DatabaseUtils( 2794): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:201)
E/DatabaseUtils( 2794): at android.os.Binder.execTransact(Binder.java:288)
E/DatabaseUtils( 2794): at dalvik.system.NativeStart.run(Native Method)
W/dalvikvm( 4450): threadid=10: thread exiting with uncaught exception (group=0x4001d7d0)
E/AndroidRuntime( 4450): FATAL EXCEPTION: Thread-19
E/AndroidRuntime( 4450): android.database.sqlite.SQLiteException: unable to open database file
E/AndroidRuntime( 4450): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:158)
E/AndroidRuntime( 4450): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:114)
E/AndroidRuntime( 4450): at android.content.ContentProviderProxy.update(ContentProviderNative.java:506)
E/AndroidRuntime( 4450): at android.content.ContentResolver.update(ContentResolver.java:707)
E/AndroidRuntime( 4450): at com.android.mms.transaction.MessagingNotification.updateBadgeProvider(MessagingNotification.java:1051)
E/AndroidRuntime( 4450): at com.android.mms.transaction.MessagingNotification.blockingUpdateNewMessageIndicator(MessagingNotification.java:218)
E/AndroidRuntime( 4450): at com.android.mms.transaction.MessagingNotification$1.run(MessagingNotification.java:179)
E/AndroidRuntime( 4450): at java.lang.Thread.run(Thread.java:1096)
I/ ( 2484): dumpmesg > /data/log/dumpstate_app_error.log
W/ActivityManager( 2484): Force finishing activity com.android.mms/.ui.ComposeMessageActivity
W/ActivityManager( 2484): Force finishing activity com.android.mms/.ui.ConversationList
I/dumpstate( 4471): begin​Does anyone have any idea what is going on? Your help is greatly appreciated.
A
Model: GT-I9000M
Firmware: 2.2
Baseband: I9000UGJL2
Kernel: 2.7.32.9 shout.lee(at)SEP-09 #3
Build: FROYO.UGJL2

Well, I got it back again. Here is what I did to get it back for those who get in the same situation.
I used Titanium Backup to backup the [SMS/MMS PREFS] Messaging 2.2, wiped the data and restored it. Looks like there was something corrupt in the preferences or that part of the DB. WTF!!! ((
A

Related

Touchscreen Unresponsive - Logcat Inside

Hi all,
I've had my Magic since September and for the last few weeks it has intermittently been unresponsive to touch, the screen displays fine but it won't acknowledge any touch. In the last 2 days this has gotten a lot worse and now it barely works at all.
Any attempt to access the Contacts/Dialer throws up a Force close on process com.android.phone
Initially I thought this was a software problem but now I am not so sure. I have reverted back to the stock Vodafone AU rom that I backed up when I initially purchased and am getting ready to send back to HTC but thought I would ask on here as well.
Below is the logcat from a fresh reboot - Quite a few errors I think
Code:
E:\HTC Magic Tools\android-sdk-windows\tools>adb logcat -b main *:W
E/RIL Acoustic( 33): can't open /dev/htc-acoustic -1
E/HTC Acoustic( 35): Fail to open /system/etc/AudioPara_VODA-Australia.csv -1.
E/A2DP ( 35): bt_audio_service_open failed
E/A2dpAudioInterface( 35): a2dp_init failed err: -111
E/AudioFlinger( 35): mA2dpDisableCount is already zero
W/SurfaceFlinger( 58): couldn't grant gpu core to pid 58
E/GLLogger( 58): h/w accelerated eglGetDisplay() failed (EGL_SUCCESS)
W/HAL ( 58): load: module=/system/lib/hw/copybit.sapphire.so error=Cannot
find library
W/HAL ( 58): load: module=/system/lib/hw/copybit.sapphire.so error=Cannot
find library
W/HAL ( 58): load: module=/system/lib/hw/copybit.sapphire.so error=Cannot
find library
W/HAL ( 58): load: module=/system/lib/hw/copybit.sapphire.so error=Cannot
find library
W/HAL ( 58): load: module=/system/lib/hw/overlay.sapphire.so error=Cannot
find library
W/HAL ( 58): load: module=/system/lib/hw/overlay.sapphire.so error=Cannot
find library
W/HAL ( 58): load: module=/system/lib/hw/overlay.msm7k.so error=Cannot fin
d library
W/HAL ( 58): load: module=/system/lib/hw/overlay.default.so error=Cannot f
ind library
W/HAL ( 58): load: module=/system/lib/hw/lights.sapphire.so error=Cannot f
ind library
W/HAL ( 58): load: module=/system/lib/hw/lights.sapphire.so error=Cannot f
ind library
E/lights ( 58): write_int failed to open /sys/class/leds/keyboard-backlight/b
rightness
W/ResourceType( 58): No package identifier when getting value for resource num
ber 0x7f060001
W/ResourceType( 58): No package identifier when getting value for resource num
ber 0x7f030003
W/ResourceType( 58): No package identifier when getting value for resource num
ber 0x7f030000
W/ResourceType( 58): No package identifier when getting value for resource num
ber 0x7f03000c
W/ResourceType( 58): No package identifier when getting value for resource num
ber 0x7f030000
W/ResourceType( 58): No package identifier when getting value for resource num
ber 0x00000000
W/StatusBar( 58): Icon not found in <system>: 0
W/CheckinService( 58): No saved kernel log file
E/ApplicationContext( 58): Couldn't create directory for SharedPreferences fil
e shared_prefs/wallpaper-hints.xml
W/ActivityManager( 58): Unable to start service Intent { action=com.android.us
sd.IExtendedNetworkService }: not found
W/SurfaceFlinger( 58): executeScheduledBroadcasts() skipped, contention on the
client. We'll try again later...
W/AudioFlinger( 35): write blocked for 111 msecs
Thanks in advance for any assistance you can offer me, it would be really appreciated!!
Let me know if you need further info
Some further information
If I try to open Contacts using the trackball the Logcat expands to add the following: -
Code:
W/InputManagerService( 58): Window already focused, ignoring focus gain of: co
[email protected]
W/ResourceType( 95): Failure getting entry for 0x7f030005 (t=2 e=5) in package
0: 0xffffffb5
W/dalvikvm( 95): threadid=3: thread exiting with uncaught exception (group=0x4
000fe70)
E/AndroidRuntime( 95): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime( 95): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.android.contacts/com.android.contacts.DialtactsActivity}: androi
d.content.res.Resources$NotFoundException: Resource ID #0x7f030005
E/AndroidRuntime( 95): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2268)
E/AndroidRuntime( 95): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2284)
E/AndroidRuntime( 95): at android.app.ActivityThread.access$1800(Activi
tyThread.java:112)
E/AndroidRuntime( 95): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1692)
E/AndroidRuntime( 95): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 95): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 95): at android.app.ActivityThread.main(ActivityThrea
d.java:3948)
E/AndroidRuntime( 95): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 95): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 95): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 95): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:540)
E/AndroidRuntime( 95): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 95): Caused by: android.content.res.Resources$NotFoundExcept
ion: Resource ID #0x7f030005
E/AndroidRuntime( 95): at android.content.res.Resources.getValue(Resour
ces.java:846)
E/AndroidRuntime( 95): at android.content.res.Resources.loadXmlResource
Parser(Resources.java:1796)
E/AndroidRuntime( 95): at android.content.res.Resources.getLayout(Resou
rces.java:685)
E/AndroidRuntime( 95): at android.view.LayoutInflater.inflate(LayoutInf
later.java:318)
E/AndroidRuntime( 95): at android.view.LayoutInflater.inflate(LayoutInf
later.java:276)
E/AndroidRuntime( 95): at com.android.internal.policy.impl.PhoneWindow.
setContentView(PhoneWindow.java:309)
E/AndroidRuntime( 95): at android.app.Activity.setContentView(Activity.
java:1626)
E/AndroidRuntime( 95): at com.android.contacts.DialtactsActivity.onCrea
te(DialtactsActivity.java:73)
E/AndroidRuntime( 95): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1123)
E/AndroidRuntime( 95): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2231)
E/AndroidRuntime( 95): ... 11 more
W/ActivityManager( 58): Scheduling restart of crashed service com.google.andro
id.apps.gtalkservice/com.google.android.gtalkservice.service.GTalkService in 500
0ms
W/InputManagerService( 58): Got RemoteException sending setActive(false) notif
ication to pid 95 uid 10004

[Q] Debug a crash in phone application

Hi All,
I am trying to debug a crash in the phone application, on receiving a call it is crashing and unable to receive any call. I am new to Android, so looking for some help on debugging the same. Some background for the problem is just upgraded to JPQ. I have restored system and applications along with data using Titanium backup. Looks like some restored data is causing the problem, as was able to receive calls before backup restore.
Below is the logcat log, looks like it is crashing while trying to retrieve some data in cursorwindow:
D/InCallScreen( 4993): onResume()...
D/PowerManagerService( 2278): setPokeLock pokey=9 tag=PhoneApp
D/StatusBar( 2278): manageDisableList what=0x1 pkg=com.android.phone
D/StatusBar( 2278): DISABLE_EXPAND: yes
D/StatusBar( 2278): manageDisableList what=0x1 pkg=com.android.phone
W/ResourceType( 4993): getEntry failing because entryIndex 65 is beyond type ent
ryCount 1
E/CursorWindow( 4980): Bad request for field slot 0,2. numRows = 5, numColumns =
2
E/DatabaseUtils( 4980): Writing exception to parcel
E/DatabaseUtils( 4980): java.lang.IllegalStateException: get field slot from row
0 col 2 failed
E/DatabaseUtils( 4980): at android.database.CursorWindow.getLong_native(
Native Method)
E/DatabaseUtils( 4980): at android.database.CursorWindow.getInt(CursorWi
ndow.java:466)
E/DatabaseUtils( 4980): at android.database.AbstractWindowedCursor.getIn
t(AbstractWindowedCursor.java:93)
E/DatabaseUtils( 4980): at com.sec.android.app.callsetting.allcalls.AllC
allsProvider.query(AllCallsProvider.java:354)
E/DatabaseUtils( 4980): at android.content.ContentProvider$Transport.bul
kQuery(ContentProvider.java:150)
E/DatabaseUtils( 4980): at android.content.ContentProviderNative.onTrans
act(ContentProviderNative.java:111)
E/DatabaseUtils( 4980): at android.os.Binder.execTransact(Binder.java:28
8)
E/DatabaseUtils( 4980): at dalvik.system.NativeStart.run(Native Method)
W/dalvikvm( 4993): threadid=23: thread exiting with uncaught exception (group=0x
4001d7d0)
E/AndroidRuntime( 4993): FATAL EXCEPTION: Thread-26
E/AndroidRuntime( 4993): java.lang.IllegalStateException: get field slot from ro
w 0 col 2 failed
E/AndroidRuntime( 4993): at android.os.Parcel.readException(Parcel.java:1
268)
E/AndroidRuntime( 4993): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:160)
E/AndroidRuntime( 4993): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:114)
E/AndroidRuntime( 4993): at android.content.ContentProviderProxy.bulkQuer
yInternal(ContentProviderNative.java:330)
E/AndroidRuntime( 4993): at android.content.ContentProviderProxy.query(Co
ntentProviderNative.java:366)
E/AndroidRuntime( 4993): at android.content.ContentResolver.query(Content
Resolver.java:245)
E/AndroidRuntime( 4993): at com.android.phone.RejectCallWithMsgLayout$upd
ateThread.run(RejectCallWithMsgLayout.java:134)
W/ActivityManager( 2278): Force finishing activity com.android.phone/.InCallSc
reen
I/ ( 2278): dumpmesg > /data/log/dumpstate_app_error.log[/B]
W/AudioFlinger( 2177): write blocked for 131 msecs, 20 delayed writes, thread 0x
25e68
D/IncomingSlidingWidget( 4993): IncomingSlidingWidget gone
D/IncomingSlidingWidget( 4993): IncomingSlidingWidget show
E/CursorWindow( 4980): Bad request for field slot 0,2. numRows = 5, numColumns =
2
E/DatabaseUtils( 4980): Writing exception to parcel
E/DatabaseUtils( 4980): java.lang.IllegalStateException: get field slot from row
0 col 2 failed
E/DatabaseUtils( 4980): at android.database.CursorWindow.getLong_native(
Native Method)
E/DatabaseUtils( 4980): at android.database.CursorWindow.getInt(CursorWi
ndow.java:466)
E/DatabaseUtils( 4980): at android.database.AbstractWindowedCursor.getIn
t(AbstractWindowedCursor.java:93)
E/DatabaseUtils( 4980): at com.sec.android.app.callsetting.allcalls.AllC
allsProvider.query(AllCallsProvider.java:354)
E/DatabaseUtils( 4980): at android.content.ContentProvider$Transport.bul
kQuery(ContentProvider.java:150)
E/DatabaseUtils( 4980): at android.content.ContentProviderNative.onTrans
act(ContentProviderNative.java:111)
E/DatabaseUtils( 4980): at android.os.Binder.execTransact(Binder.java:28
8)
E/DatabaseUtils( 4980): at dalvik.system.NativeStart.run(Native Method)
D/IncomingSlidingWidget( 4993): IncomingSlidingWidget gone
W/dalvikvm( 4993): threadid=24: thread exiting with uncaught exception (group=0x
4001d7d0)
I/Process ( 4993): Sending signal. PID: 4993 SIG: 9
D/PowerManagerService( 2278): setPokeLock pokey=0 tag=PhoneApp
W/AudioService( 2278): setMode() client died
I/StatusBar( 2278): binder died for pkg=com.android.phone
D/StatusBar( 2278): manageDisableList what=0x0 pkg=com.android.phone
I/ServiceManager( 2168): service 'iphonesubinfo' died
I/ServiceManager( 2168): service 'simphonebook' died
I/ServiceManager( 2168): service 'isms' died
I/ServiceManager( 2168): service 'phone' died
I/ServiceManager( 2168): service 'phoneext' died
I/PowerManagerService( 2278): Ulight 7->3|0

[CODE][Q] Pass extra twice(image to mms), or use lastIndexOf() to get file?

Ok so this may get sort of complicated, but I'll try to explain it simply.
I have a mainActivity(viewpager). i take a screenshot of this from ABS options menu. This gets saved to sdcard . WORKS FINE
Code:
this is selecting from the actionbar menu
else if (item.getTitle().toString().equalsIgnoreCase("Take Screengrab")) {
View v1 = R1.getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap bm = v1.getDrawingCache();
Util.saveBitmap(bm, "folder", "screenshot");
//the above are the folder I chose to name, and the screenshotname{without additional numbering}
BitmapDrawable bitmapDrawable = new BitmapDrawable(bm);
image = (ImageView) findViewById(R.id.image4);
//imageview is above. second ativity is below
Intent intent = new Intent(this, Screenshots.class);
intent.putExtra("image", bm);
//"image" is my extra
startActivity(intent);
I send that while its saving, to an ImageView in a second(normal) activity. WORKS FINE
Code:
[user=439709]@override[/user]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.screenshots);
//The ImageView where the screenshot goes
ImageView image=(ImageView)findViewById(R.id.image4);
//This "imageId" isnt used, but for some reason the Imageview wont set without it
Intent intent = getIntent();
int imageId = intent.getIntExtra("imageId", -1); // -1 would be a default value//
//this gets my extra
Bitmap bm = (Bitmap)this.getIntent().getParcelableExtra("image");
image.setImageBitmap(bm);
I have a button to share it, it opens with picture attached. SORT OF WORKING
The thing is, I want to automatically pass this same extra Bitmap and attach it to the message.
i can open a message with a known file attached.
Code:
{
Uri smsUri = Uri.parse("tel:0000000");
Intent intent = new Intent(Intent.ACTION_SEND, smsUri);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/folder/screenshot.png"));
intent.putExtra(Intent.EXTRA_TEXT,"Today");
startActivity(intent);
i tried the working in putExtra to the message, but I get a toast from the messaging app "Sorry, cannot attach this image". NO STACK ERRORS. nothign in the logs I can use.
Code:
Uri smsUri = Uri.parse("tel:0000000");
Intent intent = new Intent(Intent.ACTION_SEND, smsUri);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("image"));
intent.putExtra(Intent.EXTRA_TEXT,"Today");
startActivity(intent);
and other stuff like that that.
I currently am loading a known file into the message and it works perfect. Problem is, I wont know the name of the file, because my screenshots get saved as image1, image2, etc. So it will be different in every case.
So im wondering if its even possible to pass and extra through twice like that, or if I should look into return the latest image in that sdcard folder with like lastIndexOf(), or something similar.
basically, is there a way to simply query find and attach the highest numbered file? without a GUI(i can do select from gallery, but am trying to make it more automated).
any thoughts would be appreciated.
P.S. i know about the lint errors and things, and somewhat sloppy self taught java, but its working. only worried about the image passing.
out of ideas said:
Ok so this may get sort of complicated, but I'll try to explain it simply.
I have a mainActivity(viewpager). i take a screenshot of this from ABS options menu. This gets saved to sdcard . WORKS FINE
Code:
this is selecting from the actionbar menu
else if (item.getTitle().toString().equalsIgnoreCase("Take Screengrab")) {
View v1 = R1.getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap bm = v1.getDrawingCache();
Util.saveBitmap(bm, "folder", "screenshot");
//the above are the folder I chose to name, and the screenshotname{without additional numbering}
BitmapDrawable bitmapDrawable = new BitmapDrawable(bm);
image = (ImageView) findViewById(R.id.image4);
//imageview is above. second ativity is below
Intent intent = new Intent(this, Screenshots.class);
intent.putExtra("image", bm);
//"image" is my extra
startActivity(intent);
I send that while its saving, to an ImageView in a second(normal) activity. WORKS FINE
Code:
[user=439709]@override[/user]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.screenshots);
//The ImageView where the screenshot goes
ImageView image=(ImageView)findViewById(R.id.image4);
//This "imageId" isnt used, but for some reason the Imageview wont set without it
Intent intent = getIntent();
int imageId = intent.getIntExtra("imageId", -1); // -1 would be a default value//
//this gets my extra
Bitmap bm = (Bitmap)this.getIntent().getParcelableExtra("image");
image.setImageBitmap(bm);
I have a button to share it, it opens with picture attached. SORT OF WORKING
The thing is, I want to automatically pass this same extra Bitmap and attach it to the message.
i can open a message with a known file attached.
Code:
{
Uri smsUri = Uri.parse("tel:0000000");
Intent intent = new Intent(Intent.ACTION_SEND, smsUri);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/folder/screenshot.png"));
intent.putExtra(Intent.EXTRA_TEXT,"Today");
startActivity(intent);
i tried the working in putExtra to the message, but I get a toast from the messaging app "Sorry, cannot attach this image". NO STACK ERRORS. nothign in the logs I can use.
Code:
Uri smsUri = Uri.parse("tel:0000000");
Intent intent = new Intent(Intent.ACTION_SEND, smsUri);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("image"));
intent.putExtra(Intent.EXTRA_TEXT,"Today");
startActivity(intent);
and other stuff like that that.
I currently am loading a known file into the message and it works perfect. Problem is, I wont know the name of the file, because my screenshots get saved as image1, image2, etc. So it will be different in every case.
So im wondering if its even possible to pass and extra through twice like that, or if I should look into return the latest image in that sdcard folder with like lastIndexOf(), or something similar.
basically, is there a way to simply query find and attach the highest numbered file? without a GUI(i can do select from gallery, but am trying to make it more automated).
any thoughts would be appreciated.
P.S. i know about the lint errors and things, and somewhat sloppy self taught java, but its working. only worried about the image passing.
Click to expand...
Click to collapse
I would just pass the filename to the share intent. In your saving method return the file name and pass it to the Uri.
lastIndexOf is a bad idea. What will you do if somebody saves a file called "xyz" in the same directory? The app will send this every time. So store the filename and pass it to the Uri.
nikwen said:
I would just pass the filename to the share intent. In your saving method return the file name and pass it to the Uri.
lastIndexOf is a bad idea. What will you do if somebody saves a file called "xyz" in the same directory? The app will send this every time. So store the filename and pass it to the Uri.
Click to expand...
Click to collapse
Yeah I had originally tried going about it that, with like getFileStreamPath and things like that, tried about a dozen different things but couldnt get them working. best i can get is that "sorry cant add..." message from the messaging app, which tells me that its passing the image, but it cant attach for some unknown reason(too large doesn't seem right, cuz i can do it with the known file name).
im a dum dum a probably should put this util class
Code:
static String saveBitmap(Bitmap bitmap, String dir, String baseName) {
try {
File sdcard = Environment.getExternalStorageDirectory();
File pictureDir = new File(sdcard, dir);
pictureDir.mkdirs();
File f = null;
for (int i = 1; i < 200; ++i) {
String name = baseName + i + ".png";
f = new File(pictureDir, name);
if (!f.exists()) {
break;
}
}
if (!f.exists()) {
String name = f.getAbsolutePath();
FileOutputStream fos = new FileOutputStream(name);
bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos);
fos.flush();
fos.close();
//how to get "name" in third activity
return name;
}
} catch (Exception e) {
} finally {
/*
if (fos != null) {
fos.close();
}
*/
}
return null;
}
So I have the name there, but just cant get it over to the messaging. I'm wondering if I should take the pic and automaticaaly pin it to the MMS, and skip the imageview part?
First: Please get a logcat.
Second: This should be working if you use the right path:
Code:
Uri smsUri = Uri.parse("tel:0000000");
Intent intent = new Intent(Intent.ACTION_SEND, smsUri);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("<path here>"));
intent.putExtra(Intent.EXTRA_TEXT,"Today");
startActivity(intent);
(got it from your first post)
1. This is a for instance situtation of if i try sliding the extra or something else into Uri.parse()
E/Mms/compose( 1063): DRM error in onActivityResult()!
E/Mms/media( 1063): IOException caught while opening or reading stream
E/Mms/media( 1063): java.io.FileNotFoundException: No content provider: image
But the content of image makes it into the ImageView(as "getParcelableExtra("image"), just not in the MMS, so I don't know.
2. Yeah it works Perfect when I hardcode in a file( sdcard/folder/image1.png). attaches and sends perfect.
The problem is basically I have a loose understanding of how I should be doing this, and just cant figure out how I should properly be getting it to load.
Banging my head against the wall on this one. lol. :fingers-crossed:
out of ideas said:
1. This is a for instance situtation of if i try sliding the extra or something else into Uri.parse()
E/Mms/compose( 1063): DRM error in onActivityResult()!
E/Mms/media( 1063): IOException caught while opening or reading stream
E/Mms/media( 1063): java.io.FileNotFoundException: No content provider: image
But the content of image makes it into the ImageView(as "getParcelableExtra("image"), just not in the MMS, so I don't know.
2. Yeah it works Perfect when I hardcode in a file( sdcard/folder/image1.png). attaches and sends perfect.
The problem is basically I have a loose understanding of how I should be doing this, and just cant figure out how I should properly be getting it to load.
Banging my head against the wall on this one. lol. :fingers-crossed:
Click to expand...
Click to collapse
The problem is that you do not pass the right file name. So it cannot find the file.
---------- Post added at 07:55 PM ---------- Previous post was at 07:48 PM ----------
Change it to this and tell us the log output:
Code:
static String saveBitmap(Bitmap bitmap, String dir, String baseName) {
try {
File sdcard = Environment.getExternalStorageDirectory();
File pictureDir = new File(sdcard, dir);
pictureDir.mkdirs();
File f = null;
for (int i = 1; i < 200; ++i) {
String name = baseName + i + ".png";
f = new File(pictureDir, name);
if (!f.exists()) {
break;
}
}
if (!f.exists()) {
Log.d("file", "file does not exist");
String name = f.getAbsolutePath();
FileOutputStream fos = new FileOutputStream(name);
bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos);
fos.flush();
fos.close();
//how to get "name" in third activity
if (name != null) {
Log.d("return", name);
} else {
Log.d("return", "name = null");
}
return name;
} else {
Log.d("file", "file exists");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
/*
if (fos != null) {
fos.close();
}
*/
}
Log.d("return", "null");
return null;
}
I just inserted some debugging things. Check the logcat (and post it).
Did you add this to your manifest?
Code:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
nikwen said:
The problem is that you do not pass the right file name. So it cannot find the file.
I just inserted some debugging things. Check the logcat (and post it).
Did you add this to your manifest?
Code:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Click to expand...
Click to collapse
i know! I just need a way to get what my Util class returns as name. then open that attached to Message. It seems like it should be a lot easier than I am making it.
i added your logs, but the only match back I get is here (I put in some extra stuff)
Code:
D/ViewRoot( 2072): Dispatching pointer MotionEvent{2b00f540 action=1 x=85.33334 y=179.98325 pressure=0.20000002 size=0.20000002} to [email protected]
D/dalvikvm( 2072): GC_EXTERNAL_ALLOC freed 82K, 45% free 3083K/5575K, external 2159K/2284K, paused 57ms
//[B]THIS RIGHT BELOW HERE IS THE FILENAME. I NEED TO RETURN IT IN THE OTHER ACTIVITY. But How?
D/return ( 2072): /mnt/sdcard/folder/screen162.png
[/B]
I/ActivityManager( 182): Starting: Intent { cmp=com.myapp/.Screenshots (has extras) } from pid 2072
E/ActivityThread( 2072): >>> handling: 101
W/WindowManager( 182): Reached focused app: AppWindowToken{2b70bbf8 token=HistoryRecord{2b28ff08 com.myapp/.Screenshots}}
W/WindowManager( 182): updateFocusedWindowLocked newFocus=null mode=0 mCurrentFocus = Window{2b332630 PopupWindow:2afbd178 paused=false}
W/WindowManager( 182): Reached focused app: AppWindowToken{2b70bbf8 token=HistoryRecord{2b28ff08 com.myapp/.Screenshots}}
W/WindowManager( 182): updateFocusedWindowLocked newFocus=Window{2b408a60 com.myapp/com.myapp.Screenshots paused=false} mode=2 mCurrentFocus = Window{2b408a60 com.myapp/com.myapp.Screenshots paused=false}
W/WindowManager( 182): updateFocusedWindowLocked newFocus=Window{2b408a60 com.myapp/com.myapp.Screenshots paused=false} mode=3 mCurrentFocus = Window{2b408a60 com.myapp/com.myapp.Screenshots paused=false}
W/WindowManager( 182): Window Window{2b320c38 com.myapp/com.myapp.MainActivity paused=false} destroying surface Surface(name=com.myapp/com.myapp.MainActivity, identity=204), session Session{2b542460 uid 10050}
W/WindowManager( 182): Window Window{2b332630 PopupWindow:2afbd178 paused=false} destroying surface Surface(name=PopupWindow:2afbd178, identity=205), session Session{2b542460 uid 10050}
I/ActivityManager( 182): Displayed com.myapp/.Screenshots: +549ms
W/WindowManager( 182): Reached focused app: AppWindowToken{2b2dfeb8 token=HistoryRecord{2b395530 com.android.mms/.ui.ComposeMessageActivity}}
D/ActivityThread( 2072): <<< done: 106
W/WindowManager( 182): updateFocusedWindowLocked newFocus=null mode=3 mCurrentFocus = null
W/WindowManager( 182): Reached focused app: AppWindowToken{2b2dfeb8 token=HistoryRecord{2b395530 com.android.mms/.ui.ComposeMessageActivity}}
W/WindowManager( 182): Reached focused app: AppWindowToken{2b2dfeb8 token=HistoryRecord{2b395530 com.android.mms/.ui.ComposeMessageActivity}}
W/WindowManager( 182): Reached focused app: AppWindowToken{2b2dfeb8 token=HistoryRecord{2b395530 com.android.mms/.ui.ComposeMessageActivity}}
W/WindowManager( 182): updateFocusedWindowLocked newFocus=null mode=3 mCurrentFocus = null
W/WindowManager( 182): Reached focused app: AppWindowToken{2b2dfeb8 token=HistoryRecord{2b395530 com.android.mms/.ui.ComposeMessageActivity}}
W/WindowManager( 182): updateFocusedWindowLocked newFocus=null mode=3 mCurrentFocus = null
I/ActivityThread( 2081): Pub com.android.mms.SuggestionsProvider:
com.android.mms.SuggestionsProvider
E/MmsCustom( 2081): Mms,MmsCustom
E/MmsCustom( 2081): Init before calling function of doPreSotred()
E/MmsCustom( 2081): mms config have been prestored before
Yeah, I took 162 screenshots so far trying to get this. lol.
And yeah I declared the right permissions and everything. It takes the screenshot, saves it, and passes it to an ImageView in a different activity perfectly.
I can open Messaging, or FB,picassa, etc. It appends the text, but no image. BUT, i can simply hit attach from the opened message, and add in whatever picture I want.
I thought about just sending people into the gallery to pick, but the android numbering convention doesn't load images in sequential order, but a sort of numerical alphabetical( it saves likes 1, 10, 11,12,13,14,15,16,17,18,19,2,20,21,22,etc). At least this is with quickpic.
So they really get jumbled up, especially with 100+ in there(1, 10,100,11,12). And the point of this segment of the app is to share the most recent image.
i also dont want to just use the currentsystem time, because a ton of numbers is too confusing if they want to find a different one.
Thanks a lot for the help.
Let's try:
Code:
[COLOR="Red"]String path = Utils.saveBitmap(bitmap, dir, baseName);[/COLOR] //replace Utils by your class name
Uri smsUri = Uri.parse("tel:0000000");
Intent intent = new Intent(Intent.ACTION_SEND, smsUri);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.[COLOR="Red"]fromFile(path)[/COLOR]);
intent.putExtra(Intent.EXTRA_TEXT,"Today");
[COLOR="Red"]intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);[/COLOR]
startActivity(intent);
Took awhile to get Eclipse to accept it, but now I get
Code:
W/System.err( 2002): java.lang.NullPointerException
W/System.err( 2002): at com.MYAPP.Util.saveBitmap(Util.java:39)
//////The top red line you suggested
W/System.err( 2002): at com.MYAPP.Screenshots.onOptionsItemSelected(Screenshots.java:79)
W/System.err( 2002): at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:119)
W/System.err( 2002): at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:603)
W/System.err( 2002): at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:529)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:738)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.SubMenuBuilder.dispatchMenuItemSelected(SubMenuBuilder.java:83)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:879)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:158)
W/System.err( 2002): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
W/System.err( 2002): at android.widget.ListView.performItemClick(ListView.java:3513)
W/System.err( 2002): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
W/System.err( 2002): at android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 2002): at android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 2002): at android.os.Looper.loop(Looper.java:130)
W/System.err( 2002): at android.app.ActivityThread.main(ActivityThread.java:3822)
W/System.err( 2002): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 2002): at java.lang.reflect.Method.invoke(Method.java:507)
W/System.err( 2002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
W/System.err( 2002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
W/System.err( 2002): at dalvik.system.NativeStart.main(Native Method)
D/return ( 2002): null
D/AndroidRuntime( 2002): Shutting down VM
W/dalvikvm( 2002): threadid=1: thread exiting with uncaught exception (group=0x2aac4560)
E/AndroidRuntime( 2002): FATAL EXCEPTION: main
E/AndroidRuntime( 2002): java.lang.NullPointerException: uriString
E/AndroidRuntime( 2002): at android.net.Uri$StringUri.<init>(Uri.java:420)
E/AndroidRuntime( 2002): at android.net.Uri$StringUri.<init>(Uri.java:410)
E/AndroidRuntime( 2002): at android.net.Uri.parse(Uri.java:382)
//////The Changed Uri.getFile(); Line
E/AndroidRuntime( 2002): at com.MYAPP.Screenshots.onOptionsItemSelected(Screenshots.java:82)
E/AndroidRuntime( 2002): at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:119)
E/AndroidRuntime( 2002): at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:603)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:529)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:738)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.SubMenuBuilder.dispatchMenuItemSelected(SubMenuBuilder.java:83)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:879)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:158)
E/AndroidRuntime( 2002): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
E/AndroidRuntime( 2002): at android.widget.ListView.performItemClick(ListView.java:3513)
E/AndroidRuntime( 2002): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
E/AndroidRuntime( 2002): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 2002): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2002): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2002): at android.app.ActivityThread.main(ActivityThread.java:3822)
E/AndroidRuntime( 2002): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2002): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 2002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 2002): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 181): Force finishing activity com.MYAPP/.Screenshots
W/WindowManager( 181)
Starting to think I should just dump the whole imageview thing.
i need to figure out if i can save to SD how I am doing, and ALSO save to a cache (and overwrite other ones, so only one image persists there)
out of ideas said:
Took awhile to get Eclipse to accept it, but now I get
Code:
W/System.err( 2002): java.lang.NullPointerException
W/System.err( 2002): at com.MYAPP.Util.saveBitmap(Util.java:39)
//////The top red line you suggested
W/System.err( 2002): at com.MYAPP.Screenshots.onOptionsItemSelected(Screenshots.java:79)
W/System.err( 2002): at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:119)
W/System.err( 2002): at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:603)
W/System.err( 2002): at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:529)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:738)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.SubMenuBuilder.dispatchMenuItemSelected(SubMenuBuilder.java:83)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:879)
W/System.err( 2002): at com.actionbarsherlock.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:158)
W/System.err( 2002): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
W/System.err( 2002): at android.widget.ListView.performItemClick(ListView.java:3513)
W/System.err( 2002): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
W/System.err( 2002): at android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 2002): at android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 2002): at android.os.Looper.loop(Looper.java:130)
W/System.err( 2002): at android.app.ActivityThread.main(ActivityThread.java:3822)
W/System.err( 2002): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 2002): at java.lang.reflect.Method.invoke(Method.java:507)
W/System.err( 2002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
W/System.err( 2002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
W/System.err( 2002): at dalvik.system.NativeStart.main(Native Method)
D/return ( 2002): null
D/AndroidRuntime( 2002): Shutting down VM
W/dalvikvm( 2002): threadid=1: thread exiting with uncaught exception (group=0x2aac4560)
E/AndroidRuntime( 2002): FATAL EXCEPTION: main
E/AndroidRuntime( 2002): java.lang.NullPointerException: uriString
E/AndroidRuntime( 2002): at android.net.Uri$StringUri.<init>(Uri.java:420)
E/AndroidRuntime( 2002): at android.net.Uri$StringUri.<init>(Uri.java:410)
E/AndroidRuntime( 2002): at android.net.Uri.parse(Uri.java:382)
//////The Changed Uri.getFile(); Line
E/AndroidRuntime( 2002): at com.MYAPP.Screenshots.onOptionsItemSelected(Screenshots.java:82)
E/AndroidRuntime( 2002): at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:119)
E/AndroidRuntime( 2002): at com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:603)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.ActionBarSherlockCompat.onMenuItemSelected(ActionBarSherlockCompat.java:529)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:738)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.SubMenuBuilder.dispatchMenuItemSelected(SubMenuBuilder.java:83)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:879)
E/AndroidRuntime( 2002): at com.actionbarsherlock.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:158)
E/AndroidRuntime( 2002): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
E/AndroidRuntime( 2002): at android.widget.ListView.performItemClick(ListView.java:3513)
E/AndroidRuntime( 2002): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
E/AndroidRuntime( 2002): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 2002): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2002): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2002): at android.app.ActivityThread.main(ActivityThread.java:3822)
E/AndroidRuntime( 2002): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2002): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 2002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 2002): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 181): Force finishing activity com.MYAPP/.Screenshots
W/WindowManager( 181)
Starting to think I should just dump the whole imageview thing.
i need to figure out if i can save to SD how I am doing, and ALSO save to a cache (and overwrite other ones, so only one image persists there)
Click to expand...
Click to collapse
Post your code. We cannot help you if you just say "I changed this line."
It is not getFile but fromFile.
HaHa I know, im not trying to throw puzzles out at people randomly.
But the errors in the log were from those new lines(in red)
the string path
and fromFile path ones
I may be getting somewhere with this though, i found a little section on stackoverflow that i hadn't seen in the other 30 questions about images or screenshots. :fingers-crossed:
Plus i glad I always have about 5 other projects on can work on when I get stuck.
out of ideas said:
HaHa I know, im not trying to throw puzzles out at people randomly.
But the errors in the log were from those new lines(in red)
the string path
and fromFile path ones
I may be getting somewhere with this though, i found a little section on stackoverflow that i hadn't seen in the other 30 questions about images or screenshots. :fingers-crossed:
Plus i glad I always have about 5 other projects on can work on when I get stuck.
Click to expand...
Click to collapse
The problem occurs in the saveBitmap method. For that reason the path is null and then a NPE is thrown. Check your code to save the bitmap.

search a coder for framework and .apk files

i work on a new rom with files from Carbon Team. the files works good in my 4.2.2 AOKP Rom
only one problem
- my rom install have no sim card pin
- no mobile network
- mistake searching network providers
- not calling (i can see my contacts)
the problem is in the framework files, systemUI.apk , settings.apk
if i insert this files from my AKOP rom all works good only with non carbon system. if i insert this files from carbon i have the problem
PLEASE HELP ME FOR A NEW HD2 ROM
send me a PM and i will make a upload
Pixelfreak
-pixelfreak- said:
i work on a new rom with files from Carbon Team. the files works good in my 4.2.2 AOKP Rom
only one problem
- my rom install have no sim card pin
- no mobile network
- mistake searching network providers
- not calling (i can see my contacts)
the problem is in the framework files, systemUI.apk , settings.apk
if i insert this files from my AKOP rom all works good only with non carbon system. if i insert this files from carbon i have the problem
PLEASE HELP ME FOR A NEW HD2 ROM
send me a PM and i will make a upload
Pixelfreak
Click to expand...
Click to collapse
I remembered that mobile network is related to telephony-common.jar.
re
after insert other telephony-common.jar i have a sim card pin and working network. only one mistake have the rom
i can calling out with non problem. incoming call the phone.apk have a crash and the phone go back to sim card pin
the QtADB logfile from call incoming
Code:
19:24:11.183 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:11.183 Debug CallNotifier 3419 RINGING... (new)
19:24:11.183 Debug PhoneStateReceiver 1477 RINGING
19:24:11.183 Debug CallNotifier 3419 onNewRingingConnection(): state = RINGING, conn = { incoming: true state: INCOMING post dial state: NOT_STARTED }
19:24:11.183 Debug CallNotifier 3419 SignalInfoTonePlayer.run(toneId = 98)...
19:24:11.184 Info AudioHardwareQSD 131 voice volume 0 (range is 0 to 5)
19:24:11.184 Debug AudioHardwareQSD 131 Setting in-call volume to 0
19:24:11.184 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:11.184 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:11.184 Debug PhoneStatusBar 3135 disable: < expand icons ALERTS* ticker system_info BACK HOME RECENT CLOCK search >
19:24:11.184 Debug AccelerometerListener 3419 enable(false)
19:24:11.184 Debug PhoneStateReceiver 1477 RINGING
19:24:11.406 Debug dalvikvm 3419 GC_CONCURRENT freed 252K, 9% free 3028K/3312K, paused 5ms+13ms, total 86ms
19:24:11.406 Info AudioHardwareQSD 131 voice volume 4 (range is 0 to 5)
19:24:11.406 Debug AudioHardwareQSD 131 Setting in-call volume to 80
19:24:11.406 Info AudioHardwareQSD 131 Routing audio to Handset
19:24:11.406 Debug AudioHardwareQSD 131 Switching audio device to
19:24:11.406 Debug AudioHardwareQSD 131 Handset
19:24:11.407 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:11.407 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:11.509 Debug CallNotifier 3419 showIncomingCall()... phone state = RINGING
19:24:11.623 Debug MediaExtractor 131 returning default extractor
19:24:11.623 Debug Ringtone 3419 Successfully created local player
19:24:11.623 Info AudioService 389 AudioFocus requestAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls
19:24:11.623 Debug AudioHardwareInterface 131 setMode(RINGTONE)
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:11.623 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:11.730 Debug dalvikvm 3135 GC_CONCURRENT freed 896K, 33% free 6210K/9264K, paused 5ms+8ms, total 56ms
19:24:11.730 Debug dalvikvm 3135 WAIT_FOR_CONCURRENT_GC blocked 41ms
19:24:11.730 Info ActivityManager 389 START u0 {act=android.intent.action.MAIN flg=0x10840000 cmp=com.android.phone/.InCallScreen} from pid -1
19:24:11.854 Info InCallScreen 3419 onCreate()... this = [email protected]
19:24:11.854 Debug InCallScreen 3419 - onCreate: phone state = RINGING
19:24:11.854 Debug BluetoothManagerService 389 Message: 30
19:24:11.854 Info AudioHardwareQSD 131 Routing audio to Speakerphone
19:24:11.854 Debug AudioHardwareQSD 131 Switching audio device to
19:24:11.854 Debug AudioHardwareQSD 131 Speakerphone
19:24:11.978 Debug dalvikvm 3419 GC_CONCURRENT freed 264K, 9% free 3248K/3548K, paused 13ms+12ms, total 94ms
19:24:12.211 Debug dalvikvm 3419 GC_FOR_ALLOC freed 153K, 10% free 3392K/3732K, paused 34ms, total 35ms
19:24:12.211 Debug dalvikvm 3419 GC_FOR_ALLOC freed 111K, 12% free 3455K/3908K, paused 33ms, total 33ms
19:24:12.323 Debug dalvikvm 3419 GC_FOR_ALLOC freed 103K, 12% free 3528K/3980K, paused 33ms, total 33ms
19:24:12.323 Warning ActivityManager 389 Activity pause timeout for ActivityRecord{40d64c20 u0 com.android.phone/.InCallScreen}
19:24:12.323 Debug dalvikvm 3419 GC_FOR_ALLOC freed 103K, 12% free 3599K/4052K, paused 37ms, total 37ms
19:24:12.449 Debug dalvikvm 3419 GC_FOR_ALLOC freed 159K, 10% free 3728K/4140K, paused 34ms, total 35ms
19:24:12.449 Debug PhoneStatusBar 3135 disable: < EXPAND* icons ALERTS ticker system_info BACK HOME RECENT CLOCK search >
19:24:12.575 Info dalvikvm 3135 Jit: resizing JitTable from 4096 to 8192
19:24:12.575 Debug PhoneStatusBar 3135 disable: < expand* icons ALERTS ticker system_info BACK HOME RECENT CLOCK search >
19:24:12.575 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:12.575 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:12.700 Debug PhoneStatusBar 3135 disable: < expand icons ALERTS ticker system_info back* home* RECENT clock* search >
19:24:12.700 Info ActivityManager 389 Start proc com.android.contacts for service com.android.contacts/.ViewNotificationService: pid=3729 uid=10000 gids={50000, 3003, 1015, 1028}
19:24:12.822 Error Trace 3729 error opening trace file: No such file or directory (2)
19:24:12.822 Debug dalvikvm 3419 GC_FOR_ALLOC freed 75K, 9% free 3803K/4140K, paused 88ms, total 93ms
19:24:12.822 Info dalvikvm-heap 3419 Grow heap (frag case) to 4.021MB for 291616-byte allocation
19:24:12.822 Debug dalvikvm 3419 GC_FOR_ALLOC freed 2K, 8% free 4085K/4428K, paused 72ms, total 72ms
19:24:12.945 Debug InCallTouchUi 3419 - triggerPing: InCallScreen no longer in foreground; ignoring...
19:24:12.945 Warning IInputConnectionWrapper 3419 showStatusIcon on inactive InputConnection
19:24:12.945 Debug AK8973 134 Compass Start
19:24:12.945 Info PowerManagerService 389 Waking up from sleep...
19:24:12.945 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:12.946 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:12.946 Debug SurfaceFlinger 128 Screen acquired, type=0 flinger=0x2a007318
19:24:13.074 Warning WindowManager 389 Aborted waiting for drawn: Window{40d78ec8 u0 Keyguard}
19:24:13.074 Info WindowManager 389 Lock screen displayed!
19:24:13.074 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:13.074 Debug PhoneStatusBar 3135 disable: < EXPAND* icons ALERTS ticker system_info back home RECENT clock search >
19:24:13.199 Debug PhoneStatusBar 3135 disable: < EXPAND icons ALERTS ticker system_info BACK* HOME* RECENT clock search >
19:24:13.434 Debug AccountTypeManager 3729 Registering 1 extension packages
19:24:13.434 Info AccountTypeManager 3729 Loaded meta-data for 2 account types, 1 accounts in 160ms(wall) 25ms(cpu)
19:24:14.320 Info ContactLoader 3729 Registering content observer for content://com.android.contacts/contacts/lookup/1157i17e4243589ff9e01.1157i472231e7883b1c94.1157i2170b9b58d444ad6/39
19:24:14.771 Debug dalvikvm 2123 GC_CONCURRENT freed 265K, 12% free 3523K/3980K, paused 9ms+5ms, total 155ms
19:24:14.771 Debug dalvikvm 3419 --- called into dvmAbstractMethodStub
19:24:14.771 Error InputEventReceiver 3419 Exception dispatching input event.
19:24:14.771 Error MessageQueue-JNI 3419 Exception in MessageQueue callback: handleReceiveCallback
19:24:14.896 Error MessageQueue-JNI 3419 java.lang.AbstractMethodError: abstract method not implemented
19:24:14.896 Error MessageQueue-JNI 3419 at com.android.phone.InCallTouchUi.onTargetChange(InCallTouchUi.java)
19:24:14.896 Error MessageQueue-JNI 3419 at com.android.internal.widget.multiwaveview.GlowPadView.deactivateTargets(GlowPadView.java:464)
19:24:14.896 Error MessageQueue-JNI 3419 at com.android.internal.widget.multiwaveview.GlowPadView.switchToState(GlowPadView.java:404)
19:24:14.897 Error MessageQueue-JNI 3419 at com.android.internal.widget.multiwaveview.GlowPadView.trySwitchToFirstTouchState(GlowPadView.java:1053)
19:24:14.897 Error MessageQueue-JNI 3419 at com.android.internal.widget.multiwaveview.GlowPadView.handleDown(GlowPadView.java:873)
19:24:14.897 Error MessageQueue-JNI 3419 at com.android.internal.widget.multiwaveview.GlowPadView.onTouchEvent(GlowPadView.java:828)
19:24:14.897 Error MessageQueue-JNI 3419 at android.view.View.dispatchTouchEvent(View.java:7246)
19:24:14.897 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.897 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.897 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.898 Error MessageQueue-JNI 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.898 Error MessageQueue-JNI 3419 at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2346)
19:24:14.899 Error MessageQueue-JNI 3419 at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1455)
19:24:14.899 Error MessageQueue-JNI 3419 at android.app.Activity.dispatchTouchEvent(Activity.java:2411)
19:24:14.899 Error MessageQueue-JNI 3419 at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2294)
19:24:14.899 Error MessageQueue-JNI 3419 at android.view.View.dispatchPointerEvent(View.java:7426)
19:24:14.899 Error MessageQueue-JNI 3419 at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3220)
19:24:14.899 Error MessageQueue-JNI 3419 at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3165)
19:24:14.899 Error MessageQueue-JNI 3419 at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4299)
19:24:14.899 Error MessageQueue-JNI 3419 at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4278)
19:24:14.900 Error MessageQueue-JNI 3419 at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4370)
19:24:14.900 Error MessageQueue-JNI 3419 at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179)
19:24:14.900 Error MessageQueue-JNI 3419 at android.os.MessageQueue.nativePollOnce(Native Method)
19:24:14.900 Error MessageQueue-JNI 3419 at android.os.MessageQueue.next(MessageQueue.java:125)
19:24:14.900 Error MessageQueue-JNI 3419 at android.os.Looper.loop(Looper.java:124)
19:24:14.900 Error MessageQueue-JNI 3419 at android.app.ActivityThread.main(ActivityThread.java:5233)
19:24:14.900 Error MessageQueue-JNI 3419 at java.lang.reflect.Method.invokeNative(Native Method)
19:24:14.900 Error MessageQueue-JNI 3419 at java.lang.reflect.Method.invoke(Method.java:511)
19:24:14.901 Error MessageQueue-JNI 3419 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
19:24:14.901 Error MessageQueue-JNI 3419 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
19:24:14.901 Error MessageQueue-JNI 3419 at dalvik.system.NativeStart.main(Native Method)
19:24:14.901 Debug AndroidRuntime 3419 Shutting down VM
19:24:14.901 Warning dalvikvm 3419 threadid=1: thread exiting with uncaught exception (group=0x40a8f930)
19:24:14.901 Error AndroidRuntime 3419 FATAL EXCEPTION: main
19:24:14.901 Error AndroidRuntime 3419 java.lang.AbstractMethodError: abstract method not implemented
19:24:14.901 Error AndroidRuntime 3419 at com.android.phone.InCallTouchUi.onTargetChange(InCallTouchUi.java)
19:24:14.902 Error AndroidRuntime 3419 at com.android.internal.widget.multiwaveview.GlowPadView.deactivateTargets(GlowPadView.java:464)
19:24:14.902 Error AndroidRuntime 3419 at com.android.internal.widget.multiwaveview.GlowPadView.switchToState(GlowPadView.java:404)
19:24:14.902 Error AndroidRuntime 3419 at com.android.internal.widget.multiwaveview.GlowPadView.trySwitchToFirstTouchState(GlowPadView.java:1053)
19:24:14.902 Error AndroidRuntime 3419 at com.android.internal.widget.multiwaveview.GlowPadView.handleDown(GlowPadView.java:873)
19:24:14.902 Error AndroidRuntime 3419 at com.android.internal.widget.multiwaveview.GlowPadView.onTouchEvent(GlowPadView.java:828)
19:24:14.902 Error AndroidRuntime 3419 at android.view.View.dispatchTouchEvent(View.java:7246)
19:24:14.902 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.903 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.904 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
19:24:14.904 Error AndroidRuntime 3419 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1875)
19:24:14.904 Error AndroidRuntime 3419 at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2346)
19:24:14.904 Error AndroidRuntime 3419 at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1455)
19:24:14.904 Error AndroidRuntime 3419 at android.app.Activity.dispatchTouchEvent(Activity.java:2411)
19:24:14.904 Error AndroidRuntime 3419 at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2294)
19:24:14.904 Error AndroidRuntime 3419 at android.view.View.dispatchPointerEvent(View.java:7426)
19:24:14.904 Error AndroidRuntime 3419 at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3220)
19:24:14.905 Error AndroidRuntime 3419 at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3165)
19:24:14.905 Error AndroidRuntime 3419 at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4299)
19:24:14.905 Error AndroidRuntime 3419 at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4278)
19:24:14.905 Error AndroidRuntime 3419 at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4370)
19:24:14.905 Error AndroidRuntime 3419 at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179)
19:24:14.905 Error AndroidRuntime 3419 at android.os.MessageQueue.nativePollOnce(Native Method)
19:24:14.905 Error AndroidRuntime 3419 at android.os.MessageQueue.next(MessageQueue.java:125)
19:24:14.905 Error AndroidRuntime 3419 at android.os.Looper.loop(Looper.java:124)
19:24:14.905 Error AndroidRuntime 3419 at android.app.ActivityThread.main(ActivityThread.java:5233)
19:24:14.906 Error AndroidRuntime 3419 at java.lang.reflect.Method.invokeNative(Native Method)
19:24:14.906 Error AndroidRuntime 3419 at java.lang.reflect.Method.invoke(Method.java:511)
19:24:14.906 Error AndroidRuntime 3419 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
19:24:14.906 Error AndroidRuntime 3419 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
19:24:14.906 Error AndroidRuntime 3419 at dalvik.system.NativeStart.main(Native Method)
19:24:14.906 Warning ActivityManager 389 Force finishing activity com.android.phone/.InCallScreen
19:24:14.906 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:15.019 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:15.347 Warning ActivityManager 389 Activity pause timeout for ActivityRecord{40d64c20 u0 com.android.phone/.InCallScreen}
19:24:19.839 Info InputDispatcher 389 Application is not responding: Window{40cf9830 u0 com.android.phone/com.android.phone.InCallScreen}. It has been 5002.1ms since event, 5000.5ms since wait started. Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.
19:24:19.839 Info WindowManager 389 Input event dispatching timed out sending to com.android.phone/com.android.phone.InCallScreen
19:24:19.951 Info ActivityManager 389 Crashing app skipping ANR: ProcessRecord{40ee2340 3419:com.android.phone/1001} keyDispatchingTimedOut
19:24:20.401 Info Process 3419 Sending signal. PID: 3419 SIG: 9
19:24:20.401 Debug PhoneStatusBar 3135 disable: < EXPAND icons ALERTS ticker system_info BACK HOME RECENT CLOCK* search >
19:24:20.512 Info ServiceManager 123 service 'isms' died
19:24:20.512 Info ServiceManager 123 service 'simphonebook' died
19:24:20.512 Info ServiceManager 123 service 'iphonesubinfo' died
19:24:20.512 Info ServiceManager 123 service 'phone' died
19:24:20.512 Info ServiceManager 123 service 'sip' died
19:24:20.513 Warning AudioService 389 AudioFocus audio focus client died
19:24:20.513 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:20.513 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:20.513 Info AudioService 389 AudioFocus abandonAudioFocus(): removing entry for AudioFocus_For_Phone_Ring_And_Calls
19:24:20.513 Warning AudioFlinger 131 session id 19 not found for pid 131
19:24:20.513 Warning AudioService 389 setMode() client died
19:24:20.513 Info ActivityManager 389 Process com.android.phone (pid 3419) has died.
19:24:20.513 Info StatusBarManagerService 389 binder died for pkg=com.android.phone
19:24:20.514 Debug AudioHardwareInterface 131 setMode(NORMAL)
19:24:20.514 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:20.514 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:20.514 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:20.514 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:20.514 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 3
19:24:20.514 Warning AudioPolicyManager 131 getDeviceForStrategy() unknown strategy: 5
19:24:20.515 Warning ActivityManager 389 Service crashed 2 times, stopping: ServiceRecord{40d4c2a0 u0 com.android.stk/.StkAppService}
19:24:20.515 Warning ActivityManager 389 Scheduling restart of crashed service com.android.phone/.BluetoothPhoneService in 0ms
19:24:20.515 Warning ActivityManager 389 Scheduling restart of crashed service com.android.phone/.TelephonyDebugService in 0ms
19:24:20.515 Info WindowState 389 WIN DEATH: Window{40cf9830 u0 com.android.phone/com.android.phone.InCallScreen}
19:24:20.515 Debug PhoneStatusBar 3135 disable: < expand* icons alerts* ticker system_info BACK HOME RECENT CLOCK search >
19:24:20.515 Info ActivityManager 389 Start proc com.android.phone for restart com.android.phone: pid=3752 uid=1001 gids={41001, 3002, 3001, 3003, 1015, 1028}
19:24:20.635 Info SystemUpdateService 895 cancelUpdate (empty URL)
19:24:20.746 Error Trace 3752 error opening trace file: No such file or directory (2)
19:24:20.746 Warning TelephonyProvider 3752 onCreate: confFile=/system/etc/apns-conf.xml oldCheckSum=-1
19:24:20.746 Debug TelephonyManager 3752 getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
19:24:20.871 Debug TelephonyManager 3752 getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
19:24:20.871 Warning Settings 3752 Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
19:24:20.871 Warning Settings 3752 Setting auto_time has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.
19:24:20.871 Warning Settings 3752 Setting auto_time_zone has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.
19:24:20.872 Debug 3752 [ApnContext:default] set reason as dataEnabled,current state IDLE
19:24:20.872 Debug 3752 [ApnContext:default] setRetryCount: 0
19:24:20.872 Debug 3752 [ApnContext:mms] set reason as dataEnabled,current state IDLE
19:24:20.872 Debug 3752 [ApnContext:mms] setRetryCount: 0
19:24:20.872 Debug 3752 [ApnContext:supl] set reason as dataEnabled,current state IDLE
19:24:20.872 Debug 3752 [ApnContext:supl] setRetryCount: 0
19:24:20.872 Debug 3752 [ApnContext:dun] set reason as dataEnabled,current state IDLE
19:24:20.873 Debug 3752 [ApnContext:dun] setRetryCount: 0
19:24:20.873 Debug 3752 [ApnContext:hipri] set reason as dataEnabled,current state IDLE
19:24:20.873 Debug 3752 [ApnContext:hipri] setRetryCount: 0
19:24:20.995 Debug TelephonyManager 3752 getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
19:24:20.995 Debug CallManager 3752 registerPhone(GSM Handler (com.android.internal.telephony.PhoneProxy) {40cfde38})
19:24:20.995 Debug dalvikvm 3752 GC_CONCURRENT freed 201K, 9% free 2466K/2700K, paused 13ms+19ms, total 61ms
19:24:20.995 Debug BluetoothManagerService 389 Message: 20
19:24:20.995 Debug BluetoothManagerService 389 Added callback: [email protected]:true
19:24:21.122 Debug BluetoothManagerService 389 Message: 30
19:24:21.122 Debug BluetoothManagerService 389 Message: 30
19:24:21.122 Error BluetoothPhoneService 3752 Could not get a handle on Connection object for the call
19:24:21.122 Debug DebugService 3752 DebugService DebugService:
19:24:21.122 Debug TelephonyDebugService 3752 TelephonyDebugService()
19:24:21.357 Warning SecuritySelectorView 389 Couldn't grab icon from package ComponentInfo{com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.SearchActivity}
19:24:21.357 Warning SecuritySelectorView 389 Couldn't grab icon from package ComponentInfo{com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.SearchActivity}
19:24:21.357 Warning SecuritySelectorView 389 Couldn't grab icon from package ComponentInfo{com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.SearchActivity}
19:24:21.357 Warning SecuritySelectorView 389 Couldn't grab icon from package ComponentInfo{com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.SearchActivity}
19:24:21.358 Warning SecuritySelectorView 389 Couldn't grab icon from package ComponentInfo{com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.SearchActivity}
19:24:21.358 Warning SecuritySelectorView 389 Couldn't grab icon from package ComponentInfo{com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.SearchActivity}
19:24:21.480 Info keystore 133 uid: 1000 action: z -> 7 state: 3 -> 3 retry: 4
19:24:21.480 Debug dalvikvm 3752 GC_CONCURRENT freed 317K, 12% free 2575K/2924K, paused 29ms+3ms, total 71ms
19:24:21.588 Verbose SipBroadcastReceiver 3752 start auto registration
19:24:21.588 Info PhoneApp 3752 Headset phone created, binding local service.
19:24:21.718 Info SystemUpdateService 895 cancelUpdate (empty URL)
19:24:23.479 Debug AudioHardwareQSD 131 AudioHardware pcm playback is going to standby.
re
can not found the problem
pixelfreak
I never encounter this issue.
Did you use telephony-common.jar and Phone.apk from the same source from Carbon?
Maybe you could download Carbon's telephony source and patch this commit and this commit.
re
i have test with your common-telephony.jar and phone.apk from V2.2 4.2.2 and with the files from my aokp and all the same problem with incoming call
pixelfreak

[Q] note 3 n900t lockup on uninstall of any app...

I think I saw something similar to this problem I am having somewhere but I have been searching and unable to find again what (if anything) can be done to fix it. Thanks for any help.
It appeared in the last two days, and since I don't do a lot of uninstalls I am not 100% sure what change caused it.
The issue is that any time I go to uninstall an application from the playstore, the app DOES uninstall, but as soon as it completes the phone freezes. I can still turn the screen off and on with the power button but nothing else appears to have any response. I have to hold the power button to reboot to get it back.
The phone has been rooted with root de la vega, xposed framework installed, and xprivacy and wanam. I ran a logcat while causing a freeze and the error seems to be related to some sort of permission problem from the line below, and under that is a larger snippet of the logcat. Any suggestions as to how to fix this? I would rather not factory reset and start setup all over again.
Here is the specific error line I thing is the root of the problem:
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
And the larger logcat:
D/InputReader( 852): Input event: value=0 when=11856945064000
I/InputReader( 852): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=11856945065000
I/InputDispatcher( 852): Delivering touch to: action: 0x1
E/DatabaseUtils( 852): Writing exception to parcel
E/DatabaseUtils( 852): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils( 852): at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13076)
E/DatabaseUtils( 852): at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2021)
E/DatabaseUtils( 852): at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:577)
E/DatabaseUtils( 852): at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
E/DatabaseUtils( 852): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
E/DatabaseUtils( 852): at android.os.Binder.execTransact(Binder.java:388)
E/DatabaseUtils( 852): at dalvik.system.NativeStart.run(Native Method)
W/ActivityManager( 852): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
W/LicenseLogService( 852): log() is called by non admin
D/ApplicationPolicy( 852): getApplicationUninstallationEnabled
D/ApplicationPolicy( 852): getApplicationUninstallationEnabled : enabled true
I/SpenGestureManager( 852): setFocusWindow21010
D/PointerIcon( 852): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0
D/PointerIcon( 852): setHoveringSpenCustomIcon IconType is same.1
E/ViewRootImpl(16843): sendUserActionEvent() mView == null
E/EnterpriseContainerManager( 852): ContainerPolicy Service is not yet ready!!!
D/EnterpriseDeviceManager( 852): ContainerId: 0
W/LicenseLogService( 852): log() is called by non admin
W/PackageManager( 852): Couldn't delete native library directory /data/app-lib/com.mhill.irblasterdemo
W/InputMethodManagerService( 852): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
E/MP-Decision( 2097): Action to bring core 1 online
E/MP-Decision( 2097): Action to bring core 2 online
D/PackageManager( 852): Sending to user 0: act=android.intent.action.PACKAGE_REMOVED dat=package:com.mhill.irblasterdemo flg=0x8000000 Bundle[{android.intent.extra.REMOVED_FOR_ALL_USERS=true, android.intent.extra.DATA_REMOVED=true, android.intent.extra.user_handle=0, android.intent.extra.UID=10384}]
D/PackageManager( 852): java.lang.RuntimeException: It's not exception, just print call stack
D/PackageManager( 852): at com.android.server.pm.PackageManagerService.sendPackageBroadcast(PackageManagerService.java:7652)
D/PackageManager( 852): at com.android.server.pm.PackageManagerService$PackageRemovedInfo.sendBroadcast(PackageManagerService.java:11157)
D/PackageManager( 852): at com.android.server.pm.PackageManagerService.deletePackageX(PackageManagerService.java:11108)
D/PackageManager( 852): at com.android.server.pm.PackageManagerService.access$4000(PackageManagerService.java:218)
D/PackageManager( 852): at com.android.server.pm.PackageManagerService$8.run(PackageManagerService.java:11013)
D/PackageManager( 852): at android.os.Handler.handleCallback(Handler.java:730)
D/PackageManager( 852): at android.os.Handler.dispatchMessage(Handler.java:92)
D/PackageManager( 852): at android.os.Looper.loop(Looper.java:137)
D/PackageManager( 852): at android.os.HandlerThread.run(HandlerThread.java:61)
D/dalvikvm(17949): JIT code cache reset in 0 ms (4096 bytes 2/0)
D/dalvikvm(17949): GC_EXPLICIT freed 296K, 40% free 15538K/25484K, paused 2ms+5ms, total 41ms
E/MP-Decision( 2097): Action to bring core 3 online
I/SurfaceFlinger( 306): id=56 Removed BssetBrowse (4/6)
I/SurfaceFlinger( 306): id=56 Removed BssetBrowse (-2/6)
I found another thread that at least mentioned the same error message, though with root apps not uninstalling a regular app from playstore. I tried that suggestion of purchasing supersu pro and I set the user of xposed and wanam to "root" explicitly. This appears to have had no affect. Does anyone have any suggestions? This has to be something simple but it is crazy to have to force a reboot every time I need to uninstall an app.
Any update?
klau1 said:
Any update?
Click to expand...
Click to collapse
No updates... I am assuming no one else has the issue or wants to suggest a solution... Though I am guessing that you also have the problem. I just decided to try to live with it rather than reflash the entire OS and start reapplying changes one at a time. I just have to accept a hard reboot any time I want to uninstall something. It has to be something simple, as I have not done any abnormal changes, just root de la vega, xposed, xprivacy, and wanam... I tried using the supersu pro to force the userid of a couple of the su apps to 0 incase that was the cause but no affect. Does anyone else have this same issue?
I have the same problem actually on my n9005, just found out about it today. I don't know what caused it, but it's pretty annoying.
I have rooted via Kingo, installed xposed, wanam, and xprivacy.
Fyi, an update to xprivacy has fixed this issue.
Sent from my SM-N900T using xda app-developers app
Thanks for the heads up!
Sent from my Nexus 7 using Tapatalk

Categories

Resources