Re: [android-developers] Re: Passing an object as extras in intent
Hi , Thanks for your reply.. I have my HTTP server(Apache CORE) running a service S. While I receive a POST request, the response should be sent after execution of an intent A, which sends a Broadcast to my service S already running (which is designed based on my requirement). So I need to handle the HTTP POST response in the Broadcast receiver. Is this possible to do? So, I need the HttpResponse in the handle() method to be sent in the Broadcast receiver and send the response from there. Please let me know if you need more details. Thanks! On Sunday, January 20, 2013 10:26:00 PM UTC+2, Kristopher Micinski wrote: Anything you can serialize you can pass, but excessive passing of references is an indicator of Android code smell. In this case, I'd say your code smells because you want to pass an HttpResponse. This indicates to me that you are handling it somewhere on the GUI thread: which is bad. Instead you should do something like: - Handle the HttpResponse in a Service. - Talk to the service using some sort of AIDL or Messenger, etc.. - Pass an ID to another activity which identifies the object to the service or something. If you are passing a connection, you can store it in the application Context. I believe it's been mentioned multiple times that this is one of the use cases of the Application context, even though to me I feel like delegating through a Service seems more kosher. (But really, it's also a pain..) Kris On Sun, Jan 20, 2013 at 2:31 PM, a ramalinga...@gmail.com javascript: wrote: Thanks for the links. I saw the example of passing the object with String and Int types. Can I also similarly pass a HttpResponse object to an intent? On Friday, January 18, 2013 5:09:16 PM UTC+2, skink wrote: a wrote: Hi, is it possible to pass an object as intent extra in Android? I tried with my class implementing Parcelable and getting a ClassCastException. Can anyone help with an example link? Thanks here you have an example link showing MyParcelable implementation; http://developer.android.com/reference/android/os/Parcelable.html pskink -- 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 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
Re: [android-developers] Re: Passing an object as extras in intent
a wrote: Hi , Thanks for your reply.. I have my HTTP server(Apache CORE) running a service S. While I receive a POST request, the response should be sent after execution of an intent A, which sends a Broadcast to my service S already running (which is designed based on my requirement). So I need to handle the HTTP POST response in the Broadcast receiver. Is this possible to do? So, I need the HttpResponse in the handle() method to be sent in the Broadcast receiver and send the response from there. Please let me know if you need more details. Thanks! your service keeps a pool of http requests so pass only ID of particular request between serviceactivitybroadcastservice execution pskink -- 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
Re: [android-developers] Re: Passing an object as extras in intent
Can you please explain your reply? I didnt undrstand the ID part. Thanks! On Monday, January 21, 2013 10:20:25 AM UTC+2, skink wrote: a wrote: Hi , Thanks for your reply.. I have my HTTP server(Apache CORE) running a service S. While I receive a POST request, the response should be sent after execution of an intent A, which sends a Broadcast to my service S already running (which is designed based on my requirement). So I need to handle the HTTP POST response in the Broadcast receiver. Is this possible to do? So, I need the HttpResponse in the handle() method to be sent in the Broadcast receiver and send the response from there. Please let me know if you need more details. Thanks! your service keeps a pool of http requests so pass only ID of particular request between serviceactivitybroadcastservice execution pskink -- 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
Re: [android-developers] Re: Passing an object as extras in intent
a wrote: Can you please explain your reply? I didnt undrstand the ID part. Thanks! ID - something that uniquely identifies your request, let it be long/ string that you can use as a key to access your request (stored in a hash map for example) pskink -- 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] displaying info about packages in ListView without ApplicationInfo noise.
Hi, i want to get in listview details of Android apps installed in the device. i can get some of the data i want inside the DDMS with the following code: final PackageManager pm = getPackageManager(); ListApplicationInfo packages = pm.getInstalledApplications(PackageManager.GET_META_DATA); for (ApplicationInfo packageInfo : packages) { Log.d(TAG, Installed package : + packageInfo.packageName); Log.d(TAG, Launch Activity :+ pm.getLaunchIntentForPackage(packageInfo.packageName)); } i get irrelevant info in my activity (ApplicationInfi{41d67898 android}) from the ApplicationInfo when using: setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1,packages); Do you know what i need to replace with 'packages' in that line to get: Application name package name icon thank you! b70k3n. -- 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
Re: [android-developers] Re: Passing an object as extras in intent
Hi, I used a HashMap as per your suggestion. But when I start the intent A using, startActivity(intent), I am getting an exception like: 01-21 12:28:28.064: E/AndroidRuntime(3432): FATAL EXCEPTION: Thread-8843 01-21 12:28:28.064: E/AndroidRuntime(3432): java.lang.RuntimeException: Parcel: unable to marshal value org.apache.http.message.BasicHttpResponse@41ce14c0 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Parcel.writeValue(Parcel.java:1235) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Parcel.writeMapInternal(Parcel.java:591) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Parcel.writeMap(Parcel.java:575) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Parcel.writeValue(Parcel.java:1166) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Parcel.writeMapInternal(Parcel.java:591) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Bundle.writeToParcel(Bundle.java:1619) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.os.Parcel.writeBundle(Parcel.java:605) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.content.Intent.writeToParcel(Intent.java:6791) 01-21 12:28:28.064: E/AndroidRuntime(3432): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1895) Similar to http://stackoverflow.com/questions/3818745/androidruntime-error-parcel-unable-to-marshal-value problem. Because the default implementation of HttpResponse doesnt implement Parcelable/Serializable. Any idea to this problem? Thanks! On Monday, January 21, 2013 10:49:49 AM UTC+2, skink wrote: a wrote: Can you please explain your reply? I didnt undrstand the ID part. Thanks! ID - something that uniquely identifies your request, let it be long/ string that you can use as a key to access your request (stored in a hash map for example) pskink -- 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
Re: [android-developers] Re: Passing an object as extras in intent
a wrote: Hi, I used a HashMap as per your suggestion. no, you still pass HttpResponse in extras i suggested to pass ID of your HttpResponse, something that you can use again in your service to access your HttpResponse pskink -- 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] Android Stock eMail no longer content: uris for EXTRA_STREAM
Hello everybody, I am attaching a small audio stream to emails using a database Uri like content:/mydb/table/id as EXTRA_STREAM. This is working fine for all email clients up to android 4.1 and also in gmail for android 4.2.1. However, when I try to use the same code with stock android email client in android 4.2.1 on Galaxy Nexus, I get the warning Invalid uri type content:// The composer is opened, but the attachment is missing. Can anybody tell me whether that is intentional or a bug that will be fixed with an upcoming update? Thanks Sascha -- 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] Jelly bean http post basic authantication give No authentication challenges found exception.
Hello Friends, I have a http post basic authentication webservice. I used HttpURLConnection and all thing work fine before Android version Jelly Bean. In Jelly Bean its give a run time exception No authentication challenges found. I have try all thing but not got exact solution. Kindly help me. I will appreciate your great help. 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] how to make graphics fit to different screen resolutions
Hi all I have an application that was originally developed for a 7 touchpad with resolution 800x480 (mdpi). Both graphics and layouts was made for this resolution. Now I am trying to make this app to support another device that have resolution 1024x552 (mdpi) Since both devices are mdpi, then I need to make new graphics to fit the new resolution. How can I make each device automatically select the right graphics and layouts when they are both mdpi? Can anybody show point me to an example that solves this? Best regards Per-Jarle -- 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] Fwd:
http://www.shorexcursionsinitaly.com/5sowam.php -- 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] Re: sliding in a new layout
i see that it's a library. do you have a sample code as to how to use it. thanks. On Sunday, January 20, 2013 3:25:04 PM UTC-5, G. Blake Meike wrote: I've been poking around at this for a while. You might be interested it this: https://github.com/bmeike/SlidingMenu G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] how to block the special character and smaller case characters in android EditText?
Dear All, Im developing a android application.Im using *android 2.3.3* for development. Here 1 screen im showing *text box (EditText)* and get the input from user The requirement is the *restrict the user to type only capital letters (only alphabets,numbers) and no special character allowed* For that if im using *InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS* then it allows only captial characters (only displays keyboard as capital letters) but it also allows *special characters , * etc* But i need ,that no special characters and the keyboard *shows only the upper case letters* The above is possible in android or not? -- *Thanks Regards, SIVAKUMAR.J http://stackoverflow.com/users/385138/sivakumar-j * -- 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] Re: Jelly bean http post basic authantication give No authentication challenges found exception.
Any Google Android developer, Please look at the problem and provide any way to fix this issue. Thanks On Monday, January 21, 2013 5:30:47 PM UTC+5:30, AndroidDev wrote: Hello Friends, I have a http post basic authentication webservice. I used HttpURLConnection and all thing work fine before Android version Jelly Bean. In Jelly Bean its give a run time exception No authentication challenges found. I have try all thing but not got exact solution. Kindly help me. I will appreciate your great help. 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] Menus handled differently in 4.2 on phone and tablet?
Hi, I'm trying to adapt a phone app for tablets and have run into a problem. When the menu button is pressed, it displays the context menu in the usual way at the bottom of the screen, for phone AVD's but not tablets. I confirmed this with a simple test application, created with the Android Application template. If I set the target SDK to 10 or less, then I get the bottom menu for both phone and tablet, but I want to target 17 for other reasons. The only way to show the menu items, on the tablet running 4.2, is in the action bar. But this would break compatibility with 2.x, and I hadn't been planning on using it. Very strange that the tablet and phone, both running 4.2, would behave differently, but I've seen one or two postings that suggest what I'm seeing is real. The only suggested solutions have been to change the target SDK to = 10, which as mentioned is unacceptable to me. Any clarifications as to why I should be seeing this behavior and suggestions for a work-around would be much appreciated. TIA, Matthew Fleming DermVision -- 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
Re: [android-developers] Menus handled differently in 4.2 on phone and tablet?
On Mon, Jan 21, 2013 at 7:44 AM, Matthew Fleming mgf...@gmail.com wrote: I'm trying to adapt a phone app for tablets and have run into a problem. When the menu button is pressed, it displays the context menu in the usual way at the bottom of the screen, for phone AVD's but not tablets. That is the options menu, not a context menu. I confirmed this with a simple test application, created with the Android Application template. If I set the target SDK to 10 or less, then I get the bottom menu for both phone and tablet, but I want to target 17 for other reasons. I am aware of exactly zero phones running 4.x for which a targetSdkVersion of 17 will give you the legacy menu affordance in the navigation bar. Do not rely upon it existing on phones. The only way to show the menu items, on the tablet running 4.2, is in the action bar. But this would break compatibility with 2.x, and I hadn't been planning on using it. Use ActionBarSherlock for an action bar that works back to Android 2.1. Any clarifications as to why I should be seeing this behavior and suggestions for a work-around would be much appreciated. Either use the action bar or get rid of your options menus, using something inside the UI of your activity as a replacement. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- 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
Re: [android-developers] Menus handled differently in 4.2 on phone and tablet?
Sorry, yes, I meant options menu. Matthew Fleming On Monday, January 21, 2013 7:08:13 AM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Jan 21, 2013 at 7:44 AM, Matthew Fleming mgf...@gmail.comjavascript: wrote: I'm trying to adapt a phone app for tablets and have run into a problem. When the menu button is pressed, it displays the context menu in the usual way at the bottom of the screen, for phone AVD's but not tablets. That is the options menu, not a context menu. I confirmed this with a simple test application, created with the Android Application template. If I set the target SDK to 10 or less, then I get the bottom menu for both phone and tablet, but I want to target 17 for other reasons. I am aware of exactly zero phones running 4.x for which a targetSdkVersion of 17 will give you the legacy menu affordance in the navigation bar. Do not rely upon it existing on phones. The only way to show the menu items, on the tablet running 4.2, is in the action bar. But this would break compatibility with 2.x, and I hadn't been planning on using it. Use ActionBarSherlock for an action bar that works back to Android 2.1. Any clarifications as to why I should be seeing this behavior and suggestions for a work-around would be much appreciated. Either use the action bar or get rid of your options menus, using something inside the UI of your activity as a replacement. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- 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
Re: [android-developers] Re: Jelly bean http post basic authantication give No authentication challenges found exception.
On Mon, Jan 21, 2013 at 2:31 PM, AndroidDev androidteste...@gmail.comwrote: No authentication challenges found Go to Phone settings then click 'Date and Time' and select 'Automatic' (Please make sure your device Time Zone and Time,Date all are correct) If your time,Date and Time Zone are not correct then you can not connect -- 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
Re: [android-developers] Re: Jelly bean http post basic authantication give No authentication challenges found exception.
Hello Happy, Thanks for your reply. I have checked my device setting and sure that 'Date and Time' set to automatic mode. Kindly update when you have any other solution. thanks again for your response. Thanks. On Monday, January 21, 2013 7:05:54 PM UTC+5:30, Live Happy wrote: On Mon, Jan 21, 2013 at 2:31 PM, AndroidDev android...@gmail.comjavascript: wrote: No authentication challenges found Go to Phone settings then click 'Date and Time' and select 'Automatic' (Please make sure your device Time Zone and Time,Date all are correct) If your time,Date and Time Zone are not correct then you can not connect -- 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
Re: [android-developers] Re: Passing an object as extras in intent
Thank you Its working :) On Monday, January 21, 2013 12:49:19 PM UTC+2, skink wrote: a wrote: Hi, I used a HashMap as per your suggestion. no, you still pass HttpResponse in extras i suggested to pass ID of your HttpResponse, something that you can use again in your service to access your HttpResponse pskink -- 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] Re: Proximity Sensors that provide the absolute distance rather than simply binary near|far
Isn't this just for checking if someone's ear is next to the phone? Why would you ever need a distance measurement? On Saturday, January 19, 2013 9:03:02 AM UTC-6, marcpolo wrote: Hi, I'm looking for an Android device that has a proximity sensor that provides a distance measurement. The Android user guide states that some sensors only provide binary values representing near and far and this has been true for all Android phones I have tested, e.g. Samsung GS3, HTC One X. Does anyone know of a phone or tablet that provides actual range data. 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] Maps v2 and Maker Overlay
Good afternoon guys. I'm using the Maps API for android, v2, and would like to put a map maker and the map moves when it should be stopped, so that the user can define the exact location in which it is located. After you define the location, need to get the address of where the Marker was. Does anyone have any reference on how to do? Thank you. -- 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] Re: sliding in a new layout
I really need to add that, don't I. I don't have it, just now. Something like this: View menuRoot = activity.getLayoutInflater().inflate(R.layout.menu, null); menuView = (SlidingMenu) menuRoot.findViewById(R.id.menu_list); menuView.setContainerView(menuRoot, (ViewGroup) activity.findViewById(R.id.view_slider)); Then menu looks like this: FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; xmlns:moda=http://schemas.android.com/apk/res/com.sealy.moda; android:id=@+id/menu_root android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical android:paddingBottom=46px android:paddingLeft=46px android:paddingTop=46px tools:ignore=PxUsage net.callmeike.android.widget.SlidingMenu android:id=@+id/menu_list android:layout_width=match_parent android:layout_height=match_parent android:background=@drawable/menu_bg android:cacheColorHint=# android:divider=@color/amber_grey android:dividerHeight=2px android:paddingBottom=3px android:paddingLeft=2px moda:moda_text_font=DINNextRoundedLTPro-Regular.otf moda:sliding_menu_animation_millis=700 moda:sliding_menu_x_displacement=0.7 moda:sliding_menu_y_displacement=0.0 / /FrameLayout It will slide the view with the id view_slider out of the way, and replace it with the menu. -blake On Monday, January 21, 2013 4:11:43 AM UTC-8, dashman wrote: i see that it's a library. do you have a sample code as to how to use it. thanks. On Sunday, January 20, 2013 3:25:04 PM UTC-5, G. Blake Meike wrote: I've been poking around at this for a while. You might be interested it this: https://github.com/bmeike/SlidingMenu G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] Re: sliding in a new layout
I really need to add that, don't I. I don't have it, just now. Something like this: View menuRoot = activity.getLayoutInflater().inflate(R.layout.menu, null); menuView = (SlidingMenu) menuRoot.findViewById(R.id.menu_list); menuView.setContainerView(menuRoot, (ViewGroup) activity.findViewById(R.id.view_slider)); Then menu looks like this: FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; xmlns:menu=http://schemas.android.com/apk/res/net.callmeike.android.widget; android:id=@+id/menu_root android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical android:paddingBottom=46px android:paddingLeft=46px android:paddingTop=46px tools:ignore=PxUsage net.callmeike.android.widget.SlidingMenu android:id=@+id/menu_list android:layout_width=match_parent android:layout_height=match_parent android:background=@drawable/menu_bg android:cacheColorHint=# android:divider=@color/amber_grey android:dividerHeight=2px android:paddingBottom=3px android:paddingLeft=2px menu:sliding_menu_animation_millis=700 menu:sliding_menu_x_displacement=0.7 menu:sliding_menu_y_displacement=0.0 / /FrameLayout It will slide the view with the id view_slider out of the way, and replace it with the menu. -blake On Monday, January 21, 2013 4:11:43 AM UTC-8, dashman wrote: i see that it's a library. do you have a sample code as to how to use it. thanks. On Sunday, January 20, 2013 3:25:04 PM UTC-5, G. Blake Meike wrote: I've been poking around at this for a while. You might be interested it this: https://github.com/bmeike/SlidingMenu G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] Re: Proximity Sensors that provide the absolute distance rather than simply binary near|far
I agree. This might be the reason why there is probably no Android device on the market that provides such a sensor. Take a look at the following Kickstarter project: http://www.kickstarter.com/projects/453951341/sensordrone-the-6th-sense-of-your-smartphoneand-be On Monday, January 21, 2013 8:26:49 AM UTC-6, bob wrote: Isn't this just for checking if someone's ear is next to the phone? Why would you ever need a distance measurement? On Saturday, January 19, 2013 9:03:02 AM UTC-6, marcpolo wrote: Hi, I'm looking for an Android device that has a proximity sensor that provides a distance measurement. The Android user guide states that some sensors only provide binary values representing near and far and this has been true for all Android phones I have tested, e.g. Samsung GS3, HTC One X. Does anyone know of a phone or tablet that provides actual range data. 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
Re: [android-developers] Maps v2 and Maker Overlay
On Mon, Jan 21, 2013 at 8:49 AM, Diego N. diegonunes.sist...@gmail.comwrote: After you define the location, need to get the address of where the Marker was. Does anyone have any reference on how to do? http://developer.android.com/reference/android/location/Geocoder.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: Not working calendar events query.
You need to do the following: - Use CalendarContract for Android API level 14 and higher - Read the documentationhttp://developer.android.com/reference/android/provider/CalendarContract.html. It explains how to query events. - For older Android versions you have the following options: - Write your own synchronization component that interfaces with the Google Calendar API https://developers.google.com/google-apps/calendar/ - Create a calendar database just for your app. It's not synchronized with the user's Google Calendar but it's the easiest solution. - Read: http://stackoverflow.com/questions/846942/is-there-a-way-to-access-the-calendars-entries-without-using-gdata-java-client On Sunday, January 20, 2013 8:43:18 PM UTC-6, askl wrote: Thanks for your respond. i got an idea from your message. i try to develop an application new function with calendar app. So i want to get default calendar event.* what is the suitable way to **query events.?* * . Thank you, With Best regards, Sun Certified, * *Amal Shiwantha Ranasinghe.* * * *Google + https://plus.google.com/117853962252903474075/about | Linkedinhttp://lk.linkedin.com/in/amalshiwantha | Ceylon Calendar - 2012 http://youtu.be/ggBxYcoEiz8 | Maphttp://maps.google.com/maps?q=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lankahl=enll=7.540955,80.628995spn=0.006116,0.009645sll=7.873054,80.771797sspn=6.254445,9.876709oq=amal+shhq=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lankat=mz=17iwloc=A * ** On 20 January 2013 21:55, Nobu Games dev.nob...@gmail.com javascript:wrote: The CalendarContracthttp://developer.android.com/reference/android/provider/CalendarContract.htmlcomponent is the only sane way to access a user's calendar data. Unfortunately it's only for API level 14 and higher ( = 4.0). In older Android versions the calendar contentprovider is part of a hidden API which has been customized by various manufacturers. That means there is no official, standardized way of accessing or manipulating calendar data. You could try accessing that hidden contentprovider the way you're doing it. But you need to guess the proper content URI. And you also need to make assumptions about the table column names and so on. It's not really a pretty nor reliable thing to do. I had the same problem with one of my apps. For that reason I wrote my own calendar SyncAdapter and ContentProvider components that synchronize with the Google Calendar web API. On Saturday, January 19, 2013 10:17:53 PM UTC-6, askl wrote: Hello friends, i want to get calendar events using this query. Cursor cursor = getContentResolver().query( Uri.parse(content://com.**android.calendar/events), new String[] { _id, title, dtstart, dtend }, null, null, dtstart ASC); *Manifest,xml* uses-sdk android:minSdkVersion=8 android:targetSdkVersion=17 / uses-permission android:name=android.**permission.READ_CALENDAR / uses-permission android:name=android.**permission.WRITE_CALENDAR / But ones generate an exception called *null* longparser dtend on android version 2.2. *just explain to me this query is working on which os version..? * *2.2 and up version or 3.0 and up version* * * *or else this method is ok or not.* just help me.. thank you askl -- 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 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] Re: how to make graphics fit to different screen resolutions
http://developer.android.com/guide/practices/screens_support.html On Monday, January 21, 2013 6:04:53 AM UTC-6, Per-Jarle Sæther wrote: Hi all I have an application that was originally developed for a 7 touchpad with resolution 800x480 (mdpi). Both graphics and layouts was made for this resolution. Now I am trying to make this app to support another device that have resolution 1024x552 (mdpi) Since both devices are mdpi, then I need to make new graphics to fit the new resolution. How can I make each device automatically select the right graphics and layouts when they are both mdpi? Can anybody show point me to an example that solves this? Best regards Per-Jarle -- 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] Re: Jelly bean http post basic authantication give No authentication challenges found exception.
I don't know if this will help, but I had a similar problem a while back. Only in my case, it worked in the newer versions of Android, but not in the older versions. After consulting with the people running the server that I was trying to connect to, I found the problem. In the header, I was sending: Authorization: Bearer XX, but they were receiving: authorization: Bearer XX, For some reason, the earlier versions of Android were converting 'Authorization' to 'authorization' and the particular host that I was talking to did not accept the lowercase version. The fix was to get the server to accept both. I don't know if this has anything to do with your problem, buy you might want to consider if the case of your request is correct. On Monday, January 21, 2013 4:00:47 AM UTC-8, AndroidDev wrote: Hello Friends, I have a http post basic authentication webservice. I used HttpURLConnection and all thing work fine before Android version Jelly Bean. In Jelly Bean its give a run time exception No authentication challenges found. I have try all thing but not got exact solution. Kindly help me. I will appreciate your great help. 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
Re: [android-developers] displaying info about packages in ListView without ApplicationInfo noise.
On Mon, Jan 21, 2013 at 3:42 AM, ntt broken nttbro...@gmail.com wrote: Do you know what i need to replace with 'packages' in that line to get: Application name package name icon The default implementation will just show you a toString() on whatever object you provide. That is what you're seeing. You need a custom adapter that returns a custom view populated with the information you want to see. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Re: sliding in a new layout
I tried but wasn't able to follow and apply to what i'm trying to do. I.e. slide in a view - eventually a listview or something similar. if you can put together a quick app that uses the widge - i for one would more than appreciate it. thanks. On Monday, January 21, 2013 9:55:53 AM UTC-5, G. Blake Meike wrote: I really need to add that, don't I. I don't have it, just now. Something like this: View menuRoot = activity.getLayoutInflater().inflate(R.layout.menu, null); menuView = (SlidingMenu) menuRoot.findViewById(R.id.menu_list); menuView.setContainerView(menuRoot, (ViewGroup) activity.findViewById(R.id.view_slider)); Then menu looks like this: FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; xmlns:menu= http://schemas.android.com/apk/res/net.callmeike.android.widget; android:id=@+id/menu_root android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical android:paddingBottom=46px android:paddingLeft=46px android:paddingTop=46px tools:ignore=PxUsage net.callmeike.android.widget.SlidingMenu android:id=@+id/menu_list android:layout_width=match_parent android:layout_height=match_parent android:background=@drawable/menu_bg android:cacheColorHint=# android:divider=@color/amber_grey android:dividerHeight=2px android:paddingBottom=3px android:paddingLeft=2px menu:sliding_menu_animation_millis=700 menu:sliding_menu_x_displacement=0.7 menu:sliding_menu_y_displacement=0.0 / /FrameLayout It will slide the view with the id view_slider out of the way, and replace it with the menu. -blake On Monday, January 21, 2013 4:11:43 AM UTC-8, dashman wrote: i see that it's a library. do you have a sample code as to how to use it. thanks. On Sunday, January 20, 2013 3:25:04 PM UTC-5, G. Blake Meike wrote: I've been poking around at this for a while. You might be interested it this: https://github.com/bmeike/SlidingMenu G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] NFC Card Emulation on android
Hello, is it possible to use Card Emulation on Android? Using a Samsung Galaxy S II smartphone, If I put it close to an RFID reader I can read a random UID from the smartphone. What kind of UID is that? Is it related to NFC controller? It seems that it can emulate a Mifare 4K tag or a Smart MX card. Is it possible to get a fixed UID from this NFC phone, and in general from any NFC phone that allows card emulation? Thank you very much. Eliseo -- 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] ACodec: Question on initNativeWindow
Dear experts, In Android 4.2 release, I observe that in ACodec::LoadedState::onConfigureComponent, there is a call to initNativeWindow for all cases. In case of an encoder being employed as a ACodec, then initNativeWindow invokes enableGraphicBuffers on the encoder's output port with flag set to OMX_FALSE. For an encoder, this is mandating to support an additional setParameter on the output port of the component. From a code perspective, I felt it is not intuitive to invoke a enableGraphicBuffers on output port. Could someone please point to any potential reasons for the same? Thanks, Ganesh -- 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
Re: [android-developers] NFC Card Emulation on android
On Tue, Jan 22, 2013 at 1:56 AM, Eliseo Baruzzi baruzzi.softw...@gmail.com wrote: Hello, is it possible to use Card Emulation on Android? Generally, yes. Depends on the NFC controller and software support. That's how Google Wallet works. Using a Samsung Galaxy S II smartphone, If I put it close to an RFID reader I can read a random UID from the smartphone. What kind of UID is that? Is it related to NFC controller? It seems that it can emulate a Mifare 4K tag or a Smart MX card. Is it possible to get a fixed UID from this NFC phone, and in general from any NFC phone that allows card emulation? As you have seen, it's a random UID. I don't remember the details off hand, but a certain range is allocated for random UIDs, so each time you will get some UID in this range. You can't fix the UID, at least not with any of the standard NXP controllers. What are you trying to do? -- 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
Re: [android-developers] NFC Card Emulation on android
On Tue, Jan 22, 2013 at 2:12 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Jan 22, 2013 at 1:56 AM, Eliseo Baruzzi baruzzi.softw...@gmail.com wrote: Hello, is it possible to use Card Emulation on Android? Also search the group, there is a lengthy thread about this, with a lot of details. -- 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] Android 4.2: Miracast: prependSPSPPSToIDRFrames
Dear experts, In Android 4.2 release, I observe that the miracast implementation mandates a OMX encoder to support a new extension index OMX.google.android.index.prependSPSPPSToIDRFrames. However, when I studied the subsequent implementation of MediaCodec, Converter and WifiDisplaySource, I observe that there is enough support in the existing framework to support this feature without the need of adding another index for the OMX component. Can someone please confirm if my understanding is correct? If so, can you kindly provide some further information on reasons/rationale behind the same? Thanks, Ganesh -- 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
Re: [android-developers] Prob in sending Image
Look into using a rest service if you can little easier to deal with. As the other poster said convert the byte[] into a string and base64 encode it then send it. On Jan 20, 2013 9:26 AM, ajinkyasaswad...@gmail.com wrote: Hi Everybody M sending the image from android to java server using socket programming as i want to send to ip addrs but there is prob in sending the image I tried converting into string and writing it into txt fie but there's prob in writing it into the txt file so there's prob in converting it into image at server side. So does any one have solution for it It will appreciated 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 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
Re: [android-developers] using anctionbar to implement tab, how to jump to another tab programmly?
Could you give me an example of how to set the fragment to be active? Thanks On Sun, Jan 20, 2013 at 9:15 PM, Michael Leung michaelchi...@gmail.comwrote: Can you set the tab with B Fragment to be active? On Mon, Jan 21, 2013 at 9:25 AM, Summer novelt...@gmail.com wrote: https://github.com/Leandros/**ActionBar-with-Tabshttps://github.com/Leandros/ActionBar-with-Tabs say I am in A fragment, i have a button, after I click this button, how can I jump to B fragment, as B tab is clicked? Thanks --S -- 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 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
Re: [android-developers] using anctionbar to implement tab, how to jump to another tab programmly?
Could you give me an example of how to set the fragment to be active? Thanks 在 2013年1月20日星期日UTC-8下午9时15分22秒,Michael Leung写道: Can you set the tab with B Fragment to be active? On Mon, Jan 21, 2013 at 9:25 AM, Summer nove...@gmail.com javascript:wrote: https://github.com/Leandros/**ActionBar-with-Tabshttps://github.com/Leandros/ActionBar-with-Tabs say I am in A fragment, i have a button, after I click this button, how can I jump to B fragment, as B tab is clicked? Thanks --S -- 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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] Re: Jelly bean http post basic authantication give No authentication challenges found exception.
On Monday, January 21, 2013 4:31:15 AM UTC-8, AndroidDev wrote: Any Google Android developer, Please look at the problem and provide any way to fix this issue. Thanks On Monday, January 21, 2013 5:30:47 PM UTC+5:30, AndroidDev wrote: Hello Friends, You need to give a few days before bumping a request. Nagging tends to drive away those best equipped to help you. That isn't me, btw. I've just observed how the knowledgeable folks here operate. If they respond, it's out of a sense of helpfulness, not because they have to. How much would you have to pay someone to fix the problem for you, if you hired help? If you pay that much, you get to demand a fix and nag for a result several times a day. Here, you get to wait patiently and hope someone has an answer *and* is willing to share it with the public some time in the current week. -- 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
[android-developers] Re: Prob in sending Image
I would say output a header telling the server the length of the file. Then just write all the binary data of the file. It would be similar to how a web server spits out an image… Content-length: 1000 [binary image data] On Sunday, January 20, 2013 11:26:37 AM UTC-6, ajinkyas...@gmail.com wrote: Hi Everybody M sending the image from android to java server using socket programming as i want to send to ip addrs but there is prob in sending the image I tried converting into string and writing it into txt fie but there's prob in writing it into the txt file so there's prob in converting it into image at server side. So does any one have solution for it It will appreciated 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] Overlay - Maps API v2
Good afternoon guys. Someone has created a new overlay on the maps API v2? I need to create one with a description and a button, but I'm not finding any reference. There is more to this version Overlay class. Thank you. att, -- 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] Re: floating bubble buttons in android
Those buttons are Flash, and Flash died on Android. You'd have to pretty much start from scratch, maybe by subclassing View. On Monday, January 21, 2013 1:17:37 AM UTC-6, Rahul Raja wrote: Can i get help on how to get floating bubbles buttons in android like this?/ http://activeden.net/item/floating-bubble-buttons/6279 i surfed but didnt get anything specific. -- 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] Re: sliding in a new layout
Done. There is now a basic eclipse Hello World example, with the slider added. Enjoy. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] Re: how to make graphics fit to different screen resolutions
I bet these two lines should help: res/layout-sw600dp/main_activity.xml # For 7” tablets (600dp wide and bigger) res/layout-sw720dp/main_activity.xml # For 10” tablets (720dp wide and bigger) So, you create two dirs: */res/layout-sw800dp/* */res/layout-sw1024dp/* On Monday, January 21, 2013 6:04:53 AM UTC-6, Per-Jarle Sæther wrote: Hi all I have an application that was originally developed for a 7 touchpad with resolution 800x480 (mdpi). Both graphics and layouts was made for this resolution. Now I am trying to make this app to support another device that have resolution 1024x552 (mdpi) Since both devices are mdpi, then I need to make new graphics to fit the new resolution. How can I make each device automatically select the right graphics and layouts when they are both mdpi? Can anybody show point me to an example that solves this? Best regards Per-Jarle -- 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] Re: Android Stock eMail no longer content: uris for EXTRA_STREAM
I would just try using a File Uri like this: *final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);* *emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(png));* *emailIntent.setType(image/png);* *startActivity(Intent.createChooser(emailIntent, getString(R.string.send_intent_name)));* [code taken from http://stackoverflow.com/questions/2206397/android-intent-action-send-with-extra-stream-doesnt-attach-any-image-when-choo] On Monday, January 21, 2013 5:12:19 AM UTC-6, Sascha wrote: Hello everybody, I am attaching a small audio stream to emails using a database Uri like content:/mydb/table/id as EXTRA_STREAM. This is working fine for all email clients up to android 4.1 and also in gmail for android 4.2.1. However, when I try to use the same code with stock android email client in android 4.2.1 on Galaxy Nexus, I get the warning Invalid uri type content:// The composer is opened, but the attachment is missing. Can anybody tell me whether that is intentional or a bug that will be fixed with an upcoming update? Thanks Sascha -- 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] Re: inflated guess_flag.xml with an ImageView but not get good sized images(see attached screenshot), how fix
I want 3 images (flags) per line - 3 lines - all about appropriate DIMs... -- 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] Re: about custom listview
You should have a class that implements ListAdapter. In that class, there is a method called getView: public View getView(int position, View convertView, ViewGroup parent) { Have it return a View that has a checkbox object with a listener already attached to it. On Sunday, January 20, 2013 12:00:45 PM UTC-6, Abdullah wrote: Hi guys, i have a custom listview.it has 1 imageview 1 textview and 5 checkbox each row. how can i check or uncheck other checkbox in same row when i check any checkbox. i use below funcktion in arrayadapter but i don't know where i check or unckeck when i check a checkbox. -- 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] ExpandableListView Expand icon overlays the text titles of the items
i have a ExpanableListView that i'm texting. I have a problem with the expand icon of the items. The icon is being painted overlaying the text title of each item. It means that for example, if the title of the first items is Ducados, the icon is overlaying Du and only cados is visible What can i do to align the text on the right of the expand icon? this is the code: public class MainActivity extends ExpandableListActivity {ExpandableListAdapter mAdapter; @Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set up our adapter mAdapter = new MyExpandableListAdapter(); setListAdapter(mAdapter); registerForContextMenu(getExpandableListView());} @Overridepublic void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { menu.setHeaderTitle(Sample menu); menu.add(0, 0, 0, Sample action);} @Overridepublic boolean onContextItemSelected(MenuItem item) { ExpandableListContextMenuInfo info = (ExpandableListContextMenuInfo) item.getMenuInfo(); String title = ((TextView) info.targetView).getText().toString(); int type = ExpandableListView.getPackedPositionType(info.packedPosition); if (type == ExpandableListView.PACKED_POSITION_TYPE_CHILD) { int groupPos = ExpandableListView.getPackedPositionGroup(info.packedPosition); int childPos = ExpandableListView.getPackedPositionChild(info.packedPosition); Toast.makeText(this, title + : Child + childPos + clicked in group + groupPos, Toast.LENGTH_SHORT).show(); return true; } else if (type == ExpandableListView.PACKED_POSITION_TYPE_GROUP) { int groupPos = ExpandableListView.getPackedPositionGroup(info.packedPosition); Toast.makeText(this, title + : Group + groupPos + clicked, Toast.LENGTH_SHORT).show(); return true; } return false;} public class MyExpandableListAdapter extends BaseExpandableListAdapter { // Sample data set. children[i] contains the children (String[]) for groups[i]. private String[] groups = { Names, Designation, Gender, Company }; private String[][] children = { { abc, xyz, ash, anu }, { SSE, TJ, PM, SE }, { Male, Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female Female }, { yy, x } }; public Object getChild(int groupPosition, int childPosition) { return children[groupPosition][childPosition]; } public long getChildId(int groupPosition, int childPosition) { return childPosition; } public int getChildrenCount(int groupPosition) { return children[groupPosition].length; } public TextView getGenericView() { // Layout parameters for the ExpandableListView AbsListView.LayoutParams lp = new AbsListView.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); TextView textView = new TextView(MainActivity.this); textView.setLayoutParams(lp); textView.setTextSize(20); // Center the text vertically textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); return textView; } public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { TextView textView = getGenericView(); textView.setText(getChild(groupPosition, childPosition).toString()); textView.setTextSize(15); return textView; } public Object getGroup(int groupPosition) { return groups[groupPosition]; } public int getGroupCount() { return groups.length; } public long getGroupId(int groupPosition) { return groupPosition; } public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { TextView textView = getGenericView(); textView.setText(getGroup(groupPosition).toString()); return textView; } public boolean isChildSelectable(int groupPosition, int childPosition) { return true; } public boolean hasStableIds() { return true; } }} -- 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] Re: sliding in a new layout
Thanks. I had to change a line in DemoActivity.java class //case android.R.id.home: case R.id.menu_settings: then works...thanks! On Monday, January 21, 2013 1:53:46 PM UTC-5, G. Blake Meike wrote: Done. There is now a basic eclipse Hello World example, with the slider added. Enjoy. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] Re: Android Stock eMail no longer content: uris for EXTRA_STREAM
Your ContentProvider must be fully implemented for the correct handling of files. First of all your ContentProvider's query method must recognize and process MediaStore queries. Such a query returns detailed information about display name, file size and mime types of the queried Uri. In my experience you can happily ignore the selection parameter. Apps are only interested in that one single file you offer represented by the Uri. Then there's the getType method you should implement in order to return the correct mime type for a content Uri. On Monday, January 21, 2013 5:12:19 AM UTC-6, Sascha wrote: Hello everybody, I am attaching a small audio stream to emails using a database Uri like content:/mydb/table/id as EXTRA_STREAM. This is working fine for all email clients up to android 4.1 and also in gmail for android 4.2.1. However, when I try to use the same code with stock android email client in android 4.2.1 on Galaxy Nexus, I get the warning Invalid uri type content:// The composer is opened, but the attachment is missing. Can anybody tell me whether that is intentional or a bug that will be fixed with an upcoming update? Thanks Sascha -- 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
Re: [android-developers] ExpandableListView Expand icon overlays the text titles of the items
On Mon, Jan 21, 2013 at 4:32 PM, saex elpablos...@gmail.com wrote: The icon is being painted overlaying the text title of each item. It means that for example, if the title of the first items is Ducados, the icon is overlaying Du and only cados is visible What can i do to align the text on the right of the expand icon? Add some padding to the left side of the TextView you use for the items. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] using anctionbar to implement tab, how to jump to another tab programmly?
actionBar.setSelectedNavigationItem(x)? On Tue, Jan 22, 2013 at 4:17 AM, Summer novelt...@gmail.com wrote: Could you give me an example of how to set the fragment to be active? Thanks 在 2013年1月20日星期日UTC-8下午9时15分22秒,Michael Leung写道: Can you set the tab with B Fragment to be active? On Mon, Jan 21, 2013 at 9:25 AM, Summer nove...@gmail.com wrote: https://github.com/Leandros/**Ac**tionBar-with-Tabshttps://github.com/Leandros/ActionBar-with-Tabs say I am in A fragment, i have a button, after I click this button, how can I jump to B fragment, as B tab is clicked? Thanks --S -- 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.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=enhttp://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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] SCEP protocol supported by Android
hey guys I tried finding this info but couldn't find it. Is SCEP protocol supported by android? If yes which version. If its not supported in android SDK is there any 3rd party package that can be used? thanks Monty -- 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] Searching for Contents within multiple PDFs
Hi, Can someone suggest a good utility (maybe good text editor like Textpad or fancy PDF reader) to search for contents within many many files (primarily PDFs) on Android? -- Thank you, Oleg. -- 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] Base and features to audio player
Hi, I am working on a audio player and i am trying to add base settings and treble adjustments to the audio player, please suggest me how to implement the audio player with base and treble Thanks shiva shankar -- 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] Google Map Android Api V2 not working
Hi Guys, I am trying to use the latest api launched by google i.e. *Google Map Android Api V2* All the code and each scenario is correct, but I am still having the blank fragments screen i.e. *No Map Visible. *I have attached its screenshot with this post. * * *The logs shows the issue:-* *Google Maps Android API(25280): Failed to load map. Could not contact Google servers.* * * Many developers told me that it can be issue regarding generating the Api Key for map, so I want to say that I tried the exact procedure which is told at Google Sample Example Page and I also tried to use 2-3 Google Account to generate Api Key but the issue is still same. I have also added the question on StackOverflow regading it. Here is its link.http://stackoverflow.com/questions/14216205/google-map-android-api-v2-sample-code-not-working/14436556#14436556 Please help. 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=enattachment: map.png
[android-developers] Uncaught exception thrown by finalizer - java.io.IOException: close failed: EIO (I/O error)
I have this piece of code that takes the server response and writes it into a file. The file contains json data. I write response into file in order to scan json sequentially and to avoid to load big json data in a List! public File getData(final String url) throws URISyntaxException, AuthenticationException, IOException, ClientProtocolException, HttpResponseException { final HttpGet getRequest = new HttpGet(new URI(url)); final UsernamePasswordCredentials creds = new UsernamePasswordCredentials(username, password); getRequest.addHeader(new BasicScheme().authenticate(creds, getRequest)); getRequest.setHeader(Content-Type, application/json); final ResponseHandlerbyte[] responseHandler = new ByteArrayResponseHandler(); final byte[] responseBody = mClient.execute(getRequest, responseHandler); final File output = new File(FileConfig.TEMP_PATH + System.currentTimeMillis()+.json); final FileOutputStream fos = new FileOutputStream(output.getPath()); fos.write(responseBody); fos.close(); return output; } But I've noticed that recently (I don't know why) I get this exception: 01-22 07:45:51.809: E/System(9055): Uncaught exception thrown by finalizer 01-22 07:45:51.833: E/System(9055): java.io.IOException: close failed: EIO (I/O error) 01-22 07:45:51.833: E/System(9055): at libcore.io.IoUtils.close(IoUtils.java:41) 01-22 07:45:51.833: E/System(9055): at java.io.FileInputStream.close(FileInputStream.java:121) 01-22 07:45:51.833: E/System(9055): at java.io.FileInputStream.finalize(FileInputStream.java:142) 01-22 07:45:51.833: E/System(9055): at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:185) 01-22 07:45:51.833: E/System(9055): at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168) 01-22 07:45:51.833: E/System(9055): at java.lang.Thread.run(Thread.java:856) 01-22 07:45:51.833: E/System(9055): Caused by: libcore.io.ErrnoException: close failed: EIO (I/O error) 01-22 07:45:51.833: E/System(9055): at libcore.io.Posix.close(Native Method) 01-22 07:45:51.833: E/System(9055): at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75) 01-22 07:45:51.833: E/System(9055): at libcore.io.IoUtils.close(IoUtils.java:38) 01-22 07:45:51.833: E/System(9055): ... 5 more 01-22 07:45:51.833: E/System(9055): Uncaught exception thrown by finalizer 01-22 07:45:51.841: E/System(9055): java.io.IOException: close failed: EIO (I/O error) 01-22 07:45:51.841: E/System(9055): at libcore.io.IoUtils.close(IoUtils.java:41) 01-22 07:45:51.841: E/System(9055): at java.io.FileInputStream.close(FileInputStream.java:121) 01-22 07:45:51.841: E/System(9055): at java.io.FileInputStream.finalize(FileInputStream.java:142) 01-22 07:45:51.841: E/System(9055): at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:185) 01-22 07:45:51.841: E/System(9055): at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168) 01-22 07:45:51.841: E/System(9055): at java.lang.Thread.run(Thread.java:856) 01-22 07:45:51.841: E/System(9055): Caused by: libcore.io.ErrnoException: close failed: EIO (I/O error) 01-22 07:45:51.841: E/System(9055): at libcore.io.Posix.close(Native Method) 01-22 07:45:51.841: E/System(9055): at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75) 01-22 07:45:51.841: E/System(9055): at libcore.io.IoUtils.close(IoUtils.java:38) 01-22 07:45:51.841: E/System(9055): ... 5 more Everything seems to work, but I'm perplexed about this exception. The targetSdk ok my app is 13. Thanks for any comment / response! Marco -- 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
Re: [android-developers] NFC Card Emulation on android
Il giorno lunedì 21 gennaio 2013 18:12:30 UTC+1, Nikolay Elenkov ha scritto: On Tue, Jan 22, 2013 at 1:56 AM, Eliseo Baruzzi baruzzi@gmail.com javascript: wrote: Hello, is it possible to use Card Emulation on Android? Generally, yes. Depends on the NFC controller and software support. That's how Google Wallet works. Using a Samsung Galaxy S II smartphone, If I put it close to an RFID reader I can read a random UID from the smartphone. What kind of UID is that? Is it related to NFC controller? It seems that it can emulate a Mifare 4K tag or a Smart MX card. Is it possible to get a fixed UID from this NFC phone, and in general from any NFC phone that allows card emulation? As you have seen, it's a random UID. I don't remember the details off hand, but a certain range is allocated for random UIDs, so each time you will get some UID in this range. You can't fix the UID, at least not with any of the standard NXP controllers. What are you trying to do? What I want to do is to use the UID received from the phone to read/write the tag emulated on the phone. Another application possible is to use the phone in access control applications, but a fixed UID is necessary. The UID is random for security reasons? How Card Emulation can be used if the UID is random? -- 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