[android-developers] Re: Unsubscribe
Was this ever resolved? I've noticed a similar issue with my app. My users are also reporting this, though I can't reproduce it. It's not clear to me yet exactly what they've configured in the app which triggers it. My service is permanently foreground. Pent -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Best practice? New Activity for UI screens or change layouts and capture back button?
I think fragments are more of a replacement for components... this is so you could re-use UI components in the app (with UI for tablets in mind)... i wouldn't try to re-use them as an activity replacer (they also make it much harder to handle the Back button since they have their own stack.. especially since the Back button will close the last added fragment, which might not be even visible to the user). On Monday, March 11, 2013 3:30:07 AM UTC+2, Lew wrote: TreKing wrote: bsd_mike wrote: is there any benefit to using one Activity? For games, I believe, it avoids the resource management and dependency issues related with dealing with the lifecycles of multiple Activities. Beyond that, though, I believe shoving all of your functionality into a single Activity is asking for a maintenance headache. I don't know if this addresses the OP's concern, but fragments put you somewhere between those two extremes. The usual model in Android programs is one Activity per screen, with fragments as a way to manage frames within the screen. -- Lew -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Broadcast receiver in foreground activity - not reliable?
in what lifecycle events do you register/unregister this receiver? On Sunday, March 10, 2013 4:25:37 PM UTC+2, lbendlin wrote: I got a user reporting that our app does correctly terminate when the user's device exits car mode, but only when the activity that contains the receiver is not active. If the activity is in the foreground then more often than not our app does not terminate. The activity is defined as activity android:name=.MainScreen android:alwaysRetainTaskState=true android:configChanges=orientation android:label=@string/app_name android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / category android:name=android.intent.category.CAR_DOCK / category android:name=android.intent.category.CAR_MODE / /intent-filter /activity The receiver is very simple *private* BroadcastReceiver undockReceiver = *new* BroadcastReceiver() { @Override *public* *void* onReceive(Context context, Intent intent) { *if* (intent.getAction().equals(android.app.action.EXIT_CAR_MODE)) { finish(); } } }; Is there a reason that the receiver does not work reliably? Is it bad practice to put a receiver inside the main activity? or does it have to do with the activity flags? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Google Play Services: UserRecoverableAuthException's intent doesn't start
I'm having issues with the Google Drive SDK for Android. Everything works fine except for some devices (on which it used to be working, but now doesn't) the Intent that is returned by `UserRecoverableAuthException.getIntent()` isn't doing anything when started via `startIntent(...)`. All I see on Logcat is: 03-11 08:31:19.692: INFO/ActivityManager(552): START u0 {cat=[scope:oauth2:https://www.googleapis.com/auth/drive,account:myem...@googlemail.com,extrashash:1088740320] flg=0x1004 cmp=com.google.android.gms/.auth.TokenActivity (has extras)} from pid 27644 That's it. Nothing happens on the device. This is how the Intent is launched: Intent intent = e.getIntent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK).addFlags(Intent.FLAG_FROM_BACKGROUND); startActivity(intent); Any ideas? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Image Gallery
Dear Folks, I am a new bee to Android. I want to create a Image Gallery. With Next and PRevious buttons.I want to have this image sclaed with full screen. I am able to create a Grid View Image Gallery. For this I am displaying the images from the server. For server side I have written PHP script and it is returing a JSON string which contains the image name. At the client side I am itearating this and showing in a grid view. Same thing I want to do with a I age Gallery where 1 after the other image comes on click of Next and Prev button. I have searched in the net, but dint get a proper working code for it. Can someone help me out. Thanks And Regards Ambika -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android :package with resource file in jar
I have planned to create an SDK in android, that means to share my class files and resource(layouts) to another application that requires them. If I export my application as JAR it does not include the resource files and R.class. I know currently Android does not support to packaging resource file via JAR but I searched the net and found one solution if compile our resource files with source code means we can access the resource in some other application. So for that reason I did it in the following way: 1.copied all res folders content into my source folder src -com.mypackege - res---here i put my res folder 2.finally my src folder look like src com.mypackage myfile.java drawable-hdpi drawable-ldpi drawable-mdpi drawable-xhdpi com.mypackage.drawable com.mypackage.layout com.mypackage.menu com.mypackage.values 3. and i build my project i got all class files including resource and r.class in my bin 4.then i create jar manually by jar -cvf mysample.jar com/mypackage/* 5.the final jar contain all classes and resource of my project in side mypackage. then I add `mysample.jar` into another application say `testapp`, here I put the JAR in asset folder(because of layout )and add to build path. And also I configure the build path In this application I call the `myfile.class` from `mysample.jar` which is needed to load the layout from that JAR. The problem is here it doesn't see resource under the JAR file it only see the resource in current project res folder and though `NULL pointer Exception` But it calls the R.java from JAR file. Ad also i tried to put xmlns:custom=http://schemas.android.com/apk/res-auto; in my manifest file it is also not working. I hope I exactly come to close this issue, it may be a resource mapping problem. do you have any idea to resolve this? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android :package with resource file in jar
The R file is supposed to be auto-generated.. you're not supposed to share it... I'm not actually sure why you're doing all of this... if you mark your project as an android library it does exactly that (build a jar file with all of the resources which can be used in any other project). You should also follow the ADT dev site, they are working on a build system that will make it even easier (i'm not sure how final it is.. haven't dealt with in a while). On Monday, March 11, 2013 11:22:20 AM UTC+2, Mr cool wrote: I have planned to create an SDK in android, that means to share my class files and resource(layouts) to another application that requires them. If I export my application as JAR it does not include the resource files and R.class. I know currently Android does not support to packaging resource file via JAR but I searched the net and found one solution if compile our resource files with source code means we can access the resource in some other application. So for that reason I did it in the following way: 1.copied all res folders content into my source folder src -com.mypackege - res---here i put my res folder 2.finally my src folder look like src com.mypackage myfile.java drawable-hdpi drawable-ldpi drawable-mdpi drawable-xhdpi com.mypackage.drawable com.mypackage.layout com.mypackage.menu com.mypackage.values 3. and i build my project i got all class files including resource and r.class in my bin 4.then i create jar manually by jar -cvf mysample.jar com/mypackage/* 5.the final jar contain all classes and resource of my project in side mypackage. then I add `mysample.jar` into another application say `testapp`, here I put the JAR in asset folder(because of layout )and add to build path. And also I configure the build path In this application I call the `myfile.class` from `mysample.jar` which is needed to load the layout from that JAR. The problem is here it doesn't see resource under the JAR file it only see the resource in current project res folder and though `NULL pointer Exception` But it calls the R.java from JAR file. Ad also i tried to put xmlns:custom=http://schemas.android.com/apk/res-auto; in my manifest file it is also not working. I hope I exactly come to close this issue, it may be a resource mapping problem. do you have any idea to resolve this? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Image Gallery
ffs: http://developer.android.com/training/displaying-bitmaps/index.html On Monday, March 11, 2013 11:16:48 AM UTC+2, Ambika Kulkarni wrote: Dear Folks, I am a new bee to Android. I want to create a Image Gallery. With Next and PRevious buttons.I want to have this image sclaed with full screen. I am able to create a Grid View Image Gallery. For this I am displaying the images from the server. For server side I have written PHP script and it is returing a JSON string which contains the image name. At the client side I am itearating this and showing in a grid view. Same thing I want to do with a I age Gallery where 1 after the other image comes on click of Next and Prev button. I have searched in the net, but dint get a proper working code for it. Can someone help me out. Thanks And Regards Ambika -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Problem while facebook login through my app
Already you have *Facebook native apk* in your *physical device or emulator*.So you have met this problem.. Regards Android developer Trinay Technology Solutions www.trinaytech.com 5705750475 On Thursday, March 7, 2013 10:26:26 PM UTC+5:30, Bajrang Asthana wrote: Hi; I am not able to log-in to Facebook through my android app (*tried from phone as well as on emulator)*, I am getting error your app is not correctly configured. I am getting this problem only if *Facebook native apk* is installed. I look for android hash key and app id many times and everything seems OK to me. I am not getting, is there anything else which can be the cause of this problem. Please suggest :) -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Trying to integrate with drive app, error occurs opening document
I am trying to integrate with the Drive App using the instructions here: https://developers.google.com/drive/integrate-android-ui. I followed the instructions and now my app shows as an open with (using google drive) option when I select a file in the Drive app. However, when I try to open with my app I get an error dialog that says: Oops... unable to open document. Reason: internal error occured. please try again later Because the same file opens properly using other apps (the other apps aren't integrated with the Drive app, but they do open the file), I figure this might be because my app is not authorized properly. My main concern is the applcaition id which the above link instructs me to add to my manifest xml. It is not clear what this Id is, but I assume it is the client ID from my OAuth2.0 client. For me, this value looks something like(i changed some numbers/letters for privacy): 449637423441-e13a246wq7a0fuqgvremtjupk07vgf59.apps.googleusercontent.com I have tried using this entire string as the ID in my manifest, using the portion prior to the first '.', and using the portion prior to the '-'; but with all 3 attempts I get the same error from the Drive app. Any suggestions? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] how to delete all the data from listview
i have list view and data is addede dynamically and now i want that when i again start the app previous listview data should be remove from list.. On Sun, Mar 10, 2013 at 1:05 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Sat, Mar 9, 2013 at 1:35 PM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: Hi friends, can some one tell me that how to automatically delete all listview data when i came out from whole application.pls guys help me if someone have any idea. Hi Sadhna, can you explain your problem / requirement a bit more? What sort of data do you want to delete, when coming out from whole app? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] how to delete all the data from listview
Maybe call setAdapter and pass in a ListAdapter that is empty? On Monday, March 11, 2013 9:11:13 AM UTC-5, Sadhna Upadhyay wrote: i have list view and data is addede dynamically and now i want that when i again start the app previous listview data should be remove from list.. On Sun, Mar 10, 2013 at 1:05 AM, Narendra Singh Rathore nsr.c...@gmail.com javascript: wrote: On Sat, Mar 9, 2013 at 1:35 PM, Sadhna Upadhyay sadhna@gmail.comjavascript: wrote: Hi friends, can some one tell me that how to automatically delete all listview data when i came out from whole application.pls guys help me if someone have any idea. Hi Sadhna, can you explain your problem / requirement a bit more? What sort of data do you want to delete, when coming out from whole app? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to enable and disable 3g ?
Call getMobileDataEnabled() and setMobileDataEnabled. Something like this: *setMobileDataEnabled(!getMobileDataEnabled());* /** * Gets the value of the setting for enabling Mobile data. * * @return Whether mobile data is enabled. * @hide */ public boolean getMobileDataEnabled() { try { return mService.getMobileDataEnabled(); } catch (RemoteException e) { return true; } } /** * Sets the persisted value for enabling/disabling Mobile data. * * @param enabled Whether the mobile data connection should be *used or not. * @hide */ public void setMobileDataEnabled(boolean enabled) { try { mService.setMobileDataEnabled(enabled); } catch (RemoteException e) { } } On Saturday, March 9, 2013 11:00:31 PM UTC-6, mohammed Nuhail wrote: Hello people, I want to enable and disable 3g programmatically on pressing single a button.. below code only enable the 3g. data.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub ConnectivityManager cm = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE); //NetworkInfo ni = cm.getActiveNetworkInfo(); try { Method dataMtd; dataMtd = ConnectivityManager.class.getDeclaredMethod(setMobileDataEnabled, boolean.class); Log.d(start, ing); if(dataMtd.isAccessible()){ dataMtd.setAccessible(false); dataMtd.invoke(cm, false); Log.d(data, off); //return; } else{ dataMtd.setAccessible(true); dataMtd.invoke(cm, true); Log.d(data, on); } } catch (NoSuchMethodException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (InvocationTargetException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); I want to disable it, when it is enabled ? please help me out with this.. thanks in advance -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android 4.2+: Sharing data between users
I should add: I would also like to hear about any System Only options that may be available. I notice that Android now has some additional broadcasts/etc., for multiple user applications but only allows these for system signed applications (which my application is often a part of) -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] SPAN_EXCLUSIVE_EXCLUSIVE
Does anyone know what causes this error? 03-11 16:12:38.359: E/SpannableStringBuilder(12530): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: defaults for a Button widget
It seems like there is excess vertical space on xhdpi for the text on a * Button*. Even when I set the padding to 0 and the margin to 0, there was a lot of space. Not sure why. Eventually, I just opted for the kludgy and unsatisfying workaround of using an *ImageButton*. On Friday, March 1, 2013 4:26:08 PM UTC-6, bob wrote: Can someone help me see where to look to find the defaults for a Button widget? I'm trying to figure out the default padding and margin values as I'm seeing some weird layout differences between tvdpi and xhdpi. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Broadcast receiver in foreground activity - not reliable?
It is registered in onCreate and unregistered in onDestroy of that activity. On Monday, March 11, 2013 4:02:36 AM UTC-4, Piren wrote: in what lifecycle events do you register/unregister this receiver? On Sunday, March 10, 2013 4:25:37 PM UTC+2, lbendlin wrote: I got a user reporting that our app does correctly terminate when the user's device exits car mode, but only when the activity that contains the receiver is not active. If the activity is in the foreground then more often than not our app does not terminate. The activity is defined as activity android:name=.MainScreen android:alwaysRetainTaskState=true android:configChanges=orientation android:label=@string/app_name android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / category android:name=android.intent.category.CAR_DOCK / category android:name=android.intent.category.CAR_MODE / /intent-filter /activity The receiver is very simple *private* BroadcastReceiver undockReceiver = *new* BroadcastReceiver() { @Override *public* *void* onReceive(Context context, Intent intent) { *if* (intent.getAction().equals(android.app.action.EXIT_CAR_MODE)) { finish(); } } }; Is there a reason that the receiver does not work reliably? Is it bad practice to put a receiver inside the main activity? or does it have to do with the activity flags? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Detect Intent Broadcast Receivers
This statement is not entirely true either: queryBroadcastReceivers will not return anything if using a PACKAGE_REPLACED intent alone. Same goes for many other intents in which it seems required to add specific scheme/type/data to get some results. Not sure it's worth asking here: how do i gather all receivers that can handle PACKAGE_REPLACED intents? pm.queryBroadcastReceivers(new Intent(Intent.PACKAGE_REPLACED, PackageManager.GET_INTENT_FILTERS | PackageManager.GET_DISABLED_COMPONENTS); This returns nothing, whereas many apps are listening to this Intent in their Manifest.xml, Google Play Store for one. On Friday, December 24, 2010 2:00:55 PM UTC+7, Dianne Hackborn wrote: PackageManager.queryBroadcastReceivers() returns all receivers declared in application manifests matching a given Intent. Note however that this will not include receivers registered with Context.registerReceiver(); there is currently no way to get information about those. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Can I receive another Android app's C2DM Intents if I'm signed with the same signature?
*Cross-posted from http://stackoverflow.com/q/15319010/9636* I have an app (com.example.myapp) installed that received C2DM Intents. I would like to piggyback onto this to perform my own processing in response to these Intents in a separate app (com.example.myapp2). According to the this answer http://stackoverflow.com/a/5121330/9636, the C2DM client system looks for: broadcast receivers for Intent: com.google.android.c2dm.intent.REGISTRATION That have the permission: .permission.C2D_MESSAGE In the original app, the following permission is defined and used, as specified in the C2DM Documentationhttps://developers.google.com/android/c2dm/#manifest !-- Only this application can receive the messages and registration result -- permission android:name=com.example.myapp.permission.C2D_MESSAGE android:protectionLevel=signature / uses-permission android:name=com.example.myapp.permission.C2D_MESSAGE / This is com.example.myapp2's manifest, in which I use that permission also: manifest package=com.example.myapp2 ... !-- Only this application can receive the messages and registration result -- uses-permission android:name=com.example.myapp.permission.C2D_MESSAGE / !-- This app has permission to register and receive message -- uses-permission android:name=com.google.android.c2dm.permission.RECEIVE / !-- Send the registration id to the server -- uses-permission android:name=android.permission.INTERNET / application... !-- Only C2DM servers can send messages for the app. If permission is not set - any other app can generate it -- receiver android:name=.C2DMReceiver android:permission=com.google.android.c2dm.permission.SEND !-- Receive the actual message -- intent-filter action android:name=com.google.android.c2dm.intent.RECEIVE / category android:name=com.example.myapp / category android:name=com.example.myapp2 / /intent-filter /receiver ... /application .../manifest My C2DMReceiver is com.example.myapp2.C2DMReceiver. Notice that I'm not listening forcom.google.android.c2dm.intent.REGISTRATION Intents since I don't care about registering. I only care about receiving the Intents that com.example.myapp is already receiving. In myIntentFilter for com.google.android.c2dm.intent.RECEIVE Intents, I filter for both com.example.myapp and com.example.myapp2 categorys since C2DM isn't specific about exactly what a C2DM Intent looks like. Any help there would be appreciated. I've verified that com.example.myapp2 has the com.example.myapp.permission.C2D_MESSAGEpermission. If I run with a debug key, I don't have it, but if I run with the release key, I have it. Obviously, I'm running the version on my device with the release key. When com.example.myapp receives a C2DM Intent com.example.myapp2 doesn't receive it. Any ideas for how to debug or how to get this to work? Is it even possible? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Database
Basically i want to learn, how can i connect my android application with my database ? Please let me know which should be the best away to connect with database ? how i can create my own database ? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Database
Hi ,which data base you want to connect SQLite(phone data base) or other databases. Regards, NaResH. On Tue, Mar 12, 2013 at 10:25 AM, Sagar Rout sagar.rout...@gmail.comwrote: Basically i want to learn, how can i connect my android application with my database ? Please let me know which should be the best away to connect with database ? how i can create my own database ? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Edit Text searching using Filters.
Hi all, I am developing a small dictionary application in which the user can search the word. here i am using sqlite file for getting data. everything is working fine for me but i am getting the issue while searching the keyword i.e., when i entered some key word say wall then i need to display all keywords contains wall keyword in listview with first row is wall and second row onwards keywords starting with wall and after the contains the keyword anywhere in the string for example: i entered wall the list should become wall wall paper wall putty wall street India china Wall.. etc.. If any one knows the solutions means then please provide solutions. Thanks for All. Regards, S.Seshu -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to custom monkeyrunner plugin?
Can anybody tell me something about the problem? 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Eclipse or Intellij.. what's the verdict?
OK.. I've just about had enough of eclipse. I have been using it for 10+ years (ever since it was WSAD :/) and have put up with it's slowness, buggyness, upgrade nightmares, plugins that don't work, plugins that do work.. then don't, random crashes etc etc... but I just can't take it anymore. This latest version of eclipse (Juno Service Release 2 Build id: 20130225-0426) is so riddled with bugs that I can't get through just a few hours with either my delete key not working (http://stackoverflow.com/questions/2539672/my-delete-key-wont-work-in-eclipse-in-os-x), files not saving, a veritable torrent of NullPointerExceptions in the Error Log which manifest as random UI failures mixed in with the occasional but predictable complete crash followed by a build the world on restart that takes about 3 days. I love eclipse, but enough is enough. So.. is intellij for Android development a realistic option? Obviously Google make plugins for eclipse so this is always going to be the first stop for SDK updates, but if anyone is out there who has made the switch from eclipse to intellij *specifically for Android work* please let me know your opinion. I also do a reasonable amount in C++ using the CDT (which is a whole other source of issues) and I understand that this is not a strong point for intellij (?) I really wish the folks at eclipse (whoever they are) would stop trying to build features and just make the darn thing stable... I mean 10 years.. c'mon guys. :/ -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.