[android-developers] Re: Customized Tab Layout in android.
TabSpec has a setIndicator that accepts a View, just inflate your own layout. But just a note, your UI is bad. Thats an iOS layout. In Android, tabs go at the top, and you certainly dont add stupid navigational buttons... if you want a scheme similar to that, use an ActionBar. On Thursday, November 22, 2012 7:01:12 AM UTC+2, Arun wrote: Hello All , I am Working on Android Application and i needs to design a custom tab layout screen as shown Below , in which i wants to set a different Image in Middle tab, i have no clue whatsoever how to implement this, Please help me and guide me to how to do this. https://lh3.googleusercontent.com/-09HH2ip1uLs/UK2wJqd7poI/AEs/U1JBgJJCQ4M/s1600/screenshot.jpg Thanks Arun Joshi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OOM with heap enough
Yep, makes no sense at all, but thats how it is. Maybe we can ask Romain to give Dianne a call and get a response :-P I tried finding that thread that mentioned this Dalvik bug/feature but no luck... i did come across Romain's famous use less memory quote :-P (http://code.google.com/p/android/issues/detail?id=8488can=1) Which oddly, in your case does apply... As i said, the best trick i've found is just not to get the heap so large. On Wednesday, November 21, 2012 7:31:06 PM UTC+2, Fran wrote: Hi, That has no sense at all. I do not mean that you are not right, just mean that in such case it is a mighty bug... Best regards, 2012/11/21 Piren gpi...@gmail.com javascript: I remember reading about a similar issue in the past and experienced the same issue as well. From what i recall, but dont take my word for it, even if there is room in the heap and it isnt fragmented beyond belief, Dalvik first checks if the heap can be enlarged to include the needed space, instead of trying to use the space it has free. Since you're already at 48MB, you've just pushed through the limit with the new needed allocation (regardless of the fact you have the space), and Dalvik throws the OutOfMemoryException. I had it happen to me as well. Only solution i've found? to never get the heap so large it sits on the edge (stupid bug, stupid solution, i know). I think Dianne Hackburn mentioned that, maybe a google search will find it. On Wednesday, November 21, 2012 5:18:33 PM UTC+2, Fran wrote: On 11/21/2012 03:58 PM, Mark Murphy wrote: First, you do not know necessarily what BitmapFactory.Options are being specified on the decodeResource() call, as that does not appear to be called from your code, and it could be they have strange values in there. Well, as far as my own code reaches (AndroidGraphics.java:77), I do set these options. Options options = new Options(); options.inPreferredConfig = Config.ARGB_; options.inScaled = false; [...] bitmap = BitmapFactory.decodeResource(**this.context.getResources(), resourceId, options); Beyond that, last I knew, Dalvik does not have a compacting garbage collector. I haven't seen a recent statement as to whether or not that limitation has been fixed. If it is still the case, though, your issue may not so much that you are out of memory, but that there is no single contiguous block that meets your needs. Well, it may happen, but the evidence on that is really weak. The game has just started and it is loading the main menu screen, with only a few objects in memory, so it is unlikely that in these circunstances and with 15Mb of free heap an image of just 1M5 as raw ARGB_ will not find an slot. On Wed, Nov 21, 2012 at 9:48 AM, Francisco Marzoa fmma...@gmail.comwrote: Look at this: 0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB) 1at android.graphics.**BitmapFactory.**nativeDecodeAsset(Native Method) 2at android.graphics.**BitmapFactory.decodeResource(** BitmapFactory.java:595) 3at com.badlogic.androidgames.** framework.impl.**AndroidGraphics.newPixmap(**AndroidGraphics.java:77) 4at com.badlogic.androidgames.**framework.impl.** AndroidGraphics.newPixmap(**AndroidGraphics.java:133) 5at net.iberdroid.**ruletaafortunadacore.**MainMenuScreen.loadImages(** MainMenuScreen.java:255) 6at net.iberdroid.**ruletaafortunadacore.** MainMenuScreen.enable(**MainMenuScreen.java:241) The image that I am trying to load at MainMenuScreen.java:255 The weird thing is that there is free heap enough for loading that image: it is a 800x480 png indexed but with transparency, so I load it using four bytes per pixel (ARGB) and it should use about 1M5 of memory as a raw bitmap... but it crashes anyway trying to load an image ten times smaller the available heap space (48-35 = 15Mb). These things makes me crazy... Bests, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Re: Windows 8
Everything runs fine for me (64bit). You can also just install Windows 7... Microsoft has a downgrade path. On Wednesday, November 21, 2012 7:16:48 PM UTC+2, Doug Gordon wrote: My development PC just took a dive, and most of the decent PCs that I can find locally are now coming with Windows 8. I really don't want to go that route, but if I do, will the Android development environment, i.e., Eclipse and the various SDK tools, run OK on Windows 8? And how about drivers for Android 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] Automate update every x secs get data from myUrl
Am i the only one noticing that he keeps getting people to do pretty much all the programming he needs, step by step? On Thursday, November 22, 2012 1:40:42 AM UTC+2, TreKing wrote: On Wed, Nov 21, 2012 at 12:40 PM, Antonis Kanaris ant...@in.grjavascript: wrote: i want to convert to automatic update.How i make this? In a word: AlarmManager. - 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: Playing a part of the video
http://developer.android.com/reference/android/media/MediaPlayer.html#seekTo(int) On Thursday, November 22, 2012 5:43:30 AM UTC+2, praveen castelino wrote: Can anybody help me out with this issue. I don't need any code. Guide me to the Class or documentation. Is this possible to do it in android (in iOS we can)? On Monday, 19 November 2012 19:56:24 UTC+5:30, praveen castelino wrote: I have a video of duration 180 seconds. I want to play only 30 seconds of this video starting from 60th second. i.e. only a part of the video needs to be played.(Start time : 60 sec, End time: 90 sec). Can this be doable in android? I have done the same on iOS but not able to find equivalent apis on android. It looks like MediaPlayer allows us to supply only the start time (i.e. seekto()) but not allows us to set the end time or the duration of the video. Any input on this would be great help to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?
Please look at this question and give me some suggestions..i hate being stuck with something like 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
[android-developers] Re: Playing a part of the video
Thanks for your reply. The seekTo() method will allow you to start the video from any location but there are no APIs to set the end time or the duration. i.e. I did not find any API which allows me to play any 5 sec movie clip from a 2 hour duration movie ;( Anybody who has done this before? On Thursday, 22 November 2012 14:19:07 UTC+5:30, Piren wrote: http://developer.android.com/reference/android/media/MediaPlayer.html#seekTo(int) On Thursday, November 22, 2012 5:43:30 AM UTC+2, praveen castelino wrote: Can anybody help me out with this issue. I don't need any code. Guide me to the Class or documentation. Is this possible to do it in android (in iOS we can)? On Monday, 19 November 2012 19:56:24 UTC+5:30, praveen castelino wrote: I have a video of duration 180 seconds. I want to play only 30 seconds of this video starting from 60th second. i.e. only a part of the video needs to be played.(Start time : 60 sec, End time: 90 sec). Can this be doable in android? I have done the same on iOS but not able to find equivalent apis on android. It looks like MediaPlayer allows us to supply only the start time (i.e. seekto()) but not allows us to set the end time or the duration of the video. Any input on this would be great help to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Playing a part of the video
praveen castelino wrote: Thanks for your reply. The seekTo() method will allow you to start the video from any location but there are no APIs to set the end time or the duration. i.e. I did not find any API which allows me to play any 5 sec movie clip from a 2 hour duration movie ;( Anybody who has done this before? use Handler and stop() your MediaPlayer whenever you want pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Calendar API v3 with AccountManager not working for some accounts?
I'm using the AccountManager getAuthToken(..) method to retrieve a token for Google Calendar sync. While sync works in most cases, several users report the following error when trying to get the calendarList of the Google calendar API: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized{code : 401,errors : [ {domain : global,location : Authorization,locationType : header,message : Invalid Credentials,reason : authError} ],message : Invalid Credentials} Their native Android calendar app continues to sync normally.i.e., they do have internet connection and they do have registered accounts on their device.Here is what I do: AccountManager accountManager = AccountManager.get(this);Account[] accounts = accountManager.getAccountsByType(com.google);...//for each account:...accountManager.invalidateAuthToken(account.type, null);accountManager.getAuthToken(account, oauth2:https://www.googleapis.com/auth/calendar;, true, new AccountManagerCallbackBundle(){ public void run(AccountManagerFutureBundle future) {try{ Bundle bundle = future.getResult(); if(bundle.containsKey(AccountManager.KEY_AUTHTOKEN)) { String token = bundle.getString(AccountManager.KEY_AUTHTOKEN); AfterGetToken(token); }else { if(bundle.containsKey(AccountManager.KEY_INTENT)) { Intent intent = bundle.getParcelable(AccountManager.KEY_INTENT); intent.setFlags(intent.getFlags() ~Intent.FLAG_ACTIVITY_NEW_TASK); activity.startActivityForResult(intent, REQUEST_AUTHENTICATE); //-start all over in onActivityResult } } }catch(Exception e){e.printStackTrace(); invalidateToken(account, null);//-start again} } }, null); private void AfterGetToken(String myToken){ GoogleCredential credential = new GoogleCredential().setAccessToken(myToken); CalendarService = new com.google.api.services.calendar.Calendar.Builder(transport, new JacksonFactory(), null) .setApplicationName(MY_APP_NAME) .setHttpRequestInitializer(credential) .setJsonHttpRequestInitializer(new JsonHttpRequestInitializer() { public void initialize(JsonHttpRequest request) throws IOException { com.google.api.services.calendar.CalendarRequest calendarRequest = (CalendarRequest) request; calendarRequest.setKey(MY_API_KEY); calendarRequest.setOauthToken(credential.getAccessToken()); } }).build(); CalendarList calendarList = null; * try*{ calendarList = CalendarService.calendarList().list().execute(); }*catch* (Exception e) { e.printStackTrace(); } //do stuff with calendarList } //These are my imports: *import* android.accounts.Account; *import* android.accounts.AccountManager; *import* com.google.api.client.googleapis.auth.oauth2.GoogleCredential; *import* com.google.api.client.http.HttpTransport; *import* com.google.api.client.http.javanet.NetHttpTransport; *import* com.google.api.client.http.json.JsonHttpRequest; *import* com.google.api.client.http.json.JsonHttpRequestInitializer; *import* com.google.api.client.json.jackson.JacksonFactory; *import* com.google.api.services.calendar.CalendarRequest; *import* com.google.api.services.calendar.model.*CalendarList*; Thanks for your help! Christopher -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android in app purchase connection timeout
Hello On Wednesday, November 21, 2012 9:34:32 AM UTC-7, vitthal khatpe wrote: Hi All, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HttpURLConnection on Galaxy Nexus 4.2
I'm attempting to write a simple API management class and running into an issue when using HttpUrlConnection to POST content on a Galaxy Nexus recently upgraded to 4.2. In effect, attempting to post content fails on the first attempt with an EOFException: java.io.EOFException at libcore.io.Streams.readAsciiLine(Streams.java:203) at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:573) at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:821) at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283) at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:495) at com.murts.network.APIClient.post(APIClient.java:126) at com.murts.network.APIManager$1.doInBackground(APIManager.java:49) The second attempt to post (with the same data) will work fine, as will every alternate attempt to do so after that. The code is as follows: URL url = new URL(urlString); connection = (HttpURLConnection) url.openConnection(); connection.setUseCaches(false); connection.setDoOutput(true); connection.setRequestProperty(Content-type, application/json; charset=utf-8); connection.setFixedLengthStreamingMode(postContent.getBytes().length); output = connection.getOutputStream(); output.write(postContent.getBytes()); if (connection.getResponseCode() / 100 == 2) { Ln.d(Seemed to work: + connection.getResponseCode()); return new NetworkResponse(NetworkStatus.OKAY, connection.getResponseCode(), ); } else { String errorResponse = new String(readStream(connection.getErrorStream())); Ln.e(TAG , Error: + errorResponse); String statusLine; if (connection.getHeaderFields().get(null) != null (statusLine = connection.getHeaderFields().get(null).get(0)) != null TextUtils.split(statusLine, ).length 2) { int potentialStatusCode = Integer.parseInt(TextUtils.split(statusLine, )[1]); Ln.d(Parsed out empty response to reveal: + potentialStatusCode); return new NetworkResponse(NetworkStatus.OKAY, potentialStatusCode, ); } } } catch (IOException e) { Ln.e(e); } finally { if (connection != null) { connection.disconnect(); } } Testing on a 4.2 image on an emulator seems to work well, as does testing on previous versions of Android on an emulator (2.3+). I can't see any immediate issues with the code (it may looks hackish in parts, but that's due more to being churned over thanks to endless frustration with this issue) but perhaps I've missed something? Anyone have any thoughts with this, on either a Galaxy Nexus in general or with 4.2 specifically? Thanks in advance for any assistance (or even thoughts at all.) Ryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create soap request in ksoap2 for a wcf webservice method with complex types?
I looked at it, my suggestion is to ask your question over here http://sourceforge.net/projects/ksoap2/forums On Thursday, November 22, 2012 10:52:15 AM UTC+2, Raneez wrote: Please look at this question and give me some suggestions..i hate being stuck with something like 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
[android-developers] Re: Playing a part of the video
great answer :) is there anyway to fix controls UI issue as it shows the full video duration. Can we put our own custom controls? On Thursday, 22 November 2012 14:49:07 UTC+5:30, skink wrote: praveen castelino wrote: Thanks for your reply. The seekTo() method will allow you to start the video from any location but there are no APIs to set the end time or the duration. i.e. I did not find any API which allows me to play any 5 sec movie clip from a 2 hour duration movie ;( Anybody who has done this before? use Handler and stop() your MediaPlayer whenever you want pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OOM with heap enough
Hi, I hardly could use less memory. Devices with high dpi and res needs more memory so they can use HD images, that's why they have a higher heap limit. Now if you cannot use all that heap size... it is just absurd! I rather prefer that the problem were a bug on bugsense and this report weren't reliable... On Nov 22, 2012 9:26 AM, Piren gpi...@gmail.com wrote: Yep, makes no sense at all, but thats how it is. Maybe we can ask Romain to give Dianne a call and get a response :-P I tried finding that thread that mentioned this Dalvik bug/feature but no luck... i did come across Romain's famous use less memory quote :-P ( http://code.google.com/p/android/issues/detail?id=8488can=1) Which oddly, in your case does apply... As i said, the best trick i've found is just not to get the heap so large. On Wednesday, November 21, 2012 7:31:06 PM UTC+2, Fran wrote: Hi, That has no sense at all. I do not mean that you are not right, just mean that in such case it is a mighty bug... Best regards, 2012/11/21 Piren gpi...@gmail.com I remember reading about a similar issue in the past and experienced the same issue as well. From what i recall, but dont take my word for it, even if there is room in the heap and it isnt fragmented beyond belief, Dalvik first checks if the heap can be enlarged to include the needed space, instead of trying to use the space it has free. Since you're already at 48MB, you've just pushed through the limit with the new needed allocation (regardless of the fact you have the space), and Dalvik throws the OutOfMemoryException. I had it happen to me as well. Only solution i've found? to never get the heap so large it sits on the edge (stupid bug, stupid solution, i know). I think Dianne Hackburn mentioned that, maybe a google search will find it. On Wednesday, November 21, 2012 5:18:33 PM UTC+2, Fran wrote: On 11/21/2012 03:58 PM, Mark Murphy wrote: First, you do not know necessarily what BitmapFactory.Options are being specified on the decodeResource() call, as that does not appear to be called from your code, and it could be they have strange values in there. Well, as far as my own code reaches (AndroidGraphics.java:77), I do set these options. Options options = new Options(); options.inPreferredConfig = Config.ARGB_; options.inScaled = false; [...] bitmap = BitmapFactory.decodeResource(**t**his.context.getResources(), resourceId, options); Beyond that, last I knew, Dalvik does not have a compacting garbage collector. I haven't seen a recent statement as to whether or not that limitation has been fixed. If it is still the case, though, your issue may not so much that you are out of memory, but that there is no single contiguous block that meets your needs. Well, it may happen, but the evidence on that is really weak. The game has just started and it is loading the main menu screen, with only a few objects in memory, so it is unlikely that in these circunstances and with 15Mb of free heap an image of just 1M5 as raw ARGB_ will not find an slot. On Wed, Nov 21, 2012 at 9:48 AM, Francisco Marzoa fmma...@gmail.comwrote: Look at this: 0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB) 1at android.graphics.**BitmapFactory**.**nativeDecodeAsset(Native Method) 2at android.graphics.**BitmapFactory**.decodeResource(** BitmapFactory.**java:595) 3at com.badlogic.androidgames.**fram** ework.impl.**AndroidGraphics.**newPixmap(**AndroidGraphics.**java:77) 4at com.badlogic.androidgames.**fram**ework.impl.**AndroidGraphics.** newPixmap(**AndroidGraphics.**java:133) 5at net.iberdroid.** ruletaafortunada**core.**MainMenuScreen.**loadImages(**MainMenuScreen. **java:255) 6at net.iberdroid.**ruletaafortunada**core.** MainMenuScreen.enable(**Mai**nMenuScreen.java:241) The image that I am trying to load at MainMenuScreen.java:255 The weird thing is that there is free heap enough for loading that image: it is a 800x480 png indexed but with transparency, so I load it using four bytes per pixel (ARGB) and it should use about 1M5 of memory as a raw bitmap... but it crashes anyway trying to load an image ten times smaller the available heap space (48-35 = 15Mb). These things makes me crazy... Bests, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.3 Available! -- You received this message because you
[android-developers] Re: Playing a part of the video
praveen castelino wrote: great answer :) is there anyway to fix controls UI issue as it shows the full video duration. Can we put our own custom controls? sure you can create your own controls pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Heap debugging with bugsense
Hi there, I can pass some parameters to bugsense so they get reported with the crash report in case app crashes. As I have too many OOM in some devices, I wonder how I could send some valuable information about the heap state with them, you know, things like: - Maximum heap size - Current heap size - Heap memory free/used - Max size object that can be stored on the heap And so... Do you know how could I gather these? TIA, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Not supporting SMALL screen format
Hello, My application does not support SMALL screen format and I don't know why. I have 4 directories for the layouts (layout-small, layout-normal, layout-large and layout-xlarge) with the same number of XML files in each directory. With other older applications it works well but not with this new one. I work for this application with android:minSdkVersion=3 so I can't use supports-screens in my Manifest file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
Sent from my iPa ASq -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Traffic not showing for France in MapView
Nobody has got the same issue ? Le mercredi 17 octobre 2012 16:12:57 UTC+2, Fazerty a écrit : Hello everybody, Is the following normal ? When I use a MapView with settraffic(true) in order to show traffic stream, the traffic in France is not showing. But it is showing in England, Belgium, Spain... I have the same issue with ZTE 2.3.4, HTC Desire 2.1 and Samsung Galaxy SII 2.3.4 Is traffic for France not available in MapView ? It is strange because traffic in France exists on Google Maps Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Not supporting SMALL screen format
use layout-ldpi instead On Thursday, November 22, 2012 1:09:15 PM UTC+2, Fazerty wrote: Hello, My application does not support SMALL screen format and I don't know why. I have 4 directories for the layouts (layout-small, layout-normal, layout-large and layout-xlarge) with the same number of XML files in each directory. With other older applications it works well but not with this new one. I work for this application with android:minSdkVersion=3 so I can't use supports-screens in my Manifest file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Install Application from SD Card, open relaunches Application
Hi, I am facing the same problem as this post: http://code.google.com/p/android/issues/detail?id=18338 We have published our app to the Google PlayStore. When we install it from the PlayStore on Samsung Galaxy and press open, on pressing home button the application is relaunching. This is the same problem we face when we try to load our debug apk to the SD Card and install. Why is this problem occuring and what should be done to solve the problem? Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OOM with heap enough
Well, getting mad of this issue or trying to blame something else, wouldn't really benefit you, would it? Absurd as much as it is, thats most likely what you got. If you're so pressed on using so much memory, you can also resolve this issue by allocating it in a different manner. This issue is raised because the heap grew to 48MB prior to allocating the offending bitmap, not because that bitmap is too big... if you can change the way you do things so you'll never get to needing 48MB at the same time, you'd avoid the issue. This is how i resolved it, just changed the order of things i do and used stricter control on my memory allocation so i'll never inflate the heap so much. If you have 15mb free at the moment of the crash, it might indicate that you never needed to increase the heap to that size anyway. Imagine you're playing memory sokoban :) you can also: - use largeHeap=true and cross your fingers - use added code to limit the requested bitmap quality dependent on heap size. lower quality is better than crashing. - allocate the needed space on native memory manually. Although i haven't done the same, i understand that when using native your limits go up - Come to terms with random crashes but enjoy your HD backgrounds while they show:) On Thursday, November 22, 2012 12:34:05 PM UTC+2, Fran wrote: Hi, I hardly could use less memory. Devices with high dpi and res needs more memory so they can use HD images, that's why they have a higher heap limit. Now if you cannot use all that heap size... it is just absurd! I rather prefer that the problem were a bug on bugsense and this report weren't reliable... On Nov 22, 2012 9:26 AM, Piren gpi...@gmail.com javascript: wrote: Yep, makes no sense at all, but thats how it is. Maybe we can ask Romain to give Dianne a call and get a response :-P I tried finding that thread that mentioned this Dalvik bug/feature but no luck... i did come across Romain's famous use less memory quote :-P ( http://code.google.com/p/android/issues/detail?id=8488can=1) Which oddly, in your case does apply... As i said, the best trick i've found is just not to get the heap so large. On Wednesday, November 21, 2012 7:31:06 PM UTC+2, Fran wrote: Hi, That has no sense at all. I do not mean that you are not right, just mean that in such case it is a mighty bug... Best regards, 2012/11/21 Piren gpi...@gmail.com I remember reading about a similar issue in the past and experienced the same issue as well. From what i recall, but dont take my word for it, even if there is room in the heap and it isnt fragmented beyond belief, Dalvik first checks if the heap can be enlarged to include the needed space, instead of trying to use the space it has free. Since you're already at 48MB, you've just pushed through the limit with the new needed allocation (regardless of the fact you have the space), and Dalvik throws the OutOfMemoryException. I had it happen to me as well. Only solution i've found? to never get the heap so large it sits on the edge (stupid bug, stupid solution, i know). I think Dianne Hackburn mentioned that, maybe a google search will find it. On Wednesday, November 21, 2012 5:18:33 PM UTC+2, Fran wrote: On 11/21/2012 03:58 PM, Mark Murphy wrote: First, you do not know necessarily what BitmapFactory.Options are being specified on the decodeResource() call, as that does not appear to be called from your code, and it could be they have strange values in there. Well, as far as my own code reaches (AndroidGraphics.java:77), I do set these options. Options options = new Options(); options.inPreferredConfig = Config.ARGB_; options.inScaled = false; [...] bitmap = BitmapFactory.decodeResource(**t**his.context.getResources(), resourceId, options); Beyond that, last I knew, Dalvik does not have a compacting garbage collector. I haven't seen a recent statement as to whether or not that limitation has been fixed. If it is still the case, though, your issue may not so much that you are out of memory, but that there is no single contiguous block that meets your needs. Well, it may happen, but the evidence on that is really weak. The game has just started and it is loading the main menu screen, with only a few objects in memory, so it is unlikely that in these circunstances and with 15Mb of free heap an image of just 1M5 as raw ARGB_ will not find an slot. On Wed, Nov 21, 2012 at 9:48 AM, Francisco Marzoa fmma...@gmail.comwrote: Look at this: 0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB) 1at android.graphics.**BitmapFactory**.**nativeDecodeAsset(Native Method) 2at android.graphics.**BitmapFactory**.decodeResource(** BitmapFactory.**java:595) 3at com.badlogic.androidgames.**fram** ework.impl.**AndroidGraphics.**newPixmap(**AndroidGraphics.**java:77) 4at
[android-developers] xml parsing error
Hi I am trying to parse an xml file.But I am getting an exception. error Message :org.apache.harmony.xml.dom.TextImpl cannot be cast to org.w3c.dom.Element *Code is as follows:* *Xml File:* ?xml version=1.0 encoding=UTF-8? Quiz QuizQuestion QuestionWhich are the right words to greet someone?/Question option1Hello/option1 option2Hai/option2 option3Bye/option3 /QuizQuestion QuizQuestion type=Discription QuestionWhen do you use the word who?/Question Answer/Answer /QuizQuestion QuizQuestion QuestionWhat is AM used for?/Question option1Morning/option1 option2Evening/option2 /QuizQuestion /Quiz *Java code for Parsing:* DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(new URL(filepath).openStream()); doc.getDocumentElement().normalize(); NodeList questionList = doc.getElementsByTagName(QuizQuestion); int len = questionList.getLength(); if (len 0) { for (int i = 0; i len; i++) { Node node = questionList.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node; int childrenCount = element.getChildNodes().getLength(); Node child = element.getFirstChild(); int j = 0; while (child != null j childrenCount) { * Element element1 = (Element) child;* if (element1.getTagName().startsWith(term)) { String term = String.valueOf(element1.getTextContent()); System.out.println(term); } } } } } In the highlighted line exception is been raised. Kindly tell me where am i going wrong. Regards, AnandaKrishna 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: Google Calendar API v3 with AccountManager not working for some accounts?
UPDATE: I asked some of my users with this problem to create a new Google account on the same device and the new account seemed to work. The problems seemed to start when they deleted some calendars on gmail.com/calendar. On Thursday, November 22, 2012 10:30:41 AM UTC+1, Christopher Masser wrote: I'm using the AccountManager getAuthToken(..) method to retrieve a token for Google Calendar sync. While sync works in most cases, several users report the following error when trying to get the calendarList of the Google calendar API: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized{code : 401,errors : [ {domain : global,location : Authorization,locationType : header,message : Invalid Credentials,reason : authError} ],message : Invalid Credentials} Their native Android calendar app continues to sync normally.i.e., they do have internet connection and they do have registered accounts on their device.Here is what I do: AccountManager accountManager = AccountManager.get(this);Account[] accounts = accountManager.getAccountsByType(com.google);...//for each account:...accountManager.invalidateAuthToken(account.type, null);accountManager.getAuthToken(account, oauth2:https://www.googleapis.com/auth/calendar;, true, new AccountManagerCallbackBundle(){ public void run(AccountManagerFutureBundle future) {try{ Bundle bundle = future.getResult(); if(bundle.containsKey(AccountManager.KEY_AUTHTOKEN)) { String token = bundle.getString(AccountManager.KEY_AUTHTOKEN); AfterGetToken(token); }else { if(bundle.containsKey(AccountManager.KEY_INTENT)) { Intent intent = bundle.getParcelable(AccountManager.KEY_INTENT); intent.setFlags(intent.getFlags() ~Intent.FLAG_ACTIVITY_NEW_TASK); activity.startActivityForResult(intent, REQUEST_AUTHENTICATE); //-start all over in onActivityResult } }}catch(Exception e){ e.printStackTrace();invalidateToken(account, null); //-start again}} }, null); private void AfterGetToken(String myToken){ GoogleCredential credential = new GoogleCredential().setAccessToken(myToken); CalendarService = new com.google.api.services.calendar.Calendar.Builder(transport, new JacksonFactory(), null) .setApplicationName(MY_APP_NAME) .setHttpRequestInitializer(credential) .setJsonHttpRequestInitializer(new JsonHttpRequestInitializer() { public void initialize(JsonHttpRequest request) throws IOException { com.google.api.services.calendar.CalendarRequest calendarRequest = (CalendarRequest) request; calendarRequest.setKey(MY_API_KEY); calendarRequest.setOauthToken(credential.getAccessToken()); } }).build(); CalendarList calendarList = null; * try*{ calendarList = CalendarService.calendarList().list().execute(); }*catch* (Exception e) { e.printStackTrace(); } //do stuff with calendarList } //These are my imports: *import* android.accounts.Account; *import* android.accounts.AccountManager; *import* com.google.api.client.googleapis.auth.oauth2.GoogleCredential; *import* com.google.api.client.http.HttpTransport; *import* com.google.api.client.http.javanet.NetHttpTransport; *import* com.google.api.client.http.json.JsonHttpRequest; *import* com.google.api.client.http.json.JsonHttpRequestInitializer; *import* com.google.api.client.json.jackson.JacksonFactory; *import* com.google.api.services.calendar.CalendarRequest; *import* com.google.api.services.calendar.model.*CalendarList*; Thanks for your help! Christopher -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Strings.xml call WebView
Who call a WebView through the file strings.xml ?? Como chama uma WebView através do arquvo strings.xml ??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OOM with heap enough
On 11/22/2012 12:48 PM, Piren wrote: Well, getting mad of this issue or trying to blame something else, wouldn't really benefit you, would it? Actually yes: it would not solve my crashes, but helps me to unload a bit of stress, you know... ;-D Also swearing is not incompatible with coding, I am doing both things at same time ;-) Absurd as much as it is, thats most likely what you got. If you're so pressed on using so much memory, you can also resolve this issue by allocating it in a different manner. This issue is raised because the heap grew to 48MB prior to allocating the offending bitmap, not because that bitmap is too big... if you can change the way you do things so you'll never get to needing 48MB at the same time, It is unlikely I need so much memory. In all the test I did, I never used more than 30Mb. I do not know what determines the step that makes the heap grow, but may be I just need 32Mb and the system decides to allocate 48Mb by itself. Anyway we are not sure about this being the source of the problem. As told, I cannot discard even that heap information passed by Bugsense is inaccurate. Of course the crash is there, but the reason may be different and have a more rational solution. you'd avoid the issue. This is how i resolved it, just changed the order of things i do and used stricter control on my memory allocation so i'll never inflate the heap so much. If you have 15mb free at the moment of the crash, it might indicate that you never needed to increase the heap to that size anyway. Imagine you're playing memory sokoban :) you can also: - use largeHeap=true and cross your fingers This is useful at all? I mean, I do no think such devices will have a heap bigger than those 48Mb (that as seen SHOULD be more than enough for my app...) - use added code to limit the requested bitmap quality dependent on heap size. lower quality is better than crashing. Well, this is more or less what I am doing right now, but it will make users experience worse than they should be: they buy a xdpi screen, and they will see only hdpi images... :-| And the worst is that I am not sure that this will solve the OOM problems, and some users complain about updating to often -probably those that are not affected by crashes-, but it is better than spending $6000 in different phones for testing that may -or not- fail for real debugging. - allocate the needed space on native memory manually. Although i haven't done the same, i understand that when using native your limits go up - Come to terms with random crashes but enjoy your HD backgrounds while they show:) :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OOM with heap enough
One thing about this... Do you think this may be a problem of target SDK or so? This is what I am using right now: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=15 / And most of this problems (99% at least) seems to be ocurring in 4.0.3+ Android devices... Does this says something to any Android guru here? O_o Best regards, On 11/21/2012 03:58 PM, Mark Murphy wrote: First, you do not know necessarily what BitmapFactory.Options are being specified on the decodeResource() call, as that does not appear to be called from your code, and it could be they have strange values in there. Beyond that, last I knew, Dalvik does not have a compacting garbage collector. I haven't seen a recent statement as to whether or not that limitation has been fixed. If it is still the case, though, your issue may not so much that you are out of memory, but that there is no single contiguous block that meets your needs. On Wed, Nov 21, 2012 at 9:48 AM, Francisco Marzoa fmmar...@gmail.com mailto:fmmar...@gmail.com wrote: Look at this: 0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB) 1at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 2at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:595) 3at com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:77) 4at com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:133) 5at net.iberdroid.ruletaafortunadacore.MainMenuScreen.loadImages(MainMenuScreen.java:255) 6at net.iberdroid.ruletaafortunadacore.MainMenuScreen.enable(MainMenuScreen.java:241) The image that I am trying to load at MainMenuScreen.java:255 The weird thing is that there is free heap enough for loading that image: it is a 800x480 png indexed but with transparency, so I load it using four bytes per pixel (ARGB) and it should use about 1M5 of memory as a raw bitmap... but it crashes anyway trying to load an image ten times smaller the available heap space (48-35 = 15Mb). These things makes me crazy... Bests, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 _The Busy Coder's Guide to Android Development_ Version 4.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Audio Streaming
Hi everyone.. I need to stream an audio file ,from an Android device to another Android device I need to seek it back... with out any breaks , i have to play the songs... Which rule is possible... !!! send me some ideas regarding that ... . Same for Video Streaming tooo... I need to stream a video from an android mobile to another android mobile device ... any idea abt RTSP !! or HTTP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Not supporting SMALL screen format
Thanks very much Piren ! This is working and it seems that layout-small appears only with Android 1.6 (API Level 4). Le jeudi 22 novembre 2012 12:31:06 UTC+1, Piren a écrit : use layout-ldpi instead On Thursday, November 22, 2012 1:09:15 PM UTC+2, Fazerty wrote: Hello, My application does not support SMALL screen format and I don't know why. I have 4 directories for the layouts (layout-small, layout-normal, layout-large and layout-xlarge) with the same number of XML files in each directory. With other older applications it works well but not with this new one. I work for this application with android:minSdkVersion=3 so I can't use supports-screens in my Manifest file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accessing APK expansion file with URI (with Google Zip Expansion Library) causes a crash if expansion file version is different from apk versioncode
Hi I am trying to upload images (i have packed all images in to zip)as apk main expansion files and added apk expansion library and downloaded library to my application but when am trying to run app am getting exception like the following... Note: I have copied properly the PBKey from my publisher account. 11-21 18:24:48.084: E/AndroidRuntime(21220): FATAL EXCEPTION: main 11-21 18:24:48.084: E/AndroidRuntime(21220): java.lang.IllegalArgumentException: salt.length == 0 11-21 18:24:48.084: E/AndroidRuntime(21220): at javax.crypto.spec.PBEKeySpec.init(PBEKeySpec.java:79) 11-21 18:24:48.084: E/AndroidRuntime(21220): at com.google.android.vending.licensing.AESObfuscator.init(AESObfuscator.java:59) 11-21 18:24:48.084: E/AndroidRuntime(21220): at com.google.android.vending.expansion.downloader.impl.DownloaderService$LVLRunnable.run(DownloaderService.java:754) Can anyone help me out ,if provide sample that would be great. On Sat, Apr 7, 2012 at 10:50 PM, sk sk.h...@gmail.com wrote: My apk version code is version 3. with it I am using main expansion file which was loaded with apk version code 1 (file name is similar to main.1.ex.etc.eg.obb). The expansion file downloads fine on a device. The expansion file has media file, so I using APEZProvider from the Google Zip Expansion Library to play it with VideoView. Calling VideoView.start() causes an Nullpointer exception. What I have found so far: In APEZProvider.initIfNecessary() returns Main expansion file version as 3 instead of 1. Thus trying to open ZipResourceFile (mAPKExtensionFile) returns null. APEZProvider.openAssetFile() causes null pinter exception as mAPKExtensionFile is null. Relevant code from APEZProvider class in Google Zip Expansion Library: private boolean initIfNecessary() { if ( !mInit ) { Context ctx = getContext(); PackageManager pm = ctx.getPackageManager(); ProviderInfo pi = pm.resolveContentProvider(getAuthority(), PackageManager.GET_META_DATA); PackageInfo packInfo; try { packInfo = pm.getPackageInfo(ctx.getPackageName(), 0); } catch (NameNotFoundException e1) { e1.printStackTrace(); return false; } int patchFileVersion; int mainFileVersion; int appVersionCode = packInfo.versionCode; if ( null != pi.metaData ) { mainFileVersion = pi.metaData.getInt(mainVersion, appVersionCode); patchFileVersion = pi.metaData.getInt(patchVersion, appVersionCode); } else { mainFileVersion = patchFileVersion = appVersionCode; } try { mAPKExtensionFile = APKExpansionSupport.getAPKExpansionZipFile(ctx, mainFileVersion, patchFileVersion); return true; } catch (IOException e) { e.printStackTrace(); } } return false; } @Override public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { initIfNecessary(); String path = uri.getEncodedPath(); if ( path.startsWith(/) ) { path = path.substring(1); } return mAPKExtensionFile.getAssetFileDescriptor(path); } I am not sure about this line of code in the above: ProviderInfo pi = pm.resolveContentProvider(getAuthority(), PackageManager.GET_META_DATA); Is this correct? From Android reference for PackageManager.resolveContentProvider(). public abstract ProviderInfo resolveContentProvider (String name, int flags) Since: API Level 1 Find a single content provider by its base path name. Parameters name The name of the provider to find. flags Additional option flags. Currently should always be 0. Can someone confirm if i am doing something wrong or is it a bug. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sobel camera
Yes, First Sorry for my bad English, I am designing one android app in that app we are puting sobel camera for fun so that way i am asking some guide to build sobel camera .. On Sat, Nov 17, 2012 at 4:41 AM, TreKing treking...@gmail.com wrote: On Fri, Nov 16, 2012 at 7:52 AM, srikanth srikanthandroidgro...@gmail.com wrote: please guide me how to make sobel camera in android application 1 - Few people have the time to guide you through anything. Ask a specific question and you'll probably get a specific answer. 2 - Try explaining what a sobel camera is if you want help with 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 -- Thanks Regards, Srikanth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sobel camera
Yes, First Sorry for my bad English, I am designing one android app in that app we are puting sobel camera for fun so that way i am asking some guide to build sobel camera .. On Thu, Nov 22, 2012 at 6:53 PM, android groups srikanthandroidgro...@gmail.com wrote: Yes, First Sorry for my bad English, I am designing one android app in that app we are puting sobel camera for fun so that way i am asking some guide to build sobel camera .. On Sat, Nov 17, 2012 at 4:41 AM, TreKing treking...@gmail.com wrote: On Fri, Nov 16, 2012 at 7:52 AM, srikanth srikanthandroidgro...@gmail.com wrote: please guide me how to make sobel camera in android application 1 - Few people have the time to guide you through anything. Ask a specific question and you'll probably get a specific answer. 2 - Try explaining what a sobel camera is if you want help with 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 -- Thanks Regards, Srikanth -- Thanks Regards, Srikanth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create soap request in ksoap2 for a wcf webservice method with complex types?
@Piren That forum is inactive. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Pdf reader
Yes, I am designing one android application in that application using one pdf file reading so please guide me how to read pdf file from raw folder.. and i know how to read pdf file from server On Wed, Nov 14, 2012 at 1:18 PM, TreKing treking...@gmail.com wrote: On Tue, Nov 13, 2012 at 11:50 PM, srikanth srikanthandroidgro...@gmail.com wrote: I need code for android pdf reader static and dynamically. So write some. What's the problem? If you want a better answer, you have to ask a better question. Read this and try again: http://www.catb.org/esr/faqs/smart-questions.html And try explaining what is static and dynamically, for example. - 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 -- Thanks Regards, Srikanth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Automate update every x secs get data from myUrl
No your not, i just ingore/mute him. On 22 November 2012 08:46, Piren gpi...@gmail.com wrote: Am i the only one noticing that he keeps getting people to do pretty much all the programming he needs, step by step? On Thursday, November 22, 2012 1:40:42 AM UTC+2, TreKing wrote: On Wed, Nov 21, 2012 at 12:40 PM, Antonis Kanaris ant...@in.gr wrote: i want to convert to automatic update.How i make this? In a word: AlarmManager. --**--** --**--- 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 -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] image view on Customized dialog box
I have one problem with customized dialog box in android,i have created the customized dialog using javainterface in android ,in my class CustomizeDialog i have one thread do some process in back ground after that i have set one imgae to this customized dialog i set the image in OnPostExecute but i got the following error android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. i know we can't access the main ui from another thread but we access the main ui in OnPostExecuted in my case that also not working , in my another class(main.class) i will call this class by CustomizeDialog customizeDialog = new CustomizeDialog(mContext); customizeDialog.show(); this my code which create dialog box public class CustomizeDialog extends Dialog implements OnClickListener { Button okButton; ImageView img = null; ImageView img2=null; ImageView img3 = null; ImageView img4= null; Bitmap bm; public CustomizeDialog(Context context) { super(context); img2 = (ImageView) findViewById(R.id.imageView1); img3 = (ImageView) findViewById(R.id.imageView3); img4 = (ImageView) findViewById(R.id.imageView4); WindowManager.LayoutParams params = getWindow().getAttributes(); params.x = 30; params.height = 500; params.width = 500; params.y = 50; this.getWindow().setAttributes(params); setContentView(R.layout.test); img = (ImageView) findViewById(R.id.imageView2); img.setBackgroundResource(R.drawable.sample); AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground(); //Start the animation (looped playback by default). frameAnimation.start(); new LongOperation1(context).execute(); } else { Toast toast = Toast.makeText(getContext(), Erorr, Toast.LENGTH_SHORT); toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); toast.show(); } } private class LongOperation1 extends AsyncTaskString, String, String { @Override protected String doInBackground(String... params) { //here i do some process return Executed; } @Override protected void onPostExecute(String result) { // here i do some process to get bm img2.setImageBitmap(bm); } @Override protected void onPreExecute() { } @Override protected void onProgressUpdate(String... values) { } } do any have idea about how to do 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] About facebook
Dear Pavithra, Check this and develop your face book app https://developers.facebook.com/docs/mobile/android/build/ On Wed, Oct 31, 2012 at 12:22 PM, pavithra pavithra.vij...@gmail.comwrote: Hi! I am developing one application and in need to use the facebook chat with my application. Can you help me with the source code and clear description. Regards, Pavithra.N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards, Srikanth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: image view on Customized dialog box
not sure why you're using the .Show() method, its best to use onCreateDialog for custom dialogs as well. but either way, ASyncTasks dont run onPostExecute on the UI thread automatically, the run it on the thread the ASyncTask was created in. To avoid your issue either add a Handler to run the onPostExecute code on or try and using runOnUiThread On Thursday, November 22, 2012 3:37:44 PM UTC+2, Mr cool wrote: I have one problem with customized dialog box in android,i have created the customized dialog using javainterface in android ,in my class CustomizeDialog i have one thread do some process in back ground after that i have set one imgae to this customized dialog i set the image in OnPostExecute but i got the following error android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. i know we can't access the main ui from another thread but we access the main ui in OnPostExecuted in my case that also not working , in my another class(main.class) i will call this class by CustomizeDialog customizeDialog = new CustomizeDialog(mContext); customizeDialog.show(); this my code which create dialog box public class CustomizeDialog extends Dialog implements OnClickListener { Button okButton; ImageView img = null; ImageView img2=null; ImageView img3 = null; ImageView img4= null; Bitmap bm; public CustomizeDialog(Context context) { super(context); img2 = (ImageView) findViewById(R.id.imageView1); img3 = (ImageView) findViewById(R.id.imageView3); img4 = (ImageView) findViewById(R.id.imageView4); WindowManager.LayoutParams params = getWindow().getAttributes(); params.x = 30; params.height = 500; params.width = 500; params.y = 50; this.getWindow().setAttributes(params); setContentView(R.layout.test); img = (ImageView) findViewById(R.id.imageView2); img.setBackgroundResource(R.drawable.sample); AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground(); //Start the animation (looped playback by default). frameAnimation.start(); new LongOperation1(context).execute(); } else { Toast toast = Toast.makeText(getContext(), Erorr, Toast.LENGTH_SHORT); toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); toast.show(); } } private class LongOperation1 extends AsyncTaskString, String, String { @Override protected String doInBackground(String... params) { //here i do some process return Executed; } @Override protected void onPostExecute(String result) { // here i do some process to get bm img2.setImageBitmap(bm); } @Override protected void onPreExecute() { } @Override protected void onProgressUpdate(String... values) { } } do any have idea about how to do 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
[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?
And this one isn't aimed at any possible library out there... usually if people dont answer a question, bumping it wouldn't help much. On Thursday, November 22, 2012 3:23:37 PM UTC+2, Raneez wrote: @Piren That forum is inactive. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OOM with heap enough
- yeah, swearing does help calm the psyche, does not help so much with the code crashing :-P - it is unlikely i need so much memory Fact is you have an OOM exception... you're using too much memory:) And if its happening on your first activity, it isnt a memory leak... - i dont know if largeHeap is useful, but according to documentation, it should at least lower the amount of crashes some of your users experience. - if i were your user, i'd take hdpi images rather than crashes. if it crashes, i dont use the app :) On Thursday, November 22, 2012 2:51:04 PM UTC+2, Fran wrote: On 11/22/2012 12:48 PM, Piren wrote: Well, getting mad of this issue or trying to blame something else, wouldn't really benefit you, would it? Actually yes: it would not solve my crashes, but helps me to unload a bit of stress, you know... ;-D Also swearing is not incompatible with coding, I am doing both things at same time ;-) Absurd as much as it is, thats most likely what you got. If you're so pressed on using so much memory, you can also resolve this issue by allocating it in a different manner. This issue is raised because the heap grew to 48MB prior to allocating the offending bitmap, not because that bitmap is too big... if you can change the way you do things so you'll never get to needing 48MB at the same time, It is unlikely I need so much memory. In all the test I did, I never used more than 30Mb. I do not know what determines the step that makes the heap grow, but may be I just need 32Mb and the system decides to allocate 48Mb by itself. Anyway we are not sure about this being the source of the problem. As told, I cannot discard even that heap information passed by Bugsense is inaccurate. Of course the crash is there, but the reason may be different and have a more rational solution. you'd avoid the issue. This is how i resolved it, just changed the order of things i do and used stricter control on my memory allocation so i'll never inflate the heap so much. If you have 15mb free at the moment of the crash, it might indicate that you never needed to increase the heap to that size anyway. Imagine you're playing memory sokoban :) you can also: - use largeHeap=true and cross your fingers This is useful at all? I mean, I do no think such devices will have a heap bigger than those 48Mb (that as seen SHOULD be more than enough for my app...) - use added code to limit the requested bitmap quality dependent on heap size. lower quality is better than crashing. Well, this is more or less what I am doing right now, but it will make users experience worse than they should be: they buy a xdpi screen, and they will see only hdpi images... :-| And the worst is that I am not sure that this will solve the OOM problems, and some users complain about updating to often -probably those that are not affected by crashes-, but it is better than spending $6000 in different phones for testing that may -or not- fail for real debugging. - allocate the needed space on native memory manually. Although i haven't done the same, i understand that when using native your limits go up - Come to terms with random crashes but enjoy your HD backgrounds while they show:) :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: image view on Customized dialog box
but how can i use runOnUiThread method because i extend my customized dialog class from dialog class not from 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
Re: [android-developers] OOM with heap enough
targetSdk has an impact on the way things work, but in your example i dont think it matters. On Thursday, November 22, 2012 2:53:59 PM UTC+2, Fran wrote: One thing about this... Do you think this may be a problem of target SDK or so? This is what I am using right now: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=15 / And most of this problems (99% at least) seems to be ocurring in 4.0.3+ Android devices... Does this says something to any Android guru here? O_o Best regards, On 11/21/2012 03:58 PM, Mark Murphy wrote: First, you do not know necessarily what BitmapFactory.Options are being specified on the decodeResource() call, as that does not appear to be called from your code, and it could be they have strange values in there. Beyond that, last I knew, Dalvik does not have a compacting garbage collector. I haven't seen a recent statement as to whether or not that limitation has been fixed. If it is still the case, though, your issue may not so much that you are out of memory, but that there is no single contiguous block that meets your needs. On Wed, Nov 21, 2012 at 9:48 AM, Francisco Marzoa fmma...@gmail.comjavascript: wrote: Look at this: 0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB) 1at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 2at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:595) 3at com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:77) 4at com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:133) 5at net.iberdroid.ruletaafortunadacore.MainMenuScreen.loadImages(MainMenuScreen.java:255) 6at net.iberdroid.ruletaafortunadacore.MainMenuScreen.enable(MainMenuScreen.java:241) The image that I am trying to load at MainMenuScreen.java:255 The weird thing is that there is free heap enough for loading that image: it is a 800x480 png indexed but with transparency, so I load it using four bytes per pixel (ARGB) and it should use about 1M5 of memory as a raw bitmap... but it crashes anyway trying to load an image ten times smaller the available heap space (48-35 = 15Mb). These things makes me crazy... Bests, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: xml parsing error
I haven't checked your code very throughly (its no fun trying to read xml parsing code) but that error seems to indicate you're trying to cast a value into an xml element. or as the Inception people said: you went too deep :) you should do the same type checking you do in the level above it. first verify what the child is, then do something with it. On Thursday, November 22, 2012 2:15:36 PM UTC+2, Ananda Krishna wrote: Hi I am trying to parse an xml file.But I am getting an exception. error Message :org.apache.harmony.xml.dom.TextImpl cannot be cast to org.w3c.dom.Element *Code is as follows:* *Xml File:* ?xml version=1.0 encoding=UTF-8? Quiz QuizQuestion QuestionWhich are the right words to greet someone?/Question option1Hello/option1 option2Hai/option2 option3Bye/option3 /QuizQuestion QuizQuestion type=Discription QuestionWhen do you use the word who?/Question Answer/Answer /QuizQuestion QuizQuestion QuestionWhat is AM used for?/Question option1Morning/option1 option2Evening/option2 /QuizQuestion /Quiz *Java code for Parsing:* DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(new URL(filepath).openStream()); doc.getDocumentElement().normalize(); NodeList questionList = doc.getElementsByTagName(QuizQuestion); int len = questionList.getLength(); if (len 0) { for (int i = 0; i len; i++) { Node node = questionList.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node; int childrenCount = element.getChildNodes().getLength(); Node child = element.getFirstChild(); int j = 0; while (child != null j childrenCount) { * Element element1 = (Element) child;* if (element1.getTagName().startsWith(term)) { String term = String.valueOf(element1.getTextContent()); System.out.println(term); } } } } } In the highlighted line exception is been raised. Kindly tell me where am i going wrong. Regards, AnandaKrishna 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] Re: image view on Customized dialog box
It's a view, it can get the activity. On Thursday, November 22, 2012 4:24:33 PM UTC+2, Mr cool wrote: but how can i use runOnUiThread method because i extend my customized dialog class from dialog class not from 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] problem with timer and AsyncTask error....
Hello.I try this code for get data from mywebsite every x secsbut i have a syntax error on token.Why? public class ReadWebpageAsyncTask extends Activity { private TextView textView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView = (TextView) findViewById(R.id.textView01); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); InputStream content = execute.getEntity().getContent(); BufferedReader buffer = new BufferedReader(new InputStreamReader(content)); String s = ; while ((s = buffer.readLine()) != null) { response += s; } } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { textView.setText(result); } } public void readWebpage(View view) { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.mysite.net/LEDstate.txt; }); } //} Timer timer = new Timer(); TimerTask task = new TimerTask(){ @Override public void run() { new DownloadWebPageTask().execute(new String[] { http://www.mysite.net/LEDstate.txt; }); } }; long whenToStart = 20*1000L; // 20 seconds long howOften = 20*1000L; // 20 seconds timer.scheduleAtFixedRate( task , whenToStart , howOften );//Syntax error on token (,delete this token } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Play adding permission requests after upload. - Lose reach, existing users lose upgrade path
After not having touched it since July, I've updated one of my apps in Google Play the other day and noticed that it was filtered out from a bunch of devices I use for testing. There are no new features that would require any new permissions, and the target-sdk remains at 11. (min-sdk level 3) Turns out that Google Play in its infinite wisdom added permission requests that aren't required for the app, at least not for the devices I've tested it on over the years. BTW, this becomes obvious only after expanding the version in the APK panel of the old publisher console, because only the old console interface posts a warning about the new permission set. With that, not only do I lose a substantial amount of reach. Even worse perhaps, many users that already have the app installed based on the original permissions, now fall off the upgrade path, I suppose. I'm not going to rewrite the whole thing and go through the exercise trying to figure out which Android SDK calls trigger user permissions adds by Google Play. What a mess. Anybody know a solution? BTW, using the old interface, reactivating the July version results in the following error: New APK version is lower than previous APK version. (Well duh) and I can't delete any new upload, old interface or new. So I can't even switch back to any of the old versions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BitmapFactory.decodeFileDescriptor
FWIW, this part was pilot error. Copying the files works fine. For bitmaps from File Descriptors, I have no answer. -blake -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OOM with heap enough
On 11/22/2012 03:19 PM, Piren wrote: - yeah, swearing does help calm the psyche, does not help so much with the code crashing :-P I admit you are right. But I need to calm my psyche before starting coding!... ;-) - it is unlikely i need so much memory Fact is you have an OOM exception... you're using too much memory:) That's a logical fallacy, indeed. I am not getting an OOM exception due my app is using too much memory, I am getting an OOM exception due the underlying VM does not manage the heap properly. Of course I can try to use less memory and may be it solves the problem, but this not the REAL solution, it is just a WORKAROUND, because the REAL solution should address the REAL problem. And if its happening on your first activity, it isnt a memory leak... - i dont know if largeHeap is useful, but according to documentation, it should at least lower the amount of crashes some of your users experience. Oh, I forgot this... but I will take a look on that docs, thanks. - if i were your user, i'd take hdpi images rather than crashes. if it crashes, i dont use the app :) Yeah, you are right on this, but the problem is not so simple: for avoiding crashes for SOME users, I must release a product with lower quality images for ALL of them. In fact, if they were only an 1% of the users using older devices, I would simply ignore this bug at all. Anyway I have already released a new version that uses hdpi images also for xdpi devices. This has reduced heap use by a half or on such devices, so I expect to have no more OOM crashes, or just 1 on 1000 in an unknown device with a custom buggy ROM... 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
Re: [android-developers] Sobel camera
On Thu, Nov 22, 2012 at 06:53:20PM +0530, android groups wrote: Yes, First Sorry for my bad English, I am designing one android app in that app we are puting sobel camera for fun so that way i am asking some guide to build sobel camera .. I gave you the information you need. If you want the best answers (i.e., unless you want to code Sobel, etc., on your own), you want the OpenCV library. For that, you're in the WRONG GROUP, as I already told you. You want android-ope...@googlegroups.com. Of course, you can go ahead and ask here, and learn how to write Sobel completely in Java, if you really want to attempt that. Good luck with that Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | There it was, right in the title bar: spooky1...@gmail.com | Microsoft Operations POS. Running Mac OS X Lion | ICBM / Hurricane: | Never before has a TLA been so appropriately 30.44406N 86.59909W| mis-parsed. (alt.sysadmin.recovery) Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Play adding permission requests after upload. - Lose reach, existing users lose upgrade path
On Thu, Nov 22, 2012 at 12:01 PM, JP joachim.pfeif...@gmail.com wrote: There are no new features that would require any new permissions, and the target-sdk remains at 11. (min-sdk level 3) Turns out that Google Play in its infinite wisdom added permission requests that aren't required for the app, at least not for the devices I've tested it on over the years. Which permission(s)? There are some new ones that are apparently being added implicitly. For example, I had the WRITE_EXTERNAL_STORAGE permission, which now automatically gives you the new READ_EXTERNAL_STORAGE permission. It's probably something like that. BTW, this becomes obvious only after expanding the version in the APK panel of the old publisher console, because only the old console interface posts a warning about the new permission set. Awesome. I just noticed that now. Apparently my last update had the same effect and I didn't realize for using the new console. Thanks for the heads up. BTW, using the old interface, reactivating the July version results in the following error: New APK version is lower than previous APK version. (Well duh) and I can't delete any new upload, old interface or new. So I can't even switch back to any of the old versions. I remember when this was discovered a while back, after they added the feature. One would think the point of this would be to quickly revert back to a known good version in the event something went wrong with your newest build. But nope! Instead it's really nothing more than a history trail, the purpose of which apparently only the people at Google know. Have you tried the Google Play support? - 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] problem with timer and AsyncTask error....
On Thu, Nov 22, 2012 at 11:17 AM, Antonis Kanaris ant...@in.gr wrote: i have a syntax error on token.Why? More info, like the specific line you're getting the error on, is needed. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ClassNotFoundException of signed apks
Sorry for my English :-/ I'm having problem with signed apks. Debugging builds are ok and signed apks work sometimes, but usually signed apk cannot even start with ClassNotFoundException. I googled and got some similar cases which is associated with r17 version but could not find what I have done wrong. I have libs folder instead of lib and so on. It was doing ok with sdks of higher versions than r17 and the very same project. I'm suspicious of sdk r21 because I'm having this problem quite recently. Anyone can help me? 11-23 08:29:31.049: E/AndroidRuntime(3774): java.lang.RuntimeException: Unable to instantiate application deleted: java.lang.ClassNotFoundException: deleted in loader dalvik.system.PathClassLoader[/data/app/deleted.apk] 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.LoadedApk.makeApplication(LoadedApk.java:466) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3412) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread.access$2200(ActivityThread.java:123) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:977) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.os.Handler.dispatchMessage(Handler.java:99) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.os.Looper.loop(Looper.java:130) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread.main(ActivityThread.java:3835) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.reflect.Method.invokeNative(Native Method) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.reflect.Method.invoke(Method.java:507) 11-23 08:29:31.049: E/AndroidRuntime(3774): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847) 11-23 08:29:31.049: E/AndroidRuntime(3774): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) 11-23 08:29:31.049: E/AndroidRuntime(3774): at dalvik.system.NativeStart.main(Native Method) 11-23 08:29:31.049: E/AndroidRuntime(3774): Caused by: java.lang.ClassNotFoundException: deleted in loader dalvik.system.PathClassLoader[/data/app/deleted.apk] 11-23 08:29:31.049: E/AndroidRuntime(3774): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.ClassLoader.loadClass(ClassLoader.java:551) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.Instrumentation.newApplication(Instrumentation.java:942) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.LoadedApk.makeApplication(LoadedApk.java:461) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ClassNotFoundException of signed apks
I forgot something. I have this problems in linux mint 13 and Fedora 17. Fedora 17's javac is openjdk 1.7. On Friday, November 23, 2012 9:13:02 AM UTC+9, routis wrote: Sorry for my English :-/ I'm having problem with signed apks. Debugging builds are ok and signed apks work sometimes, but usually signed apk cannot even start with ClassNotFoundException. I googled and got some similar cases which is associated with r17 version but could not find what I have done wrong. I have libs folder instead of lib and so on. It was doing ok with sdks of higher versions than r17 and the very same project. I'm suspicious of sdk r21 because I'm having this problem quite recently. Anyone can help me? 11-23 08:29:31.049: E/AndroidRuntime(3774): java.lang.RuntimeException: Unable to instantiate application deleted: java.lang.ClassNotFoundException: deleted in loader dalvik.system.PathClassLoader[/data/app/deleted.apk] 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.LoadedApk.makeApplication(LoadedApk.java:466) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3412) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread.access$2200(ActivityThread.java:123) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:977) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.os.Handler.dispatchMessage(Handler.java:99) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.os.Looper.loop(Looper.java:130) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.ActivityThread.main(ActivityThread.java:3835) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.reflect.Method.invokeNative(Native Method) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.reflect.Method.invoke(Method.java:507) 11-23 08:29:31.049: E/AndroidRuntime(3774): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847) 11-23 08:29:31.049: E/AndroidRuntime(3774): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) 11-23 08:29:31.049: E/AndroidRuntime(3774): at dalvik.system.NativeStart.main(Native Method) 11-23 08:29:31.049: E/AndroidRuntime(3774): Caused by: java.lang.ClassNotFoundException: deleted in loader dalvik.system.PathClassLoader[/data/app/deleted.apk] 11-23 08:29:31.049: E/AndroidRuntime(3774): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.ClassLoader.loadClass(ClassLoader.java:551) 11-23 08:29:31.049: E/AndroidRuntime(3774): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.Instrumentation.newApplication(Instrumentation.java:942) 11-23 08:29:31.049: E/AndroidRuntime(3774): at android.app.LoadedApk.makeApplication(LoadedApk.java:461) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why is ActivityGroup deprecated?
Hi, I know that ActivityGroup is deprecated, and that Fragments should be used instead. My question is out of curiosity: why was it deprecated? Thanks! Franzi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why is ActivityGroup deprecated?
On Thu, Nov 22, 2012 at 7:21 PM, Franzi Roesner franzi.roes...@gmail.comwrote: I know that ActivityGroup is deprecated, and that Fragments should be used instead. My question is out of curiosity: why was it deprecated? For exactly the reason you stated: Fragments should be used instead. The deprecated status is a clear indication to developers not to use it and use the newer, better thing instead. - 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] onClick() is fired twice.
It doesn't work. In my case, the activity has a ViewPager which contains four of Fragments. Some fragments have a button to show another activity. These buttons caused 'double-clicking' issues. (If click a button twice very fast, then two of the same activity are shown) I avoided this issue by overriding startActivityFromFragment in Activity. With these workaround, all of child fragments don't need to care about double-clicking issues any more. @Override public void startActivityFromFragment(...) { if (subActivityStarted) return; super.startActivityFromFragment(...); subActivityStarted = true; } @Override public void onResume() { subActivityStarted = false; super.onResume(); } However, if you want to show an instance of DialogFragment on click, 'double-clicking issue' may happen. (shows two of the same DialogFragment) You can avoid this issue by checking whether FragmentManager has a fragment already. void showSomeDialog() { if (getFragmentManager().findFragmentByTag(dialog) != null) return; MyDialogFragment.newInstance().show(getFragmentManager(), dialog); } I don't like these two work around (overriding startActivityFromFragment and checking FragmentManager) but this is the best solution I found yet. On Friday, November 9, 2012 9:58:01 AM UTC+9, TreKing wrote: On Tue, Oct 30, 2012 at 4:57 AM, jhan jooyu...@gmail.com javascript:wrote: Is there a standard way of starting activity by clicking a button without worrying the double-clicking issues? Disable the button after the first click and re-enable it after the activity returns? - 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] Applying android:actionBarStyle to an activity without using android:theme attribute?
Hello, I'm trying to apply 'android:actionBarStyle' to an activity in AndroidManifest.xml without using 'android:theme' attribute. By googling, I found lots of references using 'android:theme' attribute like following: // AndroidManifest.xml activity .. android:theme=@style/MyTheme .. // style.xml style name=MyTheme parent=... item name=android:actionBarStyle@style/MyActionBarStyle/item /style style name=MyActionBarStyle parent=... item name=android:displayOptions .. /item /style However, if I want to override only actionBarStyle without applying the theme attribute it doesn't work. // AndroidManifest.xml activity .. android:actionBarStyle=@style/MyActionBarStyle .. // style.xml style name=MyActionBarStyle parent=... item name=android:displayOptions .. /item /style Is there any way to apply android:actionBarStyle to an activity without setting a theme? (I need this to hide ActionBar when it is launched. But for some reason I can't set a theme to an 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: Applying android:actionBarStyle to an activity without using android:theme attribute?
The reason why my trial doesn't work is that activity doesn't understand android:actionBarStyle attribute. reference: http://developer.android.com/guide/topics/manifest/activity-element.html On Friday, November 23, 2012 11:29:39 AM UTC+9, jhan wrote: Hello, I'm trying to apply 'android:actionBarStyle' to an activity in AndroidManifest.xml without using 'android:theme' attribute. By googling, I found lots of references using 'android:theme' attribute like following: // AndroidManifest.xml activity .. android:theme=@style/MyTheme .. // style.xml style name=MyTheme parent=... item name=android:actionBarStyle@style/MyActionBarStyle/item /style style name=MyActionBarStyle parent=... item name=android:displayOptions .. /item /style However, if I want to override only actionBarStyle without applying the theme attribute it doesn't work. // AndroidManifest.xml activity .. android:actionBarStyle=@style/MyActionBarStyle .. // style.xml style name=MyActionBarStyle parent=... item name=android:displayOptions .. /item /style Is there any way to apply android:actionBarStyle to an activity without setting a theme? (I need this to hide ActionBar when it is launched. But for some reason I can't set a theme to an 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
Re: [android-developers] OOM with heap enough
Hi, I started having to deal with new OOM errors one of my camera apps again recently. First started when I got a new Samsung Galaxy S3 LTE with Android 4.1.0, OOM occurring after reading in an 8MP photo ok then attempting to allocate additional Bitmap to create a modified copy of the original photo. At this time I started using largeHeap the OOM issue went away. Now it is happening again after the Samsung Galaxy S3 LTE was updated to Android 4.1.1, but this time OOM is happening when (just) reading in the 8MP photo still using largeHeap. Next workaround will be to try to read the 8MP image in chunks. Immediate workaround is to go back to using 5MP photos. This is really annoying as my older Samsung Galaxy S2 with Android 4.04 works fine doing the same with 8MP photos. And it's worked ok since Android 2.2. Other devices such as HTC One XL are ok as well... Hohum, one step forward one step back I guess. Regards On Friday, November 23, 2012 6:33:40 AM UTC+11, Fran wrote: On 11/22/2012 03:19 PM, Piren wrote: - yeah, swearing does help calm the psyche, does not help so much with the code crashing :-P I admit you are right. But I need to calm my psyche before starting coding!... ;-) - it is unlikely i need so much memory Fact is you have an OOM exception... you're using too much memory:) That's a logical fallacy, indeed. I am not getting an OOM exception due my app is using too much memory, I am getting an OOM exception due the underlying VM does not manage the heap properly. Of course I can try to use less memory and may be it solves the problem, but this not the REAL solution, it is just a WORKAROUND, because the REAL solution should address the REAL problem. And if its happening on your first activity, it isnt a memory leak... - i dont know if largeHeap is useful, but according to documentation, it should at least lower the amount of crashes some of your users experience. Oh, I forgot this... but I will take a look on that docs, thanks. - if i were your user, i'd take hdpi images rather than crashes. if it crashes, i dont use the app :) Yeah, you are right on this, but the problem is not so simple: for avoiding crashes for SOME users, I must release a product with lower quality images for ALL of them. In fact, if they were only an 1% of the users using older devices, I would simply ignore this bug at all. Anyway I have already released a new version that uses hdpi images also for xdpi devices. This has reduced heap use by a half or on such devices, so I expect to have no more OOM crashes, or just 1 on 1000 in an unknown device with a custom buggy ROM... Best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?
And you are not supposed to comment here, if you dont have any idea about this. Directing to a inactive forum is not a good attitude, give a hand if you know something else go away! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why is ActivityGroup deprecated?
Right, my question is, why are Fragments better / why were they created? On Thursday, November 22, 2012 5:03:33 PM UTC-8, TreKing wrote: On Thu, Nov 22, 2012 at 7:21 PM, Franzi Roesner franzi@gmail.comjavascript: wrote: I know that ActivityGroup is deprecated, and that Fragments should be used instead. My question is out of curiosity: why was it deprecated? For exactly the reason you stated: Fragments should be used instead. The deprecated status is a clear indication to developers not to use it and use the newer, better thing instead. - 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] Auto refresh data from webserver to activity
Hello.I want to make an application for get web data every x secs i try this code but no work...where is the mistake?Thanks. public class ReadWebpageAsyncTask extends Activity { private TextView textView; private final Handler handler = new Handler(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_read_webpage_async_task); textView = (TextView) findViewById(R.id.textView1); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; . } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { textView.setText(result); } } public void readWebpage(View view) { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.mysite.net/LEDstate.txt; }); } private final Runnable refreshRunnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.mysite.net/LEDstate.txt; }); //new RefreshTask(param1, param2).execute(); long TIME_DELAY= 3000; handler.postDelayed(refreshRunnable, TIME_DELAY); } }; In main activity i have one text and two buttons the first button on click call readwebpage and work and the second button call refreshRunable and no 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] Re: Auto refresh data from webserver to activity
Antonis Kanaris wrote: In main activity i have one text and two buttons the first button on click call readwebpage and work and the second button call refreshRunable and no work... how do you call refreshRunable? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Auto refresh data from webserver to activity
Τη Παρασκευή, 23 Νοεμβρίου 2012 8:38:22 π.μ. UTC+2, ο χρήστης Antonis Kanaris έγραψε: Hello.I want to make an application for get web data every x secs i try this code but no work...where is the mistake?Thanks. public class ReadWebpageAsyncTask extends Activity { private TextView textView; private final Handler handler = new Handler(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_read_webpage_async_task); textView = (TextView) findViewById(R.id.textView1); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; . } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { textView.setText(result); } } public void readWebpage(View view) { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.mysite.net/LEDstate.txt; }); } private final Runnable refreshRunnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { http://www.mysite.net/LEDstate.txt; }); //new RefreshTask(param1, param2).execute(); long TIME_DELAY= 3000; handler.postDelayed(refreshRunnable, TIME_DELAY); } }; In main activity i have one text and two buttons the first button on click call readwebpage and work and the second button call refreshRunable and no work... i call refreshRunable with onClick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Auto refresh data from webserver to activity
Antonis Kanaris wrote: i call refreshRunable with onClick ok, again, how do you call refreshRunable? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: it is possible to use more than 1 AlarmManager with different repeat values in a single application
Siva Kumar wrote: My doubt is ,In android* it is possible to use more than 1 AlarmManager with different repeat values in a single application* did you try it? its just couple of lines of the code... pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Auto refresh data from webserver to activity
I use Android:onClickvoid for call from layout main activity...is ok?or wrong method? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en