[android-developers] getting error (-19,0), while playing wav file from sdcard
Hello, I am trying to play a music file, that exists in sdcard, as follows MediaPlayer mp = new MediaPlayer(this); mp.setDataSource(path to file in sdcard); mp.prepare(); mp.start(); I have also specified the *Write External Storage *permission in my manifest.xml file. But..., I am getting the *error (-19,0)* on the line *mp.start();* I dont know what does it mean. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: getting error (-19,0), while playing wav file from sdcard
Its * mp.setDataSource(Environment.getExternalStorageDirectory()+/vcgc.wav);* Is there anything wrong in this line? On Mon, Jul 22, 2013 at 4:06 AM, RichardC richard.crit...@googlemail.comwrote: What is really on this line? mp.setDataSource(path to file in sdcard); On Sunday, July 21, 2013 5:23:59 PM UTC+1, Narendra Singh Rathore wrote: Hello, I am trying to play a music file, that exists in sdcard, as follows MediaPlayer mp = new MediaPlayer(this); mp.setDataSource(path to file in sdcard); mp.prepare(); mp.start(); I have also specified the *Write External Storage *permission in my manifest.xml file. But..., I am getting the *error (-19,0)* on the line *mp.start();* I dont know what does it mean. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] how to delete all the data from listview
On Sat, Mar 9, 2013 at 1:35 PM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: Hi friends, can some one tell me that how to automatically delete all listview data when i came out from whole application.pls guys help me if someone have any idea. Hi Sadhna, can you explain your problem / requirement a bit more? What sort of data do you want to delete, when coming out from whole app? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] AutoCompleteTextview to have prefix then start suggestion
It seems, you need *MultiAutoCompleteTextView*, instead of * AutoCompleteTextView.* -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Dialog Box Position
On Wed, Jan 4, 2012 at 6:18 PM, aru padam deepesh...@gmail.com wrote: Hi all, How can set a dialog box at the bottom of the screen?. Please help me.. Hi Deepesh, refer the following link: http://stackoverflow.com/questions/9467026/change-dialog-position-on-the-screen -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: android using url.openstream isn't throwing IOException if no internet connection. Why?
Using the following solved my problem public HttpResponse getResp(String request) throws IOException { HttpGet httpGet = new HttpGet(request); HttpParams httpParameters = new BasicHttpParams(); // Set the timeout in milliseconds until a connection is established. // The default value is zero, that means the timeout is not used. int timeoutConnection = 3; HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection); // Set the default socket timeout (SO_TIMEOUT) // in milliseconds which is the timeout for waiting for data. int timeoutSocket = 4; HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket); DefaultHttpClient httpClient = new DefaultHttpClient(httpParameters); HttpResponse response = httpClient.execute(httpGet); return response; } -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] android using url.openstream isn't throwing IOException if no internet connection. Why?
Hi all, I am using url.openstream for requesting on to server. In case no internet connection while this, I want data to be stored in database, and hence doing the storage in catch clause of IOException, but instead of being caught here, it just hangs on url.openstream. I even waited for a minute but, still it doesn't caught in IOException catch clause. What must I do to overcome this 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Reading data from external databases
Hi Diljith, I guess, this may be useful for you. http://www.vogella.com/articles/JavaExcel/article.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] location updates using network provider
Hello all, my requirement is to get location updates every 90 seconds. I am using network provider for this. I am doing this as given below: locationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER, MINIMUM_TIME_BETWEEN_UPDATES, MINIMUM_DISTANCE_CHANGE_FOR_UPDATES, new MyLocationListener() ); Here, in this method, I am passing 9 as MINIMUM_TIME_BETWEEN_UPDATES, and 0 as MINIMUM_DISTANCE_CHANGE_FOR_UPDATES, so the expected result should be: The method onLocationChanged should be called every 90 seconds. But, the outcome is: the onLocationChanged method is being called first in 75 seconds, then in 105 seconds, then 75, 105.and so on.. But my requirement is to get the location updates in 90 seconds instead of different durations/periods. In case, if location returns null, I want to get the last known location. Please, suggest me the way to resolve this problem. Thanks Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: deleting a ringtone programmatically
how do you insert a ringtone programmatically? Hi Skink, I used the following code for inserting/setting the ringtone. String filepath =/sdcard/my music/Dard-E-Tanhai.mp3; File ringtoneFile = new File(filepath); ContentValues content = new ContentValues(); content.put(MediaStore.MediaColumns.DATA,ringtoneFile.getAbsolutePath()); content.put(MediaStore.MediaColumns.TITLE, test); content.put(MediaStore.MediaColumns.SIZE, 215454); content.put(MediaStore.MediaColumns.MIME_TYPE, audio/*); content.put(MediaStore.Audio.Media.ARTIST, artist); content.put(MediaStore.Audio.Media.DURATION, 230); content.put(MediaStore.Audio.Media.IS_RINGTONE, true); content.put(MediaStore.Audio.Media.IS_NOTIFICATION, false); content.put(MediaStore.Audio.Media.IS_ALARM, false); content.put(MediaStore.Audio.Media.IS_MUSIC, false); Uri uri = MediaStore.Audio.Media.getContentUriForPath( ringtoneFile.getAbsolutePath()); Uri newUri = getApplicationContext().getContentResolver().insert(uri, content); RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(), RingtoneManager.TYPE_RINGTONE,newUri); I hope, this will help you out to get what I have done yet. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: deleting a ringtone programmatically
Now, what I actually want is to replace the current ringtone, and want to insert that with the same title as that of the previous one. Now, I guess there must be two ways to do that - i) updating the ringtone path to the new ringtone path, using its title (i.e. 'test' in my case) ii) deleting/removing the previous ringtone from the list, and then inserting the new one like I did before. But, I am actually not getting how to do, what I want. Please, direct me the way to do that. Thanks Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] deleting a ringtone programmatically
Hi all, I know inserting a ringtone programmatically, but want to know about deleting a specific ringtone from the system ringtone list. What I know, is the title of the ringtone. I googled a lot about it, but unluckily, couldn't find any way to achieve exactly what I want. Please, guide me the way to delete the ringtone using title of the ringtone. Thanks Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] password protect text/excel file
Hi all, Is it possible to password protect an existing file in SDCard or to create a file with password protection through code. If yes, how to do that? Plz guide me the way to do this. Thanks and Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] password protect text/excel file
On Thu, Dec 13, 2012 at 7:11 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Dec 13, 2012 at 8:04 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Is it possible to password protect an existing file in SDCard No. or to create a file with password protection through code. Not on external storage. Ok, thanks for your reply Mark. so is it possible to do that in Internal storage? If yes, how to do 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
Re: [android-developers] password protect text/excel file
On Thu, Dec 13, 2012 at 7:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Dec 13, 2012 at 8:47 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: so is it possible to do that in Internal storage? By definition, nobody but your app and rooted device users can get at internal storage. Hence, no passwords are needed. Well, I didn't understand your response properly, but anyways thanks for your response. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: using ffmpeg library for converting no. of images into a video containing music
On Thu, Dec 13, 2012 at 11:58 AM, rakesh kumar dogra.rakes...@gmail.comwrote: Hi Narendra, I have to covert no of images into video. Can you Please share your code on my mail Id:rakesh_dogr...@yahoo.co.in Hi Rakesh, I already shared the link, which I used to convert images into video. Try to use 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
Re: [android-developers] Google Map
On Mon, Nov 26, 2012 at 12:11 AM, Ehsan Ghasisin ehsan@gmail.comwrote: Hi Every one . I created Google map in android and test with emulator and it worked currently , but when install in my phone (Samsung galaxy ) my program didn't show anything just show a simple page . Tnx Hi Ehsan, is internet working on your phone? May be thats the 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
Re: [android-developers] Google Map
On Tue, Nov 27, 2012 at 1:10 AM, asha b ash...@gmail.com wrote: Make sure you are using proper map key for mapview and keystore for application. Simple page without mapview means problem is with mapkey. Hi Asha, but if the problem is with mapkey, then why it is being displayed on emulator. In that case, it shouldn't even work on emulator. What do you say? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Map
On Tue, Nov 27, 2012 at 12:42 PM, Ehsan Ghasisin ehsan@gmail.comwrote: Hi , my program work without any error in emulator. i have problem when install my program on my device Hi Ehsan, have you tried on any other device? If yes, what was the response of 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: ImageMagick and NDK
Same question from me too. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ffmpeg converted video not working on default player
Thanks a lot, Pedro. It helped me achieving my task, as I found http://www.badllama.com/content/convert-video-android-ffmpeg. Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ffmpeg converted video not working on default player
Hi all, I have successfully converted a sequence of images into a video (.mp4 format) using ffmpeg. But, there came an issue while playing them in device's default player, whereas, if I use another player, it works fine. Please suggest me, what may be the reason behind this, as well as how can I be able to get rid off this problem. Thanks Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] save image with transition effect
Hi all, I have the requirement of applying transition effect to a static image, and further save it with that effect. Please guide me how to do this. Thanks Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: save image with transition effect
Hi Pedro, I want to apply effects on image like reflection, rotation, round corner, blur and so on. And also to save that image with that effect. I hope, you got my query this time. Thanks and Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: save image with transition effect
Ok, got it now. Thanks for your valuable suggestion, Pedro. 1. create a Bitmap 2. create a Canvas using Canvas(Bitmap bitmap) constructor 3. draw whatever you want using that canvas 4. write a bitmap using compress() method -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] single selection listveiw
On Wed, Oct 31, 2012 at 10:51 AM, rauf qureshi qureshira...@gmail.comwrote: hello friends, I am developing listview with customerAdapter which extends baseAdapter,in each item of list there is two textview and one check box is there , so i want to select one check box at a time but i am unable to do that can any body give me solution for that Hi Rauf, I guess RadioButton is better way to do what you want, as you can use RadioGroup, as parent view to the radiobuttons if you want single selection. As well as I guess using checkbox should be preferred in case of selecting multiple items. You can ask if you have further queries. Thanks and Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: using ffmpeg library for converting no. of images into a video containing music
On Fri, Oct 19, 2012 at 7:50 PM, Chris Sarbora top...@gmail.com wrote: It looks like you're passing the format string directly to the FS. If there's not a file in that directory named literally %0d.jpeg, I'd expect it to fail. Hey Chris, there is a file name 0.jpeg, 1.jpeg and so on, on the specified location, which I checked using file.exists() method. I guess there is some other problem, maybe the version problem. What do you suggest? Am I thinking right? Please guide me what to do in this case? Thanks Regards NSR. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ffmpeg not working on device
Hello all, I am actually running the following command using ffmpeg on terminal for making a video from a no. of images. ffmpeg -f image2 -r 08 -i %05d.jpg -vcodec mpeg4 test12.mp4 This is working fine, if I save the images inside ffmpeg and try to make a video at the same location, using terminal. But in case I use this command in my application, and try to execute that on device, that isn't working at all. By the way, I have stored images inside sdcard and trying to make video on the same location (i.e, sdcard). In my application, I used the command as follows: void convertImg_to_vid() { try { String ffmpeg_cmd= ffmpeg -f image2 -r 08 -i /sdcard/%05d.jpg -vcodec mpeg4 /sdcard/test4.mp4; Runtime.getRuntime().exec(ffmpeg_cmd); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } One more thing, for ffmpeg assistance, I have included ffmpeg library in my project. Please, direct me, where I am wrong. Thanks and Regards NSR. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] using ffmpeg library for converting no. of images into a video containing music
Hello all, I have used the following link for converting images into video https://github.com/guardianproject/SSCVideoProto But, the problem is that it runs properly on version 2.3.6, where as gives problem while running on the version 2.3.3, it gives the following error /mnt/sdcard/Test/%0d.jpeg: No such file or directory*** Here */mnt/sdcard/Tes**t/%0d.jpeg* is the path, where the images (which are to be converted), are stored. Please, suggest what is wrong here. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] applying effects to camera images
Thanks Richard and Harri, I will follow what you suggested, and hoping that will somewhat help in my goal. Thanks n Regards, NSR. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] applying effects to camera images
Hi all, May anyone please tell, how to apply effects like sepia, mono, negative, etc, while using camera in my app. Please suggest me the way, if anyone know about this Thanks n Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] applying effects to camera images
On Sat, Oct 6, 2012 at 5:12 PM, lokesh gupta lokeshgupt...@gmail.comwrote: Go to camera settings effects Great answer Lokesh, but I just wanted to do it in my app. I wasn't asking how to use android camera, instead how to work with camera effects. So, please tell this from developer's point of view, not the user's point of view. Thanks NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] compiler compliance problem
Try this. It will help you out. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] compiler compliance problem
On Thu, Oct 4, 2012 at 3:06 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: http://stackoverflow.com/questions/7637144/android-requires-compiler-compliance-level-5-0-or-6-0-found-1-7-instead-plea Try this. It will help you out. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make textview clickable
On Sun, Sep 23, 2012 at 11:32 PM, vaish vaishalisharma...@gmail.com wrote: hey evry1.. actually i 've tried onClick property on my textview but still it's not wrking.. even i've directly used onclicklistener also on my text view, like this- overWtLink=(TextView) findViewById(R.id.textView6); public void OverWt(View view) { if(view.getId()==R.id.textView6) { Intent i=new Intent(); i.setClass(getApplicationContext(), overWtDiet.class); startActivity(i); } } can any1 pls let me know, is anythg wrong wid this code, or any alternative way to solve this query.. I would like to know, where have you placed the onClick method and initializing your textview. Try to initialize your textview in your onCreate, and give onClick method outside onCreate. You may also do the following in your onCreate: *overWtLink=(TextView) findViewById(R.id.textView6);* *overWtLink.**setOnClickListener(new OnClickListener() { * * * *@Override * * **public void onClick(View view)* * **{* * **if(view.getId()==R.id.textView6)* * **{* * **Intent i=new Intent();* * **i.setClass(getApplicationContext(), overWtDiet.class);* * **startActivity(i);* * **}* * **} * * });* * * * * Please mention, what error are you getting, as well, so that we can understand what's wrong?* * Thanks n Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] handler pause and resume event
Hi all devs, I am currently using handlers to pausing and playing Runnable. I have two buttons - play and pause. On pause button click, I want to pause the event/runnable, which I am doing as follows: *handler.removeCallbacks(runnable);* * * but this seems to stop my current runnable, and when I play again, that thread is getting started again, though, I want the remaining one to complete first.* * For eg; I am having a number of images, which I am playing one by one, with the delay of 5 seconds each, as well as I am having play pause buttons, which I use to play and pause. Now, suppose I click pause button, just after 2 seconds of first image appearance, and then play again. The next image appears. But I want the first image to complete its remaining 3 seconds first, and then to display the next image. How to do this? Please, direct me. Thanks n Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] specifyng id in case of include directive
Hi all, I just wanted to know, how to specify id, while using *include *directive, as suppose I have two buttons ok and cancel in two different layouts. and I need to make a layout (xml file) for ok and cancel button. Now, how to specify id from two different layouts for both the buttons together, referring that layout containing ok cancel button. Please suggest, how to do this. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] gridview onItemClick gets executed even on empty space after the last item
On Wed, Aug 29, 2012 at 10:03 PM, Justin Anderson magouyaw...@gmail.comwrote: Please post the relevant code where you are setting up and handling your item click. All right, following is my onItemClick event of gridview, on which I am adding the clicked image in the gallery situated on the bottom of the screen, and removing that selected image from the gridview.. All is working well, when I click any image from the grid. But, in the case, when I click empty position after the last one, (*when I do have more than 8 images in my grid*), the returned position is somewhat 8 less than the total items in my grid, as well as item of the returned position is dropped into the gallery and removed from the grid. *Grid OnItemClick event* * * private OnItemClickListener mOnItemClickListener = new OnItemClickListener() { public void onItemClick(AdapterView? adapterView, View v, int position, long id) { if(adapterView == draggableGrid) { GridPhoto mGridPhoto = gridItemAdapter.getItem(position); onGridPhotoDropped(mGridPhoto, gallaryItemAdapter.getCount()); Log.d(grid,clicked item position=+position); findViewById(R.id.dragtxt).setVisibility(View.INVISIBLE); gridItemAdapter.notifyDataSetChanged(); } } }; *GridView Adapter* * * package com.views.viewAdapters; import java.io.File; import java.util.ArrayList; import android.content.Context; import android.content.res.TypedArray; import android.net.Uri; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.RelativeLayout; import com.Classes.GridPhoto; import com.Slideshow.AG; import com.Slideshow.R; public class GridItemAdapter extends BaseAdapter { private Context context; int imageBackground; public GridItemAdapter(Context context, ArrayListGridPhoto mGridPhoto_list){ this.context = context; TypedArray ta = context.obtainStyledAttributes(R.styleable.Gallery1); imageBackground = ta.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 1); ta.recycle(); } public int getCount() { int count = AG.loadedProject.getProject_gridPhoto_list().size(); if(count3000) count=3000; return count; } public GridPhoto getItem(int arg0) { return AG.loadedProject.getProject_gridPhoto_list().get(arg0); } public long getItemId(int arg0) { return arg0; } @Override public void notifyDataSetChanged() { super.notifyDataSetChanged(); } public View getView(int position, View convertView, ViewGroup arg2) { if(convertView == null){ convertView = (RelativeLayout)RelativeLayout.inflate(context,R.layout.grid_item, null); } ImageView iv = (ImageView) convertView.findViewById(R.id.imgPhoto_gridItem); GridPhoto gp = AG.loadedProject.getProject_gridPhoto_list().get(position); String t_path = gp.getThumbnailImagePath(); if(t_path != null new File(t_path).exists()) { Uri imgUri = Uri.parse(gp.getThumbnailImagePath()); if(gp.getThumbnailImageBitmap() == null) iv.setImageURI(imgUri); //iv.setImageResource(R.drawable.icon_processing_gif); else iv.setImageBitmap(gp.getThumbnailImageBitmap()); } else if(t_path != null) { if(t_path.equals(_#processing)) iv.setImageResource(R.drawable.icon_processing_gif); else iv.setImageResource(R.drawable.no_image_found_icon); } else iv.setImageResource(R.drawable.no_image_found_icon); iv.setScaleType(ImageView.ScaleType.FIT_XY); iv.setBackgroundResource(imageBackground); return convertView; } } Now, please suggest, whats wrong I am doing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi
I have an idea for that. Why don't you use database for that. Database should contain at least 2 tables - one will contain chapter name with no.(primary key) Other will contain the chapter no. as foreign key, and contents (one by one) Then, on clicking chapter name from the list, extract its no, and retrieve its contents using suitable query, and display them on next activity. With Regards, NSR.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi
On Fri, Aug 31, 2012 at 4:54 PM, sree android android.sreeni...@gmail.comwrote: thank you for information. Its my pleasure! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] gridview onItemClick gets executed even on empty space after the last item
Hi all developers, I am performing item click of gridview, all is working well unless when I click the empty space after the last item of gridview. On the above mentioned circumstance of clicking empty space, my OnItemClickListener executes (even if there is not any item, returning a wrong position) For instance, I am having a grid of 15 items, and if I click the position after the last one, it is returning me the position (15-8)=*7.* This behavior doesn't happen if I take grid of less than 8 items. Otherwise, on clicking the empty item, the wrong position of (total items - 8) is returned. I will be happy if someone would be able to direct me to the correct way, as I am not getting this strange behavior. Thanks n Regards, NSR. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] More Than One Spinners
On Sat, Aug 18, 2012 at 2:32 AM, S Awan juwerian.so...@gmail.com wrote: Hi, i wanna set more than one spinner with different strings and different icons ..i hve done this all in one spinner correctly but when i set the second spinner with different strings and icons it loads the same strings as first spinner even i defined different strings and icons... i hve uploaded the sample image for easily understand ...i am new in android ..any help pl, many Thnx... Please mention clearly, how you are doing that, so that we can help 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] how to view the most remote item of gridview
Hi all, Please let me know how to view / focus the last item of the gridview on some event, in case there are a lot of items in the gridview For example, I have 100 items in my gridview, and currently 1st item is having focus. I want to view the last (100th) item, on some event (*without scrolling*), say click event. Please direct me how to do that. Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] List of views to change in layout
On Sat, Aug 18, 2012 at 2:20 AM, Budd buddf...@gmail.com wrote: Hi, I got a question about how to change to view dymaically. I have a empty FrameLayout in my activity. I want to do is every 10 seconds 1) Remove all the view in the layout 2) create new videoview or webview (depend on what kind of content in the array) 3) Add it to the layout Any suggestion how i should do it to avoid memory leak or etc? You can do something like this as follows: img=new ImageView(this); img.setLayoutParams(new inearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); img.setImageResource(R.drawable.logo); btn = (Button)findViewById(R.id.btn); btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { linearLayout.removeAllViews(); if(ll.getChildAt(0)==null) { linearLayout.addView(img); } } }); I have done this on button click, you can do the similar using thread. With Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: getting assets file in Uri ......FileNotFoundException
On Tue, Aug 7, 2012 at 12:43 PM, skink psk...@gmail.com wrote: what statement throws FileNotFoundException? try { fis = new FileInputStream(mUris[0].toString()); } catch (FileNotFoundException e) { e.printStackTrace(); } This is giving me FileNotFoundException, when I am using asset path. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 assets file in Uri ......FileNotFoundException
Hi all, I am not getting what is wrong here in the following statement. Please tell if anyone know about the cause of this behaviour. *mUris[0]=Uri.parse(file:///android_asset/bottom_logo.png);* I am getting *FileNotFoundException* for the above statement. Am I giving the wrong path or something else is the problem? I do have this image in my assets folder, and put a lot of efforts to find the solution, but still unsuccessful. Please, let me know what I am doing wrong. Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 assets file in Uri ......FileNotFoundException
On Mon, Aug 6, 2012 at 11:59 PM, Justin Anderson magouyaw...@gmail.comwrote: Here, Let Me Google That For You... http://lmgtfy.com/?q=android+access+assets Maybe one day, you'll be able to learn how to fish too... Hey Justin, let me tell you one thing, I do ask questions here after googling a lot. I actually ask questions here to get response which can help me to proceed further in my task, not to get suggestions for googling it. Tell if you know about this problem, I am facing, otherwise, no need to spend your precious time. Thanks buddy. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: getting assets file in Uri ......FileNotFoundException
Care to elaborate on what you've done? Ok, I clear to you what I want. This one is working very fine. I mean *no FileNotFoundException*. *mUris[0]=Uri.parse(Environment.getExternalStorageDirectory()+/last_slide.png); * But, this one is not working, giving me file not found. *mUris[0]=Uri.parse(file:///android_asset/**last_slide.png**);* I am not getting, what must I do to make it work? Please direct. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 display a toast after 10 seconds from starting Asynctask
Okay, I will try this. Anyways, thankyou all for valuable suggestions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to display a toast after 10 seconds from starting Asynctask
Hi all, please suggest me how to execute something after 10 seconds from the start of AsyncTask. I have used AsyncTask for different purpose. But, now I want to update my UI after 10 seconds. Or to show a toast after specific time. I actually want to perform some other task after 10 seconds, while the original task is running please let me know how to do this.? Thank you all. NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application to start with
On Thu, Jul 19, 2012 at 3:49 PM, tj mailme.ta...@gmail.com wrote: I am new to android development. I have worked before on java and .NET but am a bit confused with android programming. Can you plz suggest some ideas as to on what basic application should I start working on. I made basic TicTacToe game so I know the basic programming stuff. Thanks.. Thats good. Try to make the *calculator with the converter* app, which contains the calculator - simple and scientific, with the converter to convert currencies, measurements and so 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
[android-developers] How to get the platform signing key
Hi all, I need to know how can I get the platform signing key. I googled a lot, but unable to find the step by step process for that. Please guide me the way to do 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
Re: [android-developers] How to change ProgressDialog background color
style name=android:MyProgressStyle parent=@android:style/ Widget.ProgressBar item name=android:background#F7F7F7/item /style The result was the background of LinearLayout and ProgressBar changed to that color. I only want to change the background color of the ProgressDialog. All right, don't apply style to the linear layout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Show Spinner Initial Text
On Tue, Jul 17, 2012 at 12:01 PM, abhijeet tomar abhijeet...@gmail.comwrote: Hello Members, I have a little problemI want to display Initial text when Spinner display. Generally it shows nothing...it not good to show Please Help... Hi Abhijeet, if you want to show the title of the spinner, just use prompt property of spinner in your layout like this. android:prompt = pick an item; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] remove percentage shown below the progress dialog
Hi all, I am getting the percentage below the horizontal progress dialog, as shown in the attached image. I want to remove that. I got the method setProgressPercentFormat(null), but that work in api level 11 or higher. I need to do in api level 8. So, how can I do that? Please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: progress_percent.png
Re: [android-developers] remove percentage shown below the progress dialog
On Fri, Jul 13, 2012 at 7:42 PM, Raghav Sood raghavs...@gmail.com wrote: Stop updating the progress bar from your code? What do you mean by 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
Re: [android-developers] detect home screen arrival
On Sat, Jul 7, 2012 at 3:26 PM, Mark Murphy mmur...@commonsware.com wrote: Write your own home screen. Alright Mark, but how to do that? I am sure, there will be another better way to do, what I want, and will definitely get that. Anyways, thanks for suggestion. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ViewFlipper
On Sun, Jul 8, 2012 at 3:31 PM, chandur mani chandur.ind...@gmail.comwrote: Thanks to all. I got it , through my logical itself. Ok Chandur, thats good. Will you please tell us how did you do 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] detect home screen arrival
Hello all, My requirement is to detect the home screen arrival in two cases - 1) After closing any application, 2) unlocking the home screen lock. Further, on home screen detection, I want to capture the time and save it for my use. I am using service (containing thread) for this purpose. I am just feeling troublesome in catching the event as soon as the home screen appears from any other screen. Guide me the way to achieve this. Thank you all. NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problm on spinners
On Sun, Jul 1, 2012 at 6:43 PM, Ina Gupta ina.mc...@gmail.com wrote: my problem is in a screen i have two spinners..in ist spinner i have a list of movies wen we selct a movie from that spinner..2nd spinner wil contails list of theaters related to that selcted movie only i m new to android juzz tryng at static level.. All right, so how much have you done yet? Have you populated the first spinner, and used its onItemSelectedListener? If yes, then you can easily proceed using database. But, as you told, you want to do it at static level (without using database), so use your own logic like associating the theatres with the movie: For eg: String[] movie_1 = new String[] {theatre_1,theatre_2,theatre_3}; String[] movie_2 = new String[] {theatre_4,theatre_5,theatre_6}; and then according to the selected movie, populate the second spinner with the array values. So, do you got, what I mean? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ContentValues issue
rideDate never gets assigned and the other values seem to not be assigned in order ie; distance may end up being the second element, when I would have expected rideDate to be the first and distance to be the fourth. This is how I use the newRideValues collection. new BikingLogsContentProvider().insert(CONTENT_URI, newRideValues); Any ideas and suggestions would be very welcome. Sequence of contentValues doesn't matter. The thing which matters here is the pair of key and value. The value will always be inserted in the same column, with which you have associated it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add image buttons in gridview in android
On Tue, Jun 26, 2012 at 11:23 AM, nanda tgraghunandangu...@gmail.comwrote: hi I am new to this android and i need to add image buttons in grid view by parsing an xml.how to do this?? Do the same as you have done in case of imageview, just replace it with imagebutton You don't have to put any more effort. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] problm on spinners
On Fri, Jun 29, 2012 at 1:51 PM, Ina Gupta ina.mc...@gmail.com wrote: how to connect 2 spinners together. Meaning, the items inside 2nd spinner will depend on whatever item is chosen for the 1st spinner Have you tried it before asking? If yes, what problem are you facing in that? Just use *onItemSelected()* of first spinner, and then inside it, set the items in second spinner. If you expect some better answer, please clarify 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
Re: [android-developers] Passing Object
On Tue, Jun 26, 2012 at 12:54 PM, mohammed Nuhail nuhail...@gmail.comwrote: How to pass the object from one activity to another ? Use the methods putParcelable() and getParcelable() for 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
Re: [android-developers] Is it possible implement an Android spinner with out using the XML layout file ?
On Wed, Dec 28, 2011 at 10:50 AM, Sreejith sreejithg@gmail.com wrote: Is it possible implement an Android spinner with out using the XML layout file ? In all examples their is a use of an XML file reference (like android.R.layout.simple_spinner_item) for setAdapter function usage.If not can anybody please mention the reason ? No, its not possible because the constructor of ArrayAdapter class takes * textViewResourceId* (resource id of textview) as an argument. And that resource id is *integer type constant*, which in above case is * android.R.layout.simple_spinner_item*. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 it possible implement an Android spinner with out using the XML layout file ?
of course it's possible, you don't have to use ArrayAdapter after all Oh, is it? So, please tell me the alternative of using ArrayAdapter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 it possible implement an Android spinner with out using the XML layout file ?
On Fri, Jun 29, 2012 at 4:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jun 29, 2012 at 6:51 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: of course it's possible, you don't have to use ArrayAdapter after all Oh, is it? So, please tell me the alternative of using ArrayAdapter. Use any other kind of adapter, including your own BaseAdapter subclass. Also note that ArrayAdapter does work without a layout resource file, but you have to override getView(), not chain to the superclass, and handle row creation and recycling yourself. Ok, got 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
Re: [android-developers] @NdroidDeepu--map view on buttonclick
On Fri, Jun 29, 2012 at 6:12 PM, DILEEP PT android.dil...@gmail.com wrote: Hei guys,... i am here with another pblm.. i have a edittext in wich i can type the country or place and a button to submit, when i click submit ,it has to show the place in my webview like googlemap. can anyone pls help me... Have a nice day What have you tried yet? What problem are you facing in 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
Re: [android-developers] @NdroidDeepu--map view on buttonclick
On Fri, Jun 29, 2012 at 6:22 PM, DILEEP PT android.dil...@gmail.com wrote: i have a edittext and a buttonif i put bangalore in my edittext and clik the button it has to show banglore like(google map) Ok, so what problem are you facing in 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
Re: [android-developers] Android Spinner not working
Let me have a look at your spinner code, so that I can suggest what's wrong. Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New to developing , errors already
On Thu, Jun 28, 2012 at 6:22 AM, Nick Krawczyk ez4n...@gmail.com wrote: I'm trying to start by following this : http://developer.android.com/training/basics/firstapp/building-ui.html#Weight, building a simple interface. I have followed the instructions but when I click run somehow a new file called activity_main.out.xml appears To get rid off from activity_main.out.xml, try to delete it, then clean and refresh the project, and run as android application. I also faced the same problem, and my problem solved like this. Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ViewFlipper
On Wed, Jun 27, 2012 at 12:36 AM, chandur mani chandur.ind...@gmail.comwrote: I have 5 content views in view flipper, here i use to see all 5 content through viewflipperinstance.showNext() and viewflipperinstance.showPrevious(). Here my problem is both next and previous buttons click, it show all 5 content and again start 1st. I need whenever user click next it will up to 5th content and same to previous when user click back it will show up tp 1st content. You can put a check something like this. if(viewflipperinstance.getDisplayedChild()!=0) { viewflipperinstance.showPrevious() } or if(viewflipperinstance.getDisplayedChild()!=(viewflipperinstance.getChildCount()-1) { viewflipperinstance.showNext() } This will help you out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
On Wed, Jun 27, 2012 at 10:31 AM, jagruti sangani jugni1sm...@gmail.comwrote: Hi, you can use the thread for periodically checking whether any new application is launch or not.If any found then compare with that and and if it is match then insert data in database or whatever you want to do on that found. Sorry to say, but its not the perfect solution I need, coz I want information to be saved/stored only when any application starts or closes, (say browser app: started 1 time, closed 1 time), which should only be updated on launch or termination of app. The updation should not happen periodically, as it may create problem as well as may be called multiple times on a single time execution of app. Hope, you are getting my idea. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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:onClick throws nullPointerExeption
On Mon, Jun 25, 2012 at 12:35 AM, CaynanVictor caynan...@gmail.com wrote: Hey, guys, i had a really strange problem i was trying to do this tutorial: http://developer.android.com/training/basics/firstapp/index.html , but as soon as i add content to the method that the android:onClick calls, the app breaks and throws a nullPointerExeption. i verify the code 5 times, and it`s exactilly equals to the one on the tutorial. Please post your code, so that we may look whats the matter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] detect if an app is launched
And, as multiple have mentioned, this will *not* be possible... Ok Kris, so does that mean, there is no other way to do what I want? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] detect if an app is launched
On Wed, Jun 27, 2012 at 7:01 PM, Kristopher Micinski krismicin...@gmail.com wrote: As we said, you can poll it, but it's not recommended. Why do you need to do this? Let me clarify you about my requirement. I actually want to monitor all the apps stored in the device, and retrieve their information (like how many times app is opened or closed. All that process of maintaining the record will start, when I first time install my app (which will show me details of other apps). For this reason, I wanted that as soon as any device app (system's app as well as user's apps), is launched or closed, the database should be updated like --- *App A started: 2 times and stopped 1 time total usage: 15 hrs, App B started 3 times stopped: 3 times, total usage: 7 hrs* And in my own application, I can retrieve that information. I wish, my problem is somewhat clear to you. Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] detect if an app is launched
But *why* do you want to do this. To display it to the user? Yes, to display it to the user. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] detect if an app is launched
All right, I got my answer. Thanks all for directing me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] subject to device problem
Hi Rahul, what problem are you getting in displaying tablelayout contents dynamically. Please specify it clearly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] detect if an app is launched
Hi all, I want to know if it is possible to detect an application launch, through its package name. Suppose, I have created a test app, in which I want to get some information about a specific app, For eg. Contact app of the devicelike how many times it has opened or closed, in a specific amount of time. I want to store the information (say, in database) when that app has just been launched (of course, on the same instant). I want all that by providing package name of that application. Is all what I want possible? If yes, how to do that? I guess, I need to use BroadcastReceiver for this. What do you say? Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 time-period when the home screen remains active
Hi all, I am having trouble in getting some sort of information in my application like when I close any opened application, and after sometime open another application or the same one. Now, I want to get the time period (between closing the app or opening another app) for which the home screen remains active. Q.1) Is it possible? Q.2) If possible, how to achieve that? Thanks n Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parsing xml in given url
Hi again Justin and Treking, I already apologized in the same thread for my mistake. So, I guess, its no need to continue this discussion further, only to show my mistake. I hope, you got what I mean. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parsing xml in given url
On Sun, Jun 24, 2012 at 10:43 PM, Michael Banzon mich...@banzon.dk wrote: If you are in a hurry - and need the answer fast - you can use the same method I usually do. Check it out: http://bit.ly/Obf0Xq Thanks Michael for suggesting this. But, sorry to say, I think its time consuming task. Instead if someone knows the exact solution of my problem, I would get the help sooner, isn't it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] fetching image from URL as well as showing progress dialog
Hi all Please help me in getting image from a URL. As well as I want to show progress dialog for that, while image is loading Thanks in Advance. NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: fetching image from URL as well as showing progress dialog
On Sat, Jun 23, 2012 at 4:26 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hi all Please help me in getting image from a URL. As well as I want to show progress dialog for that, while image is loading Thanks in Advance. NSR Image should be downloaded. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] show progress dialog while image download
Hi devs, I actually want to show progress dialog, while downloading an image from URL I successfully downloaded the image, just want to know how to show progress dialog while its download? Please help me in doing this. With Thanks n Regards, NSR. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parsing xml in given url
Please help me out in parsing xml from url -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parsing xml in given url
On Sat, Jun 23, 2012 at 7:56 PM, TreKing treking...@gmail.com wrote: On Sat, Jun 23, 2012 at 9:02 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Please help me out in parsing xml from url You want to explain what help you actually need and what this has to do with Android specifically? http://www.catb.org/~esr/faqs/smart-questions.html Ok, sure. I actually needed the answer within sometime when I asked the question. I was given the url and was told to parse specific things in that within a particular period of time. Thats why, asked the question hurrily (without giving much specification). Well, so sorry for providing vague information about my 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
Re: [android-developers] refresh list
On Tue, Jun 19, 2012 at 1:38 PM, Live Happy livehap...@gmail.com wrote: i have list based on cursor adapter but the problem is when i add new item to the database i cant refresh the list, i try many way re-query the cursor and then notifyDataSetChanged.but not work so how i can refresh the list Why don't you refresh your activity at that moment? Please try 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
Re: [android-developers] refresh list
Just use this, where you want to refresh your list/activity. finish(); startActivity(getIntent()); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] refresh list
On Tue, Jun 19, 2012 at 2:27 PM, Live Happy livehap...@gmail.com wrote: refresh activity is not good solution coz i update the database from the same activity and i want the databe to be refreshed after a button clicked not all the acitvity All right, then you must use notifydatasetChanged on list adapter, and *make sure*, you have again set the adapter on the list, after being refreshed. I guess, this will help you out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problem while getting md5 key
On Fri, Dec 23, 2011 at 6:59 AM, enes enes...@gmail.com wrote: I' m tring to get md5 code but the cms show me sha1. the following output generate when I run command c:\Program Files\Java\jre7\binkeytool.exe -list -alias androiddebugkey -keystor e C:\debug.keystore -storepass android -keypass android androiddebugkey, 16.Eki.2011, PrivateKeyEntry, Certificate fingerprint (SHA1): 02:24:F2:01:90:8D:CF:E5:5B:FD: 53:09:F2:24:45:B8: F0:D1:2C:D3 how to get MD5 key? help. Just replace your command like this keytool.exe *-v* -list -alias androiddebugkey -keystore C:\debug.keystore -storepass android -keypass android You will get MD5 fingerprint. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] trace mobile location through phone number
Hello all, I want to trace the mobile location using phone number. What should be my approach for that. Please suggest me what to do for that. Or direct me the way, from where I should start proceeding. Thanks Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] trace mobile location through phone number
On Fri, Jun 15, 2012 at 1:03 PM, Parthi K parthisof...@gmail.com wrote: use gps code dude.. Great suggestion buddy...I know using GPS code. But, I guess, I have to remind my question to you. My problem is to get the location of phone no. So, how to use GPS code for finding particular phone number's location, as, till now, I have used that (GPS code) for finding present location of user. Please suggest if you know. Hope, you understood my requirement. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan vijay.vijay...@gmail.comwrote: Hi all, How to call another activity when i press the back button. It seems somewhat improperbut here is solution to your requirement. public void onBackPressed() { Log.d(CDA, onBackPressed Called); Intent setIntent = new Intent(Intent.ACTION_MAIN); setIntent.addCategory(Intent.CATEGORY_HOME); setIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(setIntent); return; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
On Fri, Jun 15, 2012 at 1:16 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan vijay.vijay...@gmail.com wrote: Hi all, How to call another activity when i press the back button. It seems somewhat improperbut here is solution to your requirement. public void onBackPressed() { Log.d(CDA, onBackPressed Called); Intent setIntent = new Intent(Intent.ACTION_MAIN); setIntent.addCategory(Intent.CATEGORY_HOME); setIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(setIntent); return; } *Don't forget to Override this.* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] trace mobile location through phone number
I guess, what I want is not directly possible, as suggested here on the following link. http://stackoverflow.com/questions/7173769/finding-a-phones-location-from-its-number-using-gps -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] trace mobile location through phone number
On Fri, Jun 15, 2012 at 4:59 PM, Raghav Sood raghavs...@gmail.com wrote: This has nothing to do with the Android SDK. You'll need to find an online website with an API that allows you to do this. This isn't the list to find that website. Ok, thanks for the suggestion. I realized what I wanted can actually be achieved in the manner, I thought, as I mentioned above. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] mapviewError
On Wed, Jun 13, 2012 at 4:57 PM, deepak mamdapure developer.it.a...@gmail.com wrote: plz Suggest me any one i wrote all code for mapview but it does not appeair on emulator it shows only blocks on emulator my code is below pls check is there any correction plz tell me .there is no any error in this code plz suggest me. thank you Well, the possible reasons behind this problem are: 1) wrong api key 2) unavailability of internet So, it may be either of the two reasons. Tell me if I am wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] mapviewError
On Wed, Jun 13, 2012 at 6:44 PM, deepak mamdapure developer.it.a...@gmail.com wrote: in the logcat below msg will displayed then what i do 06-13 18:34:13.114: ERROR/MapActivity(388): Couldn't get connection factory client Amey has clarified you what to do in that case. Check your map api key, there may be something wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en