[android-developers] Re:Android _Develop app for hardware
Hi All, which when from the Hyperterminal in Windows if data is dumped on to the usb connected to andriod phone it must receive the same and display. Is it possible to develop ,can I get some information above development for android. Regards Jagadeesh -- 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] Get access to manifest.xml before installing the apk
Thanks for your answers. And 2 more questions: Does Google Play first download the apk somewhere and then install it? If yes, where does it save the apk and do we need root permission to access to it for getting its manifest? Thanks again On Friday, October 12, 2012 9:57:04 PM UTC+8, MagouyaWare wrote: No. And No. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Oct 9, 2012 at 3:17 AM, Foi kaas...@gmail.com javascript:wrote: Is there any way to retrieve manifest.xml of APKs from Google Play before installing the application? (in the same way that google play application retrieves uses-permissions list?) or Is it possible to download apks from Google Play without using its official application? 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-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] Tab Customisation
CAN YOU ELABORATE YOUR QUERY MORE!! -- 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] adding security/restriction to clipboard manager
I want to add some security to clipboard manager. I have developed an application. Inside my application i am giving the option to copy and paste but i don't want the data copied inside my application to be available outside my application, but it is available in the history of clipboard. How do i solve this? I have tried to solve it by setting the copy to null onpause of my application that would eliminate the paste option but the contents are still available in the history of clipboard manager. How do i delete the contents in clipboard? (or) How can i encrypt my data before sending it to clipboard? This is to provide security for the data in my application. Please let me know if there is any other approach to achieve this. -- Regards Y Sundeep -- 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 play recorded audio ? using AudioTrack
Hi, I am using AudioRecord class for record the audio in sdcard but it has no play.Because in the time of playing it has display sorry the audio cannot be palyed So how to play the video after recording the sdcard. I think i will use AudioTrack.But i don't know clearly about that. if any body know that pls share with me. This is urgent. Thanks in advance Thanks, Tom -- 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] how to play recorded audio ? using AudioTrack
please refer this link http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ -- 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] Yelp search result for businesses is missing the attraction lat/lng.
Hi, Hope all are fine and happy out there,i am with a request that i have used an example of yelp from github to search for businesses,the example is working fine but missing one thing that is the lat/lngs of each attraction/location that i want to show, is not coming up with business,leaving up me with 0.0 or NAN error. i well be very thankful for any help provided, Regards: sultan -- 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: browser application
Yes, My Galaxy s3 did not come with flash anymore too. Just do in HTML 5 On Mon, Oct 15, 2012 at 4:54 AM, RichardC richard.crit...@googlemail.comwrote: Flash on Android is coming to the end of its life: https://play.google.com/store/apps/details?id=com.adobe.flashplayer On Sunday, October 14, 2012 7:19:59 PM UTC+1, Michael Levinson wrote: I am not a programmer but an application I designed, as far as i can tell, can be made easily to play on android. Right now the application, an interactive kid game alphabet-learning program is a flash movie. Should I have this ported to html5, or upgrade the flash? I don't have a clue what to do and that is why i signed up. Every post is beyond my learning curve so don't be mad. 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 -- 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: In-app billing for canadian
Hi! I got a Developer account and a merchant account in Spain (same in France). I didn't experienced any issue when I first created it. BTW, my In-app billing works well. I think your issue is located somewhere else. On Saturday, October 13, 2012 6:31:13 PM UTC+2, MathieuB wrote: Hello, I'm a canadian developer working on an android app. It is currently free on the google play store. The strategy for this app, from the beginning, was to someday implement in-app billing. So the user download the free app, goes through a list of items, some free and some not, usual pattern. Today I was beginning to look at implementing in-app billing, when I faced the fact that canadian CANNOT open google merchant account... I was a bit shocked. So i'm looking at alternative now. I know Paypal X have an api, but it seems this is going against google play policies not to use their system. I'm a bit stuck with it. If google cannot allow canadian to use in-app billing, would they allow us to use paypal system for in-app purchase? Developers/publishers not from US or UK, what have you done with your app to sell items in-app? Thank you 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
Re: [android-developers] Re: It seems easy to get rid of a competitor’s app
That is the 1st times I heard about that. There are a lot of similar apps in the Google Play. For example, my todo list app is in the market for a while, but I found there are a lot of similar apps, even some of them are using the same opensource library too. On Mon, Oct 15, 2012 at 2:25 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Sun, Oct 14, 2012 at 12:17 PM, Chris Sarbora top...@gmail.com wrote: Escalate the issue with Google and point out that no legal action has actually been taken, and that they are required to reinstate your material. Follow through and do not relent until it happens or you are served with a court appearance. Then, if I were you, I would find out who is abusing the DMCA takedown and actually file suit against them. You probably have a decent case. Except that the vast vast majority of indie developers have neither the time, legal experience, or money to do this. kris -- 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] Re: Ways that 2 Android phones communicate between each other
Hi, I just want 2 android phone instances to communicate via HTTP protocol. Phone 1 does HTTP Post of a file to phone2, which does some processing and updates file. This has to be again sent to phone1. This process should go on. On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote: Depends on size of what you want to send, and how long the connection should last If its a list you want: SMS Nfc - he needed Bump QR code on screen - QR code scanner Audio Bluetooth Wifi direct Wifi via 'relay' server If its a solution you want, then maybe give us some more information about what you want 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] how to play recorded audio ? using AudioTrack
Here I am posting some sample which works fine with me.. package com.audiotrack; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.nio.BufferUnderflowException; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AudioPlayBackActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button play = (Button) findViewById(R.id.button1); play.setOnClickListener(new OnClickListener() { // @Override public void onClick(View v) { String filePath = /sdcard/voice8K16bitmono_sir.pcm; if (filePath == null) return; // Reading the file.. byte[] byteData = null; File file = null; file = new File(filePath); byteData = new byte[(int) file.length()]; System.out.println(bytedata-- + byteData); FileInputStream in = null; try { in = new FileInputStream(file); in.read(byteData); System.out.println(READING CARD-- + in + --BYTE Data-- + byteData + byteData.length); in.close(); } catch (IOException e) { e.printStackTrace(); } catch (BufferUnderflowException e) { e.printStackTrace(); } int dataSize = byteData.length / 2; short[] shorts = byte2short(byteData); int BufferElements2Play = 1024; // want to play 2048 (2K) since // 2 bytes we use only 1024 int BytesPerElement = 2; // 2 bytes in 16bit format int intSize = android.media.AudioTrack.getMinBufferSize(8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); System.out.println(buffersize -- + intSize); AudioTrack at = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, BufferElements2Play * BytesPerElement, AudioTrack.MODE_STREAM); if (at != null) { int shortLength = shorts.length; int shortLengthOffset2Play = 0; System.out.println(SHORTS Data + shortLength); // Write the byte array to the track at.write(shorts, 0, BufferElements2Play); at.play(); shortLengthOffset2Play += BufferElements2Play; // Wrote 512 // ushorts while (shortLengthOffset2Play shortLength) { try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } // Waiting, Simulating your condition of receiving data // from server... at.write(shorts, shortLengthOffset2Play, BufferElements2Play); // in your case it will 0, numberofShorts(2048) shortLengthOffset2Play += BufferElements2Play; System.out.println(shortlengthoffset --- + shortLengthOffset2Play); // Wrote yet another 512 shorts } } else Log.d(Audio, audio track is not initialised ); } private short[] byte2short(byte[] byteD) { int byteArrsize = byteD.length / 2; short[] shorts = new short[byteArrsize]; for (int i = 0; i byteArrsize; i++) { shorts[i] = (short) (byteD[i * 2] + (byteD[(i * 2) + 1] 8)); } return shorts; } }); } } On Mon, Oct 15, 2012 at 12:36 PM, Asheesh Arya asheesharya...@gmail.comwrote: please refer this link http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ -- 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
[android-developers] hi
-- Thanks Regards Daulat bachhav 9823403093 -- 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] Run the Service continuously even force close the app.
Hi All, I have a requirement that i need to run the service continuously even if the user force close the app. i.e., i am calling a webservice for every 15 mins or half an hour. I used Timer Concept but when i force close the app then service is not calling.. Anybody have idea on these then plz provide any links or samples etc., Thanks and Regards, 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
Re: [android-developers] Run the Service continuously even force close the app.
On Mon, Oct 15, 2012 at 6:49 AM, Seshu s.seshu...@gmail.com wrote: I have a requirement that i need to run the service continuously even if the user force close the app Fortunately, as of Android 3.1, this is not possible. If the user goes into Settings and clicks the Force Close button, nothing of your app will ever run again, until (and unless) the user manually launches an activity or other component of your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- 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: Run the Service continuously even force close the app.
Wat about the lower versions i.e., from Android 1.1 to Android 2.3.4. Will it work??? On Oct 15, 3:57 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 15, 2012 at 6:49 AM, Seshu s.seshu...@gmail.com wrote: I have a requirement that i need to run the service continuously even if the user force close the app Fortunately, as of Android 3.1, this is not possible. If the user goes into Settings and clicks the Force Close button, nothing of your app will ever run again, until (and unless) the user manually launches an activity or other component of your app. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- 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: Button#onClickListener thread unsafe?
Lew is exactly correct. The entire Android UI is completely thread safe, because it runs on a single thread. During execution of your program, you may, from within the code, be able to see a state that is inconsistent. That is only because you are observing that state from a partially processed event. Each new even will observe consistent state. ... but the main point is that you don't need to worry: unless you explicitly start a new thread, looper or asynctask, everything in the UI is on a single thread. It is safe. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.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
[android-developers] Re: In-app billing for canadian
Hi, Ok guys, i'm glad to hear that. I'll try to investigate more and find what is causing the issue. Weird thing is i'm not the only one reporting that problem. I found on other forums that people in Canada receive the message Canada is not supported when trying to register a merchant account. -- 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] Programmatically configure an Android device as Hotspot.
Hi all, Does android SDK provides API to configure an android device as an hotspot? My goal is to configure the hotspot without user interaction. Best Regards -- 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 ad hoc wifi network connection
Hi all, I need to directly connect to a Windows CE device, through wifi connection. This device supports the ad hoc wifi connection, but it seem that android platform doesn't officially supports this kind of connection. I've searched a lot on the network in order to find a way to connect an android device to ad hoc networks, but i've found only solutions which need a rooted. This in not acceptable form me. So my question is simple, is there official android support for adhoc wifi networks? Best Regards Daniele -- 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] View.OnClickListener without default click sound
How to disable the default system click sound when a view is tapped? -- 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] UMS_CONNECTED, deprecated, replacement MIA
The UMS_CONNECTED action is deprecated according to the docs for Intent.java. It says: This constant is deprecated. replaced by android.os.storage.StorageEventListener StorageEventListener doesn't exist as far as I can tell. A user reports it stopped working on a Samsung Note, maybe due to the deprecation. Anyone have any info about this ? Thanks, 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
Re: [android-developers] Android app google maps showing grey tiles and not map!
If you're using the emulator you must remember to choose a Google APIs as a target for your AVD. Marina On Fri, Oct 12, 2012 at 8:11 PM, aek abdelkader.2004...@gmail.com wrote: Hi there, I wrote this snippet of program to illustrate google map example, the pb that happens is tha the google map shows up but empty (only tiles and no map)! any help, here is my pg thanks in advance package com.example.hellogooglemaps; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class HelloMap extends MapActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } -- AndroidManifest.xml manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.hellogooglemaps android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=8 android:targetSdkVersion=15 / uses-permission android:name=android.permission.INTERNET/ uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/ uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/ application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:name=.HelloMap android:label=@string/title_activity_hello_map android:theme=@android:style/Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity uses-library android:name=com.google.android.maps/ /application /manifest - main.xml ?xml version=1.0 encoding=utf-8? com.google.android.maps.MapView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=05C6aWgXBjxkc_6M3fI4H_Gxv7Gy9XucFYKCIaA / - thnk 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 -- 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] Programmatically configure an Android device as Hotspot.
On Mon, Oct 15, 2012 at 9:16 AM, Daniele Santanche daniele.santan...@gmail.com wrote: Does android SDK provides API to configure an android device as an hotspot? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- 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: Ways that 2 Android phones communicate between each other
I think I've said this before, but you probably do _not_ want to use an HTTP stream socket connection, that will be an excellent way to kill the device's battery and most data providers block ports anyway. kris On Mon, Oct 15, 2012 at 5:14 AM, Archana ramalingam.arch...@gmail.com wrote: Hi, I just want 2 android phone instances to communicate via HTTP protocol. Phone 1 does HTTP Post of a file to phone2, which does some processing and updates file. This has to be again sent to phone1. This process should go on. On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote: Depends on size of what you want to send, and how long the connection should last If its a list you want: SMS Nfc - he needed Bump QR code on screen - QR code scanner Audio Bluetooth Wifi direct Wifi via 'relay' server If its a solution you want, then maybe give us some more information about what you want 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 -- 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: Ways that 2 Android phones communicate between each other
But the requirements are to use HTTP. Please let me know if I have to use AIDL/ Binder for this scenario? Any suggestion will be really helpful to me. Thanks in advance! On Monday, October 15, 2012 5:16:19 PM UTC+3, Kristopher Micinski wrote: I think I've said this before, but you probably do _not_ want to use an HTTP stream socket connection, that will be an excellent way to kill the device's battery and most data providers block ports anyway. kris On Mon, Oct 15, 2012 at 5:14 AM, Archana ramalinga...@gmail.comjavascript: wrote: Hi, I just want 2 android phone instances to communicate via HTTP protocol. Phone 1 does HTTP Post of a file to phone2, which does some processing and updates file. This has to be again sent to phone1. This process should go on. On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote: Depends on size of what you want to send, and how long the connection should last If its a list you want: SMS Nfc - he needed Bump QR code on screen - QR code scanner Audio Bluetooth Wifi direct Wifi via 'relay' server If its a solution you want, then maybe give us some more information about what you want 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-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] how capitalized the text after reenter the text in android
Hi , I am using android:inputType=textCapSentences but fist time its comes correctly for typing the sentence but after deleting and reentering the text. that will be display in small letter. if know that reason are solution pls share with me Thanks, Tom -- 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: Galaxy phone to Galaxy Tab
You can transfer them by Bluetooth. Or maybe Wifi Direct. On Sunday, October 14, 2012 7:19:38 PM UTC-5, tman wrote: How can I view / listen the files from the Galaxy phone into the Galaxy Tab wirelessly, I am not sure if there is a app can support while I travelling or in a remote area. -- 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: Does Android cache http-requested data?
To fight the caching, add a random parameter to your URL request. http://blabla.com/page.htm?r=0.251333 etc On Sunday, October 14, 2012 11:30:11 AM UTC-4, Keith Wiley wrote: Thanks for the great feedback on this everyone! -- 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] Get access to manifest.xml before installing the apk
Is it possible to download apks from Google Play without using its official application? yes: http://codekiem.com/2012/02/24/apk-downloader/ 2012/10/15 Foi kaash...@gmail.com Thanks for your answers. And 2 more questions: Does Google Play first download the apk somewhere and then install it? If yes, where does it save the apk and do we need root permission to access to it for getting its manifest? Thanks again On Friday, October 12, 2012 9:57:04 PM UTC+8, MagouyaWare wrote: No. And No. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Tue, Oct 9, 2012 at 3:17 AM, Foi kaas...@gmail.com wrote: Is there any way to retrieve manifest.xml of APKs from Google Play before installing the application? (in the same way that google play application retrieves uses-permissions list?) or Is it possible to download apks from Google Play without using its official application? 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-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 -- 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
[android-developers] Re: Serialization/De-Serialization
Maybe change MODE_PRIVATE to MODE_WORLD_READABLE? On Sunday, October 14, 2012 1:44:21 PM UTC-5, Rajiv Singh wrote: Hi there, I am creating an app to find duplicate files .. i am using ArrayListFile to hold all File Objects. I am creating this arraylist in a service and want to pass this arraylist to another Activity. For this i am serializing the ArrayList to a file :- public void serializeList() { String fname = filelist.bin; //File dir = getDir(DFR, MODE_PRIVATE); try { fos = openFileOutput(fname, MODE_PRIVATE); obs = new ObjectOutputStream(fos); obs.writeObject(sOnlyFiles); obs.flush(); obs.close(); fos.close(); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } i am able to fetch the file from app's private directory in the onCreate() method of my ListActivity :- protected void onCreate(Bundle savedInstanceState) { stopService(new Intent(this, BgService.class)); //deserializeList(); // i am fetching all the files from the app's local directory and this is executing successfully File file[] = getFilesDir().listFiles(); for(int i=0;ifile.length;i++){ Toast.makeText(getApplicationContext(), file[i].getName()+ +file[i].length(), 2000).show(); } //stopService(new Intent(this, BgService.class)); //setListAdapter(new OnlyFilesAdapter()); //Bundle filelist = getIntent().getExtras(); super.onCreate(savedInstanceState); } i am deserializing to get back the ArrayList and feeding that to BaseAdapter for displaying the result in ListActivity:- public void deserializeList(){ Object tolist =null; String filename = filelist.bin; //File dir = getDir(DFR, getApplicationContext().MODE_PRIVATE); try { fis = openFileInput(filename); /*** here i am getting error***/ if(fis!=null){ obs = new ObjectInputStream(fis); tolist = obs.readObject(); @SuppressWarnings(unchecked) ArrayListFile tolist2 = (ArrayListFile)tolist; ListoFiles = tolist2; obs.close(); fis.close(); Toast.makeText(getApplicationContext(), ListoFiles.size(), 5000).show(); }else Toast.makeText(getApplicationContext(), file not available, 2000).show(); } catch (Exception e) { } on deSerializing i am getting following error :- java.lang.RuntimeException: Unable to start activity ComponentInfo{my.com.filebrowser/my.com.filebrowser.AllFiles}: android.content.res.Resources$NotFoundException: String resource ID #0x7e5 please help me getting out of this ... 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] Re: Does Android cache http-requested data?
If you really need to avoid caching, there is always java.net.Socket. On Sunday, October 14, 2012 2:58:55 AM UTC-5, Keith Wiley wrote: Does Android cache http-requested data? I keep a small text file with various app-settings on my webserver. When my app launches, it sends an http request to my webserver to grab the text file and retrieve the settings. This enables me to update the settings of an app installed on a phone in the field from the server. The problem is, when I update the text file on the server, I usually don't see an immediate change in the text file retrieved by my app. It can take hours for the change to show up in my app's http requests. I know that the problem is not merely one of the file updating through various buffers/caches on the webserver because I can see the new version of the file if I load the same URL in a web browser...including a web browser on the exact same Android device I am running my app on...so a web browser (even one on the phone itself) sees the updated file immediately after I change it, but my app doesn't see it for several hours. It feels like Android is caching previous http request results and returning those to apps that make repeated requests instead of reloading the URLs from the web...and it takes a very long time to label this presumed cache as stale and reload the file from the server...several hours. On a side note, I have tried killing the app to make sure it's totally gone. I have even tried rebooting the phone and yet the problem still persists...which is mind-boggling. I am quite flummoxed. I am aware that Android is requesting and receiving a GZipInputStream, and I can see the input stream's type in the debugger, but that seems irrelevant to my issue. Here's how I pull the text file from the web server into my app. Any ideas why a browser on the same device successfully retrieves the updated file and my code doesn't? String address = http://URL_of_text_file_on_my_webserver.txt;; URL url = new URL(address); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStream is = (InputStream) conn.getContent(); Reader reader = new InputStreamReader(is, UTF-8); StringWriter writer = new StringWriter(); char[] buffer = new char[1024]; for (int length = 0; (length = reader.read(buffer)) 0;) writer.write(buffer, 0, length); is.close(); reader.close(); writer.close(); String fileStr = writer.toString(); 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] Re: Android ad hoc wifi network connection
Yes, it's called Wi-Fi Direct™. http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html On Monday, October 15, 2012 8:44:50 AM UTC-5, Daniele Santanche wrote: Hi all, I need to directly connect to a Windows CE device, through wifi connection. This device supports the ad hoc wifi connection, but it seem that android platform doesn't officially supports this kind of connection. I've searched a lot on the network in order to find a way to connect an android device to ad hoc networks, but i've found only solutions which need a rooted. This in not acceptable form me. So my question is simple, is there official android support for adhoc wifi networks? Best Regards Daniele -- 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] size in inches
On Thu, Oct 11, 2012 at 5:36 PM, bob b...@coolfone.comze.com wrote: I'm trying to make a routine that gets the width and height of a device in inches: Here's what I came up with: public void get_display_size() { DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); float width_in = metrics.widthPixels / metrics.xdpi; float height_in = metrics.heightPixels / metrics.ydpi; } Does this look good? Yes, looks good, just keep in mind that some devices report incorrect values in xdpi ydpi. -- 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: RDP for Android
You could start with the open source client at rdesktop.org or the Java version properJavaRDP. Brad Justice On Friday, October 12, 2012 12:36:06 AM UTC-7, Nirav Parmar wrote: Hello everyone, I need to develop an app for remote desktop connection..searched a little about that but didn't found any good explanation or example.. Can anyone suggest a good staring point or some example which can guide ?? Thanks Regards, Nirav -- 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: RDP for Android
You could always look at the source to VNC. Mainly, what you will be doing is constantly sending a screen capture back to the client. To minimize bandwidth, you will probably only send what has changed. So, you will calculate the smallest rectangle that encompasses all changes and send that screen data as a compressed bitmap. On Friday, October 12, 2012 2:36:06 AM UTC-5, Nirav Parmar wrote: Hello everyone, I need to develop an app for remote desktop connection..searched a little about that but didn't found any good explanation or example.. Can anyone suggest a good staring point or some example which can guide ?? Thanks Regards, Nirav -- 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: In-app billing for canadian
Finally, it seems I was wrong and i'm really happy to notice it! I was registered as a developer on our dev console but wasn't the admin. When I was trying to register the google checkout account, I was going directly to checkout.google.com and it said Canada wasn't supported. Today I try with the admin account and there were the option in the dev console to open the account and everything works! :) Thank you for your help 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
Re: [android-developers] Re: Ways that 2 Android phones communicate between each other
AIDL has nothing to do with this, other than the fact that it is also sending information across a kernel barrier, but otherwise completely unrelated. Why are your requirements to use HTTP? Is this for a class? If so, then read any of the hundreds of network programming in Java tutorials on the internet, it is literally no different in Android, except that you will probably do it in a service. kris On Mon, Oct 15, 2012 at 10:19 AM, Archana ramalingam.arch...@gmail.com wrote: But the requirements are to use HTTP. Please let me know if I have to use AIDL/ Binder for this scenario? Any suggestion will be really helpful to me. Thanks in advance! On Monday, October 15, 2012 5:16:19 PM UTC+3, Kristopher Micinski wrote: I think I've said this before, but you probably do _not_ want to use an HTTP stream socket connection, that will be an excellent way to kill the device's battery and most data providers block ports anyway. kris On Mon, Oct 15, 2012 at 5:14 AM, Archana ramalinga...@gmail.com wrote: Hi, I just want 2 android phone instances to communicate via HTTP protocol. Phone 1 does HTTP Post of a file to phone2, which does some processing and updates file. This has to be again sent to phone1. This process should go on. On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote: Depends on size of what you want to send, and how long the connection should last If its a list you want: SMS Nfc - he needed Bump QR code on screen - QR code scanner Audio Bluetooth Wifi direct Wifi via 'relay' server If its a solution you want, then maybe give us some more information about what you want 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-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=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 -- 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] TextureView saving
Anyone know if there is a way to save the contents of a TextureView to a JPEG on the SD card? -- 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: Custom notification with a button: the notification bar stays open when clicking on it (on 4.0)
If somebody from the Android team could chime in, I would greatly appreciate it! :) Thanks for your help! -- BoD On Friday, October 12, 2012 4:14:17 PM UTC+2, BoD wrote: Hi! I am working on an app that shows a notification that uses a custom layout (notification.contentView = remoteViews), that contains a button. First of all, I am aware that there are new APIs to do this in 4.1 but my app has to work on 4.0. I want the button to start an activity so I do this: Intent clickIntent = new Intent(this, MyActivity.class); clickIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); contentView.setOnClickPendingIntent(R.id.button, PendingIntent.getActivity(this, 0, clickIntent, PendingIntent.FLAG_CANCEL_CURRENT)); This works as intended, but my problem is: - On a 4.1 Galaxy Nexus, when clicking on the button, the notification bar collapses, thus the newly displayed activity is visible to the user (the behavior I want!) - On a 4.0 emulator, when clicking on the button, the notification bar stays open, thus the newly displayed activity is not visible to the user Does anybody know if there is a way to control this, so the bar will also close on 4.0? Thanks a lot, -- BoD -- 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] TextureView saving
Short answer: TextureView.getBitmap() :) On Mon, Oct 15, 2012 at 11:29 AM, bob b...@coolfone.comze.com wrote: Anyone know if there is a way to save the contents of a TextureView to a JPEG on the SD card? -- 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 -- Romain Guy Android framework engineer romain...@android.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
[android-developers] Display different content via HDML
Hi: Do you know how to enable HDMI and disable HDMI content in Android 4.1.1 (XOOM deivce)? Also how to change display content via HDMI (i.e. using docking instead of mirroring)? Thanks Fan -- 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: Jagged array's objects in the ListView
Searched online, heaps of info on how to convert an array list to an array, but not vice versa. All you are wanting to do is convert an array to an array-list? Loop over the array and call add... Also, this is not specific to Android... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Oct 14, 2012 at 9:48 PM, Jonathan S xfsuno...@gmail.com wrote: ArrayAdapter On Sunday, October 14, 2012 5:58:55 PM UTC-4, solnichko wrote: Hi Dhruv, This is not what I am asking. I am trying to convert a jagged array returned by a web service into an (2D)array list to be displayed in a list view(Android). Searched online, heaps of info on how to convert an array list to an array, but not vice versa. I am not sure if this is possible to use 2D array list for the listView. -- 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] Re: Jagged array's objects in the ListView
MagouyaWare wrote: Searched online, heaps of info on how to convert an array list to an array, but not vice versa. All you are wanting to do is convert an array to an array-list? Loop over the array and call add... Also, this is not specific to Android... http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T...) However, this does not promise an 'ArrayList' return type and the list cannot grow. -- 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
Re: [android-developers] Re: Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps
I'm experiencing the same issues...did you manage to find any solution? Thanks! On Wed, Aug 15, 2012 at 9:17 PM, Bikram Agarwal vicky.codemas...@gmail.comwrote: FYI, these are my installed ADK packages - https://lh3.googleusercontent.com/-j1BMiwFXarg/UCv1rc26mkI/ONo/UWH8XBZccUU/s1600/package.jpg -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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] Android app google maps showing grey tiles and not map!
And remember you need to register your app in googlemap Service for your debug and your prod keystore. The debug keystore is under #user/android/debug.keystore or something like that. -- 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] You have another application on Google Play with the same package name. Go to that other application, and click upgrade.
I am getting this message: You have another application on Google Play with the same package name (com.otl.AndroidRemoteApp). Go to that other application, and click upgrade. The only thing i see though is my existing applicaion with status unpublished. Where is this upgrade option at? -- 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 Play: Is it allowed to link from inside an app published on Google Play to another android market?
Google Play only provides for credit card payments and only in selected countries. Payment by Paypal or bank transfer is not supported at all. While this is OK for apps sold in the USA, where credit cards are widely used, it is not nice for european countries where the majority of people do not have credit cards or refrain from using credit cards online. Let's say I have a free version of an app and a pay version of the same app. Now the free version provides a link to the paid version on Google Play, so that user can easily upgrade. Is it permitted to provide the user the choice of selecting if he wants buy the paid version on Google Play by credit card or if he wants to buy the paid version by PayPal or bank transfer at an alternative android market place, for example AndroidPIT ? -- 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: Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps
On Tue, Oct 16, 2012 at 6:07 AM, YuviDroid yuvidr...@gmail.com wrote: I'm experiencing the same issues...did you manage to find any solution? Fix your apps to support Jelly Bean properly. Even on JB, APK resources are public and you can read them if you use the proper path or APIs. You can simulate 'app encryption' (forward locking) by installing using adb instal -l myapp.apk for testing. -- 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] Getting to SharedPreferences from CustomListAdapter
I have a custom list view adapter *public* *class* CustomListAdapter *extends* ArrayAdapterString that I use to modify list view cells. Now I have the need to modify some cells' content based on a global variable from the SharedPreferences. However, the adapter tells me it doesn't understand getApplication() so SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplication()); doesn't work. How else am I supposed to get the application context ? via a static variable in the application singleton? -- 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] softInput and Android 2.3
I have been working on the soft keyboard used in our apps. The general idea is this -- create an EditText over a certain area of the screen, then requestFocus() on it. In the onFocusChange() callback the actual call to showSoftInput() is made. The keyboard appearance is standardized by subclassing EditText, with the only goal -- to override onCreateInputConnection() and set .imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI. This works decent in 3.0+ (some hickups related to onStop/onStart cycles, but otherwise ok), however in 2.3 this approach displays absolutely bizarre behavior. The first time the EditText is created, I get no keyboard (I do get focus to the EditText however, and can back out with the back button). The EditText region does not react to touches either (the first time around). *However*, if this routine is repeated -- a new EditText with identical parameters, everything works as expected! I have tried every possible combination of various forms of showSoftInput, toggleSoftInput, tried clearing focus before requesting it, tried doing all these things with delays introduced, tried setting WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE flags, so on and so forth -- basically every approach I could google. I am happy to say, that I finally arrived at a solution, but why it works as it does is beyond me. *I was hoping that some of you could shed some light on this.* My other goal is to get this 'fix' into the wild, as I am sure others can benefit from it, based on the amount of unanswered questions re: showing soft keyboard on stackoverflow and elsewhere. The secret sauce is in the onFocusChange callback, so I will only list this part of the code in the interest of brevity. Upon examining the code fragment below, you will notice that simply showing-then-hiding the keyboard gets rid of the bizarre behavior, and does not seem to affect functionality otherwise (as far as I can tell). Note that doing only the show or only the hide does not have the desired effect (ie, problem remains). Only doing the pair back-to-back restores desired functionality. My wild guess is that it may have something to do with the window's focus (as opposed to the EditText's). Any thoughts on this matter are welcome. @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { // -- THIS IS THE SECRET mInpMgr.showSoftInput(mKeyboardTriggerView, InputMethodManager.SHOW_FORCED); mInpMgr.hideSoftInputFromWindow(mKeyboardTriggerView.getWindowToken(), 0); // -- need to delay, otherwise doesn't show up when doing start/stop cycles mKeyboardTriggerView.postDelayed(new Runnable() { @Override public void run() { mInpMgr.showSoftInput(mKeyboardTriggerView, InputMethodManager.SHOW_FORCED); } },150); } else { mInpMgr.hideSoftInputFromWindow(mKeyboardTriggerView.getWindowToken(), 0); } } - -- 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: Accelerometer use (G's and frequency)
Did you get a reply on any of these questions? I'm interested too. BTW, I don't think is would be probably to get more than 3Gs as for example the accelerometer of the Samsung Galaxy S2 can detect a maximum of 19m/s^2 which is approx 3.3Gs Best Regards. Guillermo. El lunes, 23 de julio de 2012 14:35:28 UTC-3, JAM escribió: Hello all. Hope someone can help. 1) Is there a way to have a program read higher than 1-2gs? I had a beta version built and it doesn't seem to have the ability to read more than 1g on some of the phones I've tested it on. 2) Is there a way to get the phone to receive more samples than the 20-40ms it seems to do when set to fastest? I need a more accurate profile of the accelerometer output than I'm getting. 3) If I gave someone a specific profile of something I'd like the accelerometer to find (a spike that gets above 2g and stays there for a duration of 5ms or longer -- like a golf swing), could it be programed to see such an incident consistantly? -- 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: Accelerometer range
Hi, the link is broken, is it possible to share its content? BTW, I own a Samsung Galaxy S2 and the highest G I can get is 3.3, is there any possibility to get higer Gs? Thanks in advance. Guillermo. El viernes, 10 de junio de 2011 16:33:24 UTC-3, Ted escribió: I am writing an app that uses accelerometer. After some testings I noticed that the range of values that the app shows is -2g to 2g. http://www.bosch-sensortec.com/content/ ... Rev1.3.pdf states that the range can be switched. How do I switch it to 4g? -- 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