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.
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
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