[android-developers] call the default home screen from application?
I need to call the default home screen that comes with my phone from my application even if its not set as default. I've tried searching and find this ArrayListIntent intentList = new ArrayListIntent(); Intent intent=null; final PackageManager packageManager=getPackageManager(); for(final ResolveInfo resolveInfo:packageManager.queryIntentActivities(new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME), PackageManager.MATCH_DEFAULT_ONLY)) { intent=packageManager.getLaunchIntentForPackage( resolveInfo.activityInfo.packageName); intentList.add(intent); } this code is working for the all the other launchers but not for the default launcher. I tried using break points in code and found that at 0 index of list there should be default launcher intent but intent does'nt hold the value. Do I need some kind of permission thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] make or receive call secretly programmatically Android
hey I want to make a call from my application, so far I found that code Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + phoneNumber)); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(callIntent); /code but there is a problem that I want to call person secretly and this call the default Activity can I write my own activity for making call or receiving call secretly (means without any UI call run on background)?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] make or receive call secretly programmatically Android
hey I want to make a call from my application, so far I found that code Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + phoneNumber)); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(callIntent); /code but there is a problem that I want to call person secretly and this call the default Activity can I write my own activity for making call or receiving call secretly (means without any UI call run on background)?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en