[android-developers] Cross-phone Image Compatibility
I'd like to have an image be the same percentage of the height of the display on every Android phone, without becoming blurry. I'll have ldpi, mdpi, and hdpi versions. If nothing is possible, then I could also replace them with android.graphics.drawable.shapes objects. How many of them can I draw on the screen without slowing down a phone (assuming SurfaceView)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Strange device?
Don't believe written documentation at this point, there has been some chaos in this. The current official numbers used by the platform implementation are: Normal -- 320dp x 480dp Large - 480dp x 640dp XLarge - 720dp x 960dp Technically in the impl Small is just smaller than normal, but as per the CDD the smallest this can be is 320dp x 426dp. * *I really need to write a blog post about this, especially on conjunction with some other stuff coming up. :} On Mon, Jun 20, 2011 at 9:57 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Dianne, I found the following table in attrs_manifest.xml attr name=screenSize !-- A small screen configuration, at least 240x320db. -- enum name=small value=200 / !-- A normal screen configuration, at least 320x480db. -- enum name=normal value=300 / !-- A large screen configuration, at least 400x530db. -- enum name=large value=400 / !-- An extra large screen configuration, at least 600x800db. -- enum name=xlarge value=500 / /attr Are those correct? I couldn't find the code where it would do the checking -- I guess it's in native code. On Jun 21, 10:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: Thanks, Dianne. I am actually happy that OEMs are trying to push the envelop with these devices. Some of these strange form factors may stick. So the division point between normal and large is 480dp x 640dp. Can you please tell me (or point me to a source) what the division points between small/normal and large/xlarge are? On Jun 21, 9:51 am, Dianne Hackborn hack...@android.com wrote: Yeah, 240/160. hdpi == 240, mdpi == 160. This device should not normally run applications on both screens. Actually, this is what they did: https://market.android.com/details?id=com.kyocera.tabletmodeextension... So it is a compatible device for purposes of passing the CDD, but you can download an app of theirs that makes it incompatible. Writing the CDD sometimes feels like trying to do a deal with the devil. :p On Mon, Jun 20, 2011 at 6:41 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Got it. It's the density float in DisplayMetrics. On Jun 21, 9:36 am, Zsolt Vasvari zvasv...@gmail.com wrote: I am sorry, how did you get 533dp x 640dp from 800x960 hdpi screen? Can you please provide this calculation? Obviously, you divided by 1.5, but where did the 1.5 magic constant come from? I would like to use this info to determine in my app if I am running on a screen at least LARGE and do some stuff differently. On Jun 21, 9:19 am, Dianne Hackborn hack...@android.com wrote: To be compatible, a device like this would need to run apps in only one of the screens. What it means to run in two screens is not well defined. Fwiw, the division point between normal and large is 480dp x 640dp. So a 800x960 hdpi screen is 533dp x 640dp, just barely classifying as large. On the other hand the aspect ratio of that screen is only 1.2, which is not compatible according to the CDD. It is also not compatible to change the screen configuration, so there are two reasons it must run applications on one screen for compatibility. On Mon, Jun 20, 2011 at 5:24 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The Flipout has a 320x240 screen. Ths is definetely the Kyocera Echo. My only question when supporting this device is if the screen consdered Medium or Large? 4.7 seems to be borderline on the screen size chart. On Jun 20, 11:40 pm, Dan dan.schm...@gmail.com wrote: My bet is the Motoroal Ruth/Flipout http://phandroid.com/motorola-flipout/ On Jun 19, 6:56 pm, Zsolt Vasvari zvasv...@gmail.com wrote: As part of my app, if I notice a screen size/DPI combo I haven't tested on, I pop-up a dialog and ask the user to send me an e-mail about that. Here's what I got yesterday: Display width: 800 Display height: 960 Display DPI: 240 Anybody has a clue as to what kind of device has a 800x960 squarish screen. The HDPI indiciates that it's a phone. I asked the user, but he hasn't come back to me -- my guess it's something unreleased.- 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
[android-developers] How to mount multi sdcard on vold?
Hi All: My device had two sdcard, default it's only one card mount on android start. My vold.fstab config like this: dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2 dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/s3c-sdhci.3/mmc_host/mmc3 init.rc: export EXTERNAL_STORAGE /mnt/sdcard # pwd /dev/block/vold # ls -l brw-rw root root 179, 9 2010-01-01 12:00 179:9 brw-rw root root 179, 8 2010-01-01 12:00 179:8 brw-rw root root 179, 0 2010-01-01 12:00 179:0 # mount rootfs / rootfs rw,relatime 0 0 tmpfs /dev tmpfs rw,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,mode=600 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 none /dev/cpuctl cgroup rw,relatime,cpu 0 0 /dev/block/mtdblock4 /system yaffs2 rw,relatime 0 0 /dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock5 /cache yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/vold/179:0 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 /dev/block/vold/179:0 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0 -- Bian Jiang http://www.wifihack.net/ http://golang-china.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cross-phone Image Compatibility
If your app is media heavy: - place the images into a nodpi directory at 600px width in portrait mode. - on first run a) identify the width of the display b) scale the images c) store the scaled versions in cache or on SD Why 600? 600px is the largest Android 2 series device and scales nicely to 540(x0.9), 480(x0.8) and 240(x0.4). Not so much to HTC Hero and Legend type of devices at 320(x0.5...) On Jun 21, 9:01 am, Prem Nair prem.q.n...@gmail.com wrote: I'd like to have an image be the same percentage of the height of the display on every Android phone, without becoming blurry. I'll have ldpi, mdpi, and hdpi versions. If nothing is possible, then I could also replace them with android.graphics.drawable.shapes objects. How many of them can I draw on the screen without slowing down a phone (assuming SurfaceView)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Strange device?
Ok, thanks. I am testing on the original 7 Galaxy Tab, which is a 600x1024 HDPI device, which gives 400dpx683dp, so unless I am misunderstanding you, it should be classificed as a Normal screen device, but it seems to be pulling resources from the Large folders. Is there special handling for just this case, or is it really supposed to be an OR instead of an AND when it comes to width/height sizes? On Jun 21, 2:37 pm, Dianne Hackborn hack...@android.com wrote: Don't believe written documentation at this point, there has been some chaos in this. The current official numbers used by the platform implementation are: Normal -- 320dp x 480dp Large - 480dp x 640dp XLarge - 720dp x 960dp Technically in the impl Small is just smaller than normal, but as per the CDD the smallest this can be is 320dp x 426dp. * *I really need to write a blog post about this, especially on conjunction with some other stuff coming up. :} On Mon, Jun 20, 2011 at 9:57 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Dianne, I found the following table in attrs_manifest.xml attr name=screenSize !-- A small screen configuration, at least 240x320db. -- enum name=small value=200 / !-- A normal screen configuration, at least 320x480db. -- enum name=normal value=300 / !-- A large screen configuration, at least 400x530db. -- enum name=large value=400 / !-- An extra large screen configuration, at least 600x800db. -- enum name=xlarge value=500 / /attr Are those correct? I couldn't find the code where it would do the checking -- I guess it's in native code. On Jun 21, 10:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: Thanks, Dianne. I am actually happy that OEMs are trying to push the envelop with these devices. Some of these strange form factors may stick. So the division point between normal and large is 480dp x 640dp. Can you please tell me (or point me to a source) what the division points between small/normal and large/xlarge are? On Jun 21, 9:51 am, Dianne Hackborn hack...@android.com wrote: Yeah, 240/160. hdpi == 240, mdpi == 160. This device should not normally run applications on both screens. Actually, this is what they did: https://market.android.com/details?id=com.kyocera.tabletmodeextension... So it is a compatible device for purposes of passing the CDD, but you can download an app of theirs that makes it incompatible. Writing the CDD sometimes feels like trying to do a deal with the devil. :p On Mon, Jun 20, 2011 at 6:41 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Got it. It's the density float in DisplayMetrics. On Jun 21, 9:36 am, Zsolt Vasvari zvasv...@gmail.com wrote: I am sorry, how did you get 533dp x 640dp from 800x960 hdpi screen? Can you please provide this calculation? Obviously, you divided by 1.5, but where did the 1.5 magic constant come from? I would like to use this info to determine in my app if I am running on a screen at least LARGE and do some stuff differently. On Jun 21, 9:19 am, Dianne Hackborn hack...@android.com wrote: To be compatible, a device like this would need to run apps in only one of the screens. What it means to run in two screens is not well defined. Fwiw, the division point between normal and large is 480dp x 640dp. So a 800x960 hdpi screen is 533dp x 640dp, just barely classifying as large. On the other hand the aspect ratio of that screen is only 1.2, which is not compatible according to the CDD. It is also not compatible to change the screen configuration, so there are two reasons it must run applications on one screen for compatibility. On Mon, Jun 20, 2011 at 5:24 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The Flipout has a 320x240 screen. Ths is definetely the Kyocera Echo. My only question when supporting this device is if the screen consdered Medium or Large? 4.7 seems to be borderline on the screen size chart. On Jun 20, 11:40 pm, Dan dan.schm...@gmail.com wrote: My bet is the Motoroal Ruth/Flipout http://phandroid.com/motorola-flipout/ On Jun 19, 6:56 pm, Zsolt Vasvari zvasv...@gmail.com wrote: As part of my app, if I notice a screen size/DPI combo I haven't tested on, I pop-up a dialog and ask the user to send me an e-mail about that. Here's what I got yesterday: Display width: 800 Display height: 960 Display DPI: 240 Anybody has a clue as to what kind of device has a 800x960 squarish screen. The HDPI indiciates that it's a phone. I asked the user, but he hasn't come
[android-developers] Re: How to mount multi sdcard on vold?
This is the Android SDK forum, not the porting forum. They got their own group. On Jun 21, 2:46 pm, bord...@gmail.com bord...@gmail.com wrote: Hi All: My device had two sdcard, default it's only one card mount on android start. My vold.fstab config like this: dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2 dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/s3c-sdhci.3/mmc_host/mmc3 init.rc: export EXTERNAL_STORAGE /mnt/sdcard # pwd /dev/block/vold # ls -l brw-rw root root 179, 9 2010-01-01 12:00 179:9 brw-rw root root 179, 8 2010-01-01 12:00 179:8 brw-rw root root 179, 0 2010-01-01 12:00 179:0 # mount rootfs / rootfs rw,relatime 0 0 tmpfs /dev tmpfs rw,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,mode=600 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 none /dev/cpuctl cgroup rw,relatime,cpu 0 0 /dev/block/mtdblock4 /system yaffs2 rw,relatime 0 0 /dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock5 /cache yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/vold/179:0 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 /dev/block/vold/179:0 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0 -- Bian Jianghttp://www.wifihack.net/http://golang-china.org/- 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
[android-developers] Re: Strange device?
When I say, it's a 600x1024 HDPI device, I mean that's what's reported by DisplayMetrics, even though, in reality, MDPI would be closer. On Jun 21, 2:58 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Ok, thanks. I am testing on the original 7 Galaxy Tab, which is a 600x1024 HDPI device, which gives 400dpx683dp, so unless I am misunderstanding you, it should be classificed as a Normal screen device, but it seems to be pulling resources from the Large folders. Is there special handling for just this case, or is it really supposed to be an OR instead of an AND when it comes to width/height sizes? On Jun 21, 2:37 pm, Dianne Hackborn hack...@android.com wrote: Don't believe written documentation at this point, there has been some chaos in this. The current official numbers used by the platform implementation are: Normal -- 320dp x 480dp Large - 480dp x 640dp XLarge - 720dp x 960dp Technically in the impl Small is just smaller than normal, but as per the CDD the smallest this can be is 320dp x 426dp. * *I really need to write a blog post about this, especially on conjunction with some other stuff coming up. :} On Mon, Jun 20, 2011 at 9:57 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Dianne, I found the following table in attrs_manifest.xml attr name=screenSize !-- A small screen configuration, at least 240x320db. -- enum name=small value=200 / !-- A normal screen configuration, at least 320x480db. -- enum name=normal value=300 / !-- A large screen configuration, at least 400x530db. -- enum name=large value=400 / !-- An extra large screen configuration, at least 600x800db. -- enum name=xlarge value=500 / /attr Are those correct? I couldn't find the code where it would do the checking -- I guess it's in native code. On Jun 21, 10:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: Thanks, Dianne. I am actually happy that OEMs are trying to push the envelop with these devices. Some of these strange form factors may stick. So the division point between normal and large is 480dp x 640dp. Can you please tell me (or point me to a source) what the division points between small/normal and large/xlarge are? On Jun 21, 9:51 am, Dianne Hackborn hack...@android.com wrote: Yeah, 240/160. hdpi == 240, mdpi == 160. This device should not normally run applications on both screens. Actually, this is what they did: https://market.android.com/details?id=com.kyocera.tabletmodeextension... So it is a compatible device for purposes of passing the CDD, but you can download an app of theirs that makes it incompatible. Writing the CDD sometimes feels like trying to do a deal with the devil. :p On Mon, Jun 20, 2011 at 6:41 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Got it. It's the density float in DisplayMetrics. On Jun 21, 9:36 am, Zsolt Vasvari zvasv...@gmail.com wrote: I am sorry, how did you get 533dp x 640dp from 800x960 hdpi screen? Can you please provide this calculation? Obviously, you divided by 1.5, but where did the 1.5 magic constant come from? I would like to use this info to determine in my app if I am running on a screen at least LARGE and do some stuff differently. On Jun 21, 9:19 am, Dianne Hackborn hack...@android.com wrote: To be compatible, a device like this would need to run apps in only one of the screens. What it means to run in two screens is not well defined. Fwiw, the division point between normal and large is 480dp x 640dp. So a 800x960 hdpi screen is 533dp x 640dp, just barely classifying as large. On the other hand the aspect ratio of that screen is only 1.2, which is not compatible according to the CDD. It is also not compatible to change the screen configuration, so there are two reasons it must run applications on one screen for compatibility. On Mon, Jun 20, 2011 at 5:24 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The Flipout has a 320x240 screen. Ths is definetely the Kyocera Echo. My only question when supporting this device is if the screen consdered Medium or Large? 4.7 seems to be borderline on the screen size chart. On Jun 20, 11:40 pm, Dan dan.schm...@gmail.com wrote: My bet is the Motoroal Ruth/Flipout http://phandroid.com/motorola-flipout/ On Jun 19, 6:56 pm, Zsolt Vasvari zvasv...@gmail.com wrote: As part of my app, if I notice a screen size/DPI combo I haven't tested on, I pop-up a dialog and ask the user to send me an e-mail
[android-developers] Re: call forwarding programmatically
Ok! I finally figure it out! Although I didn't really understand why it worked but using the following code symbols like # are passing to DIAL CALL Action. String uri = **21*30693516000#; // ##21# Intent intent = new Intent(Intent.ACTION_DIAL); // ACTION_CALL Uri uri2 = Uri.fromParts(tel, uri, #); intent.setData(uri2); startActivity(intent); On Jun 17, 1:15 pm, madlymad mando7s...@gmail.com wrote: Hi there, I am trying to make an app that will allow the user to forward his calls to voicemail and also disable that option. In order to do that I am trying to dial **21*30693516000# for activating the call forward and ##21# for deactivating If you try that straight to the keypad the commands work perfect but trying to pass them through the Intent extras I am loosing symbols like # and the call does not work. :( Is there any walk-around to dial whatever you want? I both tried ACTION_DIAL andACTION_CALL String uri = **21*30693516000#; // ##21# Intent intent = new Intent(Intent.ACTION_DIAL); //ACTION_CALL intent.setData(Uri.parse(uri)); startActivity(intent); At uri = **21*30693516000#; the passed number = **21*30693516000 so you lose the # and at the case of ##21# the number is * (just a star symbol) In the option ofACTION_CALLafter the call you get an not acceptable MMI code but I am sure that if you manage to pass the number right it will work. Any ideas? Thanks in advance, sorry for the long post. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] bluez help
Hi, Can anybody let me know bluez forums to get help for android development. Rgds, Arun S. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] thread caused app to forcedclosed?
Hi, I am using thread in my activity class.when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app.I have tried it by removing the thread then it works fine. Here is the code that i m calling from onCreate method. private void listenForTrackChange() { new Thread() { public void run() { if(!isSocketOpen) { try { try { String line; socket=new Socket(host,1934); out = new PrintWriter(socket.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out.println(OPEN CHANNEL ARTIST +StremingPlayer.CURRENTARTISTID); while ((line=in.readLine())!=null) { String delimeter1==; String delimeter2=; String trackid=line.substring(line.indexOf(delimeter1),line.indexOf(delimeter2)); ListNameValuePair nameValues = new ArrayListNameValuePair(); nameValues.add(new BasicNameValuePair(sid, SplashScreen.sidvalue)); HttpRetriever httpThread = new HttpRetriever( UrlConstants.BASEURL + UrlConstants.TRACK+id+trackid, nameValues, StreamingPlayerView.this, UrlConstants.NEWSLISTINDEX); httpThread.start(); isSocketOpen=true; } } catch (IOException e) { e.printStackTrace(); } finally { try { if (in!=null) in.close(); } catch (IOException e) {e.printStackTrace();}; if (out!=null) out.close(); try { if (socket!=null) socket.close(); isSocketOpen=false; } catch (IOException e) { e.printStackTrace(); }; } } catch (Exception e) { e.printStackTrace(); } } } }.start(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Task Manager
Hi guys, Good Morning guys, I do one android application.. I need to run the application back ground but when ever kill my application using task manager it will b closed. Now i need to hide my application from the task manager.. Can any one help me? Please. its very urgent. Thanks in advance... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: thread caused app to forcedclosed?
Ok, cool. Do you have a question? On Jun 21, 3:35 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: Hi, I am using thread in my activity class.when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app.I have tried it by removing the thread then it works fine. Here is the code that i m calling from onCreate method. private void listenForTrackChange() { new Thread() { public void run() { if(!isSocketOpen) { try { try { String line; socket=new Socket(host,1934); out = new PrintWriter(socket.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out.println(OPEN CHANNEL ARTIST +StremingPlayer.CURRENTARTISTID); while ((line=in.readLine())!=null) { String delimeter1==; String delimeter2=; String trackid=line.substring(line.indexOf(delimeter1),line.indexOf(delimeter2)); ListNameValuePair nameValues = new ArrayListNameValuePair(); nameValues.add(new BasicNameValuePair(sid, SplashScreen.sidvalue)); HttpRetriever httpThread = new HttpRetriever( UrlConstants.BASEURL + UrlConstants.TRACK+id+trackid, nameValues, StreamingPlayerView.this, UrlConstants.NEWSLISTINDEX); httpThread.start(); isSocketOpen=true; } } catch (IOException e) { e.printStackTrace(); } finally { try { if (in!=null) in.close(); } catch (IOException e) {e.printStackTrace();}; if (out!=null) out.close(); try { if (socket!=null) socket.close(); isSocketOpen=false; } catch (IOException e) { e.printStackTrace(); }; } } catch (Exception e) { e.printStackTrace(); } } } }.start(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: bluez help
Yup, here's a link for you: http://goo.gl/AKYBk On Jun 21, 3:26 pm, arun_satya3 arun.sat...@gmail.com wrote: Hi, Can anybody let me know bluez forums to get help for android development. Rgds, Arun S. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problems to get Latitude/Longitude from a picture
Thank you for your answer, I will try that. On 15 juin, 15:16, Streets Of Boston flyingdutc...@gmail.com wrote: Have you tried to read the images' EXIF information for the longitude/latitude? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] constructor problem
yes i know this but how i used this from some activities? 2011/6/21 TreKing treking...@gmail.com On Mon, Jun 20, 2011 at 5:15 PM, אריאל arielgordon...@gmail.com wrote: so how i can to save setting with SharedPreferences and to get and set from other activity? Read the documentation. Using SharedPreferences is very straight forward and well-documented. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: thread caused app to forcedclosed?
Hi, .when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app. how to resolve this? On Tue, Jun 21, 2011 at 12:41 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Ok, cool. Do you have a question? On Jun 21, 3:35 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: Hi, I am using thread in my activity class.when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app.I have tried it by removing the thread then it works fine. Here is the code that i m calling from onCreate method. private void listenForTrackChange() { new Thread() { public void run() { if(!isSocketOpen) { try { try { String line; socket=new Socket(host,1934); out = new PrintWriter(socket.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out.println(OPEN CHANNEL ARTIST +StremingPlayer.CURRENTARTISTID); while ((line=in.readLine())!=null) { String delimeter1==; String delimeter2=; String trackid=line.substring(line.indexOf(delimeter1),line.indexOf(delimeter2)); ListNameValuePair nameValues = new ArrayListNameValuePair(); nameValues.add(new BasicNameValuePair(sid, SplashScreen.sidvalue)); HttpRetriever httpThread = new HttpRetriever( UrlConstants.BASEURL + UrlConstants.TRACK+id+trackid, nameValues, StreamingPlayerView.this, UrlConstants.NEWSLISTINDEX); httpThread.start(); isSocketOpen=true; } } catch (IOException e) { e.printStackTrace(); } finally { try { if (in!=null) in.close(); } catch (IOException e) {e.printStackTrace();}; if (out!=null) out.close(); try { if (socket!=null) socket.close(); isSocketOpen=false; } catch (IOException e) { e.printStackTrace(); }; } } catch (Exception e) { e.printStackTrace(); } } } }.start(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] The Monkeyrunner building problem
Hi all, I need to use the method of loadfileFrom() to compare a local image with the buffer image.I don't know how to build one.Do I just need to replace the old Monkeyrunner.java and MonkeyImage.java source code with latest one?Then build the Monkeyrunner.jar again? Should I also modify some other class or files? I'll be grateful if someone can help. Best regards, Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 a bitmap with drawBitmap and rectangles
Hello, I'm developing a small image editor. Basically, the user can insert some images in a canvas, and through interaction with the fingers moving them around. I'm having some trouble with the Zooming. I have followed the idea of this tutorial (http://blogs.sonyericsson.com/wp/ 2010/05/18/android-one-finger-zoom-tutorial-part-1) to use a bitmap, and to apply transformations to two rectangles. Afterwards, if we draw the bitmap over the canvas with `android.graphics.Canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)`, the transformation is applied. So far, is not working for me. I store all the images in an array of images, `ColorBall`. When I detect there is a zoom gesture, and only if it was over a certain image (this works so far), I apply over that image the transformations (the values are dummy, just wanted to check if it works): colorballs.get(balID-1).getmRectDst().left = getLeft(); colorballs.get(balID-1).getmRectDst().top= getTop(); colorballs.get(balID-1).getmRectDst().right = getRight(); colorballs.get(balID-1).getmRectDst().bottom = getBottom(); colorballs.get(balID-1).getmRectSrc().left += 10; colorballs.get(balID-1).getmRectSrc().top+= 10; colorballs.get(balID-1).getmRectSrc().right += 10; colorballs.get(balID-1).getmRectSrc().bottom += 10; On the OnDraw event, for all the pictures in the array I locate them, and then I scale them using the rectangles. So far, the part of scaling is not working: //draw the balls on the canvas for (ColorBall ball : colorballs) { canvas.drawBitmap(ball.getBitmap(), ball.getX(), ball.getY(), null); canvas.drawBitmap(ball.getBitmap(), ball.getmRectSrc(), ball.getmRectDst(), mPaintBalls); } Any suggestion of what can I be missing here? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to play video on vm
i push the file mj.mp4 onto the vm device through eclipse and can browse the it in File Explore at /mnt/sdcard/mj.mp4 my java code like: public class MyActivity extends Activity { private VideoViewmVideo; private MediaController mMediaController; private String mUri = ; @Override public void onCreate(Bundle savedInstanceState) { this.mUri = this.getExternalStoragePath() + /mj.mp4; super.onCreate(savedInstanceState); setContentView(R.layout.main); this.mVideo = (VideoView)findViewById(R.id.videoView1); this.mMediaController = new MediaController(this); this.mVideo.setVideoURI(Uri.parse(this.mUri)); this.mVideo.setMediaController(mMediaController); this.mMediaController.setAnchorView(this.mVideo); this.mMediaController.requestFocus(); this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); Log.v(mplayer, create ok.); } @Override public void onStart() { super.onStart(); this.mVideo.start(); } public void onPause() { // Stop video when the activity is pause. mPositionWhenPaused = this.mVideo.getCurrentPosition(); this.mVideo.stopPlayback(); super.onPause(); } public void onResume() { // Resume video player if(mPositionWhenPaused = 0) { this.mVideo.seekTo(mPositionWhenPaused); mPositionWhenPaused = -1; } super.onResume(); } } but i can't play the media and get the log in LogCat: 06-21 09:14:10.135: INFO/StagefrightPlayer(33): setDataSource('/mnt/sdcard/mj.mp4') 06-21 09:14:12.043: INFO/ActivityManager(72): Displayed hls.m3u/.HttpLiveStreaming: +34s147ms 06-21 09:14:15.133: DEBUG/MediaPlayer(5261): getMetadata 06-21 09:14:15.395: DEBUG/AudioSink(33): bufferCount (4) is too small and increased to 12 06-21 09:14:15.613: ERROR/MediaPlayer(5261): error (1, -2147483648) 06-21 09:14:16.084: ERROR/MediaPlayer(5261): Attempt to call getDuration without a valid mediaplayer 06-21 09:14:16.095: ERROR/MediaPlayer(5261): error (-38, 0) 06-21 09:14:16.166: ERROR/MediaPlayer(5261): Error (1,-2147483648) 06-21 09:14:16.194: DEBUG/VideoView(5261): Error: 1,-2147483648 06-21 09:14:16.754: DEBUG/dalvikvm(5261): GC_FOR_ALLOC freed 95K, 4% free 6422K/6663K, paused 158ms 06-21 09:14:16.773: INFO/dalvikvm-heap(5261): Grow heap (frag case) to 6.851MB for 513744-byte allocation 06-21 09:14:17.058: DEBUG/dalvikvm(5261): GC_CONCURRENT freed 1K, 4% free 6923K/7175K, paused 6ms+3ms 06-21 09:14:18.054: ERROR/MediaPlayer(5261): Error (-38,0) 06-21 09:14:18.054: DEBUG/VideoView(5261): Error: -38,0 and i recieve the force close window on vm screan. can anybody tells me why and how to play the local media file on android vm? thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: thread caused app to forcedclosed?
You just showed us about 30 lines of code. Do we look like mind readers who can figure out your problem without showing any kind of error log or stack trace? On Jun 21, 4:50 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: Hi, .when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app. how to resolve this? On Tue, Jun 21, 2011 at 12:41 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Ok, cool. Do you have a question? On Jun 21, 3:35 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: Hi, I am using thread in my activity class.when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app.I have tried it by removing the thread then it works fine. Here is the code that i m calling from onCreate method. private void listenForTrackChange() { new Thread() { public void run() { if(!isSocketOpen) { try { try { String line; socket=new Socket(host,1934); out = new PrintWriter(socket.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out.println(OPEN CHANNEL ARTIST +StremingPlayer.CURRENTARTISTID); while ((line=in.readLine())!=null) { String delimeter1==; String delimeter2=; String trackid=line.substring(line.indexOf(delimeter1),line.indexOf(delimeter2)); ListNameValuePair nameValues = new ArrayListNameValuePair(); nameValues.add(new BasicNameValuePair(sid, SplashScreen.sidvalue)); HttpRetriever httpThread = new HttpRetriever( UrlConstants.BASEURL + UrlConstants.TRACK+id+trackid, nameValues, StreamingPlayerView.this, UrlConstants.NEWSLISTINDEX); httpThread.start(); isSocketOpen=true; } } catch (IOException e) { e.printStackTrace(); } finally { try { if (in!=null) in.close(); } catch (IOException e) {e.printStackTrace();}; if (out!=null) out.close(); try { if (socket!=null) socket.close(); isSocketOpen=false; } catch (IOException e) { e.printStackTrace(); }; } } catch (Exception e) { e.printStackTrace(); } } } }.start(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Hitendrasinh Gohil- Hide quoted text - - Show quoted text - -- You received this message
Re: [android-developers] Re: thread caused app to forcedclosed?
Hi, here is my activity class. package com.musix.main; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.HttpURLConnection; import java.net.Socket; import java.net.URL; import java.util.ArrayList; import java.util.List; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import org.json.JSONObject; import com.musix.http.HttpRetriever; import com.musix.model.Parser; import com.musix.utils.UrlConstants; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; public class StreamingPlayerView extends Activity implements OnClickListener,Parser { private ImageButton btnplay; private TextView txtsongname,txtalbumartistname; public boolean isRadioOn=false; Handler handler=new Handler(); private static String title,albumTitle,artistName; private ImageView imageView; public NotificationService notificationService=null; PrintWriter out=null; BufferedReader in=null; public static boolean isSocketOpen=false; Socket socket=null; public void onCreate(Bundle instance) { super.onCreate(instance); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.streamingplayerview); txtsongname = (TextView) findViewById(R.id.txtsongname); txtalbumartistname = (TextView) findViewById(R.id.txtalbumartistname); imageView=(ImageView)findViewById(R.id.imgalbumart); btnplay = (ImageButton) findViewById(R.id.play); btnplay.setOnClickListener(this); listenForTrackChange(); Intent serviceIntent=new Intent(); serviceIntent.setClass(getApplicationContext(),NotificationService.class); bindService(serviceIntent,serviceConnection,Context.BIND_AUTO_CREATE); startService(serviceIntent); } private void setTrackdetails() { try { txtsongname.setText(title); txtalbumartistname.setText(albumTitle+-+artistName); } catch (Exception e) { e.printStackTrace(); } } @Override public void onClick(View v) { switch (v.getId()) { case R.id.play: if (StremingPlayer.streamingPlayer.isPlaying()) { StremingPlayer.streamingPlayer.pause(); btnplay.setBackgroundResource(R.drawable.play_button); LocalMediaPlayer.isPaused = true; } else { btnplay.setBackgroundResource(R.drawable.pause_button); StremingPlayer.streamingPlayer.start(); } break; default: break; } } private void listenForTrackChange() { new Thread() { public void run() { if(!isSocketOpen) { try { try { String line; socket=new Socket(host,1934); out = new PrintWriter(socket.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out.println(OPEN CHANNEL ARTIST +StremingPlayer.CURRENTARTISTID); while ((line=in.readLine())!=null) { String delimeter1==; String delimeter2=; String trackid=line.substring(line.indexOf(delimeter1),line.indexOf(delimeter2)); ListNameValuePair nameValues = new ArrayListNameValuePair(); nameValues.add(new BasicNameValuePair(sid, SplashScreen.sidvalue)); HttpRetriever httpThread = new HttpRetriever( UrlConstants.BASEURL + UrlConstants.TRACK+id+trackid, nameValues, StreamingPlayerView.this, UrlConstants.NEWSLISTINDEX); httpThread.start(); isSocketOpen=true; } } catch (IOException e) { e.printStackTrace(); }
Re: [android-developers] MonkeyRunner Enhanced scripts
hello if you use internet for that please check you provide permission for access net or not... Regards, *Shailesh Mistry* +91 9974148507 On Mon, Jun 20, 2011 at 4:08 PM, Gaytri Batra gaytri.ba...@gmail.comwrote: Hello All, right now i am working on monkeyrunner tool to automate test cases of android playready application. I have completed with one module , but when we started executed I analyzed that it required same manual intervention as is required for manual testing. I want to enhance my scripts so that manual intervention is less. when test case is finished then looking at results logs used should be able to make it out which test case has been passed or failed. I am taking an simple example here: Suppose for my application, it requires to acquire license of content before start playback of content in application. For this when I am executed monkeyrunner script so I need to monitor the device whether it has been passed or failed. Can anyone please help in this how can i enhance my scripts at this point, I want proper logs should be saved and by looking at logs user should conclude test results. Can monkeyrunner supports junit API's ? is it good option to use junit API's? Or any other suggestions? Please revert back ASAP, it is very urgent. Thanks Regards, Gaytri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application run on emulator but the same app dont install in real device
Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 run on emulator but the same app dont install in real device
please check android o/s version ... Regards, *Shailesh Mistry* +91 9974148507 On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.com wrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application run on emulator but the same app dont install in real device
what's the error displaying? On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.com wrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 remove Top Activity from Display Stack
When the service launches the second activity, is the first activity active within the task stack? Is the current state you've looking to reset - activity1-actvity2, or just activity2? -- Kostya 2011/6/21 jeyaprakash chinaraj jp9894562...@gmail.com No Luck still my second Activity comes Up On Mon, Jun 20, 2011 at 6:42 PM, Kostya Vasilyev kmans...@gmail.comwrote: Try removing category.DEFAULT from the launcher activity - I think it's getting in the way. -- Kostya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 run on emulator but the same app dont install in real device
check the version of real device version in which u have developed ur application... see whether they compatible or not.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] constructor problem
It just depends on what class settingM is. I somehow have a feeling it's a subclass of Activity or Context, and you instantiate it yourself with new settingM - is that true? -- Kostya 2011/6/21 אריאל arielgordon...@gmail.com yes i know this but how i used this from some activities? 2011/6/21 TreKing treking...@gmail.com On Mon, Jun 20, 2011 at 5:15 PM, אריאל arielgordon...@gmail.com wrote: so how i can to save setting with SharedPreferences and to get and set from other activity? Read the documentation. Using SharedPreferences is very straight forward and well-documented. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Localized XML Layouts
no response about this ? something like layout-us ? or layout-es ? I´m looking for this king of info too, i dont remember now how it work for layouts :s -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application run on emulator but the same app dont install in real device
Hi Thanks for ur reply.I checked version.Its ok.I am having the following error: [2011-06-21 15:39:21 - MyCamera] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE [2011-06-21 15:39:21 - MyCamera] Please check logcat output for more details. [2011-06-21 15:39:21 - MyCamera] Launch canceled! Regards Goutom On Tue, Jun 21, 2011 at 3:33 PM, amey bura ameybur...@gmail.com wrote: check the version of real device version in which u have developed ur application... see whether they compatible or not.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application run on emulator but the same app dont install in real device
Hi Thanks for ur reply.I checked version.Its ok.I am having the following error: [2011-06-21 15:39:21 - MyCamera] Installation error: INSTALL_FAILED_INSUFFICIENT_ STORAGE [2011-06-21 15:39:21 - MyCamera] Please check logcat output for more details. [2011-06-21 15:39:21 - MyCamera] Launch canceled! Regards Goutom 2011/6/21 νιנαソkum@r iamvijayaku...@gmail.com what's the error displaying? On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.com wrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to give custom effect on layout
i want to give custom effect to layout / change default effect time... please help for that.. and please tell me how to give run time set background color theme Thanks.. Regards, *Shailesh Mistry* +91 9974148507 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 run on emulator but the same app dont install in real device
Hi Thanks for ur reply.I checked version.Its ok.I am having the following error: [2011-06-21 15:39:21 - MyCamera] Installation error: INSTALL_FAILED_INSUFFICIENT_ STORAGE [2011-06-21 15:39:21 - MyCamera] Please check logcat output for more details. [2011-06-21 15:39:21 - MyCamera] Launch canceled! Regards Goutom 2011/6/21 νιנαソkum@r iamvijayaku...@gmail.com what's the error displaying? On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.com wrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Localized XML Layouts
Hmm i just re-discovered it here is what you need and me too xD http://developer.android.com/guide/topics/resources/localization.html search for Design a flexible layout you will see there is a layout-de so will load that main.xml when the phone language is german -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 run on emulator but the same app dont install in real device
Please check memory in ur device... :D Regards, *Shailesh Mistry* +91 9974148507 On Tue, Jun 21, 2011 at 3:13 PM, Goutom goutom.sust@gmail.com wrote: Hi Thanks for ur reply.I checked version.Its ok.I am having the following error: [2011-06-21 15:39:21 - MyCamera] Installation error: INSTALL_FAILED_INSUFFICIENT_ STORAGE [2011-06-21 15:39:21 - MyCamera] Please check logcat output for more details. [2011-06-21 15:39:21 - MyCamera] Launch canceled! Regards Goutom 2011/6/21 νιנαソkum@r iamvijayaku...@gmail.com what's the error displaying? On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.comwrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fwd: Task Manager
Hi guys, Good Morning guys, I do one android application.. I need to run the application back ground but when ever kill my application using task manager it will b closed. Now i need to hide my application from the task manager.. Can any one help me? Please. its very urgent. Thanks in advance... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: Re: [android-developers] Aw: Object Structure
Thanks !! So, when ever I get data back from back end server it has to be persisted in local storage (SQLite) and through content provider only I should access is that correct approach ? - Siva On Sat, Jun 18, 2011 at 6:41 PM, jjoe64 g.jjo...@googlemail.com wrote: yes. if you do a query on your content provider (though listview/adapter or manually with content resolver), it returns only a cursor (pointer) to the data, that's the reason why the memory space is saved and performance will increase. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 verify whether song is playing or not
Hi All, I am starting song through startActivity() method and when phone receives call how to verify whether song is playing or not. If anyone know how to verify please share me the code. Regards, Bharathiraja 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
Re: [android-developers] Application run on emulator but the same app dont install in real device
Dear my prpblem is solved for current application.But I have an application which run in emulator but when I install it in real device it dose not run.Why? On Tue, Jun 21, 2011 at 3:44 PM, shailesh mistry shailesh.mistry@gmail.com wrote: Please check memory in ur device... :D Regards, *Shailesh Mistry* +91 9974148507 On Tue, Jun 21, 2011 at 3:13 PM, Goutom goutom.sust@gmail.com wrote: Hi Thanks for ur reply.I checked version.Its ok.I am having the following error: [2011-06-21 15:39:21 - MyCamera] Installation error: INSTALL_FAILED_INSUFFICIENT_ STORAGE [2011-06-21 15:39:21 - MyCamera] Please check logcat output for more details. [2011-06-21 15:39:21 - MyCamera] Launch canceled! Regards Goutom 2011/6/21 νιנαソkum@r iamvijayaku...@gmail.com what's the error displaying? On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.comwrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 run on emulator but the same app dont install in real device
can u able to install it??? if u can then please use try catch for trace your problem Regards, *Shailesh Mistry* +91 9974148507 On Tue, Jun 21, 2011 at 3:50 PM, Goutom goutom.sust@gmail.com wrote: Dear my prpblem is solved for current application.But I have an application which run in emulator but when I install it in real device it dose not run.Why? On Tue, Jun 21, 2011 at 3:44 PM, shailesh mistry shailesh.mistry@gmail.com wrote: Please check memory in ur device... :D Regards, *Shailesh Mistry* +91 9974148507 On Tue, Jun 21, 2011 at 3:13 PM, Goutom goutom.sust@gmail.comwrote: Hi Thanks for ur reply.I checked version.Its ok.I am having the following error: [2011-06-21 15:39:21 - MyCamera] Installation error: INSTALL_FAILED_INSUFFICIENT_ STORAGE [2011-06-21 15:39:21 - MyCamera] Please check logcat output for more details. [2011-06-21 15:39:21 - MyCamera] Launch canceled! Regards Goutom 2011/6/21 νιנαソkum@r iamvijayaku...@gmail.com what's the error displaying? On Tue, Jun 21, 2011 at 2:56 PM, Goutom goutom.sust@gmail.comwrote: Hi My application run on emulator but the same app dose nto install in real device. Can any one help me why? Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Localized XML Layouts
You can have localized resources of ANY type, not just string. But also layout, bool, xml, etc. On Jun 21, 5:43 pm, Yeradis yera...@gmail.com wrote: Hmm i just re-discovered it here is what you need and me too xD http://developer.android.com/guide/topics/resources/localization.html search for Design a flexible layout you will see there is a layout-de so will load that main.xml when the phone language is german -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Queries on Internal Storage - device space
Hello, I explored storing temp/supporting files on Internal storage i.e. SharedPrefs (private to app) and Internal Storage of device. Now, when i try to create a file on Internal Storage, it by default creates and stores file on /data/data/app_home/files/ . My intent was to store a file on some centrally located area i.e some device storage path which is accessible to all applications, and whose file permissions can be restricted using different modes like we have as - MODE_PRIVATE, MODE_WORLD_READ,etc. Quesn is : Is there a way to create a file on such centralized storage location (if it exists on android device) so that it is accessible to multiple apps ? Or provide a path while creating file using FileOutputStream fos = openFileOutput(FILENAME, Context.MODE); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 verify whether song is playing or not
If u r able to hear the song , then it is playing :D On Jun 21, 3:15 pm, Bharathiraja R bharathiraja.andr...@gmail.com wrote: Hi All, I am starting song through startActivity() method and when phone receives call how to verify whether song is playing or not. If anyone know how to verify please share me the code. Regards, Bharathiraja 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] onDateSet never gets called
Hi, I'm trying to do an DatePickerDialog with two buttons. My problem is that onDateSet never gets called. DatePickerDialog dialogoFecha = new DatePickerDialog(this, mDateSetListener , mYear, mMonth, mDay); The Buttons: dialogoFecha.setButton(PONER FECHA, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Log.d(PRUEBA,Han pulsado al boton OK); Log.d(PRUEBA, EL VALOR de mYear es ... + mYear); if ( mYear c.get(Calendar.YEAR)) { Toast.makeText(getApplicationContext(),FECHA IMPOSIBLE, Toast.LENGTH_LONG).show(); mYear = c.get(Calendar.YEAR); } } }); dialogoFecha.setButton2(CANCELAR, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Toast.makeText( getApplicationContext(),no se puede cancelar, Toast.LENGTH_LONG).show(); } }); The DataSet: private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { //ESTE ES UN LISTENER CREADO -LLAMADO MDATELISTENER- QUE DEBE TENER EL MODULO ONDATASET PARA //CUANDO SE CAMBIEN LOS DATOS ACTUALIZAR LAS VARIABLES MYEAR, MMONT Y MDAY. public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { Log.d(PRUEBA,Entramos en el listener); mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; } }; Could you help me please? Many 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] onDateSet never gets called
I don't see a DialogoFecha.show(); You should call him with DialogName.show(); 2011/6/21 ABSOLUT davidt...@gmail.com Hi, I'm trying to do an DatePickerDialog with two buttons. My problem is that onDateSet never gets called. DatePickerDialog dialogoFecha = new DatePickerDialog(this, mDateSetListener , mYear, mMonth, mDay); The Buttons: dialogoFecha.setButton(PONER FECHA, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Log.d(PRUEBA,Han pulsado al boton OK); Log.d(PRUEBA, EL VALOR de mYear es ... + mYear); if ( mYear c.get(Calendar.YEAR)) { Toast.makeText(getApplicationContext(),FECHA IMPOSIBLE, Toast.LENGTH_LONG).show(); mYear = c.get(Calendar.YEAR); } } }); dialogoFecha.setButton2(CANCELAR, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Toast.makeText( getApplicationContext(),no se puede cancelar, Toast.LENGTH_LONG).show(); } }); The DataSet: private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { //ESTE ES UN LISTENER CREADO -LLAMADO MDATELISTENER- QUE DEBE TENER EL MODULO ONDATASET PARA //CUANDO SE CAMBIEN LOS DATOS ACTUALIZAR LAS VARIABLES MYEAR, MMONT Y MDAY. public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { Log.d(PRUEBA,Entramos en el listener); mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; } }; Could you help me please? Many 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 -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 remove Top Activity from Display Stack
my service listens for incoming calls and it will launch my secondactivity when the call is disconnected, so no need to hold the firstactivity but from home screen i need to launch firstactivity only On Tue, Jun 21, 2011 at 3:03 PM, Kostya Vasilyev kmans...@gmail.com wrote: When the service launches the second activity, is the first activity active within the task stack? Is the current state you've looking to reset - activity1-actvity2, or just activity2? -- Kostya 2011/6/21 jeyaprakash chinaraj jp9894562...@gmail.com No Luck still my second Activity comes Up On Mon, Jun 20, 2011 at 6:42 PM, Kostya Vasilyev kmans...@gmail.comwrote: Try removing category.DEFAULT from the launcher activity - I think it's getting in the way. -- Kostya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to verify whether song is playing or not
Hi, MediaPlayer player=new MediaPlayer(); if(player.isPlaying()) { } isplaying method returns true if currently song is playing else false. On Tue, Jun 21, 2011 at 3:44 AM, Kacee komal...@gmail.com wrote: If u r able to hear the song , then it is playing :D On Jun 21, 3:15 pm, Bharathiraja R bharathiraja.andr...@gmail.com wrote: Hi All, I am starting song through startActivity() method and when phone receives call how to verify whether song is playing or not. If anyone know how to verify please share me the code. Regards, Bharathiraja 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 -- Regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: onDateSet never gets called
I don't write all the code but I have the dialogoFecha.show(); I see that never goes to the listener. On 21 jun, 13:06, Jorge Luis jorgelferr...@gmail.com wrote: I don't see a DialogoFecha.show(); You should call him with DialogName.show(); 2011/6/21 ABSOLUT davidt...@gmail.com Hi, I'm trying to do an DatePickerDialog with two buttons. My problem is that onDateSet never gets called. DatePickerDialog dialogoFecha = new DatePickerDialog(this, mDateSetListener , mYear, mMonth, mDay); The Buttons: dialogoFecha.setButton(PONER FECHA, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Log.d(PRUEBA,Han pulsado al boton OK); Log.d(PRUEBA, EL VALOR de mYear es ... + mYear); if ( mYear c.get(Calendar.YEAR)) { Toast.makeText(getApplicationContext(),FECHA IMPOSIBLE, Toast.LENGTH_LONG).show(); mYear = c.get(Calendar.YEAR); } } }); dialogoFecha.setButton2(CANCELAR, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Toast.makeText( getApplicationContext(),no se puede cancelar, Toast.LENGTH_LONG).show(); } }); The DataSet: private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { //ESTE ES UN LISTENER CREADO -LLAMADO MDATELISTENER- QUE DEBE TENER EL MODULO ONDATASET PARA //CUANDO SE CAMBIEN LOS DATOS ACTUALIZAR LAS VARIABLES MYEAR, MMONT Y MDAY. public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { Log.d(PRUEBA,Entramos en el listener); mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; } }; Could you help me please? Many 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 -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 remove Top Activity from Display Stack
Ah. Ok. For the call screen, you can do what the built-in Phone application does: http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=blob;f=AndroidManifest.xml;hb=refs/heads/gingerbread ... scroll down to: activity android:name=InCallScreen For the general case (where activity2 is part of normal application flow), there are new flags and PendingIntent methods in Android 3.*, but not in earlier versions. -- Kostya 2011/6/21 jeyaprakash chinaraj jp9894562...@gmail.com my service listens for incoming calls and it will launch my secondactivity when the call is disconnected, so no need to hold the firstactivity but from home screen i need to launch firstactivity only On Tue, Jun 21, 2011 at 3:03 PM, Kostya Vasilyev kmans...@gmail.comwrote: When the service launches the second activity, is the first activity active within the task stack? Is the current state you've looking to reset - activity1-actvity2, or just activity2? -- Kostya 2011/6/21 jeyaprakash chinaraj jp9894562...@gmail.com No Luck still my second Activity comes Up On Mon, Jun 20, 2011 at 6:42 PM, Kostya Vasilyev kmans...@gmail.comwrote: Try removing category.DEFAULT from the launcher activity - I think it's getting in the way. -- Kostya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Queries on Internal Storage - device space
On Tue, Jun 21, 2011 at 6:42 AM, Kacee komal...@gmail.com wrote: I explored storing temp/supporting files on Internal storage i.e. SharedPrefs (private to app) and Internal Storage of device. Now, when i try to create a file on Internal Storage, it by default creates and stores file on /data/data/app_home/files/ . My intent was to store a file on some centrally located area i.e some device storage path which is accessible to all applications, and whose file permissions can be restricted using different modes like we have as - MODE_PRIVATE, MODE_WORLD_READ,etc. Quesn is : Is there a way to create a file on such centralized storage location (if it exists on android device) so that it is accessible to multiple apps ? Only on external storage. Not on internal storage. Or provide a path while creating file using FileOutputStream fos = openFileOutput(FILENAME, Context.MODE); No, you cannot supply a path here. Savvy programmers create components that expose an API (service, content provider) that help provide security and process synchronization to the data. Apps sharing data by files is *so* 1980's. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Task Manager
This is not possible, except maybe by creating your own phone firmware. On Tue, Jun 21, 2011 at 3:37 AM, shanmu nathan win.sha...@gmail.com wrote: Hi guys, Good Morning guys, I do one android application.. I need to run the application back ground but when ever kill my application using task manager it will b closed. Now i need to hide my application from the task manager.. Can any one help me? Please. its very urgent. Thanks in advance... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-developers] Where does SetupWizard.apk come from ?
Questions regarding the source code belong on a list that pertains to the source code. Please visit http://source.android.com to learn about the resources available to you for working with the Android source code. On Mon, Jun 20, 2011 at 11:24 PM, June Hello junehelloworld.he...@gmail.com wrote: Dear All I find an apk named SetupWizard.apk(it is used to setup the parameters when first start a android phone or after resetting it to the factory setting) after making the source code which is in the out folder, but I never ever find the corresponding source code. So, does anyone here know about it? Best regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: bluez help
Hahahaha, its about time that was used for some of these questions thanks for brightening up my day :-) On 21/06/2011, Zsolt Vasvari zvasv...@gmail.com wrote: Yup, here's a link for you: http://goo.gl/AKYBk On Jun 21, 3:26 pm, arun_satya3 arun.sat...@gmail.com wrote: Hi, Can anybody let me know bluez forums to get help for android development. Rgds, Arun S. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Minimum Age?
I'm more concerned there will be a _maximum_ age and I'll have to drop out of the community. :-) On Jun 19, 3:07 pm, Mehwar Raza mehwarr...@gmail.com wrote: Is there a minimum age requirement to become an android developer? I have been trying to hunt down the answer to no avail. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] recognize text in images on opening the camera
Hi everyone I need some help to recognize text in image when a user opens his/her camera then the application can detect the text in the image and show it in an edit text. Please suggest me which APIs or classes are used for developing this kind of application and also is there any example/tutorial available on net then please provide this also. Thanks and Regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WebSerivce Integration
Hi What is the best mechanism to use WebService (REST) in Android application. Because some time Service respond with hefty amount of data (XML Format). Processing the data @ device end wont be a correct approach as that might kill the resources. Can some one tell me how to handle this? -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] recognize text in images on opening the camera
Converting images to text is called OCR. There are no APIs in Android for OCR. You are welcome to attempt to find a working OCR solution -- the only one I can think of that works well (ABBYY) is probably more expensive than you can afford. There have been attempts to port open source OCR engines to Android (e.g., Tesseract), but I was under the impression that recognition quality was not that good. On Tue, Jun 21, 2011 at 8:50 AM, Sapna Srivastav sapna.ari...@gmail.com wrote: Hi everyone I need some help to recognize text in image when a user opens his/her camera then the application can detect the text in the image and show it in an edit text. Please suggest me which APIs or classes are used for developing this kind of application and also is there any example/tutorial available on net then please provide this also. Thanks and Regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Task Manager
oh.. do you know how its work alarm? I need kind of example. On Tue, Jun 21, 2011 at 5:18 PM, Mark Murphy mmur...@commonsware.comwrote: This is not possible, except maybe by creating your own phone firmware. On Tue, Jun 21, 2011 at 3:37 AM, shanmu nathan win.sha...@gmail.com wrote: Hi guys, Good Morning guys, I do one android application.. I need to run the application back ground but when ever kill my application using task manager it will b closed. Now i need to hide my application from the task manager.. Can any one help me? Please. its very urgent. Thanks in advance... -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android-developers] Where does SetupWizard.apk come from ?
Hi Mark, thanks a lot for your help. however I just confused about how the SetupWizard works, actually I find that there is no open-source code that Google has released about it. Well, in the Google account setup screen which will show at the first time turning on the phone or after resetting it to the factory setting. If I choose to create or enter a Google account, I will encounter with a line Slide keyboard open to continue, but in fact, my phone has no slide keyboard, it is just a touch-screen phone. and the screen stops here, I cannot go on to input anything. So... what can I do about this problem? How does the SetupWizard check the phone type(slide-keyboard?qwerty keyboardor just a touch-screen one)? and then according to the particular type to show the corresponding message? On Tue, Jun 21, 2011 at 7:50 PM, Mark Murphy mmur...@commonsware.comwrote: Questions regarding the source code belong on a list that pertains to the source code. Please visit http://source.android.com to learn about the resources available to you for working with the Android source code. On Mon, Jun 20, 2011 at 11:24 PM, June Hello junehelloworld.he...@gmail.com wrote: Dear All I find an apk named SetupWizard.apk(it is used to setup the parameters when first start a android phone or after resetting it to the factory setting) after making the source code which is in the out folder, but I never ever find the corresponding source code. So, does anyone here know about it? Best regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] constructor problem
yes because SharedPreferences must to extract Activity or Context how i repair this? 2011/6/21 Kostya Vasilyev kmans...@gmail.com It just depends on what class settingM is. I somehow have a feeling it's a subclass of Activity or Context, and you instantiate it yourself with new settingM - is that true? -- Kostya 2011/6/21 אריאל arielgordon...@gmail.com yes i know this but how i used this from some activities? 2011/6/21 TreKing treking...@gmail.com On Mon, Jun 20, 2011 at 5:15 PM, אריאל arielgordon...@gmail.comwrote: so how i can to save setting with SharedPreferences and to get and set from other activity? Read the documentation. Using SharedPreferences is very straight forward and well-documented. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: recognize text in images on opening the camera
Doesn't the Goggles application do that aswell? On 21 jun, 14:56, Mark Murphy mmur...@commonsware.com wrote: Converting images to text is called OCR. There are no APIs in Android for OCR. You are welcome to attempt to find a working OCR solution -- the only one I can think of that works well (ABBYY) is probably more expensive than you can afford. There have been attempts to port open source OCR engines to Android (e.g., Tesseract), but I was under the impression that recognition quality was not that good. On Tue, Jun 21, 2011 at 8:50 AM, Sapna Srivastav sapna.ari...@gmail.com wrote: Hi everyone I need some help to recognize text in image when a user opens his/her camera then the application can detect the text in the image and show it in an edit text. Please suggest me which APIs or classes are used for developing this kind of application and also is there any example/tutorial available on net then please provide this also. Thanks and Regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Saving a NinePatch to Temp Storage
I am trying to allow the user to specify the background color of a ninepatch that is part of my res/drawble directory. The modified ninepatch will then be set as the background image for my widget. I realize that you cannot change the contents of res/drawble so I have to write the image to temporary storage and then use setImageFromURI to point at the modified ninepatch. I cannot figure out, however, how to save the image. I have the following code: Drawable bg = this.getResources().getDrawable(R.drawable.appwidget_bg); bg.mutate(); bg.setColorFilter( color, PorterDuff.Mode.MULTIPLY ); What method can I now use to write this out? There do not seem to be any methods on Drawable that will persist an image. Is there a helper class that I need to use? I did look at BitmapFactory but, unless I misunderstood, it didn't seem to be the solution. Is there a preferred location to use for this kind of temporary file? Is there a better recommended way of doing what I am trying to do? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Aw: WebSerivce Integration
parse it in background and as a stream. never read it with a buffer, don't create objects for every node/attribute ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Queries on Internal Storage - device space
Thank you Sir. I would implement better ways as suggested :) On Jun 21, 4:48 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 21, 2011 at 6:42 AM, Kacee komal...@gmail.com wrote: I explored storing temp/supporting files on Internal storage i.e. SharedPrefs (private to app) and Internal Storage of device. Now, when i try to create a file on Internal Storage, it by default creates and stores file on /data/data/app_home/files/ . My intent was to store a file on some centrally located area i.e some device storage path which is accessible to all applications, and whose file permissions can be restricted using different modes like we have as - MODE_PRIVATE, MODE_WORLD_READ,etc. Quesn is : Is there a way to create a file on such centralized storage location (if it exists on android device) so that it is accessible to multiple apps ? Only on external storage. Not on internal storage. Or provide a path while creating file using FileOutputStream fos = openFileOutput(FILENAME, Context.MODE); No, you cannot supply a path here. Savvy programmers create components that expose an API (service, content provider) that help provide security and process synchronization to the data. Apps sharing data by files is *so* 1980's. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC Secure Element
Hello, I cant load the key ff ff ff ff ff ff to the 4k MIFARE. If my Nexus S is in Card Emulation I tried with JCShell to do something. Reading UID and ATR is no problem it works. But by loading the Key, occurs an error: /send FF82201A06 = FF 82 20 1A 06 FF FF FF FF FF FF .. (407461 nsec) = 69 86 i. Status: Command not allowed (no current EF) Anybody know where is the fault??? greets Markus On 19 Mai, 19:51, Martin martin.buellesb...@googlemail.com wrote: Hello all, Michael as you already mentioned, it is possible to activate the card emulation mode and theSecureElementin the Nexus S. I did that and also changed the permissions from android.permission.WRITE_SECURE_SETTINGS to android.permission.NFCin NfcService.java to get access to theSecureElement. Now I am able to create and open a connection to theSecureElement and get its UID. After enabling the card emulation mode on the Nexus S, I am able to read and write data to the emulated MiFare Classic 4k card by an externalNFCreader. I would like to do that within an android app. Why is that not possible through an android application? You have spoken about the access keys, but aren't they the same for internal and external access? If I have understood you correctly, there is nothing more I can do so far, right? Thanks a lot! Martin On 19 Mai, 00:59, Michael Roland mi.rol...@gmail.com wrote: Hallo, I more or less understand how to do it but I don't understand if after is possible to build application on card emulation. Regarding the internalsecureelement(SmartMX): No. Even if you activate this chip as thesecureelement, you could only use its UID for your application. To edit data on it/install applications into it you would need to have the access keys for thatsecureelement. Regarding an externalsecureelementon the UICC (SIM card): Partly yes. You can activate an SWP-UICC assecureelement. But access is limited to external readers for the moment. Until now, there is no known way to get access to application on the UICC from a phone application. Moreover some of you speak about authentication, and about a password that is not possible to have? (What are you talking about when you speak about this stuff). The SmartMX in the Nexus S contains a JavaCard operating system that is compliant to GlobalPlatform. GlobalPlatform defines methods to manage multiple applications on this JavaCard. A central component of this card management is the Card Manager, which itself is one application on thesecureelement. The card manager provides an interface to load, install, ... delete applications on thesecureelement. Additionally it controls access to these methods. To establish asecurechannel with the card manager (i.e. a connection that provides authenticity, integrity and possibly confidentiality) both, the entity that wants to manage the card and the card manager need to know one or more shared secrets, the authentication keys. Anyway some news aboutNFCcard emulation [nearfieldcommunicationworld] it seems that Google dev will not give use api about that in the next future. Still there is some developments towards card emulation going on (cf.http://www.nfctimes.com/news/android-card-emulation-expected-despite-... ) Moreover, what does it mean And if you improperly authenticate yourself a certain number of times, there aresecureelements out there that will physically destroy themselves and can never be recovered? Is related to the password of my previous questions? While the card manager is protected by access keys, there still exist some methods to find such keys. One of these methods would be brute forces (i.e. trying each possible key value). While such methods are usually very inefficient (if the key has an appropriate length) there might be some methods that could significantly speed up this process. As a safety mechanism the card manager usually implements an additional protection against such an attack: After ten consecutive authentication failures, the card manager locks itself and refuses any further commands. (Other applications that were previously installed on that card will continue to function as usual.) Once this lockdown has happened, there is *NO* way of reversing this. THerefore, once in lockdown no applications can be installed on, removed from, ... thesecureelement. br Michael On May 16, 3:48 pm, Goo_Goo danny.w.s...@gmail.com wrote: Could someone please post the the image withcardemulationenabled for Nexus S? On May 13, 5:08 am, Markus markus.tau...@gmail.com wrote: mtk you wrote after call phLibNfc_SE_SetMode(seID,phLibNfc_SE_ActModeWired,nfc_jni_se_set_mode_callb ack, (void *)nat); your nexus s was incardemulation I called it with mode default
[android-developers] Re: recognize text in images on opening the camera
Yes, so? It doesn't do it on the phone, but in the cloud. On Jun 21, 9:29 pm, ThaMe90 theprophes...@gmail.com wrote: Doesn't the Goggles application do that aswell? On 21 jun, 14:56, Mark Murphy mmur...@commonsware.com wrote: Converting images to text is called OCR. There are no APIs in Android for OCR. You are welcome to attempt to find a working OCR solution -- the only one I can think of that works well (ABBYY) is probably more expensive than you can afford. There have been attempts to port open source OCR engines to Android (e.g., Tesseract), but I was under the impression that recognition quality was not that good. On Tue, Jun 21, 2011 at 8:50 AM, Sapna Srivastav sapna.ari...@gmail.com wrote: Hi everyone I need some help to recognize text in image when a user opens his/her camera then the application can detect the text in the image and show it in an edit text. Please suggest me which APIs or classes are used for developing this kind of application and also is there any example/tutorial available on net then please provide this also. Thanks and Regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2- 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
[android-developers] Re: recognize text in images on opening the camera
That is correct. The recognition quality of free open source OCR engines like Tesseract and GOCR is unfortunately still a far cry from what ABBYY delivers. Most OCR engines were developed for flatbed scanners with controlled light conditions, a flat surface, no lens distortion and little skew, and recognition robustness suffers dramatically when using them with a mobile hand-held device such as an Android smartphone. Regards The vOICe for Android http://www.seeingwithsound.com/android.htm On Jun 21, 2:56 pm, Mark Murphy mmur...@commonsware.com wrote: Converting images to text is called OCR. There are no APIs in Android for OCR. You are welcome to attempt to find a working OCR solution -- the only one I can think of that works well (ABBYY) is probably more expensive than you can afford. There have been attempts to port open source OCR engines to Android (e.g., Tesseract), but I was under the impression that recognition quality was not that good. On Tue, Jun 21, 2011 at 8:50 AM, Sapna Srivastav sapna.ari...@gmail.com wrote: Hi everyone I need some help to recognize text in image when a user opens his/her camera then the application can detect the text in the image and show it in an edit text. Please suggest me which APIs or classes are used for developing this kind of application and also is there any example/tutorial available on net then please provide this also. Thanks and Regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] constructor problem
Ariel, Pass an existing instance of Activity / Service / whatever extending Context to your class, as needed. Call getApplicationContext as necessary, to avoid keeping a reference to something which may go away (such as an activity). As a rule, never instantiate Activity or Service subclasses yourself: Android does that for you, and hooks them up with the rest of the system for proper functioning. Another tempting thing, subclassing Context also requires special care so it's hooked into the rest of the framework. -- Kostya 2011/6/21 אריאל arielgordon...@gmail.com yes because SharedPreferences must to extract Activity or Context how i repair this? 2011/6/21 Kostya Vasilyev kmans...@gmail.com It just depends on what class settingM is. I somehow have a feeling it's a subclass of Activity or Context, and you instantiate it yourself with new settingM - is that true? -- Kostya 2011/6/21 אריאל arielgordon...@gmail.com yes i know this but how i used this from some activities? 2011/6/21 TreKing treking...@gmail.com On Mon, Jun 20, 2011 at 5:15 PM, אריאל arielgordon...@gmail.comwrote: so how i can to save setting with SharedPreferences and to get and set from other activity? Read the documentation. Using SharedPreferences is very straight forward and well-documented. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Nexus S
Hi, I'm writing this e-mail as a last resort; it's intended for Google employees only, so I'm sorry for the bandwidth if you're not working for That Company. For a summary of the issue at hand, please read this: http://www.google.com/support/forum/p/Google+Mobile/thread?tid=0dabb9cd979cbd27hl=enfid=0dabb9cd979cbd270004a639eb95212a The current situation is that Google is COMPLETELY IGNORING requests from customers that has this issue. The question I have is why? It is easily solved, it seems. Some users actually received help, but that was several months ago. Users who still have the problem have been left to fight for themselves. Is that how Google wants to be remembered? Apple, excuse my language, would never be caught with an issue like this unresolved. It's a shame! If you think I am out of line - please remember that Google has had several months to get this issue solved and has not lifted a finger. Regards Anton -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: thread caused app to forcedclosed?
On Tue, Jun 21, 2011 at 3:50 AM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: .when the activity is visible there isnt any problem.but when i navigate to previous screen and again going to this activity it causes forced close to my app. how to resolve this? Use LogCat and your debugger to debug your code. - 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] Aw: WebSerivce Integration
Any sample ? Even if you respond back with stream how does my front end under stand the structure and behave? On Tue, Jun 21, 2011 at 7:11 PM, jjoe64 g.jjo...@googlemail.com wrote: parse it in background and as a stream. never read it with a buffer, don't create objects for every node/attribute ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MyLocationOverlay on a collapsed MapView?
Hi, Are there any terms of service for using MyLocationOverlay along with MapView? I have a MapActivity where I am showing the user's most up to date location in a TextView, and the MapView is below that. The user has the option to hide the MapView if they don't care to see it, but I continue getting location updates from the MyLocationOverlay instance, which in turn updates the TextView. Is this scenario violating any terms of service? Wondering if we use MyLocationOverlay, does it always need to be visible to the user? 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] MyLocationOverlay on a collapsed MapView?
On Tue, Jun 21, 2011 at 10:41 AM, Mark Wyszomierski mar...@gmail.comwrote: Are there any terms of service for using MyLocationOverlay along with MapView? 5 second Google search: http://code.google.com/android/maps-api-tos.pdf - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MyLocationOverlay on a collapsed MapView?
Correct, but the TOS for the maps api doesn't reference use of the MyLocationOverlay class. I'm not interpreting anything in the TOS against the use I described, was wondering if anyone had experience here, or if someone from the google team could comment, Thanks On Jun 21, 11:53 am, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 10:41 AM, Mark Wyszomierski mar...@gmail.comwrote: Are there any terms of service for using MyLocationOverlay along with MapView? 5 second Google search:http://code.google.com/android/maps-api-tos.pdf --- -- 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] AnimationDrawable on ItemizedOverlay
Hi, Is there any way to show a gif animated or animationdrawable (to do something like MyLocationOverlay) on an ItemizedOverlay? Really i don't see an easy way to do this... Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: MyLocationOverlay on a collapsed MapView?
On Tue, Jun 21, 2011 at 11:06 AM, Mark Wyszomierski mar...@gmail.comwrote: Correct, but the TOS for the maps api doesn't reference use of the MyLocationOverlay class. IANAL, but if it's not covered in the TOS, you're fine. I can't imagine MyLocationOverlay must always be visible would be a restriction, specially since the user can go away from your app at any time, thereby hiding it even though it may still be working in the background. or if someone from the google team could comment, Don't expect anyone from Google to publicly comments on TOS of any kind. - 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] Mezzofanti OCR example project
Hi Does anyone have an example project for Android 2.x maybe on HTC...mentioned in writeups I am starting out with this and it's crashing the emulator and my phone! Thx John -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AnimationDrawable on ItemizedOverlay
On Tue, Jun 21, 2011 at 11:15 AM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Is there any way to show a gif animated or animationdrawable (to do something like MyLocationOverlay) on an ItemizedOverlay? Really i don't see an easy way to do this... You of course tried setting an AnimationDrawable as the ItemizedOverlay's Drawable already ... ? - 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] Saving a NinePatch to Temp Storage
There is no easy way to do this. You will need to manually generate a PNG image that has included in it a 9-patch chunk whose contents match the description here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=include/utils/ResourceTypes.h;h=10baa11a5114a4efd3ddb1d7fc4d870d8a2e8401;hb=HEAD#l45 On Tue, Jun 21, 2011 at 6:37 AM, Jake Colman col...@ppllc.com wrote: I am trying to allow the user to specify the background color of a ninepatch that is part of my res/drawble directory. The modified ninepatch will then be set as the background image for my widget. I realize that you cannot change the contents of res/drawble so I have to write the image to temporary storage and then use setImageFromURI to point at the modified ninepatch. I cannot figure out, however, how to save the image. I have the following code: Drawable bg = this.getResources().getDrawable(R.drawable.appwidget_bg); bg.mutate(); bg.setColorFilter( color, PorterDuff.Mode.MULTIPLY ); What method can I now use to write this out? There do not seem to be any methods on Drawable that will persist an image. Is there a helper class that I need to use? I did look at BitmapFactory but, unless I misunderstood, it didn't seem to be the solution. Is there a preferred location to use for this kind of temporary file? Is there a better recommended way of doing what I am trying to do? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Strange device?
Yes that is the main thing I am talking about there being some chaos in the definitions. :/ On Mon, Jun 20, 2011 at 11:58 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Ok, thanks. I am testing on the original 7 Galaxy Tab, which is a 600x1024 HDPI device, which gives 400dpx683dp, so unless I am misunderstanding you, it should be classificed as a Normal screen device, but it seems to be pulling resources from the Large folders. Is there special handling for just this case, or is it really supposed to be an OR instead of an AND when it comes to width/height sizes? On Jun 21, 2:37 pm, Dianne Hackborn hack...@android.com wrote: Don't believe written documentation at this point, there has been some chaos in this. The current official numbers used by the platform implementation are: Normal -- 320dp x 480dp Large - 480dp x 640dp XLarge - 720dp x 960dp Technically in the impl Small is just smaller than normal, but as per the CDD the smallest this can be is 320dp x 426dp. * *I really need to write a blog post about this, especially on conjunction with some other stuff coming up. :} On Mon, Jun 20, 2011 at 9:57 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Dianne, I found the following table in attrs_manifest.xml attr name=screenSize !-- A small screen configuration, at least 240x320db. -- enum name=small value=200 / !-- A normal screen configuration, at least 320x480db. -- enum name=normal value=300 / !-- A large screen configuration, at least 400x530db. -- enum name=large value=400 / !-- An extra large screen configuration, at least 600x800db. -- enum name=xlarge value=500 / /attr Are those correct? I couldn't find the code where it would do the checking -- I guess it's in native code. On Jun 21, 10:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: Thanks, Dianne. I am actually happy that OEMs are trying to push the envelop with these devices. Some of these strange form factors may stick. So the division point between normal and large is 480dp x 640dp. Can you please tell me (or point me to a source) what the division points between small/normal and large/xlarge are? On Jun 21, 9:51 am, Dianne Hackborn hack...@android.com wrote: Yeah, 240/160. hdpi == 240, mdpi == 160. This device should not normally run applications on both screens. Actually, this is what they did: https://market.android.com/details?id=com.kyocera.tabletmodeextension. .. So it is a compatible device for purposes of passing the CDD, but you can download an app of theirs that makes it incompatible. Writing the CDD sometimes feels like trying to do a deal with the devil. :p On Mon, Jun 20, 2011 at 6:41 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Got it. It's the density float in DisplayMetrics. On Jun 21, 9:36 am, Zsolt Vasvari zvasv...@gmail.com wrote: I am sorry, how did you get 533dp x 640dp from 800x960 hdpi screen? Can you please provide this calculation? Obviously, you divided by 1.5, but where did the 1.5 magic constant come from? I would like to use this info to determine in my app if I am running on a screen at least LARGE and do some stuff differently. On Jun 21, 9:19 am, Dianne Hackborn hack...@android.com wrote: To be compatible, a device like this would need to run apps in only one of the screens. What it means to run in two screens is not well defined. Fwiw, the division point between normal and large is 480dp x 640dp. So a 800x960 hdpi screen is 533dp x 640dp, just barely classifying as large. On the other hand the aspect ratio of that screen is only 1.2, which is not compatible according to the CDD. It is also not compatible to change the screen configuration, so there are two reasons it must run applications on one screen for compatibility. On Mon, Jun 20, 2011 at 5:24 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The Flipout has a 320x240 screen. Ths is definetely the Kyocera Echo. My only question when supporting this device is if the screen consdered Medium or Large? 4.7 seems to be borderline on the screen size chart. On Jun 20, 11:40 pm, Dan dan.schm...@gmail.com wrote: My bet is the Motoroal Ruth/Flipout http://phandroid.com/motorola-flipout/ On Jun 19, 6:56 pm, Zsolt Vasvari zvasv...@gmail.com wrote: As part of my app, if I notice a screen size/DPI combo I haven't tested on, I pop-up a dialog and ask the user to send me an e-mail about
[android-developers] Re: AnimationDrawable on ItemizedOverlay
But how do i do this if i haven't any imageview to show the animation? I have seen this on documentation, but for an overlay is slightly different... !-- Animation frames are wheel0.png -- wheel5.png files inside the res/drawable/ folder -- animation-list android:id=selected android:oneshot=false item android:drawable=@drawable/wheel0 android:duration=50 / item android:drawable=@drawable/wheel1 android:duration=50 / item android:drawable=@drawable/wheel2 android:duration=50 / item android:drawable=@drawable/wheel3 android:duration=50 / item android:drawable=@drawable/wheel4 android:duration=50 / item android:drawable=@drawable/wheel5 android:duration=50 / /animation-list Here is the code to load and play this animation. // Load the ImageView that will host the animation and // set its background to our AnimationDrawable XML resource. ImageView img = (ImageView)findViewById(R.id.spinning_wheel_image); img.setBackgroundResource(R.drawable.spin_animation); // Get the background, which has been compiled to an AnimationDrawable object. AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground(); // Start the animation (looped playback by default). frameAnimation.start() On 21 jun, 18:21, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 11:15 AM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Is there any way to show a gif animated or animationdrawable (to do something like MyLocationOverlay) on an ItemizedOverlay? Really i don't see an easy way to do this... You of course tried setting an AnimationDrawable as the ItemizedOverlay's Drawable already ... ? --- -- 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] taskAffinity specifying name with activity problem.
I am having a similar problem to thishttp://stackoverflow.com/questions/6416159/android-taskaffinity-problem-with-specifying-activitystackoverflow post. Unfortunately no one has answered it. Basically, if another app has specified for an activity taskAffinity= from dumpsys activity I see packagename/.TestActivity. I cannot specify this in the android:taskAffinity value because the manifest won't accept '/'. The target activity also has launchMode='singleTask', exactly what the stackoverflow post talks about. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AnimationDrawable on ItemizedOverlay
On Tue, Jun 21, 2011 at 12:04 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: But how do i do this if i haven't any imageview to show the animation? Honestly, don't know, but I would assume http://developer.android.com/reference/android/content/res/Resources.html#getDrawable(int) Would return you the AnimationDrawable from the resource ID which you could pass to the ItemizedOverlay. Keyword being assume ;-). Try it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AnimationDrawable on ItemizedOverlay
Just tested and doesn't work... It is shown only the 1st image of the animation list.. On 21 jun, 19:44, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 12:04 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: But how do i do this if i haven't any imageview to show the animation? Honestly, don't know, but I would assumehttp://developer.android.com/reference/android/content/res/Resources) Would return you the AnimationDrawable from the resource ID which you could pass to the ItemizedOverlay. Keyword being assume ;-). Try it. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: taskAffinity specifying name with activity problem.
According to: http://developer.android.com/reference/android/R.attr.html#taskAffinity It says that you can use \\ to escape characters. I've tried that but still it won'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] Softkeyboard Problems (Fullscreen + GLES)
Hi, i fooled around with the softkeyboard API a little and tested it on a couple of phones. My test setup is an activity with a GLSurfaceView set to fullscreen. When the screen is touched the softkeyboard is brought up via InputMethodManager manager = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); manager.showSoftInput(view, 0); A standard affair. This works flawlessly on all the phones i've tested, e.g. Moto Droid (2.1.1), HTC Hero (1.5), Samsung Leo (2.1.1), Asus Transformer (3.1), Nexus One (2.3.4). It fails on the HTC Desire HD. The problem manifests itself in that the keyboard is not shown at all. However, when one closes the app one can briefly see the keyboard flicker on screen. The problem is not present in non-fullscreen mode. I assume the HTC Sense keyboard is the issue here. To confirm this i installed one of the free IMEs from the market, and behold, it worked without a problem. Is there a solution to the issue? It seems there's no kind of developer center apart from the download list at http://developer.htc.com. Is there any way to report this to HTC directly? For completeness, here's the source for the test activity. The manifest file is pretty much vanilla, no additional attributes are set for the activity. Thanks a bunch! Mario package com.badlogic; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.app.Activity; import android.content.Context; import android.opengl.GLSurfaceView; import android.opengl.GLSurfaceView.Renderer; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.view.View.OnTouchListener; import android.view.inputmethod.InputMethodManager; public class SoftKeyboardTestActivity extends Activity implements Renderer, OnTouchListener { GLSurfaceView view; @Override public void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); view = new GLSurfaceView(this); view.setFocusable(true); view.setFocusableInTouchMode(true); view.setRenderer(this); view.setOnTouchListener(this); setContentView(view); } @Override public void onPause() { super.onPause(); view.onResume(); } @Override public void onResume() { super.onResume(); view.onResume(); } @Override public boolean onTouch (View arg0, MotionEvent arg1) { InputMethodManager manager = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); manager.showSoftInput(view, 0); return false; } @Override public void onDrawFrame (GL10 gl) { gl.glClearColor(1, 0, 0, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); } @Override public void onSurfaceChanged (GL10 gl, int width, int height) { } @Override public void onSurfaceCreated (GL10 gl, EGLConfig config) { } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AnimationDrawable on ItemizedOverlay
On Tue, Jun 21, 2011 at 12:49 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Just tested and doesn't work... It is shown only the 1st image of the animation list.. Did you call start() on the AnimationDrawable? (More assumptions) - 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] text wrap around image with render script.
Hello guys, two questions, I want to implement text wrapping image, with java or render script, how can i do that? The document for android text is very unclear without any example, and it seems that wrapping is not possible. how about render script? I noticed that the youtube app coming with android 3.1 has text wrapping. and it is based on the render script. my second question is that, can a view drawn with the render script be mixed with the normal java ui? for example, can i use java to create menus and buttons to control a render script scene on the same screen? Thank you. Come on Romain Guy, show up! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: taskAffinity specifying name with activity problem.
Why do you have to use the '/' character? Almost any string will do. Just make sure it's unique. You could use your package-name followed by a task-name. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: taskAffinity specifying name with activity problem.
Because, I am trying to inject my activity into an existing task. If I do not specify the actual task name as it is from 'dumpsys activity', then Android thinks this task does not exist and creates a new one for my own activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AnimationDrawable on ItemizedOverlay
Yes i did, and just tested doing before and after adding ItemizedOverlay to the map overlays array. On 21 jun, 20:19, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 12:49 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Just tested and doesn't work... It is shown only the 1st image of the animation list.. Did you call start() on the AnimationDrawable? (More assumptions) --- -- 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: taskAffinity specifying name with activity problem.
It seems that the application you're trying to co-exist with just was not designed for it. Getting the developer to change the affinity value would let you work with it. Task affinities use a global namespace (even the :foo is just shorthand to prepend the package name), so pick something package-name like. -- Kostya 2011/6/21 dnkoutso dnkou...@gmail.com Because, I am trying to inject my activity into an existing task. If I do not specify the actual task name as it is from 'dumpsys activity', then Android thinks this task does not exist and creates a new one for my own activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: taskAffinity specifying name with activity problem.
Ah.. i see... Then I don't have an answer for 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
Re: [android-developers] Re: taskAffinity specifying name with activity problem.
Hmmm, that's unfortunate, anyone from Android team can confirm 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] Re: AnimationDrawable on ItemizedOverlay
On Tue, Jun 21, 2011 at 1:38 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Yes i did, and just tested doing before and after adding ItemizedOverlay to the map overlays array. Well, I'm out of ideas. If you don't get an answer to make this work the way it should, perhaps make you own animator for this case. It shouldn't be terribly difficult to make your own animated ItemizedOverlay by using the AnimationDrawable functions to get each frame with a timer in between as necessary. - 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] ADK for generic input device
Would it be possible to use the ADK to create a generic input device. A mouse as an example. I know you could do it for any given app, but could it be done so that the OS sees my device as a mouse for all apps? I could create a Keyboard app, like Swype, except all it does is take input from my hardware but is there an analogy to that for a mouse. I need to waterproof my phone and still control some features which I can do in my app but some other apps would be nice too. Ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: Re: [android-developers] Aw: Object Structure
yes use the sqlite database as a cache. the content provider contacts the server for data if there are no data stored in the sqlite database. make sure you use asynchron list adapter so that the activity doesn't block... 2011/6/21 Sivaprakash sivaprakashshanmu...@gmail.com Thanks !! So, when ever I get data back from back end server it has to be persisted in local storage (SQLite) and through content provider only I should access is that correct approach ? - Siva On Sat, Jun 18, 2011 at 6:41 PM, jjoe64 g.jjo...@googlemail.com wrote: yes. if you do a query on your content provider (though listview/adapter or manually with content resolver), it returns only a cursor (pointer) to the data, that's the reason why the memory space is saved and performance will increase. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In-App Billing - Alternatives to Google?
Can someone else recommend an In app payment solution besides Google? This is for digital files. Not for unlocking trials, not for unlocking features of an app. I re read my Market agreement. I do not believe it forbids digital downloads from another payment processor, such as the MP3s sold in Amazon MP3 app. The only reason I bring this up is because In App billing is horribly broken. Google is just not a partner I would choose for payment processing if there were any other choice. The fact that 1.6 and 2.1 don't get purchase confirmations has been a medium priority defect for 3 months now. Worse, in the last week, managed purchases are getting double billed and purchase state changes are not being received at all for managed purchases, even with restoretransactions. Customers are angry - cancellations are through the roof. http://code.google.com/p/marketbilling/issues/detail?id=29 https://code.google.com/p/marketbilling/issues/detail?id=32#c11 Both the inability to receive purchase state broadcasts and the multiple charges on managed products appear to be related to this bug, from those discussions. I've been tearing my hair out for a week or two trying to implement in app billing with some help from a third party library. I blamed my own code; I blamed the third party, but now it seems is at Google's end. I don't really blame the one (1) guy that they appear to have responsible for all in-app billing functionality. But maybe I should go to a payment processor that is willing to fund a staff of more than one person. Any ideas? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Reading from CERT.RSA from META-INF directory
Ahh, I see what you are saying now, I have never used those (JarFile/ JarEntry) APIs before. Thank you! On Jun 15, 6:25 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Jun 16, 2011 at 3:18 AM, Nate Totura ntot...@gmail.com wrote: To clarify, I would like to do this at runtime. Access to the certificate information at runtime is really what I want. That doesn't clarify much... If want to read it from an apk, use JarFile. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cant stop service
Thanks very much for the help, that did 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