[android-developers] Re: Audio Transmission over Bluetooth.
Hi, I'm using two methods to send audio to bluetooth headset: 1) Thread thread = new Thread() { public boolean recording; public int frequency; @Override public void run() { Log.i(Audio, Running Audio Thread); AudioRecord recorder = null; AudioTrack track = null; short buffer[] = new short[160]; /* * Initialize buffer to hold continuously recorded audio data, start recording, and start * playback. */ try { int N = AudioRecord.getMinBufferSize(8000,AudioFormat.CHANNEL_IN_MONO,AudioFormat.ENCODING_PCM_16BIT); recorder = new AudioRecord(AudioSource.MIC, 8000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, N); track = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, N, AudioTrack.MODE_STREAM); recorder.startRecording(); track.play(); /* * Loops until something outside of this thread stops it. * Reads the data from the recorder and writes it to the audio track for playback. */ while(!stopped) { Log.i(Map, Writing new data to buffer); N = recorder.read(buffer,0,buffer.length); track.write(buffer, 0, buffer.length); } } catch(Throwable x) { Log.w(Audio, Error reading voice audio, x); } /* * Frees the thread's resources after the loop completes so that it can be run again */ finally { recorder.stop(); recorder.release(); track.stop(); track.release(); } } }; thread.start(); 2) Using two threads to read and play data simultaneously: class RecordThread implements Runnable { Thread runner; AudioRecord recorder; int N; short buffer[]; public RecordThread(int N) { recorder = new AudioRecord(AudioSource.MIC, 8000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, N); recorder.startRecording(); runner = new Thread(this); Log.v(mictmp, Audio started); runner.start(); // (2) Start the thread. } public void run() { N = recorder.read(SharedMemory.buffer,0,SharedMemory.buffer.length); } } class TrackThread implements Runnable { Thread runner; AudioTrack track; int N; short buffer[]; public TrackThread(int N) { track = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, N, AudioTrack.MODE_STREAM); track.play(); runner = new Thread(this); Log.v(mictmp, Track started); runner.start(); // (2) Start the thread. } public void run() { track.write(SharedMemory.buffer,0,SharedMemory.buffer.length); } } public class mictmp extends Activity { /** Called when the activity is first created. */ private boolean stopped = false; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { int N = AudioRecord.getMinBufferSize(8000,AudioFormat.CHANNEL_IN_MONO,AudioFormat.ENCODING_PCM_16BIT); SharedMemory m = new SharedMemory(); RecordThread rt = new RecordThread(N); rt.run(); TrackThread tt = new TrackThread(N); tt.run(); } catch(Throwable x) { Log.w(Audio, Error reading voice audio, x); } } But in both the cases there is a delay of about 0.5-1 second. Can someone help me figure out the reason or suggest me how to reduce this delay? Aditya Singal On Nov 8, 7:00 pm, Aditya Singal adityasingal...@gmail.com wrote: Hi, I wish to know howAudiodata is transmittedoverBluetoothchannel. What I mean to ask is, if I have a stream of bytes ofaudiodata, what kind of conversion or encoding is required before transmission. Aditya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email
[android-developers] Re: debug send_sms permission
During development for debugging/testing purposes you can also send SMS messages to another emulator and see the message on the other emulator. Just start another emulator instance, look at the top left corner of its window to see its port number, and send SMS messages to that port number. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- 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: Action Bar
Thanks all for the speedy responses (he says rather cloyingly in the hope that such help continues!) In a similar I have tried the app in a Ice Cream Sandwich Normal emulator. I presume that there will be eventually such a device. The same problem exists here in that with Holo theme there is no access to menu. What is the best practice for support of such devices? Regards Roy On Nov 21, 7:45 am, Zsolt Vasvari zvasv...@gmail.com wrote: I ran into the same problem, but not until 3.2 as Mark is saying. I believe the first (and only?) Large 3.2 device is the Galaxy Tablet 7 Plus. There have been many other 7 tablets, but they were running Gingerbread or earlier. On Nov 21, 5:28 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Nov 20, 2011 at 4:24 PM, Royston roystonpcar...@gmail.com wrote: It appears you are correct. If i run up a large emulator at 3.2 I get the menu option but not at 3.1 or 3.0. I am not quite sure what one should do to manage this situation. If there exists a 3.1 or 3.0 Large device, there would be no access to menus. Any advice on how to deal with this would be much appreciated. There are no 3.0/3.1 -large devices. The ~7 tablet size was not supported until Android 3.2. -- 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 3.6 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] Creating a test project
I have read this writing my own build driver and cannot find anything beyond it creates a test project which i need one Is it really a test project or does it just put together a rather normal project so that I have something to work with ?.. and while we are at it: I have run android list targets == my build target (8) shows up I wish to run android create avd -n name -t targetID from a build-driver I am writing myself feeding a Java OutputStream to the build process If you do this from the command line you get Do you wish to create a custom hardware profile (default is no) so if I am driving from code can I just ship a \n ? I got the Available Android targets: from android this way writing to a file which will soon become a console I wrote myself so it works I just dont want to hang something and have to crtl-c out of a hung proc leaving a partial run -- 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] HD Displays and JavaBinder: !!! FAILED BINDER TRANSACTION !!!
Hello, my app Make Your Clock Widget (https://market.android.com/details? id=net.hubalek.android.makeyourclock.pro) is generating widget content as custom drawn bitmap. As you probably know there is (not specified in documentation but existing) limit on size of bitmap sent via RemoteViews. It was possible to live with it (I just didn't allow bigger widgets) but with HD displays this stops working as even 4x2 widget contains too big bitmap as 294 wide * 146 high * 1.6^2 (density of SGS display) was bellow limit but 294 * 146 * 1.97^2 (density of Galaxy Nexus) is above limit. There exist following workarounds but I'm not happy with them: 1) Create bitmap with Config.ARGB_?This causes banding for gradients and also antialiasing does not look superior. And also Config.ARGB_ is deprecated. 2) Generate bitmap in lower resolution and let layout upscale bitmap to appropriate size? This counteracts to idea of HD displays that should provide superior graphics quality 3) Created content provider that provides bitmap for RemoveViews bitmap and use method setImageViewUri()? BTW: Splitting bitmap into multiple chunks does now work as undocumented limit is for whole RemoteView update. So my questions/conclusions: 1) What Google recommends to do? - Don't allow smaller widgets than 4x2 for HD displays? - Render them in poor quality? - Use content provider? 2) I'm really unhappy with widgets API and behavior Why widget behavior didn't change since Android 1.5 when there was single core/MDPI only devices. It reminds me Bill Gate's 640 kB or RAM is enough :-/ Why I don't get any Exception when something fails? Why there is only LogCat message that can't be handled correctly? Why there is not meaningful documentation about setImageBitmap() method limitations in JavaDoc? 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] how to decompose .apk file
dear friends please tell me how to decompose .apk file. i want to read .java or class file from apk -- 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 decompose .apk file
To decompose an apk, do the following: Open it in notepad or any other plain, basic text editor. Print out all of the weird characters on several sheets of paper. Bury all the paper. Check back in 2 weeks and Voila! You have a decomposed apk. Seriously, I think you want to decompile it, which is usually done for not-very-honorable things. So before I go any further, why do you want to access someone else's code? Thanks On Mon, Nov 21, 2011 at 4:38 PM, arshi arshikha...@gmail.com wrote: dear friends please tell me how to decompose .apk file. i want to read .java or class file from apk -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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] USB Adapter For Samsung Tab 10.1 Running Ginger-bread !
HI, Has Any one gone through this post : http://androidcommunity.com/samsung-galaxy-tab-10-1-usb-adapter-for-all-your-usb-hosting-needs-20110615/ My Question is has any one tried using this adapter and can we plug-in any USB device (Pen Drive, Card Reader, etc )via this adapter. I tried it on Samsung Galaxy Tab(Running Ginger Bread) but the USB device is not getting powered up(no light on connection) , may be because it has Gingerbread and it has no support for USB devices but IN HoneyComb support it is there and I may see the USB device Powered UP if I use the HoneyComb Tablet. Any comments, Rgds, Saurabh ..pain is temporary.quitting lasts forever.. -- 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 decompose .apk file
I think you meant *extracting *it so that you could see its contents,Unzip or unrar it using Win Zip , you will be on your way then ; ! Cheers !! Saurabh ..pain is temporary.quitting lasts forever.. On Mon, Nov 21, 2011 at 4:46 PM, Raghav Sood raghavs...@androidactivist.org wrote: To decompose an apk, do the following: Open it in notepad or any other plain, basic text editor. Print out all of the weird characters on several sheets of paper. Bury all the paper. Check back in 2 weeks and Voila! You have a decomposed apk. Seriously, I think you want to decompile it, which is usually done for not-very-honorable things. So before I go any further, why do you want to access someone else's code? Thanks On Mon, Nov 21, 2011 at 4:38 PM, arshi arshikha...@gmail.com wrote: dear friends please tell me how to decompose .apk file. i want to read .java or class file from apk -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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: Auto-rotate screen flag
On 17 ??, 21:56, viktor victor.scherb...@gmail.com wrote: On Sun, Nov 20, 2011 at 06:13:02AM -0800, viktor wrote: Is it possible to check ifAuto-rotatescreen is aloved? Any solutions? Yes. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W The iPad is a status symbol for yuppies. The Android is for people who actually want something that works. Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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 database problem while refering .sql file
use yourdatabase.execSQL(); -- 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 give the user the possibility to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically?
i need to add a functionality on my app to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically. I tested this way: public void share() { Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType(text/plain); shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, menu share subject); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, menu share body); startActivity(Intent.createChooser(shareIntent, menu share intent)); } But this way haves some problems: - It leaves you to select Bluetooth (and i dont want it) - Facebook app is not being launched, instead of it it's opened the navigator and facebook website (this is a huge problem) Can someone give me a solution please? -- 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 disable discrete zoom level in android google maps?
Android google maps sdk approximate zoom level to discrete values. I mean that i cannot set it to 13.33 it will convert it to 13. However Google Android Maps application doesn't do it. How they achieved 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] Re: How to disable discrete zoom level in android google maps?
the concept of zoom levels is long gone. Nowadays you set map regions. Nevertheless, keep in mind that the Maps API uses raster map tiles. Google probably can't be arsed to render the tiles on the fly, and instead just serve you with whatever they have available prerendered - hence the discrete outcome. The Google Maps app uses vector data and renders on the device. Big difference. -- 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: second call to setListAdapter() ignored
On Mon, Nov 21, 2011 at 2:43 AM, Kostya Vasilyev kmans...@gmail.com wrote: It seems that the only way to rebuild the fast scroll section data is to toggle fast scrolling off and on again. Agreed. setFastScrollEnabled(false) would get rid of the existing FastScroller object; setFastScrollEnabled(true) should create a fresh one. I've added this thread to a nearly two-year-old issue on this: http://code.google.com/p/android/issues/detail?id=6542 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: How to set WebView to follow 302 redirects
On Mon, Nov 21, 2011 at 1:44 AM, DoubleCheese dennis.ang...@gmail.com wrote: Some more additional info: When I use a URLConnection to GET the request it, works and follows the redirect properly. What I do next is to use this reponse and load the html to the web view using webView.loadDataWithBaseURL() - in here I set the baseUrl to the host I expect. I also tried to set the following: webSettings.setJavaScriptEnabled(true); webSettings.setJavaScriptCanOpenWindowsAutomatically(true); As it seems the pages I load uses javascript to change the window.location, but when this happens, it doesn't seem to go through the WebViewClient. Yes, that's a known limitation (albeit undocumented, the last I looked). Standard links and server redirects trigger shouldOverrideUrlLoading(); window.location does not. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: Action Bar
On Mon, Nov 21, 2011 at 5:29 AM, Royston roystonpcar...@gmail.com wrote: In a similar I have tried the app in a Ice Cream Sandwich Normal emulator. I presume that there will be eventually such a device. The same problem exists here in that with Holo theme there is no access to menu. What is the best practice for support of such devices? Quoting the documentation: Beginning with Android 4.0, you'll notice that handsets no longer require a Menu hardware button. However, there's no need for you to worry about this if your existing application provides an options menu and expects there to be a Menu button. To ensure that existing apps continue to work as they expect, the system provides an on-screen Menu button for apps that were designed for older versions of Android. For the best user experience, new and updated apps should instead use the ActionBar to provide access to menu items and set targetSdkVersion to 14 to take advantage of the latest framework default behaviors. http://developer.android.com/sdk/android-4.0.html I presume that the MENU soft button will be in the navigation bar on handsets that lack off-screen MENU buttons. This will become clearer once I get my grubby little hands on the Galaxy Nexus. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 builtin listview widget and fixed headers
On Mon, Nov 21, 2011 at 1:19 AM, Dav sweetcha...@gmail.com wrote: I was trying to go through the code of android listview . core/java/ android/widget/HeaderViewListAdapter.java core/java/android/widget/ ListView.java Its bit difficult to figure out how exactly the items go below the header when you are scrolling,how exactly the headerview remains fixed . Can anyone give a brief explanation of it ? The header view does not remain fixed. The header view is simply a row of the list that is not supplied by your adapter, appearing above all other rows. I am trying to build fixed headers both vertically and horizontally for a custom listview. ListView does not scroll horizontally. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: second call to setListAdapter() ignored
It does rebuild the list, but if the user is interacting with the fast scroll thumb-control-whatchacallit at the time, that interaction will be reset, and a new touch down event will be required to start tracking again. I'm yet to try this helper class instead: http://code.google.com/p/apps-for-android/source/browse/trunk/RingsExtended/src/com/example/android/rings_extended/FastScrollView.java However, a wrinkle here is that the drawable for the thumb would need to be copied into the project, as it's not a public resource potentially causing UI style mismatch on some devices (e.g. my HTC Incredible S with 2.3.3 uses the image from an earlier version of Android). -- Kostya 2011/11/21 Mark Murphy mmur...@commonsware.com: On Mon, Nov 21, 2011 at 2:43 AM, Kostya Vasilyev kmans...@gmail.com wrote: It seems that the only way to rebuild the fast scroll section data is to toggle fast scrolling off and on again. Agreed. setFastScrollEnabled(false) would get rid of the existing FastScroller object; setFastScrollEnabled(true) should create a fresh one. I've added this thread to a nearly two-year-old issue on this: http://code.google.com/p/android/issues/detail?id=6542 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] No AVDs from Emulator since last update
I have run into emulator-arm.exe errors on occasion, in one facility where I teach, where they have XP dual-booting on an iMac. The problem occasionally morphs. Last week, the workaround seemed to be to launch the emulator with Wipe Data checked. Of course, it's entirely possible, perhaps likely, that the source of your difficulty is different. If you have not done so already, post this information (including the dumps) to b.android.com. On Mon, Nov 21, 2011 at 12:39 AM, gus a27...@gmail.com wrote: I can no longer get any avds to launch. I can create them, but they will not start (from targets 2.2 up to 4.0) I am running Windows XP and have the latest updates for eclipse and android addons. Problems occurred after updates for both eclipse and android were installed 3 weeks ago (approx Oct 26th, 2011) Now I cannot get avds to load. I have installed and uninstalled the avds. I have run the emulator from the command line. I have re-installed sdk tools 15 I have installed latest android and eclipse updates today (Nov21st, 2011) All to no avail. The error is ALWAYS the same and the debugger ALWAYS flags the SAME offset (see below). I have looked through, and tried, all the 'helps' that I can find including no snapshot, different resolutions, etc, etc, etc. I would have hoped the latest updates would fix it - - but I have now been without an avd for more than 3 weeks and it is seriously restricting my work. Please - Can Anyone Help?!? Details of problem: 1. Black Screen pops up, titled: SDL_app 2. then error message: emulator-arm.exe has encountered a problem and needs to close. We are sorry for the inconvenience. 3. and clicking 'further details' gives: AppName: emulator-arm.exe AppVer: 0.0.0.0 ModName: emulator-arm.exe ModVer: 0.0.0.0 Offset: 00078334 4. and clicking debug gives: C++ debugger unhandled exception in emulator-arm.exe: 0xC005: Access Violation 7C901230 int 3 7C901231 ret 7C901232 mov edi,edi 7C901234 nop 7C901235 nop . . 00478327 mov cl,byte ptr [ebp+8] 0047832A shl ebx,cl 0047832C jmp 0047837D 0047832E ??? 0047832F nop 00478330 mov edx,dword ptr [esp+24h] 00478334 mov eax,dword ptr [edx] 00478336 mov ecx,dword ptr [ebp+10h] 00478339 mov ebx,dword ptr [ebp+14h] 0047833C and ecx,eax 0047833E mov edi,eax 00478340 mov dword ptr [esp+4Ch],ecx 00478344 xor ecx,ecx -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: second call to setListAdapter() ignored
On Mon, Nov 21, 2011 at 8:04 AM, Kostya Vasilyev kmans...@gmail.com wrote: It does rebuild the list, but if the user is interacting with the fast scroll thumb-control-whatchacallit at the time, that interaction will be reset, and a new touch down event will be required to start tracking again. Not surprising, but still unfortunate. Depending on when the data is being replaced, though, this may be less of an issue, just due to app flow -- the user might naturally not be touching the ListView at that moment. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 reference to service
I'm trying to write a simple service that will poll RSS data from an RSS feed on start up. However, the RSS data isn't needed until a specific activity in my app is started. I have the service written and it is started via the main activity. I'm wondering how to obtain a reference to that service. I know startService() will return a ContextName of the service if it is already started. Can I somehow create a service object from that? Or do I have to go through the trouble of creating message handlers and do a request-response type of setup between my service and activity? I also toyed with the idea of creating a singleton object and just initializing it on start up but I'm very much opposed to the idea of singletons in general. That would be the lazy way out :p If I am thinking to much into it and there is a simpler way to accomplish this please let me know. 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: How to disable discrete zoom level in android google maps?
So Google provides legacy api to developers. Why google won't adopt same technique for sdk. =\ -- 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 can implement double tap zoom in gesture, and two-fingers tap zoom out gesture?
How can implement double tap zoom in gesture, and two-fingers tap zoom out gesture? This gestures works in Google Maps Application. They are by default available in IPhone SDK. -- 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: No AVDs from Emulator since last update
Thanks Mark, I have tried 'wipe data' (along with other things) - nothing has helped so far. I will send it to b.android.com as you suggested. Regards, Gus (Like your book by the way!) -- 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] Does Google has any plan to release vector based google maps for android SDK?
Does Google has any plan to release vector-based google maps for android SDK? They have release vector-based google map application for Android long ago, but api is still based on image tiles. -- 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 can implement double tap zoom in gesture, and two-fingers tap zoom out gesture?
On Mon, Nov 21, 2011 at 7:15 AM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: How can implement double tap zoom in gesture, and two-fingers tap zoom out gesture? Go to the documentation, at the top right search bar put in gesture. See where that takes you. If you still need help, Google Android Gesture tutorial or some such. See where that takes you. If you still need help, come back, explain what you have tried, what doesn't work, and what specifically you need help with. Good luck. - 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] How can implement double tap zoom in gesture, and two-fingers tap zoom out gesture?
On Mon, Nov 21, 2011 at 8:15 AM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: How can implement double tap zoom in gesture, and two-fingers tap zoom out gesture? This gestures works in Google Maps Application. They are by default available in IPhone SDK. Double-tap has no intrinsic meaning in Android. Try GestureDetector and see if it supports double-tap. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Does Google has any plan to release vector based google maps for android SDK?
On Mon, Nov 21, 2011 at 8:23 AM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: Does Google has any plan to release vector-based google maps for android SDK? Even if they did, such plans are not public knowledge. You will find out when it ships, as will the rest of us. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Getting reference to service
bindService http://developer.android.com/guide/topics/fundamentals/bound-services.html 2011/11/21 mgolds02 mgold...@gmail.com: I'm trying to write a simple service that will poll RSS data from an RSS feed on start up. However, the RSS data isn't needed until a specific activity in my app is started. I have the service written and it is started via the main activity. I'm wondering how to obtain a reference to that service. I know startService() will return a ContextName of the service if it is already started. Can I somehow create a service object from that? Or do I have to go through the trouble of creating message handlers and do a request-response type of setup between my service and activity? I also toyed with the idea of creating a singleton object and just initializing it on start up but I'm very much opposed to the idea of singletons in general. That would be the lazy way out :p If I am thinking to much into it and there is a simpler way to accomplish this please let me know. 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] Re: Is the ICS emulator calendar sync broken?
Read some about. Immadiately u have an option for , im not , never interested this shiet Dnia 21 lis 2011 o godz. 05:14 GJTorikian gjtorik...@gmail.com napisał(a): And how would I go about adding contacts, to test viewing/manipulating contact data? There doesn't seem to be a way to do that. On Nov 20, 7:13 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this has been discussed extensively. You cannot use a Google account for syncing calendars on the emulator. You can use an Exchange account, though, with a gmail address and a blank domain. On Nov 21, 11:01 am, GJTorikian gjtorik...@gmail.com wrote: I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on. -- 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: Is the ICS emulator calendar sync broken?
Ahaha try it out Dnia 21 lis 2011 o godz. 04:13 Zsolt Vasvari zvasv...@gmail.com napisał(a): Yes, this has been discussed extensively. You cannot use a Google account for syncing calendars on the emulator. You can use an Exchange account, though, with a gmail address and a blank domain. On Nov 21, 11:01 am, GJTorikian gjtorik...@gmail.com wrote: I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on. -- 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: Is the ICS emulator calendar sync broken?
And i thought he asked for both :D Dnia 21 lis 2011 o godz. 05:32 Zsolt Vasvari zvasv...@gmail.com napisał(a): I thought you asked about Calendars, not Contacts On Nov 21, 12:14 pm, GJTorikian gjtorik...@gmail.com wrote: And how would I go about adding contacts, to test viewing/manipulating contact data? There doesn't seem to be a way to do that. On Nov 20, 7:13 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this has been discussed extensively. You cannot use a Google account for syncing calendars on the emulator. You can use an Exchange account, though, with a gmail address and a blank domain. On Nov 21, 11:01 am, GJTorikian gjtorik...@gmail.com wrote: I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on.- Hide quoted text - - Show quoted text - -- 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: Lots of the layout ID xyz is not valid errors in ADT r15
Ive one question for u. Because im a developer, i added my account to development support and now for 1 year i have 600-1000 messages per day, what the fuck is this?! Int understand. I have to delete 400 messages per 5 hours , 'cause im using Iphone 4. Anyone know how to disable this dev shit ?? -- 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: Action Bar
Mark, I have set the api version to 14 and also set targetSdk to 14 in the manifest, using Holo theme. On a normal size ICS device I get an Action bar without menu, I do get a navigation bar but there is no access to menu there. Looks like it must still be expecting a hardware menu on such a device? Regards Roy On Nov 21, 12:58 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 21, 2011 at 5:29 AM, Royston roystonpcar...@gmail.com wrote: In a similar I have tried the app in a Ice Cream Sandwich Normal emulator. I presume that there will be eventually such a device. The same problem exists here in that with Holo theme there is no access to menu. What is the best practice for support of such devices? Quoting the documentation: Beginning with Android 4.0, you'll notice that handsets no longer require a Menu hardware button. However, there's no need for you to worry about this if your existing application provides an options menu and expects there to be a Menu button. To ensure that existing apps continue to work as they expect, the system provides an on-screen Menu button for apps that were designed for older versions of Android. For the best user experience, new and updated apps should instead use the ActionBar to provide access to menu items and set targetSdkVersion to 14 to take advantage of the latest framework default behaviors. http://developer.android.com/sdk/android-4.0.html I presume that the MENU soft button will be in the navigationbaron handsets that lack off-screen MENU buttons. This will become clearer once I get my grubby little hands on the Galaxy Nexus. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 give the user the possibility to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically?
On Mon, Nov 21, 2011 at 6:36 AM, saex elpablos...@gmail.com wrote: - It leaves you to select Bluetooth (and i dont want it) What if the user does? - Facebook app is not being launched, instead of it it's opened the navigator and facebook website (this is a huge problem) What if there is no Facebook app? Or the user has installed an non-official Facebook app? - 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: Action Bar
On Mon, Nov 21, 2011 at 9:12 AM, Royston roystonpcar...@gmail.com wrote: Mark, I have set the api version to 14 and also set targetSdk to 14 in the manifest, using Holo theme. On a normal size ICS device I get an Action bar without menu, I do get a navigation bar but there is no access to menu there. Looks like it must still be expecting a hardware menu on such a device? I've been somewhat confused over the emulator behavior in this area as well. I was just leaving the issue alone until I got access to hardware and could see what really happens. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] ndk-build and stdio problems (Android 2.2.1)
I am working with some large open source projects and some smaller custom C code. I can successfully compile and link these using the ndk-build API even when linking against shared object files within the Android tree. I get functional shared object files and executables for the Android platform. However, it seems that when the applications are built as stand alone (meaning outside the Android source code tree using only ndk-build) the stdio functions do not operate properly. When the same code is placed under external within the Android source code tree and built with Android, the stdio functions work exactly as expected. I have tried building with ndk r4 and r6, then we tried building with the ndk r4 from within the Android tree. the functions in question are close() - hangs a process when the process is forked fprintf() - nothing gets written fopen() for write - the file does not get created as a new file I have not tested beyond these functions. Any insight would be greatly appreciated. Thanks, Adam -- 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 give the user the possibility to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically?
This app is only for people that haves official facebook, twitter and gmail apps installed. And this app should not use Bluetoth On Nov 21, 3:16 pm, TreKing treking...@gmail.com wrote: On Mon, Nov 21, 2011 at 6:36 AM, saex elpablos...@gmail.com wrote: - It leaves you to select Bluetooth (and i dont want it) What if the user does? - Facebook app is not being launched, instead of it it's opened the navigator and facebook website (this is a huge problem) What if there is no Facebook app? Or the user has installed an non-official Facebook app? - 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: How to give the user the possibility to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically?
On Mon, Nov 21, 2011 at 9:57 AM, saex elpablos...@gmail.com wrote: This app is only for people that haves official facebook, twitter and gmail apps installed. And this app should not use Bluetoth http://commonsware.com/blog/2011/06/28/share-where-the-user-wants.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: second call to setListAdapter() ignored
On Nov 20, 11:43 pm, Kostya Vasilyev kmans...@gmail.com wrote: It seems that the only way to rebuild the fast scroll section data is to toggle fast scrolling off and on again. I tried this (in my modified version of Mark's example code.) The old data is wiped out, but now the indices/section headers are drawn in the upper-left corner rather than in the center of the list. That's on 2.2. On 3.2, the headers are drawn in the usual place -- and it is new data -- but without the frame. --Eric -- 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 decompose .apk file
Try this link :: http://apkdecompile.com/ On Mon, Nov 21, 2011 at 4:50 PM, s.rawat imsaurabhra...@gmail.com wrote: I think you meant *extracting *it so that you could see its contents,Unzip or unrar it using Win Zip , you will be on your way then ; ! Cheers !! Saurabh ..pain is temporary.quitting lasts forever.. On Mon, Nov 21, 2011 at 4:46 PM, Raghav Sood raghavs...@androidactivist.org wrote: To decompose an apk, do the following: Open it in notepad or any other plain, basic text editor. Print out all of the weird characters on several sheets of paper. Bury all the paper. Check back in 2 weeks and Voila! You have a decomposed apk. Seriously, I think you want to decompile it, which is usually done for not-very-honorable things. So before I go any further, why do you want to access someone else's code? Thanks On Mon, Nov 21, 2011 at 4:38 PM, arshi arshikha...@gmail.com wrote: dear friends please tell me how to decompose .apk file. i want to read .java or class file from apk -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- 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 decompose .apk file
Sure. Smells very phishy. -- 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 select wich Apps you want to show on the shareIntent ACTION_SEND menu?
I want to add a functionality on my app to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically. I tested this way public void share() { Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType(text/plain); shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, menu share subject); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, menu share body); startActivity(Intent.createChooser(shareIntent, menu share intent)); } But this way haves some problems: - It leaves you to select Bluetooth (and i dont want it) - It don't leaves you to select the official Email app of the phone Can someone give me a solution please? -- 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: Webview weird redirect
Try to over ride this method onPageFinished(WebView view, String url). This method will be called every time a page loaded in your webview. In this method check the loaded url is the final url or not. @Override public void onPageFinished(WebView view, String url) { Log.d(DEBUGTAG, onPageFinished+ url); if(url.contains(header)){ // do whatever you want to do here. } super.onPageFinished(view, url); } On Sun, Nov 20, 2011 at 10:38 AM, shashi asanka shashi.kalut...@gmail.comwrote: You mean after entering your details and click something your page doesn't load to to same place (I mean same web view ) is that your problem ? -- 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: How to give the user the possibility to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically?
I need help for making the code to do this: If you think the submenu of options will be too confusing, use PackageManager and queryIntentActivities() to collect the applications that will support the various formats and protocols you support, remove any duplicates, and display your own chooser-style dialog. In fact, this might make a nice reusable component, if anyone else has the itch to scratch. Please if you know how to do it tell me On Nov 21, 4:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 21, 2011 at 9:57 AM, saex elpablos...@gmail.com wrote: This app is only for people that haves official facebook, twitter and gmail apps installed. And this app should not use Bluetoth http://commonsware.com/blog/2011/06/28/share-where-the-user-wants.html -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Status of Android Market Account
Hi, 1. When i register market account with google, Can google store my mobile no and IMEI No in their database. 2. If i do Factory Reset from my Mobile (Samsung Galaxy Fit), then what will be ths status of my Android Market Account ? Can i access my account. and what is the status of my device ? -- 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: How to give the user the possibility to start Facebook, Twitter, Gmail or Email official apps of the Phone programatically?
On Mon, Nov 21, 2011 at 10:21 AM, saex elpablos...@gmail.com wrote: I need help for making the code to do this: If you think the submenu of options will be too confusing, use PackageManager and queryIntentActivities() to collect the applications that will support the various formats and protocols you support, remove any duplicates, and display your own chooser-style dialog. In fact, this might make a nice reusable component, if anyone else has the itch to scratch. Please if you know how to do it tell me What specifically do you not understand? For an example of using PackageManager and queryIntentActivities(), see: https://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Blank Map When download app Android Market
Hi All; I have a problem about google map. I did an app about include google maps.When i run the app with Eclipse ,map is seeming everything is ok. I signed the app and upload Android Market. When i dowload this app for check i see the map blank. I changed map key but it doesnt work? Anybody know about that? THX. Suygu -- 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] Attach fragment2activity
Hi in the honeycomb gallery, instead of showing image on the right hand side, i need to show a activity.. Could you please let me know the approach to do so.. Please leave me your comments.. 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] Blank Map When download app Android Market
There are different keys for debugging and production certificates. Does your device have an internet connection? Raghav Sood Sent from my Nexus S On Nov 21, 2011 4:30 PM, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about google map. I did an app about include google maps.When i run the app with Eclipse ,map is seeming everything is ok. I signed the app and upload Android Market. When i dowload this app for check i see the map blank. I changed map key but it doesnt work? Anybody know about that? THX. Suygu -- 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] Blank Map When download app Android Market
Mean when i run the project my device.I can see the map. Yes i have internet connection. 21 Kasım 2011 18:50 tarihinde Raghav Sood raghavs...@androidactivist.orgyazdı: There are different keys for debugging and production certificates. Does your device have an internet connection? Raghav Sood Sent from my Nexus S On Nov 21, 2011 4:30 PM, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about google map. I did an app about include google maps.When i run the app with Eclipse ,map is seeming everything is ok. I signed the app and upload Android Market. When i dowload this app for check i see the map blank. I changed map key but it doesnt work? Anybody know about that? THX. Suygu -- 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 -- --- Duygu Kahraman http://tr.linkedin.com/in/duygukahramann -- 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: Activity animation
Sorry, I only just got around to checking for replies to this question. Yes, it does, but I thought the exit animation was applied to the activity that is being replaced by the new one. In fact I tested it, and it does. So, I can control the animation of the new activity as it starts, and the animation of the previous activity it replaces... but I can't find a way to control the animation of the new activity when it pauses... i.e. ends and returns to the first activity. On Nov 18, 4:51 pm, TreKing treking...@gmail.com wrote: Doesn't that same function specify an exit animation? - 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: Activity animation
On Mon, Nov 21, 2011 at 11:18 AM, Neilz neilhorn...@gmail.com wrote: So, I can control the animation of the new activity as it starts, and the animation of the previous activity it replaces... but I can't find a way to control the animation of the new activity when it pauses... Did you try calling that same function on the new activity as well as the old activity? - 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] Blank Map When download app Android Market
On Mon, Nov 21, 2011 at 10:30 AM, Duygu Kahraman duygu.kahram...@gmail.comwrote: I signed the app and upload Android Market. When i dowload this app for check i see the map blank. Did you test your signed version *before* uploading and then redownloading from the Market. Please say yes. In which case, did it work then? - 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] Status of Android Market Account
On Mon, Nov 21, 2011 at 9:25 AM, Hasmukh Gosai hgosa...@gmail.com wrote: 1. When i register market account with google, Can google store my mobile no and IMEI No in their database. Can they? Probably. Do they? I hope not. But this is not something you're going to get an official answer to. 2. If i do Factory Reset from my Mobile (Samsung Galaxy Fit), then what will be ths status of my Android Market Account ? Can i access my account. and what is the status of my device ? Your Market Account has nothing to do with your device. The status of your account is unchanged. The status of your device is ... well, factory reset-ted, I guess. - 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: Please Help with GPS Provider Switch
Well I am not using them at the same time. Here is my process. 1) Start with GPS, set timer for 30 seconds. If GPS has not got a location in that time my timer goes off and stops the GPS. I then request the Passive provider. I allow again 30 seconds for that. If nothing happens in 30 seconds the timer goes off, and starts my Network Provider. 2) Once the network provider gets called nothing happens it just sits there. 3) If I bypass the GPS and Passive the network provider works as it is suppose to. I am just trying to find out if I am doing something wrong or maybe there is a bug that screws the network provider up if the GPS provider has been requested and stopped before hand. Below is my original post with my code included: Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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
[android-developers] Re: Activity animation
The function *is* being called on the new activity. It's when the user clicks 'back' and the activity disappears, that I want to add an exit animation. On Nov 21, 5:45 pm, TreKing treking...@gmail.com wrote: On Mon, Nov 21, 2011 at 11:18 AM, Neilz neilhorn...@gmail.com wrote: So, I can control the animation of the new activity as it starts, and the animation of the previous activity it replaces... but I can't find a way to control the animation of the new activity when it pauses... Did you try calling that same function on the new activity as well as the old activity? - 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] MediaRecorder send video over TCP socket,how can I recive it on server side??? HELP
Hi, I found Mediarecorder that record video, i also found that parcelFileDescriptor fromSocket can use to send video over TCP but I am not able to send this video and recieve on a server side. Mediarecorder parcelFileDescriptor fromSocket that perfect to record video on sd card but when i send it to socket it doesn't receive on server side and not create a file, please guide me how can receive this video on server side and how can i store in a video file. Thanks UMER -- 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] NDK - ICU not picking stdlib
Hi, I am trying to build ICU using NDK. I am getting below error can you please help me in resolving the below problem. SharedLibrary : libicuuc.so /var/tmp//android/icu/icu-ndk/obj/local/armeabi/objs/icuuc/ustr_wcs.o: In function `_strFromWCS': /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:356: undefined reference to `wcstombs' /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:406: undefined reference to `wcstombs' /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:305: undefined reference to `wcstombs' /var/tmp//android/icu/icu-ndk/obj/local/armeabi/objs/icuuc/ustr_wcs.o: In function `_strToWCS': /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:155: undefined reference to `mbstowcs' Thanks, Achuth R -- 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] access dual gsm interfaces
Does Android 2.3.4 support dual gsm interfaces in a phone? What will be required to implement something like this? Software-wise? Can you point me to some documentation? We want to be able to select which GSM interface to make a particular call. Moreover, display the status of the signal strength for each interface in the notification area. Thnx. Any and all help will be appreciated. CC -- 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] onActivityResult not Triggering
Hi guys, For some reason, an activity's onActivityResult method is not being called. It is a tab within a tab Activity which is sending a startActivityForResult to an independent activity. Here is the relevant code. in MealsTodayList class: void createEntry() { Intent newMeal = new Intent(this, MealAdder.class); newMeal.setAction(NEW_MEAL); newMeal.putExtra(MealDbAdapter.KEY_DATE, todayDate); startActivityForResult(newMeal, NEW_ENTRY); //NEW_ENTRY=1 } in MealAdder class: public void saveNewEntry(View v) { Intent mealEntryIntent = new Intent(this,MealsTodayList.class); [...] if (updatedEntry) { this.setResult(RESULT_EDIT_OK, mealEntryIntent); } else { this.setResult(RESULT_OK, mealEntryIntent); } finish(); } In this case, the activity MealAdder is completed once the save button is called, which calls this method. Any suggestions would be magnificent. 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] Gesture help
On Sat, 2011-11-19 at 15:06 -0800, bt wrote: Hi, I would like to switch screens by swiping left and right. I have a ScrollView inside a GestureOverlayView and everything is OK until I use a SeekBar. But there are SeekBars inside the scroll view and if I change the seekbar value with my finger by moving it to the left or right then the gesture view also detects swiping gestures and changes screens. How can I stop delegating ontouch events when seekbar is changing? Or are there any other solution? Use a ViewPager if you need support for Android 2.x use the compatibility package -- 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] Strange error whit mediaPlayer.setDataSource
hi guys i have this strange problem: i create a app, in this app i record voice in ogg file, i store file in memory (i see the file using DDMS) , when i wont to play the file audio i have a error in this link you can see the source: http://pastebin.com/PWE9FsxT in this link you can see the android manifest: http://pastebin.com/p39J1Y6i in this link you can see the log cat http://pastebin.com/ktyFWPXq i think the problem is in mediaPlayer.setDataSource(RECORDING_FILE_NAME); but I do not know how to fix it please help me best regads Antonio -- 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] Wildfire S - Unsupported Device Due To Manifest Settings
I have recently created a test Android application that is up and running on the Android Market. The link is here, https://market.android.com/details?id=air.adamgreenwood.test.androidClock . I created the app in Adobe Flash CS5.5 Professional using the Air For Android option. It, supposedly, works on over 425 Android devices, but, not the one I own. I want to install my app, from the Android Market, on to my HTC Wildfire S. I couldn't find the app in the Android Market so I went to my Android Marker Developer Console, clicked on my app, clicked on show devices. I typed in HTC Wildfire S and I get this error message, Unsupported Device Due To Manifest Settings. I do not know how to edit the manifest, as I created it in Flash. Can anyone help me get this app running on the Wildfire S, from the Android Market? -- 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: NDK - ICU not picking stdlib
Can anyone please help. I need this to fix ASAP. Thanks, Achuth R On Fri, Nov 18, 2011 at 6:36 PM, Achuth R achuth...@gmail.com wrote: Hi, I am trying to build ICU using NDK. I am getting below error can you please help me in resolving the below problem. SharedLibrary : libicuuc.so /var/tmp//android/icu/icu-ndk/obj/local/armeabi/objs/icuuc/ustr_wcs.o: In function `_strFromWCS': /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:356: undefined reference to `wcstombs' /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:406: undefined reference to `wcstombs' /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:305: undefined reference to `wcstombs' /var/tmp//android/icu/icu-ndk/obj/local/armeabi/objs/icuuc/ustr_wcs.o: In function `_strToWCS': /var/tmp//android/icu/icu-ndk/jni/common/ustr_wcs.c:155: undefined reference to `mbstowcs' Thanks, Achuth R -- 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 do I preserve selection and/or checked items in a ListView after device rotation?
On Fri, 2011-11-18 at 07:44 -0800, Daniele Segato wrote: The ListView save in its internal state the checked items and restore them. It restore them after the device is rotated. But then clear them out when I set it a new adapter (which, in my case, extract exactly the same data). I'm using a ListFragment with compatibility support package v4 and a Loader to get a custom CursorAdapter. When the loader give me the adapter I call setListAdapter that clear out the checked, restored, state. never mind... I just had to set the adapter onCreate instead of setting it up on loader complete. -- 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 with radio wave
Hi , I'm android developer,, very need help. anyone know how android receive radio wave.. any idea for developer.? big 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] Regarding AVD compatiblity
i m trying to deveop one application which uses 1. My sql 2. Google map bt as i have seen AVD 2.0 support My sql ,while AVD 3.0 Google API support Map but it dont support mysql. then what to do?? tell me,if u have any idea -- Thanks Best Regards. Dhaval varia Assistant Professor Govt Engineering College,Modasa (9924343883) -- 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] Geopoint range of values
Latitude values range from -90 to + 90. I am simply creating a GeoPoint (Google APIs 2.1 update 1) with int lat = 8500; int lon = 17900; GeoPoint p = new GeoPoint(lat,lon); But p.getLatitudeE6(); is returning 8000 ? Longitude is correct. Any ideas what's going wrong here. Is the range for geopoint latitude is from -80 to + 80? -- 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] Media player problem whit file audio stored in memory
hi guys i have this strange problem: i create a app, in this app i record voice in ogg file, i store file in memory (i see the file using DDMS) , when i wont to play the file audio i have a error in this link you can see the source: http://pastebin.com/PWE9FsxT in this link you can see the android manifest: http://pastebin.com/p39J1Y6i in this link you can see the log cat http://pastebin.com/ktyFWPXq i think the problem is in mediaPlayer.setDataSource(RECORDING_FILE_NAME); but I do not know how to fix it please help me best regads Antonio -- 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 do I preserve selection and/or checked items in a ListView after device rotation?
The ListView save in its internal state the checked items and restore them. It restore them after the device is rotated. But then clear them out when I set it a new adapter (which, in my case, extract exactly the same data). I'm using a ListFragment with compatibility support package v4 and a Loader to get a custom CursorAdapter. When the loader give me the adapter I call setListAdapter that clear out the checked, restored, state. 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] Plivo?
Would like to hear success stories (or other) regarding developing on Plivo (see www.plivo.org). Thanks! --AnalogKid -- 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 a view to Overlay in MapView Or Animation in overlay in mapview
hello folks, I am trying to show a blinking red circle and blinking radial area over a location in the google map I am able to create alpha animation independently in android project but I cannot put it over the map as an overlay. please let me know of example anybody has. thanks, Sid -- 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: Source building lunch error
I am encountering this error as well. I am developing in a Parallels Ubuntu 11.04 VM on an iMac running Lion. I have walked through the steps on the link referenced by kapil .k below. I have also uninstalled Lunch and reinstalled it directly from their home page. The file /home/parallels/.lunchrc is not created; invoking Lunch from command line or attempting to use the GUI generates this same error. I created /home/parallels/.lunchrc via touch and re-ran envsetup.sh. Lunch does load, but stops at Using linch master module /usr/share/ lunch/lunch/master.pyc. I presume this is due to an empty .lunchrc file. I am thinking one possible solution would be to build a .lunchrc file based on text someone could provide from a working installation. On the positive side, my SDK and NDK tools seem to be working properly. Thanking all in advance, Brad On Nov 8, 11:16 pm, kapil.k kapnk...@gmail.com wrote: Hello I am trying to build the source with ref to link http://source.android.com/source/building.html after running ./envsetup.sh i run lunch command it gives me error Using lunch master without the GUI. No such file: /home/user/.lunchrc. Any one have any clue ..I have installed all reqyired lib-32. -- 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: Dangerous audio noise while using of headphones
hi, I am using an EVO 3d with 2.3.4. and always here a strange noise while playing Pandora. it sounds similar to a Mic placed next to speaker. regards, alidaan...@gmail.com On Nov 19, 1:52 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Nov 19, 2011 at 1:34 PM, Harald harald65.si...@googlemail.com wrote: Hi, my android and many others have a dangerous noise. And your proof of this is, what, exactly? This noise is easy recognizable in the silent parts of audio files. Then it should be easy for you to provide detailed steps to allow anyone to reproduce your experiment. Please indicate specific hardware, specific sound files (downloadable, please), specific audio players, etc. The noise is always present and at a very high level at a very high frequency! What is the frequency? You clearly must know this, as part of demonstrating that it is always present, which would require you to use a spectrum analyzer or similar technology to identify this signal from the rest of the music or other audio. If you switch off the playback and put the headphones away, you will (hopefully) recognize a pressure and and whistle in your ears. I am sure that those who attempt to reproduce your experiment will watch for such symptoms, if and when you provide reliable steps for doing so. This noise is dangerous and destroys your ears! What is the frequency? At what volume does harm occur? You clearly must know this, to have consulted with an audiologist to determine the effects of such a sound. Or are you an audiologist? You can not fully recognize the level due to the high frequency. But you previously stated that it is easy to hear and that anyone who listens to it will experience symptoms. Now, nobody can hear it. It is difficult to reconcile these mutually exclusive claims of yours. But, the noise destroys your ears! And your proof of this is, what, exactly? Does someone know something about the decoder and the developers? Yes. And if you can provide proof of your claims, we can certainly work to notify all the proper authorities about the health issue. Please write up the steps to reproduce the problem, the audio details of the signal (e.g., frequency range), and your evidence that there is a health hazard for listening to this signal. Thanks! -- 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 3.6 Available!I -- 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 store large amount of records in String arays or Arraylist in android
If you say it works on some phones and freezes on other android devices, it has to be the device its freezing up on not the program.So on the devices that its freezing up on what are the spec's of the device . PhotoSteve -- 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] Testing App Battery Usage
Hey Guys, We want to have a live debugger (mobile connected to the computer by usb) but we don't want the PC to charge the mobile so we will be able to see how our tests affect the battery. Is this possible? Running a debugger/logviewer on the device may cause a false report, so we want to use the PC, which should be a very low cost on the device. Thanks in advance, Ika -- 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 SSLException - Google servers
I need to develop an application that bring data from google.com/ contacts. I have manage to do that in java but in android I have some problems with ssl comunication. Caused by: javax.net.ssl.SSLException: Connection closed by peer) - Android untrust my connection. I have used this exemple: http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts/ - in java works fine but in android it bring a SSLException. Also I've tried this exemple: http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/ , but same problem with https request. What should I do? 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] Robotium Functional Testing
Hi, I am new to robotium. Can any one please answer this.. Hope it would be too silly and dont mind... I have an purchase.apk. First thing i need to know whether do i need to install the app or not on the emulator to test it through robotium.. I am finding there are two manifest.xml. One under android folder and one is in the library. where do i need to change the target package name. How to resize the emualtor? I need to do testing on the installed purchase.apk. Is it same way can i send a keystroke like monkey runner. Regards, Chandra -- 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] onMeasure calls setMeasuredDimention but size doesn't change.
Hi, I have a custom view in my application, which doesn't change it's size the last time onMeasure is called on it. Can someone explain this to me please? My view is an extension of ImageView and it's parent is a RelativeLayout. This is part of my xml: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:id=@+id/root view class=my.pacage.myActivity$MyNestedClas android:layout_width=wrap_content android:layout_height=wrap_content android:scaleType=fitXY android:id=@+id/view android:layout_above=@+id/c_layout android:layout_centerHorizontal=true android:layout_alignParentTop=true /view ... ... /RelativeLayout this is my onMeasure Inplementation: @Override public void onMeasure(int w, int h){ int rw = (int) (MeasureSpec.getSize(h) * aspect); int rh = MeasureSpec.getSize(h); Log.d(ONMEASURE, +rw+ x +rh); setMeasuredDimension(rw, rh); } and this is my LogCat: 11-21 15:37:34.586: D/ONMEASURE(4751): 0 x 352 11-21 15:37:34.596: D/ONMEASURE(4751): 0 x 277 11-21 15:37:34.757: D/VIEW_HEIGHT(4751): 277 11-21 15:37:34.757: D/VIEW_WIDTH(4751): 0 11-21 15:37:34.997: D/ONMEASURE(4751): 625 x 352 11-21 15:37:35.007: D/VIEW_HEIGHT(4751): 277 11-21 15:37:35.007: D/VIEW_WIDTH(4751): 0 11-21 15:37:35.017: D/ONMEASURE(4751): 359 x 202 11-21 15:37:35.027: D/VIEW_HEIGHT(4751): 202 11-21 15:37:35.027: D/VIEW_WIDTH(4751): 625 -- 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] createRfcommSocket
Our app uses a bluetooth connection and has been working fine for about a year. On a new Samsung G S2 phone we are seeing a problem connection the socket. The error is 'Service discovery failed'. Now we've seen this on HTC phones, and the solution was to include a call to createRfcommSocket, if the call to createRfcommSocketToServiceRecord failed. But the same code isn't working on this Samsung. So I am thinking that maybe by forcing the call to createRfcommSocket we can get this to work. However I cannot find any information about what createRfcommSocket is doing, differently than createRfcommSocketToServiceRecord. Is there any information on what that call does? Are there any other ideas on how to resolve this issue that doesn't include using an undocumented call? 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] Posting messages to facebook
Hi, i am developing a calendar and i need to post the events on the calendar to facebook. right now i already gotten the api keys. i am using the official facebook SDK (com.facebook.android), what is the code for me to actually post a message to facebook. thanks for the help in advanced!! -- 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] Is there Android RS232 sample code ?
there's no native API at the moment. but you can try to utilize IOIO. start by googling what IOIO is. believe me, it's very interesting. Fathi On Thu, Nov 17, 2011 at 6:54 PM, mark2011 androidmark2...@gmail.com wrote: Dear All : I am a new learner of Android. My cell phone is android 2.1. I want to communicate with other computer(windows xp) through rs232. Is there any sample code? Thanks. BR, Mark -- 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: Remove Log Statements
Den onsdag den 16. november 2011 07.42.02 UTC+1 skrev Android Developer: Before pushing application to market we need to remove Log statements. if application contains more java files then its hard to remove one by one. Its not particularly elegant, but for smaller projects I usually just declare somewhere a boolean public static final boolean DEBUG = false; and then prefix my log invocations: if (DEBUG) Log.d(TAG,blabla); As the DEBUG variable is final the Java compiler should optimize out the log statements as they are never reachable (no need for proguard to do that). So, it works essentially like a hack to get #ifdef's in your code. Jacob -- 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 solve the error: This attribute must be localized
I stumbled upon your post as I had to quickly build a UI prototype and didn't want to externalize 80+ non localized strings. Adding: LOCAL_MODULE_TAGS := tests to the Android.mk file omits the localization check. -- 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 SSLException - Google servers
I need to develop an application that bring data from google.com/ contacts. I have manage to do that in java but in android I have some problems with ssl comunication. Caused by: javax.net.ssl.SSLException: Connection closed by peer) - Android untrust my connection. I have used this exemple: http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts/ - in java works fine but in android it bring a SSLException. Also I've tried this exemple: http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/ , but same problem with https request. What should I do? 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 record User Voice in an application. Is it possible?
Hi I want to record my voice in an application. Is it possible in android. If yes, How. And where i can Start? Is there is any reference links or tutorials. 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] OpenGL on android
hey http://developer.android.com/guide/topics/graphics/opengl.html go through this site...surely will helpful to u... On Thu, Nov 17, 2011 at 3:18 AM, John Goche johngoch...@googlemail.comwrote: Hello, I am new to OpenGL and would like to write some code in it for Android. I wonder whether there are any significant differences in the android implementation compared to JOGL http://jogamp.org/jogl/doc/HowToBuild.html (which also has a quite involved setup process). I ask because I was thinking of developing in JOGL in order to speed up the process and then when the project is ready port the code to android (which has a slower emulator compile, load, and test development cycle). Also, would I find a .OBJ (Wavefront) parser anywhere on android or must I implement/import my own? I ask because I would require one to read my model into OpenGL/Java. Comments and suggestions on how to proceed welcome, Thanks, John Goche -- 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] Digest for android-developers@googlegroups.com - 23 Messages in 11 Topics
Can anyone tel me the functionality of directions() method in AndroiBidi class.I need complete logic how android fills directions array. On Mon, Nov 21, 2011 at 11:44 AM, android-developers@googlegroups.com wrote: Today's Topic Summary Group: http://groups.google.com/group/android-developers/topics No AVDs from Emulator since last update [1 Update] Is the ICS emulator calendar sync broken? [5 Updates] how to apply preference style in user-defined theme [2 Updates] How to set submenu header icon in XML? [1 Update] Lots of the layout ID xyz is not valid errors in ADT r15 [4 Updates] Action Bar [3 Updates] Is Spinner.setOnItemClickListener() supposed to work, or not? [2 Updates] Phone model penetration [2 Updates] Auto-rotate screen flag [1 Update] Multiple layouts [1 Update] How can I save image on sd card with onpreviewfame?? [1 Update] No AVDs from Emulator since last update gus a27...@gmail.com Nov 20 09:39PM -0800 I can no longer get any avds to launch. I can create them, but they will not start (from targets 2.2 up to 4.0) I am running Windows XP and have the latest updates for eclipse and android addons. Problems occurred after updates for both eclipse and android were installed 3 weeks ago (approx Oct 26th, 2011) Now I cannot get avds to load. I have installed and uninstalled the avds. I have run the emulator from the command line. I have re-installed sdk tools 15 I have installed latest android and eclipse updates today (Nov21st, 2011) All to no avail. The error is ALWAYS the same and the debugger ALWAYS flags the SAME offset (see below). I have looked through, and tried, all the 'helps' that I can find including no snapshot, different resolutions, etc, etc, etc. I would have hoped the latest updates would fix it - - but I have now been without an avd for more than 3 weeks and it is seriously restricting my work. Please - Can Anyone Help?!? Details of problem: 1. Black Screen pops up, titled: SDL_app 2. then error message: emulator-arm.exe has encountered a problem and needs to close. We are sorry for the inconvenience. 3. and clicking 'further details' gives: AppName: emulator-arm.exe AppVer: 0.0.0.0 ModName: emulator-arm.exe ModVer: 0.0.0.0 Offset: 00078334 4. and clicking debug gives: C++ debugger unhandled exception in emulator-arm.exe: 0xC005: Access Violation 7C901230 int 3 7C901231 ret 7C901232 mov edi,edi 7C901234 nop 7C901235 nop . . 00478327 mov cl,byte ptr [ebp+8] 0047832A shl ebx,cl 0047832C jmp 0047837D 0047832E ??? 0047832F nop 00478330 mov edx,dword ptr [esp+24h] 00478334 mov eax,dword ptr [edx] 00478336 mov ecx,dword ptr [ebp+10h] 00478339 mov ebx,dword ptr [ebp+14h] 0047833C and ecx,eax 0047833E mov edi,eax 00478340 mov dword ptr [esp+4Ch],ecx 00478344 xor ecx,ecx Is the ICS emulator calendar sync broken? GJTorikian gjtorik...@gmail.com Nov 20 07:01PM -0800 I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on. Zsolt Vasvari zvasv...@gmail.com Nov 20 07:13PM -0800 Yes, this has been discussed extensively. You cannot use a Google account for syncing calendars on the emulator. You can use an Exchange account, though, with a gmail address and a blank domain. GJTorikian gjtorik...@gmail.com Nov 20 08:14PM -0800 And how would I go about adding contacts, to test viewing/manipulating contact data? There doesn't seem to be a way to do that. Zsolt Vasvari zvasv...@gmail.com Nov 20 08:32PM -0800 I thought you asked about Calendars, not Contacts GJTorikian gjtorik...@gmail.com Nov 20 09:02PM -0800 I can ask two different questions in one thread The issue is synching. If I add my Gmail address as an Exchange account, I get a half-assed way to manipulate the calendar. Fine. But what if I want to test the way I manipulate contacts in my app? What if I want to test market licensing on an ICS app? how to apply preference style in user-defined theme Bacon021 wei.pg...@gmail.com Nov 20 06:13PM -0800 My god, Does Google can't give any advice? William Ferguson william.ferguson...@gmail.com Nov 20 07:16PM -0800 I'm pretty certain there is no such style property as android:layout. Layout is NOT style. What are you trying to do? William How to set submenu header icon in XML? limtc thyech...@gmail.com Nov 20 04:06PM -0800 I used to use program menu using Java and I can add icon to submenu. http://developer.android.com/reference/android/view/SubMenu.html#setHeaderIcon(int) As I am switching to XML format for menu, I am wondering how do I add icon to submenu? It does not seem to have an icon attribute for menu. Lots of the layout ID xyz is not valid errors in ADT r15 olefevre lefev...@googlemail.com Nov 20 02:08PM -0800 FWIW, I have never seen that error. Moreover, if everyone were seeing those errors, we'd've heard about
[android-developers] Re: how to apply preference style in user-defined theme
Ohh, I want to define a Preference style for Settings module. In this style i only want to change the Preference title and summary's textColor and textSize, different from Frameworks' default style. But Now I have to used the method preference.setLayoutResource() or android:layout for every Preference to realize. On 11月21日, 上午11时16分, William Ferguson william.ferguson...@gmail.com wrote: I'm pretty certain there is no such style property as android:layout. Layout is NOT style. What are you trying to do? William On Nov 21, 12:13 pm, Bacon021 wei.pg...@gmail.com wrote: My god, Does Google can't give any advice? On 11月16日, 下午7时54分, Bacon021 wei.pg...@gmail.com wrote: I defined a theme with an item named android:preferenceStyle, how ever when I apply this theme to some activity, the related preference items' style are still not what I defined. The following is my style I defined and the usage. frameworks\base\core\res\res\values\themes.xml: style name=CustomActivityTheme item name=android:windowBackground@drawable/bg_color/ item item name=android:preferenceStyle@android:style/MyPreference/ item item name=android:windowTitleSize54dip/item /style frameworks\base\core\res\res\values\styles.xml: style name=MyPreference item name=android:layout@android:layout/my_preference_layout/ item /style in CustomActivityTheme, the windowBackground has effect I can change the color what I need, but MyPreference won't work, that means the layout does't work.- 隐藏被引用文字 - - 显示引用的文字 - -- 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] Monkeyrunner
Hi, Apk and its Package name itself is enough to start the testing on the app through monkey runner.. Regards, Chandra -- 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: urgent help for the project
Take a look at the documentation at http://developer.android.com/index.html. Be prepared to spend a few hours looking it over. Start with the Dev Guide. If you've read the Dev Guide and still your questions are not answered, look at the Resources tab where you can find sample code. -- 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] Problem with google map on Android Emulator
Dear, I am working on Android emulator. 2.3.1 (Google API) API 9 The problem is i am working behind corporate proxy. emulator doesnt allowed to open Google Maps. *it gives error : **this application requires active data connection* *Thanks Best Regards.** ** ** **Dhaval varia* *Assistant Professor * *Govt Engineering College,Modasa** **(9924343883)** * * * -- 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] Fw: Friends, I need help
Speak Lord, in peace? Friends, I need help, what version we are using Eclipse with Android? I'm new and I'm embarrassed about it: already installed the Android Eclipse several times but can not run any application! When run command simply opens the Android emulator screen and displays a message in the center of the screen 'ANDROID' and stands ... Already installed and uninstalled Eclipse several times, installed the Android plugin online and offline ... and nothing ever the same behavior. I downloaded Eclipse Classic Indigo site: www.eclipse.org I downloaded the Android plugin sites: https://dl-ssl.google.com/android/eclipse/ http://dl.google.com/android/ADT-15.0.1.zip I downloaded the SDK addresses: http://dl.google.com/android/android-sdk_r15-windows.zip http://dl.google.com/android/installer_r15-windows.exe I am using Windows XP, I thought to be the Android version, I downloaded all ... and continue the mistake! Is it the version of Eclipse? Am I doing stupid things? thank you Francisco PS: Sorry for the bad English, I'm using a translator -- 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] Zoom using Multi touch
hi need assistance. i have 3 images in Relative layout.i want to zoom entire layout including images. -- 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] A problem about GPS
Hi all I just write a simple test about location listener.But when I start the program, I get a log : 11-20 02:16:36.518: ERROR/Zygote(32): setreuid() failed. errno: 17 11-20 02:16:37.937: ERROR/BatteryService(67): usbOnlinePath not found 11-20 02:16:37.937: ERROR/BatteryService(67): batteryVoltagePath not found 11-20 02:16:37.937: ERROR/BatteryService(67): batteryTemperaturePath not found 11-20 02:16:37.957: ERROR/SurfaceFlinger(67): Couldn't open /sys/power/ wait_for_fb_sleep or /sys/power/wait_for_fb_wake 11-20 02:16:38.177: ERROR/SensorService(67): couldn't open device for module sensors (Invalid argument) 11-20 02:16:44.217: ERROR/System(67): Failure starting core service 11-20 02:16:44.217: ERROR/System(67): java.lang.SecurityException 11-20 02:16:44.217: ERROR/System(67): at android.os.BinderProxy.transact(Native Method) 11-20 02:16:44.217: ERROR/System(67): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) 11-20 02:16:44.217: ERROR/System(67): at android.os.ServiceManager.addService(ServiceManager.java:72) 11-20 02:16:44.217: ERROR/System(67): at com.android.server.ServerThread.run(SystemServer.java:206) 11-20 02:16:44.237: ERROR/EventHub(67): could not get driver version for /dev/input/mouse0, Not a typewriter 11-20 02:16:44.237: ERROR/EventHub(67): could not get driver version for /dev/input/mice, Not a typewriter 11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/ audio/ui/Effect_Tick.ogg 11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/ audio/ui/KeypressStandard.ogg 11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/ audio/ui/KeypressSpacebar.ogg 11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/ audio/ui/KeypressDelete.ogg 11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/ audio/ui/KeypressReturn.ogg 11-20 02:16:44.797: ERROR/UsbObserver(67): java.lang.NullPointerException 11-20 02:16:44.797: ERROR/UsbObserver(67): at com.android.server.UsbObserver.init(UsbObserver.java:131) 11-20 02:16:44.797: ERROR/UsbObserver(67): at com.android.server.UsbObserver.init(UsbObserver.java:65) 11-20 02:16:44.797: ERROR/UsbObserver(67): at com.android.server.ServerThread.run(SystemServer.java:402) 11-20 02:16:45.597: ERROR/ThrottleService(67): Could not open GPS configuration file /etc/gps.conf 11-20 02:16:46.287: ERROR/logwrapper(144): executing /system/bin/tc failed: No such file or directory then when I send a GPS in the DDMS, my program will die.My SDK version is 9. I ever used the Version 7, then it is right. Can anyone provide some information about it? 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] eglCreatePixmapSurface
I want to get a image by eglCreatePixmapSurface;but it show the following error in log when GL10 be used. ERROR/libEGL(2154): call to OpenGL ES API with no current context (logged once per thread) my code is : public void init() { if (!isInit) { // initialize egl egl = (EGL10) EGLContext.getEGL(); display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); egl.eglInitialize(display, null); int[] configWant = { EGL10.EGL_SURFACE_TYPE, EGL10.EGL_PIXMAP_BIT, EGL10.EGL_RED_SIZE, 5, EGL10.EGL_GREEN_SIZE, 6, EGL10.EGL_BLUE_SIZE, 5, EGL10.EGL_DEPTH_SIZE, 16, EGL10.EGL_NONE }; EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; egl.eglChooseConfig(display, configWant, configs, 1, num_config); bmp = Bitmap.createBitmap(100, 100, Config.ARGB_); g = new Canvas(bmp); p = new Paint(); context = egl.eglCreateContext(display, configs[0], EGL10.EGL_NO_CONTEXT, null); surface = egl .eglCreatePixmapSurface(display, configs[0], bmp, null); egl.eglMakeCurrent(display, surface, surface, context); gl = (GL10) context.getGL(); initData(gl); delta = -1; if (fps 0) { delta = 1000 / fps; } isInit = true; } } @Override public void run() { init(); while (isInit) { if (running) { int w; int h; loopTime = System.currentTimeMillis(); synchronized (this) { w = width; h = height; } if (resize) { resize(gl, w, h); resize = false; } runX(); paint(gl); // egl.eglSwapBuffers(display, surface); g.drawBitmap(bmp, 0, 0, p); if (egl.eglGetError() == EGL11.EGL_CONTEXT_LOST) { Context c = getContext(); if (c != null c instanceof Activity) { ((Activity) c).finish(); } } long time = System.currentTimeMillis() - loopTime; try { Thread.sleep(Math.max(1L, (long) delta - time)); } catch (InterruptedException e) { e.printStackTrace(); } } else { try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } } } } protected void initData(GL10 gl) { gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f); gl.glMatrixMode(GL10.GL_PROJECTION); gl.glLoadIdentity(); GLU.gluOrtho2D(gl, 0.0f, 1.3f, 0.0f, 1.0f); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glShadeModel(GL10.GL_SMOOTH); } ... ... How can I get a image from egl? I want to add 3D effects in my program using GL kind regards, joniy -- 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] cutomize lisview as spinner
Hi all, Could someone tell me the way how to cutomize listview as spinner. I don't want use default spinner, because it's not nice. So, I just want to make it by my way. To be specific, I want it can be displayed as this image below. [image: image.png] -- Regards, Khanh. -- 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=enimage.png
[android-developers] Reconnect on ACTION_SCREEN_ON - wifi icon incorrect
I have a service that is using a BroadcastReceiver to watch for ACTION_SCREEN_ON. When that happens, I am using a wifimanager to turn wifi back on and reconnect. For some reason, I connect to the network just fine, but the icon in the notification bar shows that I am not connected. Instead of showing the blue icon (honeycomb), it changes to a semi white status icon, even though I have a connection. It almost looks like the status when it is in the process of connecting, but not as white. Any ideas as to why this would be happening? The only way to fix it is to reboot the device. Even turning the wifi off and back on manually won't fix the icon error. Help is greatly appreciated. -- 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