Re: [android-developers] Re: multi resolution image button selectors broken?
Delete the XML from drawable-ldpi/ and make sure you have the pngs in both drawable/ and drawable-ldpi/ (at different sizes of course). On Tue, Jan 5, 2010 at 11:57 PM, OldSkoolMark m...@sublimeslime.com wrote: Roman, Thanks for the quick response! Unfortunately, I'm still having issues. It wasn't clear to me whether you were instructing me to just delete the selector xml file in drawable-ldpi, or copy the one from drawable into drawable-ldpi without change. I've tried it both ways to no avail. I don't have a layout-small set of resources yet. I shouldn't need layout-small for this one issue should I? On Jan 5, 11:27 pm, Romain Guy romain...@android.com wrote: It is not the right way. Do not use @drawable-ldpi/, just keep the same XML file, it will work. The system will find startstopin and startstopout in the right drawable-XXX/ directory. On Tue, Jan 5, 2010 at 11:24 PM, OldSkoolMark m...@sublimeslime.com wrote: In my res/drawable directory I have: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/startstopin / item android:drawable=@drawable/startstopout / /selector Works like a champ. I'm now trying to make my app work on small screen devices, so I created a res/drawable-ldpi directory, and populated it with the two pngs plus the corresponding selector file: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable-ldpi/startstopin / item android:drawable=@drawable-ldpi/startstopout / /selector No love. I get: ... res\drawable-ldpi\startstopbuttonimageselector.xml:3: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable-ldpi/startstopin'). ... res\drawable-ldpi\startstopbuttonimageselector.xml:5: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable-ldpi/startstopout'). Isn't this the right way to specify ldpi specific button images? If default device xmls and pngs go in drawable, then ldpi xmls and pngs go in drawable-ldpi, right? Could these errors be the result of an inappropriate supports-screens element in my manifest file? Neither the api-demos in the samples (for any SDK version), or the newer samples including multires, have any multi res image button examples. In fact, I couldn't find any example where there was an xml file in a res/drawable-... Anyone see what I'm doing wrong and/or have a working example of how to specify resolution specific drawables for image buttons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] new offer
new offer for the day openthis page more info : http://123maza.com/786/mishtar/ more info : http://123maza.com/786/mishtar/ more info : http://123maza.com/786/mishtar/ more info : http://123maza.com/786/mishtar/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Resource not found errors for images referred to in a button image selector xml file
Instead of android:drawable=@drawable-ldpi/startstopin try android:drawable=@drawable/startstopin Just like you do for your normal HVGA screen. On small screens it will automatically look in the -ldpi directory and pick these images ahead of those in the default dir On Jan 5, 11:18 pm, OldSkoolMark m...@sublimeslime.com wrote: My 1.6 app works fine in both portrait and landscape modes on the default HVGA device. I'm now trying to support it on QVGA devices and am encountering build-time errors I don't understand. In my res/drawable-ldpi directory I have: startstopin.png startstopout.png and a selector file startstopbuttonimageselector.xml which contains: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable-ldpi/startstopin / !-- pressed -- item android:drawable=@drawable-ldpi/startstopout / !-- default -- /selector I've 'fixed project properties', and done a 'clean' build, to no avail. The error I get is: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable-ldpi/startstopin'). ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable-ldpi/startstopout'). I've tried adding a layout file in res/layout-small that explicitly references this selector file, but this triggers a similar build error and fails to address the original problem: ERROR Error: No resource found that matches the given name (at 'src' with value '@drawable-ldpi/startstopbuttonimageselector'). Any insight into this problem would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] can write youtube api on android?
hi all, I use the youtube api and other libs such as gdata_client... http://code.google.com/intl/zh-TW/apis/youtube/getting_started.html but I always get the verify error: == E/dalvikvm( 749): Could not find class 'com.google.gdata.data.media.MediaStream Source', referenced from method com.google.gdata.client.media.MediaService.getMe diaResource W/dalvikvm( 749): VFY: unable to resolve new-instance 538 (Lcom/ google/gdata/da ta/media/MediaStreamSource;) in Lcom/google/gdata/client/media/ MediaService; W/dalvikvm( 749): VFY: rejecting opcode 0x22 at 0x0013 W/dalvikvm( 749): VFY: rejected Lcom/google/gdata/client/media/ MediaService;.g etMediaResource (Ljava/net/URL;Lcom/google/gdata/util/ContentType;Lcom/ google/gd ata/data/DateTime;)Lcom/google/gdata/data/media/MediaSource; W/dalvikvm( 749): Verifier rejected class Lcom/google/gdata/client/ media/MediaS ervice; D/AndroidRuntime( 749): Shutting down VM W/dalvikvm( 749): threadid=3: thread exiting with uncaught exception (group=0x4 000fe70) E/AndroidRuntime( 749): Uncaught handler: thread main exiting due to uncaught e xception E/AndroidRuntime( 749): java.lang.VerifyError: com.google.gdata.client.media.Me diaService . == so I want to confirm whether Android can integrate gdata and youtube api(lib)? or is there have mailing list for gdata that I can serach for problems? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to clear activity stack in task
Hi all, I have three activities. Activity A start activity B by the method startActivityForResult, and Activity B start activity C by the method startActivity. Then, after starting activity C, activity B kill himself by finish(). Now the task stack stored two activities: A and C. My question is: how can I finish activity A when I finish activity C. or how can I clear the whole stack of the task. Thanks a lot! James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: passing paramters using ksoap2 to .net web service, always passes nulls (empty) values
Hi, In the server side (the web services), change the namespace, by default the name space is http://tempuri.org, change that to any conveient name you like. That will solve the problem unless there is something else wrong. Good luck :) On Mon, Jan 4, 2010 at 2:11 AM, tharindu tharindu.r...@gmail.com wrote: Hi, Im having the same problem as yours. You have mentioned using http://tempuri.org is wrong. Can you please explain what u did to solve the problem. What is the correct namespace then?? Please help me on this. Im stucked on this. :( Thanx in advance.. On Dec 20 2009, 10:59 pm, fadi wedyan wedi...@gmail.com wrote: Hi, Thanks for your answer, I had solved the problem last night. I agree with that these steps are important. But there is also two other steps on the server side that I was not aware of, I think you had them set correctly (becouse your code is working). Beside following the steps you mentioned, we also need to change the namespace of the web services, usinghttp://tempuri.orgis wrong. Also, there is an option in the IE explorer that needs to be checked. The option allow access data source accros domains needs to be checked. Also, in order to pass data other than strings (float, integers,...), we need to implement a serliziation class for these data types and compile it with the library. Thanks for your kind reply, this was really a big headache! On Sat, Dec 19, 2009 at 7:07 AM, android09 pranav.jaja...@gmail.com wrote: Hi wedyan, I had also the same problem but finally i got the solution. I have some steps for you, just go through it. 1) Remove PropertyInfo from your code and add this like: SoapObject request = new SoapObject(NAMESPACE,METHOD_NAME_TEMP); // if you have 2 params in .net than add property this way. Suppose, sum of two integers instead of PropertyInfo request.addProperty(num, str1); request.addProperty(b, str2); 2) Use HttpTransportSE instead of AndroidHttpTransport. and add androidHttpTransport.setXmlVersionTag(?xml version=\1.0\ encoding= \UTF-8\?); 3) To Display Result: SoapPrimitive resultString = (SoapPrimitive)soapEnvelope.getResponse (); System.out.println(resultString); txtView.setText(Result is : +resultString); Now, go through the above steps and also compare your application. I hope you will find the solution. Let's hope. Best Luck -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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] two opengles package
Why both javax.microedition.khronos.opengles and android.opengl are provided in android eventhough functionalities are same. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Context menu for a Grid item
Hi all, I'm writing an application in which i need a menu for a Grid item i.e., whenever i click a Grid item in the Gridview a list should be displayed in the same layout beside the Grid item similar to Context menu. I know that we can set the Context menu for entire listview or Gridview but how can we set the context menu for a single item in the Gridview?? Any help will be highly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Broadcast Receiver works sometimes/sometimes not.
Hello, I wish to listen to android.intent.action.BOOT_COMPLETED. However i am not getting the broadcast intent, if i specify com.test.BootBroadcastReceiver in the manifest. When i change this value to simply BootBroadcastReceiver, then i am getting the broadcast intent. receiver android:name=BootBroadcastReceiver android:enabled=true intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter /receiver My package in the manifest file is: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.test and the BootBroadcastReceiver resides in this package. What is the reason behind this ? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)
I tried it but it didn't change a thing. The images are pretty small (just a few kilobyte as they are application icons) anyway. But I figured something new out: If I continue to load them, I finally get an OutOfMemoryException as mentioned in some sources and threads I already read, including yours. Thing is, I have no clue how to find my mistake(s) in the code and fix them. So here's some of my code: First the function to get the images: private Bitmap getIconFormServer(String url) { Bitmap bm = null; HttpClient httpClient = new DefaultHttpClient(); HttpGet getMethod = new HttpGet(url); HttpResponse response; getMethod.setHeader(Accept, application/json); getMethod.setHeader(Content-type, application/json); getMethod.setHeader(Accept-Encoding, gzip); try { response = httpClient.execute(getMethod); InputStream inputStream = response.getEntity().getContent(); Header contentEncoding = response.getFirstHeader(Content- Encoding); if (contentEncoding != null contentEncoding.getValue ().equalsIgnoreCase(gzip)) { inputStream = new GZIPInputStream(inputStream); } bm = new BitmapDrawable(inputStream).getBitmap(); } catch (Exception e) { return null; } finally { getMethod.abort(); inputStream.close(); } return bm; } This one is called inside the service that's supposed to update the widget. So I'm getting my pictures and update the widget out of the service with context = getApplicationContext(); thisWidget = new ComponentName(context, XWidget.class); widgetManager = AppWidgetManager.getInstance(context); widgetView = new RemoteViews(context.getPackageName(), R.layout.widget); and then later: widgetView.setImageViewBitmap(id.getButton(), bitmap); widgetManager.updateAppWidget(thisWidget, widgetView); Cheers Moritz On Jan 5, 6:43 pm, Albert albert8...@googlemail.com wrote: The problem is probably that the images are too big and android cant handle it. Try this solution I used when I had the same problem: http://groups.google.com/group/android-developers/browse_thread/threa... Hope it helps, Alberto On Jan 5, 4:17 pm, Moritzz moritz...@googlemail.com wrote: I now tried to get some more information but nothing I found helped so far. I also tried to encircle it some more but it won't work. Does nobody have an idea or sthg? Cheers Moritz On Jan 4, 9:51 pm, Moritzz moritz...@googlemail.com wrote: I forgot to add that after this message, the widget is not updated anymore. It stays the way it looks like in the moment the message appears and even when I force another update, it's not changed anymore. If I remove and add it again, it works for a while, until the message appears again. On Jan 4, 9:41 pm, Moritzz moritz...@googlemail.com wrote: Hello, I currently have a lot of problems with this error. I programmed a widget and a service that runs in the background. This service is updating the widget on different occasions (position changed, screen turned on, timer based...) with images and text it's loading from a server. After a couple of updates I always get an error from the JavaBinder, at least that's what DDMS says. Reproducing the problem with my app is quite easy but I just can't figure out what's going on there. Can someone please give me some help or hints with that? That'd be really cool! Cheers Moritz- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Designing a UI for Board Game
you can use DroidDraw tool for gui Design . Check it out @ www.droiddraw.org . thanks;-) On Jan 5, 11:11 am, prakhy prakhyathhe...@gmail.com wrote: Hi, I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to find the coordinates for image and need to move the required images to specifies coordinates. Is there any andorid api for this? Prakhy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Designing a UI for Board Game
You might find the Heirachy viewer some use as well, you can find in in the SDK package in the toold folder. Also in his book Android wireless application development Shane Condor describes how to draw a chessboard as well as working with bitmaps and other bits and pieces you might find useful, its by no means comprehensive but I imagine could be a good starting point. On Wed, Jan 6, 2010 at 10:54 AM, piyushn piyushn...@gmail.com wrote: you can use DroidDraw tool for gui Design . Check it out @ www.droiddraw.org . thanks;-) On Jan 5, 11:11 am, prakhy prakhyathhe...@gmail.com wrote: Hi, I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to find the coordinates for image and need to move the required images to specifies coordinates. Is there any andorid api for this? Prakhy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Broadcast Receiver works sometimes/sometimes not.
I'm pretty sure it's because in the manifest, if the package is com.test then when you declare Activities/Services/Receivers the package name is already assumed... so if you do: receiver android:name=.BootBroadcastReceiver android:enabled=true Then this is actually com.test.BootBroadcastReceiver, and if you do: receiver android:name=com.test.BootBroadcastReceiver android:enabled=true Then I'm pretty sure the path is actually com.test.com.test.BootBroadcastReceiver which obviously doesn't exist in your project But yes, please correct me if I'm wrong, but I'm pretty sure this is why... - jwei http://thinkandroid.wordpress.com On Jan 6, 2:12 am, Android Development indodr...@gmail.com wrote: Hello, I wish to listen to android.intent.action.BOOT_COMPLETED. However i am not getting the broadcast intent, if i specify com.test.BootBroadcastReceiver in the manifest. When i change this value to simply BootBroadcastReceiver, then i am getting the broadcast intent. receiver android:name=BootBroadcastReceiver android:enabled=true intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter /receiver My package in the manifest file is: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.test and the BootBroadcastReceiver resides in this package. What is the reason behind this ? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to clear activity stack in task
Are you looking for a practical answer? Or was this more of a theoretical thought experiment type of question? If you want the practical answer, then I guess the simple thing to do would be to kill Activity A in it's onActivityResult method (which should be overridden since you are calling startActivityForResult on Activity B). In other words, before B kills itself, do something like setResult(RESULT_OK) and then kill B. Once this happens, it will return to Activity A's onActivityResult method, and in there you can have something like if(resultCode == RESULT_OK) { finish(); } And so at this point, Activity C is what your user should see, and Activity A/B have been killed off, and so once you kill Activity C your Activity stack is cleared and you're good to go. Hope this is what you were looking for. - jwei http://thinkandroid.wordpress.com On Jan 6, 1:12 am, Zhihong GUO gzhh...@gmail.com wrote: Hi all, I have three activities. Activity A start activity B by the method startActivityForResult, and Activity B start activity C by the method startActivity. Then, after starting activity C, activity B kill himself by finish(). Now the task stack stored two activities: A and C. My question is: how can I finish activity A when I finish activity C. or how can I clear the whole stack of the task. Thanks a lot! James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android Books?...
Pro Android Games, published by Apress, came out recently and might make a good addition for that list: http://apress.com/book/view/1430226471 I haven't tried it, however. Well, except for going through the free source code, anyway. Ah, they hadn't shipped yet as of the last time I hunted for new titles. I'll add it to the list today. Thanks for pointing it out! -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MapView Overlay problem
On Jan 6, 4:57 am, Peter SSK sasikumar.it1...@gmail.com wrote: see this link http://www.androidpeople.com/category/google-map/ is that the right link? There i only see, how to display a Map. Thats not the problem. But perhaps i dont find the right part?! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 clear acti vity stack in task
thanks for the quick answer. but is there any other solutions? i mean do not change the code of activity a and b, just clear the task stack. 在 2010-1-6 下午7:55,jwei512 jwei...@gmail.com编写: Are you looking for a practical answer? Or was this more of a theoretical thought experiment type of question? If you want the practical answer, then I guess the simple thing to do would be to kill Activity A in it's onActivityResult method (which should be overridden since you are calling startActivityForResult on Activity B). In other words, before B kills itself, do something like setResult(RESULT_OK) and then kill B. Once this happens, it will return to Activity A's onActivityResult method, and in there you can have something like if(resultCode == RESULT_OK) { finish(); } And so at this point, Activity C is what your user should see, and Activity A/B have been killed off, and so once you kill Activity C your Activity stack is cleared and you're good to go. Hope this is what you were looking for. - jwei http://thinkandroid.wordpress.com On Jan 6, 1:12 am, Zhihong GUO gzhh...@gmail.com wrote: Hi all, I have three activities. Ac... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: create app that comes with a widget and the program
Does anyone knows how to achieve this??? Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Protection Method to avoid an .apk being copied overall
Hi Developers, First i explain you my situation: I have just released my new App (Voice Alerts - more info: http://49ers.es/corbi/voice-alerts), there is a demo and a full (paid) version. For promoting/publicity purposes i would like to send a copy of the full version to a couple of people, so they get the fully functional app without paying for it. My fear is that if i send them the .apk without any protection means implemented, it could happen that they can eventually upload the file to a server and made it available for free overall. How would you guys solve this situation? I have 2 ideas runing on my head right know: - is it possible to return the money to a user that buys the app through the market, using google checkout? This solution should be just great because i will not have to add extra lines on the code or prepare an especial .apk for it. Just return the money but the app stays in the phone and would get the updates and everything. - is it possible to check programatically wich google acount (or other mail account) is being user on a phone, so the app would be associated with just one email account and will only work with that phone? any other alternatives... Greetings , Alex. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Protection Method to avoid an .apk being copied overall
Make a separate version that disables itself after a period of time. On Jan 6, 7:57 am, Alex Corbi a.co...@gmail.com wrote: Hi Developers, First i explain you my situation: I have just released my new App (Voice Alerts - more info:http://49ers.es/corbi/voice-alerts), there is a demo and a full (paid) version. For promoting/publicity purposes i would like to send a copy of the full version to a couple of people, so they get the fully functional app without paying for it. My fear is that if i send them the .apk without any protection means implemented, it could happen that they can eventually upload the file to a server and made it available for free overall. How would you guys solve this situation? I have 2 ideas runing on my head right know: - is it possible to return the money to a user that buys the app through the market, using google checkout? This solution should be just great because i will not have to add extra lines on the code or prepare an especial .apk for it. Just return the money but the app stays in the phone and would get the updates and everything. - is it possible to check programatically wich google acount (or other mail account) is being user on a phone, so the app would be associated with just one email account and will only work with that phone? any other alternatives... Greetings , Alex. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Protection Method to avoid an .apk being copied overall
The general response to this question I have seen is as follows : - spend time improving your app, not the copy protection - it will get hacked anyway - storing gmail or ime numbers is against data protection act Personally I feel everyone is entitled to try and protect their apps and would take the dev's not the pirate's side, but beware of stepping into a lion's den as I saw someone do before. I would add that any attempt you make is likely to fail as google checkout is the only viable mechanism of selling apps in volume and it doesn't give any mechanisms to associate a purchased non-refunded payment with an apk. Until Google does this, I think most other attempts will be a waste of time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Motionevent problems - multitouch events give wrong coordinates
Colin, Wow! I am working on using multitouch for a game and remain equally confused by similar behavior and will be anxious to see how this is resolved. So far the answer has eluded me too, sigh... Thanks for positing such a clear explain. Maybe a Google person will get involved. On Jan 6, 12:41 am, Mirmathrax mirmath...@gmail.com wrote: OK, So I have been racking my brain to try to figure out what is going wrong here. I wanted to experiment with multi-touch, so I decided to add the controls for LunarLander to the touchscreen. Instead of adding buttons, I defined regions on the screen that when touched, would act like the buttons on the keyboard (for example, the gas fires as long as you press the screen in the area defined for the gas button, and stops firing when you release.) To do this, I added the onTouchEvent override to the LunarView class as follows: /** * Standard override to get Touch Screen Events. */ @Override public boolean onTouchEvent(MotionEvent event) { return thread.doTouchScreen(event); } Then, I added a function to the LunarThread called doTouchScreen. I also added variables to define the boundaries of the touch areas on the screen for the buttons The boundaries are defined as follows and placed in the variable declaration location of the LunarThread: //* Y boundary of left and right turn button **/ private float TurnButton_Y; //* X Boundary of the fire Button (left side of button) private float fireButton_X; //* X boundary of left turn button **/ private float leftTurnButton_X = 100; //* X boundary of right turn button **/ private float rightTurnButton_X = 200; The doTouchScreen code is the following: boolean doTouchScreen(MotionEvent event) { boolean handled = true; synchronized (mSurfaceHolder) { int numevents = event.getPointerCount(); int action = event.getAction(); int ptrId = event.getPointerId(0); if(numevents 1) ptrId = (action MotionEvent.ACTION_POINTER_ID_MASK) MotionEvent.ACTION_POINTER_ID_SHIFT; action = action MotionEvent.ACTION_MASK; int ptrIndex = event.findPointerIndex(ptrId); float X = event.getX(ptrIndex); float Y = event.getY(ptrIndex); if(action == event.ACTION_DOWN || action == event.ACTION_MOVE) { if(Y TurnButton_Y) { if(X leftTurnButton_X) { mRotating = -1; turnButtonID = ptrId; } else if (X rightTurnButton_X) { mRotating = 1; turnButtonID = ptrId; } else if (X fireButton_X) { setFiring(true); gasButtonID = ptrId; } handled = true; } handled = true; } else if(action == event.ACTION_UP || action == event.ACTION_CANCEL) { if(gasButtonID == ptrId) { setFiring(false); gasButtonID = -1; handled = true; } if(turnButtonID == ptrId) { mRotating = 0; turnButtonID = -1; handled = true; } handled = true; } } return handled; } During testing I found consistent problems when performing the following pattern: 1) Touch finger 1 down on gas button area 2) Touch finger 2 down on turn button area 3) Lift finger 1 off of gas button 4) Touch finger 1 back on to gas button The problem is that after performing this pattern, the gas button fails to work. Lifting the gas button and then placing it down a third time causes the button to work again. This is consistent every time I try this. Debugging yielded the following strange results: 1) Finger 1 goes down at location X, Y. X = X Y = Y action =
[android-developers] Clicking a link in Browser initates a new Intent
I am working on an app that I want to be able to open links from eg. an email app. I have an intent-filter that looks like this: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=http / data android:scheme=https / /intent-filter Now, if I click a link in an email, I get the dialog where I can choose whether to open the link with my app or with Browser. This is all well and good, but I also get this dialog whenever I click a link in the Browser app, or even enter a URL in the address field! I've noticed that the Steel browser doesn't work like this; clicking a link in Steel simply opens the link. Is there a way to circumvent this behavior in the Browser app, yet still present my app as an option when clicking links in email clients and the like? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in Accessing 2.9 MB Database from Apps
Il giorno mar, 05/01/2010 alle 09.28 -0800, Vish ha scritto: I am Having 2.9 MB Database given by client. I know that Android don't Support data more than 1.1 MB So I Spilt DB into 3 Parts of 1.1 MB . I had the same problem. I provided a text file with the insert queries (one per line) in res/raw, and, on first startup, populated a database. This way you bypass the 1.1 MB limit (my DB is circa 3 MB, like yours). I had to split the selects in two chunks (about 1000 each), because decompressing them from the apk exceeded the allowed size. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Clicking a link in Browser initates a new Intent
I am working on an app that I want to be able to open links from eg. an email app. I have an intent-filter that looks like this: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=http / data android:scheme=https / /intent-filter That intent filter is evil. Now, if I click a link in an email, I get the dialog where I can choose whether to open the link with my app or with Browser. This is all well and good, but I also get this dialog whenever I click a link in the Browser app, or even enter a URL in the address field! That's what you specified in the intent filter -- you claim to support every HTTP(S) URL everywhere regardless of MIME type, host, or anything else. That's why the intent filter is evil. Is there a way to circumvent this behavior in the Browser app, yet still present my app as an option when clicking links in email clients and the like? Intent filters are agnostic to the sender of the Intent, so anything in the system could send an Intent that your intent filter will match. Then, if the sender uses Intent.createChooser(), like the Browser app does, you will appear as a viable option. Furthermore, you really need to more tightly constrain that intent filter, so it is only going to be used for MIME types you actually will support, or only from certain sites, or something. Look at the data element in the SDK documentation: http://developer.android.com/intl/fr/guide/topics/manifest/data-element.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: EditText hint shows extra spaces when inputType=textpassword
No. Any one from the Google Team have a response? On Jan 5, 4:33 am, csyperski csyper...@gmail.com wrote: I am seeing the same behavior, did you find any fix for this? On Dec 23 2009, 7:22 am, GDroid baron...@gmail.com wrote: Hi, Just wondered, am I the only one to encounter this strange behavior. When placing an EditText inside my activity and setting its inputType=textPassword as follow: EditText android:text= android:id=@+id/EditText01 android:hint=This is a hint android:inputType=textPassword android:layout_width=wrap_content android:layout_height=wrap_content/EditText The hint is displayed with bigger/double spaces between the words. If I remove the inputType attribute it all goes back to normal. I couldn't find a known issue regarding this behavior. BTW- If you wonder why this is important (it isn't that much) try putting two EditText widgets one below the other and set the inputType of one of them to textpassword it doesn't look good. Any comments? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: multi resolution image button selectors broken?
Romain, Thanks so much for your help. I also had anyDensity=false in my manifest. Once I fixed that, my ldpi drawables are employed appropriately. Mark On Jan 6, 12:16 am, Romain Guy romain...@android.com wrote: Delete the XML from drawable-ldpi/ and make sure you have the pngs in both drawable/ and drawable-ldpi/ (at different sizes of course). On Tue, Jan 5, 2010 at 11:57 PM, OldSkoolMark m...@sublimeslime.com wrote: Roman, Thanks for the quick response! Unfortunately, I'm still having issues. It wasn't clear to me whether you were instructing me to just delete the selector xml file in drawable-ldpi, or copy the one from drawable into drawable-ldpi without change. I've tried it both ways to no avail. I don't have a layout-small set of resources yet. I shouldn't need layout-small for this one issue should I? On Jan 5, 11:27 pm, Romain Guy romain...@android.com wrote: It is not the right way. Do not use @drawable-ldpi/, just keep the same XML file, it will work. The system will find startstopin and startstopout in the right drawable-XXX/ directory. On Tue, Jan 5, 2010 at 11:24 PM, OldSkoolMark m...@sublimeslime.com wrote: In my res/drawable directory I have: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/startstopin / item android:drawable=@drawable/startstopout / /selector Works like a champ. I'm now trying to make my app work on small screen devices, so I created a res/drawable-ldpi directory, and populated it with the two pngs plus the corresponding selector file: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable-ldpi/startstopin / item android:drawable=@drawable-ldpi/startstopout / /selector No love. I get: ... res\drawable-ldpi\startstopbuttonimageselector.xml:3: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable-ldpi/startstopin'). ... res\drawable-ldpi\startstopbuttonimageselector.xml:5: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable-ldpi/startstopout'). Isn't this the right way to specify ldpi specific button images? If default device xmls and pngs go in drawable, then ldpi xmls and pngs go in drawable-ldpi, right? Could these errors be the result of an inappropriate supports-screens element in my manifest file? Neither the api-demos in the samples (for any SDK version), or the newer samples including multires, have any multi res image button examples. In fact, I couldn't find any example where there was an xml file in a res/drawable-... Anyone see what I'm doing wrong and/or have a working example of how to specify resolution specific drawables for image buttons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to enable this permission in my app com.google.android.providers.gmail.permission.READ_GMAIL
Hi all, I have written a player application which plays video files (links). I tested the app on G1. It is working fine, but when I tested the app on Droid, I got the following log messages. actually I tried to launch my app when i had a video file as a attachment. My app launched but not played. here is the log I got: 1-06 15:13:40.530: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false from pid=1512, uid=10049 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openAssetFile (ContentProvider.java:193) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:228) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.553: DEBUG/MediaPlayer(1512): Couldn't open file on client side, trying server side 01-06 15:13:40.553: DEBUG/ActivityManager(1165): checkComponentPermission() adjusting {pid,uid} to {1059,1013} 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): Writing exception to parcel 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false from pid=1165, uid=1000 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openFile (ContentProvider.java:186) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:209) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.561: DEBUG/(1059): openContentUri(content://gmail-ls/ messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false) caught exception -1 01-06 15:13:40.561: ERROR/MediaPlayerService(1059): Couldn't open fd for content://gmail-ls/messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false 01-06 15:13:40.569: ERROR/MediaPlayer(1512): Unable to to create media player 01-06 15:13:40.678: WARN/VideoView(1512): Unable to open content: content://gmail-ls/messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false 01-06 15:13:40.678: WARN/VideoView(1512): java.io.IOException: setDataSource failed.: status=0x8000 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(Native Method) 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:699) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.openVideo(VideoView.java:212) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.access$2000(VideoView.java:49) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView$6.surfaceCreated(VideoView.java:459) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.updateWindow(SurfaceView.java:454) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.View.draw (View.java:6539) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.draw(SurfaceView.java:273) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.View.draw (View.java:6539) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.View.draw (View.java:6539) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.FrameLayout.draw(FrameLayout.java:352) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 01-06
[android-developers] Re: Clicking a link in Browser initates a new Intent
On Jan 6, 2:55 pm, Mark Murphy mmur...@commonsware.com wrote: Now, if I click a link in an email, I get the dialog where I can choose whether to open the link with my app or with Browser. This is all well and good, but I also get this dialog whenever I click a link in the Browser app, or even enter a URL in the address field! That's what you specified in the intent filter -- you claim to support every HTTP(S) URL everywhere regardless of MIME type, host, or anything else. That is correct, yes. That's why the intent filter is evil. Evil is a bit harsh, isn't it? :) After all, it's pretty much the same filter used by Browser (with the omission of about: URIs) Is there a way to circumvent this behavior in the Browser app, yet still present my app as an option when clicking links in email clients and the like? Intent filters are agnostic to the sender of the Intent, so anything in the system could send an Intent that your intent filter will match. Then, if the sender uses Intent.createChooser(), like the Browser app does, you will appear as a viable option. I guess this part is my actual problem. I can see why the email app would invoke ResolverActivity, but why the Browser would do this for every clicked link and every entered URL is unclear to me. As mentioned, Steel doesn't do this. Setting Steel to the default URL handler will therefore, in effect, render the Browser app unusable since any click or address entry in Browser will be sent to Steel. It seems like the answer to my question is no then? Furthermore, you really need to more tightly constrain that intent filter, so it is only going to be used for MIME types you actually will support, or only from certain sites, or something. Look at the data element in the SDK documentation: Well, the MIME type of a HTTP(S) resource will be unknown until the network resource is opened, won't it? For example when I click a link in an email. Anyway, since text/html and application/xhtml+xml are among the MIME types I'm interested in, I guess it wouldn't help me if I did know the type beforehand; Browser would still pop up a chooser that contained my app along with Browser itself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to enable this permission in my app com.google.android.providers.gmail.permission.READ_GMAIL
You appear to be doing something via Googles Gdata with there gmail, how are you accessing the video files? When using gdata you are required to authenthicate, are you doing this? On Wed, Jan 6, 2010 at 2:39 PM, manoj manojkumar.m...@gmail.com wrote: Hi all, I have written a player application which plays video files (links). I tested the app on G1. It is working fine, but when I tested the app on Droid, I got the following log messages. actually I tried to launch my app when i had a video file as a attachment. My app launched but not played. here is the log I got: 1-06 15:13:40.530: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false from pid=1512, uid=10049 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openAssetFile (ContentProvider.java:193) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:228) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.553: DEBUG/MediaPlayer(1512): Couldn't open file on client side, trying server side 01-06 15:13:40.553: DEBUG/ActivityManager(1165): checkComponentPermission() adjusting {pid,uid} to {1059,1013} 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): Writing exception to parcel 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false from pid=1165, uid=1000 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openFile (ContentProvider.java:186) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:209) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.561: DEBUG/(1059): openContentUri(content://gmail-ls/ messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false) caught exception -1 01-06 15:13:40.561: ERROR/MediaPlayerService(1059): Couldn't open fd for content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false 01-06 http://40gmail.com/275/attachments/0.0/BEST/false%0A01-0615:13:40.569: ERROR/MediaPlayer(1512): Unable to to create media player 01-06 15:13:40.678: WARN/VideoView(1512): Unable to open content: content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false 01-06 http://40gmail.com/275/attachments/0.0/BEST/false%0A01-0615:13:40.678: WARN/VideoView(1512): java.io.IOException: setDataSource failed.: status=0x8000 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(Native Method) 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:699) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.openVideo(VideoView.java:212) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.access$2000(VideoView.java:49) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView$6.surfaceCreated(VideoView.java:459) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.updateWindow(SurfaceView.java:454) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.View.draw (View.java:6539) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.draw(SurfaceView.java:273) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.View.draw (View.java:6539) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 01-06 15:13:40.678:
[android-developers] StartActivityForResult
I am using ListActivities to drill down into a hierarchy; artist, album and song. One activity per hierarchy. So, from the main activity I start the ArtistActivity with the StartActivityForResult method and when the an artist is selected I call the protected void onListItemClick(ListView l, View v, int position, long id) { setResult(Activity.RESULT_OK, results); finish(); } to return the results. Than the main activity receives results from the ArtistsActivity in the onActivityResult method and starts the next hierarchy’s activity, AlbumActivity, in the same way as the previous activity, on so on. It works fine except that when calling finish method the hierarchy activity is removed from the stack. So, it makes it impossible to backtrack to the previous hierarchy since it’s not there anymore. For example, I can’t backtrack from AlbumActivity to the ArtistsActivity since it has been removed from the stack. My question is; is there any way to leave the hierarchy activities on the stack? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Clicking a link in Browser initates a new Intent
Evil is a bit harsh, isn't it? :) After all, it's pretty much the same filter used by Browser (with the omission of about: URIs) Evil is perhaps harsh, but...are you implementing a Web browser? For example when I click a link in an email. Anyway, since text/html and application/xhtml+xml are among the MIME types I'm interested in, I guess it wouldn't help me if I did know the type beforehand; Browser would still pop up a chooser that contained my app along with Browser itself. Yup. This is not significantly different than on other platforms. For example, I have no idea how you'd tell Windows that you are the default handler for http:// URLs...but only if they are launched from Outlook and not from other apps. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListActivity not updating on Database update.
Hi, i tried with requery the Cursor. But my list is empty after the requery, seems i do something wrong there. So is there any Info/Rules available how to requery have to be used ? Thx, Jens On 5 Jan., 17:13, Beth emez...@gmail.com wrote: Hmmm - not sure you want to call this method more than once. setListAdapter(shows); Set the adapter once, when you create the list. Requery the list's cursor as needed. If you use a cursor adapter you may never have to requery manually. Good luck! On Jan 5, 7:42 am, mac-systems jens.h...@gmx.de wrote: I just figured out that if i write the setActive Method like this i see a update, but i have duplicated Code: private void setActive(final boolean _state) { final ISelectedDAO dao = DAOFactory.getSelectedDAO(this); dao.setActiv(getSelectedItemId(), _state); c = dao.fetchAll(); startManagingCursor(c); final String[] from = new String[] { ISelectedDAO.COLUMN_ACTIV, ISelectedDAO.COLUMN_NAME, ISelectedDAO.COLUMN_ID, ISelectedDAO.COLUMN_STARTING, ISelectedDAO.COLUMN_TILL }; final int[] to = new int[] { R.id.custom_spotoverview_activ, R.id.custom_spotoverview_name, R.id.custom_spotoverview_detail, R.id.custom_spotoverview_wind_from, R.id.custom_spotoverview_wind_to }; shows = new SimpleCursorAdapter(this, R.layout.custom_listview_spotoverview, c, from, to); shows.setViewBinder(new SpotOverviewViewBinder()); setListAdapter(shows); Log.d(LOG_TAG, Updating View); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] scaling game images according display sizes
Hi I developed a game with the g1 in my mind. Now I want to support large screen sizes but I don't want to add in the apk different images for different screen sizes because now the apk is 3mb and when installed trought market it became 6mb (due to protection on). If i have to double the images to support new screens, the apk would be too heavy (about 13mb, i think) so I'm wondering to know if scaling images at runtime by myself (without compatibility mode) maybe the best way for supporting larger screens. Someone tried this solution? Compatbility mode does a great work in scaling images but it slows down drastically the framerate (i think because the scale operation is made every time an image is used/moved and not only once on the load of the image itself). Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] StartActivityForResult
I am using ListActivities to drill down into a hierarchy; artist, album and song. One activity per hierarchy. So, from the main activity I start the ArtistActivity with the StartActivityForResult method and when the an artist is selected I call the protected void onListItemClick(ListView l, View v, int position, long id) { setResult(Activity.RESULT_OK, results); finish(); } to return the results. Than the main activity receives results from the ArtistsActivity in the onActivityResult method and starts the next hierarchys activity, AlbumActivity, in the same way as the previous activity, on so on. It works fine except that when calling finish method the hierarchy activity is removed from the stack. So, it makes it impossible to backtrack to the previous hierarchy since its not there anymore. For example, I cant backtrack from AlbumActivity to the ArtistsActivity since it has been removed from the stack. My question is; is there any way to leave the hierarchy activities on the stack? Instead of calling setResult()/finish() in a list item click, startActivityForResult() the next level down in the hierarchy. Only the leaf should call setResult()/finish() in a list item click. All branches of the hierarchy should call setResult()/finish() in their onActivityResult(), forwarding the leaf's result Intent along. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Clicking a link in Browser initates a new Intent
This is not significantly different than on other platforms. For example, I have no idea how you'd tell Windows that you are the default handler for http:// URLs...but only if they are launched from Outlook and not from other apps. Well, to use the Windows analogy, I'd be happy to open links from Thunderbird and MSN Messenger as well, but probably not Chrome or IE. The Android browser is different in the respect that if you tell Windows that you are the default handler for HTTP URLs, IE will still be able to both open a web page and follow its links without launching the newly set default browser. In fact, having a browser ask you which app you want to open a web page in every time you click a link seems a bit redundant. Oh well, seems like I'll need to figure out some not- too-nasty hack. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 enable this permission in my app com.google.android.providers.gmail.permission.READ_GMAIL
hi can you please suggest me how to authenticate? it would be helpful. Thanks, Manoj. On Jan 6, 7:47 pm, Donal Rafferty draf...@gmail.com wrote: You appear to be doing something via Googles Gdata with there gmail, how are you accessing the video files? When using gdata you are required to authenthicate, are you doing this? On Wed, Jan 6, 2010 at 2:39 PM, manoj manojkumar.m...@gmail.com wrote: Hi all, I have written a player application which plays video files (links). I tested the app on G1. It is working fine, but when I tested the app on Droid, I got the following log messages. actually I tried to launch my app when i had a video file as a attachment. My app launched but not played. here is the log I got: 1-06 15:13:40.530: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false from pid=1512, uid=10049 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openAssetFile (ContentProvider.java:193) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:228) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.553: DEBUG/MediaPlayer(1512): Couldn't open file on client side, trying server side 01-06 15:13:40.553: DEBUG/ActivityManager(1165): checkComponentPermission() adjusting {pid,uid} to {1059,1013} 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): Writing exception to parcel 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false from pid=1165, uid=1000 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openFile (ContentProvider.java:186) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:209) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.561: DEBUG/(1059): openContentUri(content://gmail-ls/ messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false) caught exception -1 01-06 15:13:40.561: ERROR/MediaPlayerService(1059): Couldn't open fd for content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false 01-06 http://40gmail.com/275/attachments/0.0/BEST/false%0A01-0615:13:40.569: ERROR/MediaPlayer(1512): Unable to to create media player 01-06 15:13:40.678: WARN/VideoView(1512): Unable to open content: content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false 01-06 http://40gmail.com/275/attachments/0.0/BEST/false%0A01-0615:13:40.678: WARN/VideoView(1512): java.io.IOException: setDataSource failed.: status=0x8000 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(Native Method) 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:699) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.openVideo(VideoView.java:212) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.access$2000(VideoView.java:49) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView$6.surfaceCreated(VideoView.java:459) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.updateWindow(SurfaceView.java:454) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.View.draw (View.java:6539) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.SurfaceView.draw(SurfaceView.java:273) 01-06 15:13:40.678: WARN/VideoView(1512): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 01-06 15:13:40.678: WARN/VideoView(1512): at
[android-developers] Using an image in a listview
Hi all, for my app i'm using a listview to display rss news articles. All goes well, and the implementation is almost done. But when using my app, i'm not really satisfied with the smoothness and user experience of it. The main problem is that when i scroll through the listview, which contains an image for each row in the listview, the scrolling isn;t smooth, it executes the getview override every time. I already threw out the holder startegy, as it slowed the scrolling... any thoughts? Thanx, Patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to enable this permission in my app com.google.android.providers.gmail.permission.READ_GMAIL
I done a bit on authenticating using Google web toolkit about a year ago, it might be slightly different when doing it through Android but I'd imagine it would be fairly similiar you can read about how I authenticated with GWT on my website here - http://www.riad-donal-rafferty.com/portfolioGWT.html Be aware that this isn't the most secure way to authenticate. Also the code isn't formated on the website, you may want to copy and paste it into an editor Hope it helps On Wed, Jan 6, 2010 at 3:17 PM, manoj manojkumar.m...@gmail.com wrote: hi can you please suggest me how to authenticate? it would be helpful. Thanks, Manoj. On Jan 6, 7:47 pm, Donal Rafferty draf...@gmail.com wrote: You appear to be doing something via Googles Gdata with there gmail, how are you accessing the video files? When using gdata you are required to authenthicate, are you doing this? On Wed, Jan 6, 2010 at 2:39 PM, manoj manojkumar.m...@gmail.com wrote: Hi all, I have written a player application which plays video files (links). I tested the app on G1. It is working fine, but when I tested the app on Droid, I got the following log messages. actually I tried to launch my app when i had a video file as a attachment. My app launched but not played. here is the log I got: 1-06 15:13:40.530: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false from pid=1512, uid=10049 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openAssetFile (ContentProvider.java:193) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:228) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.530: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.553: DEBUG/MediaPlayer(1512): Couldn't open file on client side, trying server side 01-06 15:13:40.553: DEBUG/ActivityManager(1165): checkComponentPermission() adjusting {pid,uid} to {1059,1013} 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): Writing exception to parcel 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): java.lang.SecurityException: Permission Denial: reading com.google.android.providers.gmail.MailProvider uri content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false from pid=1165, uid=1000 requires com.google.android.providers.gmail.permission.READ_GMAIL 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:240) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProvider$Transport.openFile (ContentProvider.java:186) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:209) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at android.os.Binder.execTransact(Binder.java:287) 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): at dalvik.system.NativeStart.run(Native Method) 01-06 15:13:40.561: DEBUG/(1059): openContentUri(content://gmail-ls/ messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false) caught exception -1 01-06 15:13:40.561: ERROR/MediaPlayerService(1059): Couldn't open fd for content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false 01-06 http://40gmail.com/275/attachments/0.0/BEST/false%0A01-0615:13:40.569: ERROR/MediaPlayer(1512): Unable to to create media player 01-06 15:13:40.678: WARN/VideoView(1512): Unable to open content: content://gmail-ls/messages/pieter.born% 40gmail.com/275/attachments/0.0/BEST/false 01-06 http://40gmail.com/275/attachments/0.0/BEST/false%0A01-0615:13:40.678: WARN/VideoView(1512): java.io.IOException: setDataSource failed.: status=0x8000 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(Native Method) 01-06 15:13:40.678: WARN/VideoView(1512): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:699) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.openVideo(VideoView.java:212) 01-06 15:13:40.678: WARN/VideoView(1512): at android.widget.VideoView.access$2000(VideoView.java:49) 01-06 15:13:40.678: WARN/VideoView(1512): at
[android-developers] Re: Null pointer exception
That was it! I took out the startManagingCursor() and it worked fine. My next question is what should I do to handle the life cycle of my cursor? Should I close it outside the switch statement? On Jan 5, 5:41 pm, Vladimir vladimir.funti...@gmail.com wrote: What do you think about this: 1. Cursor created in onContextItemSelected() is null (for some reason) 2. Since its lifecycle is managed by the activity (startManagingCursor (c)), it tries to release it when the activity is stopped (when the new intent is launched) 3. It doesn't expect managed cursor to be null and crashes (at android.app.Activity.performStop(Activity.java:3604)) Does that make sense? I have little idea about how this cursor management works, but I would do the following: 1. Try removing startManagingCursor() calls to see if these are related 2. Double check if the cursor is null 3. Take a look inside Android source and specifically Activity.java: 3604 Just a guess :) On Jan 5, 4:02 pm, JasonMP hyperje...@gmail.com wrote: Ok, I tried gino's idea with initializing my arrays differently. I also changed there names so that they did not share a name with any other arrays in my app: Did not work. I also tried calling to static variables instead of passing variables between classes with intents: This also did not work. I can't determine which line of code causes the error. The logcat does not give me a pointer to anything in my app at all. I tried to narrow it down with breakpoints and logging and what I found is that it runs through all of my code without a hitch, and then once its done it throws the exception. And again the exception only happens when I call the intent from a contextMenu. On Jan 1, 2:56 am, Wiebbe wie...@gmail.com wrote: Shouldnt you check if the bundle is null or not? Try to loop through it when you get there from a onContextItemSelected event. I'm guessing some value somewhere is null when it should be instantiated. Perhaps the intent is started quicker or without the bundle somehow so you get a nullpointer exception? On 31 dec 2009, 15:57, JasonMP hyperje...@gmail.com wrote: yes, Select.class is another one of my files. throughout my app there are a few different calls to it, all done the same way i.e. Intent i = new Intent(this, Select.class); startActivity(i); No where in Select.class do I make a call to start Select.class or Sheet.class. When its done it calls finish(); in the onCreate() of Select.class I grab the extras from the invoking class with this line of code: public class Select extends ListActivity{ DBAdapter db = new DBAdapter(this); String slotName = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); db.open(); ListView list = getListView(); View v = View.inflate(this, R.layout.list_header, null); list.addHeaderView(v, null, false); name = this.getIntent().getStringExtra(DBAdapter.KEY_NAME); } Could it be something in the .getIntent() method? or the .getStringExtra()? On Dec 30, 7:19 pm, Stephen @ gmail.com sdickey2...@gmail.com wrote: Now that I understand your intent creation a little better, and I see that the intent you are creating is unique from the class in which the code exists, I am not quite sure how it could be an infinite loop in the (immediate) way I was thinking. Reading this code Intent i = new Intent(this, Select.class); I have to start thinking there's something wrong with this. I tried to look up the Select class on the android developers site, and couldn't find it. Is that a class from another of your files? I guess I would wonder if the code being invoked there, is somehow causing this class to be invoked, thus causing some kind of loop. I would grep for any reference to your Sheet class, from anywhere else in your code, and that would likely be suspect. In general, the below is kind of a side topic, to maybe help you with generic debugging. All the Best, Steve. *Ok... the only thing I can think to really help you is to start taking advantage of logging. In your import list, I see you don't include the logger code, so maybe you can give this a shot. 1) in the import list import android.util.Log; 2) and throughout your code Log.d( TAG, DebugText ); where TAG is a string that is unique to you, and DebugText is something useful to identify the part of the program you're interested in. * On Wed, Dec 30, 2009 at 11:32 AM, JasonMP hyperje...@gmail.com wrote: Ok, I'm suddenly very curious by
[android-developers] Re: StartActivityForResult
Thanks Mark, it will work. I was considering this approach. I was hesitant for it establishes a dependency among the hierarchy activities. I thought I might have a need to reuse the activities in other scenarios in which I might have to select the artists/albums/ songs only without drilling down the hierarchy. I will go with your suggestion thought. Roman On Jan 6, 10:05 am, Mark Murphy mmur...@commonsware.com wrote: I am using ListActivities to drill down into a hierarchy; artist, album and song. One activity per hierarchy. So, from the main activity I start the ArtistActivity with the StartActivityForResult method and when the an artist is selected I call the protected void onListItemClick(ListView l, View v, int position, long id) { setResult(Activity.RESULT_OK, results); finish(); } to return the results. Than the main activity receives results from the ArtistsActivity in the onActivityResult method and starts the next hierarchy s activity, AlbumActivity, in the same way as the previous activity, on so on. It works fine except that when calling finish method the hierarchy activity is removed from the stack. So, it makes it impossible to backtrack to the previous hierarchy since it s not there anymore. For example, I can t backtrack from AlbumActivity to the ArtistsActivity since it has been removed from the stack. My question is; is there any way to leave the hierarchy activities on the stack? Instead of calling setResult()/finish() in a list item click, startActivityForResult() the next level down in the hierarchy. Only the leaf should call setResult()/finish() in a list item click. All branches of the hierarchy should call setResult()/finish() in their onActivityResult(), forwarding the leaf's result Intent along. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MotionEvent and KeyEvent causing excessive garbage collect (GC) calls
anybody out there got any clues on this? Thanks On Jan 4, 1:16 am, SnowCrash jason.poli...@gmail.com wrote: Hi folks, I'm running into some issues with input events and garbage collection, or more precisely object allocation. I am creating a game and have pretty much got my head around the OpenGL environment. I've digested all the relevant material I could find regarding performance, memory allocation etc (and watched the excellent presentation by Chris Pruett -http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAn...). I've pretty much eliminated any object allocations after initial setup from my game (which is still in its infancy), but I'm still getting a bunch of GC calls, like this: DEBUG/dalvikvm(52): GC freed 10398 objects / 880928 bytes in 139ms This is killing my frame-rate and creating a jittery experience, which is no good. Running DDMS I see that the culprit isMotionEventand KeyEvent. Allocations like: 656 float[] 3 android.view.MotionEvent init 656 float[] 3 android.view.MotionEvent init 656 float[] 3 android.view.MotionEvent init 656 float[] 3 android.view.MotionEvent init 656 float[] 3 android.view.MotionEvent init (there are many more, this is just a snapshot) It seems that every time aMotionEventis recorded, a float array is created? I am just using the onKeyDown event in the main Activity to broker the key event to my game thread. I'm also sleeping (16ms) in this method call (as per Chris Pruett's recommendation) to save in excessive notifications. Is there something special I can do to eliminate these allocations? Perhaps there is an alternate way of obtaining key events and or trackball events? (which also are a cause of several allocations) Thanks in advance... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Broadcast receiver for ACTION_UP of the camera button
Hi Samsung Galaxy, Android 1.5. I'm trying to detect when the user releases the camera button. I have a receiver that gets the ACTION_CAMERA_BUTTON intent and examines the EXTRA_KEY_EVENT that comes with it,using the following code (in the onReceive() in the receiver) @Override public void onReceive(Context context, Intent intent) { String intent_action = intent.getAction(); if (intent_action.equals(Intent.ACTION_CAMERA_BUTTON) ) { abortBroadcast(); KeyEvent key = (KeyEvent) intent.getParcelableExtra (Intent.EXTRA_KEY_EVENT); if ( key.getAction() == KeyEvent.ACTION_DOWN ) Toast.makeText(context, press, Toast.LENGTH_SHORT).show(); else if ( key.getAction() == KeyEvent.ACTION_UP ) Toast.makeText(context, release, Toast.LENGTH_SHORT).show(); else if ( key.getAction() == KeyEvent.ACTION_MULTIPLE ) Toast.makeText(context, multi, Toast.LENGTH_SHORT).show(); } } When I press the button, I only get the press popup. Is this a limitation in the phone or in Android? Is there another way to detect the release of the camera key? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: scaling game images according display sizes
What's your design like? How are you drawing everything? If you tell me that, I can offer some suggestions. On Jan 6, 9:02 am, Andrea andrea.pai...@gmail.com wrote: Hi I developed a game with the g1 in my mind. Now I want to support large screen sizes but I don't want to add in the apk different images for different screen sizes because now the apk is 3mb and when installed trought market it became 6mb (due to protection on). If i have to double the images to support new screens, the apk would be too heavy (about 13mb, i think) so I'm wondering to know if scaling images at runtime by myself (without compatibility mode) maybe the best way for supporting larger screens. Someone tried this solution? Compatbility mode does a great work in scaling images but it slows down drastically the framerate (i think because the scale operation is made every time an image is used/moved and not only once on the load of the image itself). 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] Using Bouncycastle in Android
Hi, I'm converting a J2ME application to Android using Eclipse + SDK. The J2ME is using Bouncycastle SHA1. I understand that Android now includes Bouncycastle ? How do I use the Bouncycastle functions. What do I have to Import or how do I add the BC libraries to the Eclipse. 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: Nested TabWidget ?
Method 1. tab content can be an activity. so you can have another tabwidget (@android:id/tabs) in that activity. Method 2. You don't have to use TabActivity to use tabs. All TabActivity does is to match tab widget to predefined ids such as tabs, tabcontents. Without using TabActivity, you can still match the ids and call TabHost's setup() to add tabs. Although I couldn't find the example that uses tabs without TabActivity. I've done it once. See http://developer.android.com/reference/android/widget/TabHost.html On Jan 3, 9:22 am, mrqzzz marcus.ob...@gmail.com wrote: Hello. I am new to Android. I just started with the layout examples and i was wondering how to get nested TabWidgets (a TabWidget inside a tab of another TabWidget). I noticed that android:id=@android:id/tabs of one TabWidget might conflict with the other... or am i missing something? Thanks, Marcus. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using an image in a listview
Are you using any of the techniques shown in the List13.java example in the APIDemos? I have a video example of what can be achieved with such techniques, here: http://www.youtube.com/watch?v=QZ8PoS6ai6U On Jan 6, 8:18 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi all, for my app i'm using a listview to display rss news articles. All goes well, and the implementation is almost done. But when using my app, i'm not really satisfied with the smoothness and user experience of it. The main problem is that when i scroll through the listview, which contains an image for each row in the listview, the scrolling isn;t smooth, it executes the getview override every time. I already threw out the holder startegy, as it slowed the scrolling... any thoughts? Thanx, Patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Using an image in a listview
Hi Brion, thanks, i will certainly give that a try. But the funy thing is that i'm actually not attaching that much data to my listview rows. I even stripped the images from it and i still have some hickups when scrolling. And it's indeed probably the getview method which tries to attach the data to the view. But as said i'll give the example a go and see if that helps. Many thanx in advance. Patrick 2010/1/6 Brion Emde brione2...@gmail.com: Are you using any of the techniques shown in the List13.java example in the APIDemos? I have a video example of what can be achieved with such techniques, here: http://www.youtube.com/watch?v=QZ8PoS6ai6U On Jan 6, 8:18 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi all, for my app i'm using a listview to display rss news articles. All goes well, and the implementation is almost done. But when using my app, i'm not really satisfied with the smoothness and user experience of it. The main problem is that when i scroll through the listview, which contains an image for each row in the listview, the scrolling isn;t smooth, it executes the getview override every time. I already threw out the holder startegy, as it slowed the scrolling... any thoughts? Thanx, Patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Met vriendelijke groet, Patrick Plaatje NDC|VBK de uitgevers Sixmastraat 32, 8915 PA Leeuwarden Postbus 394, 8901 BD Leeuwarden T (058) - 284 5044 M (06) - 158 966 34 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Save a highscore-list to the internal memory or the sd-card?
Hi! I am programming a game. How can I save a highscore-List to the internal memory of the phone? Or is it better to store highscore-lists to sd-card? If yes, how can I do that? Greetings, Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: API Terms of Use
Pretty much the exact same question was asked just yesterday: http://groups.google.com/group/android-developers/browse_thread/thread/950df182e63fa7bf/771377e3d08624ba - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Tue, Jan 5, 2010 at 10:43 PM, JP joachim.pfeif...@gmail.com wrote: tommy@, I believe you're not looking in the right spot. Check this blog post, it also includes a link to the *Android* Maps API ToS. http://android-developers.blogspot.com/2008/10/new-android-maps-api-terms-of-service.html On Jan 5, 7:40 pm, to...@webpro.com to...@webpro.com wrote: Hey I have a question about the maps API terms of use and I was hoping someone could clerify this for me or tell me where I should be asking this question. The following section: 9.1 Free, Public Accessibility to Your Maps API Implementation. Your Maps API Implementation must be generally accessible to users without charge. You may require users to log in to your Maps API Implementation if you do not require users to pay a fee. Unless you have entered into a separate written agreement with Google or obtained Google's written permission, your Maps API Implementation must not: (a) require a fee-based subscription or other fee-based restricted access; or (b) operate only behind a firewall or only on an internal network (except during the development and testing phase). Does that mean I can not charge for apps I write that use the API at all or does it mean after the initial price for buying the app I can't require the user to continue to pay to use the app or deny access to them if they don't pay? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Save a highscore-list to the internal memory or the sd-card?
Look at: SharedPreferences I think that will do what you're looking to do easily. Unless you have a massive list, using this method will suffice. -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Performance issue: Dalvik VM is 20x slower than most modern Java VMs
I'm writing a processing intensive digital sound processing app (requires numerous (50,000) Fast Fourier Transforms - FFT). This challenge led me to perform basic performance tests of Android running on an HTC Hero. The results show the Dalvik VM to be 20 times slower than a modern JIT-enabled JVM running J2ME and 25-50 times slower than a C program performing the same operations on a similarly powered mobile phone. For example, this simple iteration over an empty method 2 million times takes 1.4 seconds even though it doesn’t do anything. The same iteration is performed in milliseconds by a C program and about 100ms on a modern JVM public void performanceTest1() { for (int i = 0; i 200; i++) { emptyMethod(); } } private int emptyMethod() { return 0; } Doing something a little more complex like calculating the imaginary component of a complex conjugate 2 million times takes 3.2 seconds. Again, this takes milliseconds on other mobile phones running J2ME or C. public void performanceTest2() { for (int i = 0; i 200; i++) { int a = 5; int b = 5; int c = 5; int x = 5; int y = 5; y = ((a 16) * ((c 16) 16)) + (((a 0X) * ((c 16) 16)) 16); y = -y; y += ((b 16) * (c 16)) + (((b 0X) * (c 16)) 16); } } Has anyone else been able to overcome these performance issues of Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps API in paid App
WARNING: IANAL / IANAGE If the Google Maps API terms are to be taken into account, then publishing a paid app with a map could be considered a violation. Just because your app hasn't been pulled doesn't mean a thing. I'm guessing at least 50% of the apps in the market violate the market terms for violation of copyrights (every sound board for instance), and they aren't being pulled either. Does that mean they are in compliance or does it mean that Google isn't proactive in enforcing their terms at the moment? According to definition, a commercial application is one that is used for, connected with, engaged in, sponsored by or used in commerce or commercial enterprises, such as AP News or Best Buy shopping. A non-commercial application might be for a non-profit, a hobby site or something along that line. An application that requires payment to use is absolutely a non-free use of the maps and is in violation of 9.1 of the Maps API TOS. Then again, what do I know? WARNING: IANAL / IANAGE (I a not Google Employee, however, I've visited the Googleplex!) -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nexus 2.1 one sale, WHERE is the SDK!
24 hours and counting, still no 2.1 SDK... On Jan 6, 2:16 am, whoodroid gsuku...@gmail.com wrote: good, remember, it is the developer who gets knifed in the belly by paying customers when a phone is released with an SDK he/she has never seen, and issues arise. Reading the numerous N1 reviews over the last day, one recurring theme is (now that there's finally Android hardware to equal the iPhone) the app catalog is the major drawback to the platform. IOW, pissing off developers is the last thing Google should be doing right now. Not to mention that the inevitable broken apps reflect badly on the platform as a whole. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: can write youtube api on android?
You can report it in the Issue List of YouTube. I guess, you are missing out some dependencies for youtube api. You can check the youtube docs to find out more. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jan 6, 2:11 pm, tstanly tsai.sta...@gmail.com wrote: hi all, I use the youtube api and other libs such as gdata_client...http://code.google.com/intl/zh-TW/apis/youtube/getting_started.html but I always get the verify error: == E/dalvikvm( 749): Could not find class 'com.google.gdata.data.media.MediaStream Source', referenced from method com.google.gdata.client.media.MediaService.getMe diaResource W/dalvikvm( 749): VFY: unable to resolve new-instance 538 (Lcom/ google/gdata/da ta/media/MediaStreamSource;) in Lcom/google/gdata/client/media/ MediaService; W/dalvikvm( 749): VFY: rejecting opcode 0x22 at 0x0013 W/dalvikvm( 749): VFY: rejected Lcom/google/gdata/client/media/ MediaService;.g etMediaResource (Ljava/net/URL;Lcom/google/gdata/util/ContentType;Lcom/ google/gd ata/data/DateTime;)Lcom/google/gdata/data/media/MediaSource; W/dalvikvm( 749): Verifier rejected class Lcom/google/gdata/client/ media/MediaS ervice; D/AndroidRuntime( 749): Shutting down VM W/dalvikvm( 749): threadid=3: thread exiting with uncaught exception (group=0x4 000fe70) E/AndroidRuntime( 749): Uncaught handler: thread main exiting due to uncaught e xception E/AndroidRuntime( 749): java.lang.VerifyError: com.google.gdata.client.media.Me diaService . == so I want to confirm whether Android can integrate gdata and youtube api(lib)? or is there have mailing list for gdata that I can serach for problems? 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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs
You'll have to use the NDK and write some native C code to do your math, that will speed it up a lot. And use fixed point if you need floats. -niko On Jan 6, 11:08 am, Biosopher biosop...@gmail.com wrote: I'm writing a processing intensive digital sound processing app (requires numerous (50,000) Fast Fourier Transforms - FFT). This challenge led me to perform basic performance tests of Android running on an HTC Hero. The results show the Dalvik VM to be 20 times slower than a modern JIT-enabled JVM running J2ME and 25-50 times slower than a C program performing the same operations on a similarly powered mobile phone. For example, this simple iteration over an empty method 2 million times takes 1.4 seconds even though it doesn’t do anything. The same iteration is performed in milliseconds by a C program and about 100ms on a modern JVM public void performanceTest1() { for (int i = 0; i 200; i++) { emptyMethod(); } } private int emptyMethod() { return 0; } Doing something a little more complex like calculating the imaginary component of a complex conjugate 2 million times takes 3.2 seconds. Again, this takes milliseconds on other mobile phones running J2ME or C. public void performanceTest2() { for (int i = 0; i 200; i++) { int a = 5; int b = 5; int c = 5; int x = 5; int y = 5; y = ((a 16) * ((c 16) 16)) + (((a 0X) * ((c 16) 16)) 16); y = -y; y += ((b 16) * (c 16)) + (((b 0X) * (c 16)) 16); } } Has anyone else been able to overcome these performance issues of Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: adp1 seeing adhoc networks
Are there steps other than the ones I provided the link to? I assume the Android Developer Phone 1 is already rooted as I was able to use su and execute all the commands. It seems that the phone will not connect to adhoc network, it constantly says scanning. On Jan 5, 2:35 am, moneytoo m...@seznam.cz wrote: Android does not support connecting to Ad hoc networks. It's possible but it's tricky - you have to have root, modify some files and manually specify all network details cause ad hoc network will not display in the search list. On Jan 5, 4:04 am, Ron ronbruck...@comcast.net wrote: I'm trying to set up my adp1 to see a device on an adhoc network. I'm largely using the procedure outlined in: http://forum.xda-developers.com/showthread.php?t=444004page=2 The problem is that not only is the phone not connecting to the adhoc network, it appears to not even see it. When looking for wifi networks, the phone can see several networks from my neighbors, regardless of how they are set up, but it can't see an adhoc network set up from my PC sitting next to the phone. Is there something about the phone that makes it deal with a router just fine, but not a PC or device? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I don't see how to do this....
I want to grab the latitude and longitude of a phone without using a mapview (I want to send the location to a server side process from a form) But this code constantly crashes the app : Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); criteria.setAltitudeRequired(false); criteria.setBearingRequired(false); criteria.setCostAllowed(true); criteria.setPowerRequirement(Criteria.POWER_LOW); LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); String provider = locationManager.getBestProvider(criteria, true); Location loc = locationManager.getLastKnownLocation(provider); double lat = loc.getLatitude(); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator error after upgrade to win7
Did some googling and found a solution. Looks like the problem is with the emulated SD card. In my case, the 1.5 AVD that failed had a virtual SD card defined when it was created with old SDK. Deleting the AVD and creating it again solved the problem. Also, create SD card images larger then 8 megs, or you'll get the same error. Hope this helps. On 5 Sty, 10:36, Piotr Buła piotr.b...@gmail.com wrote: I'm having the same problem, I recently updated SDK to the newest version and I get the same error. I'm using Ubuntu 9.10 (64-bit) and I get that error for 1.5 sdk. 1.6 and 2.0 work fine. Any ideas? On 4 Sty, 13:53, Tim Ellison t.p.elli...@gmail.com wrote: I have the same issue Mark. Did you figure out a solution? On Dec 9 2009, 8:23 pm, mh haye...@gmail.com wrote: After reinstalling Eclipse and the Android development components I am getting the following error upon running the emulator on a virtual device: qemu: fatal: exponent 255 too big R00=0002 R01=e118 R02=fe005000 R03=2209 R04=c594bfa0 R05=c5863e94 R06=c5863e5c R07=c5863e5c R08=c5863e94 R09= R10= R11=c5863e0c R12=0009 R13=c5863df8 R14=c018786c R15=c0187614 PSR=6013 -ZC- A svc32 I suspect that some configuration file in the project is hosed but cannot figure out which. Ideas are ever appreciated. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] continuous audio recording in memory
Dear All, I'm trying to write an App that continuously record audio in memory (in a circular buffer). Could anyone point me towards a piece of code (perhaps in the kernel) that shows how to best to this ? Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs
Thanks Niko, I've been researching the NDK and am about to run the same performance tests there as well. I really didn't want to add the additional complexity of the NDK but seems that might be the only solution. I found a blog documenting the same performance issues so it appears my own findings aren't completely whacked: http://occipital.com/blog/2008/10/31/android-performance-2-loop-speed-and-the-dalvik-vm/ Cheers, Anthony -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.1 SDK
Fx: Waiting to exhale. The Nexus One has been out for almost a day now and *still* no 2.1 SDK ;-) -- Android Academy http://www.androidacademy.com On Dec 16 2009, 10:04 am, String sterling.ud...@googlemail.com wrote: There's been no public announcement of Android2.1, remember, so there's noSDKbeen released. No doubt Google has one internally, but that's it. The *rumor* is that Android2.1will release on January 5 with the Nexus One handset, but right now, that release date is just rumor. While I find the prospect exciting as an Android enthusiast, as a developer I'm hoping that it's not true, because it would be a repeat of the fiasco with 2.0 - where theSDKonly dropped a couple of weeks before live handsets hit the market. I *hope* that Google learned from the failures of that experience, that the developer community needs more lead time than that to test against a new version, but I *fear* that they have not, and will just hang us out to dry again. String On Dec 15, 9:45 pm, sazilla sazi...@gmail.com wrote: Hi everyone, does anybody have been able to get/build the Android2.1SDK? I was wondering if the following issues was fixed there:http://groups.google.com/group/android-developers/browse_thread/threa... Thanks Carlo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs
the next sdk release is suppose to have a Dalvik JIT i nit doubling speed/performance.. I am in the same boat, have image processing projects but am holding off until JIT is out.. On Jan 6, 11:49 am, niko20 nikolatesl...@yahoo.com wrote: You'll have to use the NDK and write some native C code to do your math, that will speed it up a lot. And use fixed point if you need floats. -niko On Jan 6, 11:08 am, Biosopher biosop...@gmail.com wrote: I'm writing a processing intensive digital sound processing app (requires numerous (50,000) Fast Fourier Transforms - FFT). This challenge led me to perform basic performance tests of Android running on an HTC Hero. The results show the Dalvik VM to be 20 times slower than a modern JIT-enabled JVM running J2ME and 25-50 times slower than a C program performing the same operations on a similarly powered mobile phone. For example, this simple iteration over an empty method 2 million times takes 1.4 seconds even though it doesn’t do anything. The same iteration is performed in milliseconds by a C program and about 100ms on a modern JVM public void performanceTest1() { for (int i = 0; i 200; i++) { emptyMethod(); } } private int emptyMethod() { return 0; } Doing something a little more complex like calculating the imaginary component of a complex conjugate 2 million times takes 3.2 seconds. Again, this takes milliseconds on other mobile phones running J2ME or C. public void performanceTest2() { for (int i = 0; i 200; i++) { int a = 5; int b = 5; int c = 5; int x = 5; int y = 5; y = ((a 16) * ((c 16) 16)) + (((a 0X) * ((c 16) 16)) 16); y = -y; y += ((b 16) * (c 16)) + (((b 0X) * (c 16)) 16); } } Has anyone else been able to overcome these performance issues of Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: I don't see how to do this....
You're not testing to see if you get a null provider, also I'm not sure asking to use POWER_LOW and ACCURACY_FINE will work as GPS uses a lot of power. I suggest dropping the POWER_LOW and testing provider for null. Also, unless you need a very accurate fix, the wireless network location service (ACCURACY_COARSE) is much faster, uses less power and also works indoors, you might consider using that as well. As a side note, you're not going to get a good fix using getLastKnownLocation without first attaching a listener to the GPS. The last known location might be 100 miles away, if the last time location services were used was a while ago. I've found getLastKnownLocation to be unreliable. -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: continuous audio recording in memory
a look at .../framework/base/media/.../AudioRecord.cpp should be helpful~ On Jan 6, 10:11 am, frantz lohier floh...@gmail.com wrote: Dear All, I'm trying to write an App that continuously record audio in memory (in a circular buffer). Could anyone point me towards a piece of code (perhaps in the kernel) that shows how to best to this ? Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SQLite encryption of file storage
I've been thinking of writing a secret storage system for Android -- does such a thing already exist? I've used Zetetic's open-source Strip tool for many years on PalmOS, and found it handy, so I'd like to have something like that on Android. Ideally, I would use SQLite databases to store the info, but it seems that there's no way to encrypt those database files. This is a huge security hole. SD card storage of course can be compromised, but even on-device storage is available to a sophisticated attacker who actually has the physical phone. I see that a ticket was opened about this in Feb 2008, but apparently closed shortly thereafter with a somewhat short-sighted analysis of the security problem. Would it be futile to re-open such a ticket? Does anyone else have a solution to 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] How to use the Object android.widget.AdapterView.getItemAtPosition(int position)
Hi, I am new to Android and facing problem in Accessing the item from the list view. What i have tried: 1) I have used getAdapter().getView() to get the checkbox from the list to get its status. But i could not be able to get its status. 2) I have used getChild() method its working giving the status of the checkbox but for the checkboxes in list which are visible on the emulators screen. Now i am trying to use Object android.widget.AdapterView.getItemAtPosition(int position) method but I am not able to get the check box with is the item in the listview. Please help me on 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] TimePicker widget
Hi All, I am new at android. My concern is to increse the minutes in TimePicker by 15 minute. If user clicks on '+' button given in widget,then minutes should be increase by 15 and if user clicks on '-' button then minutes should be diminshed by 15. I need to show minute in multiple of 15 . i.e., 15... then 30. then 45 and then 60.Is there any way to achieve this functionality simply by using TimePicker widget in our application??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android emulator speed
i was disappointed that the boot speed of the android emulator was more slower than my peer. of course, the spec was identical, his os was Win7 but my os was XPSP2. how can it be possible? is there any one who knows the way boosts the speed of android emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 clear activity stack in task
I am also facing the same problem in my application in my application A starts B and B starts C now C is on the screen and i want to close the complete app in just a single click of button. Manoj Chauhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to use the Object android.widget.AdapterView.getItemAtPosition(int position)
Hi, I am new for Android development. I want to use Object android.widget.AdapterView.getItemAtPosition(int position) method for getting the items from ListView. But I am not getting the way to make it happen. Please help me out on this topic. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Will native libs built with the NDK work with the Nexus One?
Basically is the ARMv7 instruction set somehow an extension of the ARMv5 or is it completely different? I'd like to get started building somewhat large components of my game in it since the JVM seems to be slow as hell from what I've read. And if anyone did something with it how did you manage to debug/step into your native lib while debugging your application written in java? Am I forced to build a Win32 application as well using my lib for debug purposes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nexus 2.1 one sale, WHERE is the SDK!
I would like to buy the Nexus as well, but I live in Romania, I don't know if it works on Vodafone. Anyone got any idea regarding this? I want to purchase it from U.S. Also, if I buy it, will the Market work for paid apps too? Currently my HTC Magic doesn't have paid apps in Market, but I bought it locally. Maybe it works if I buy the Nexus from U.S. Anyone knows how Market filters users? Is it based on where you are, or where you bought the phone from? Thanks, Cosmin P.S. Sorry for the off-topic reply. On Jan 5, 10:44 pm, Greg Donald gdon...@gmail.com wrote: On Tue, Jan 5, 2010 at 2:16 PM, Wayne Wenthin wa...@fuligin.com wrote: Welcome to developing on Android. This is round 2.5 1.6 came out just days before. 2.0 came out on the droid before developers (well most of us) got to see it and now this. It's almost like Google doesn't want us to develop for Android. Having all the high IQs in the world doesn't help you when you lack simple common sense. Google hasn't a clue how to treat developers. Look at the Market Place stats loss from three weeks ago that no one is doing anything about: http://www.google.com/support/forum/p/Android+Market/thread?tid=4c575... -- Greg Donaldhttp://destiney.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to access an item form ListView
Hi I am using ListView with checkbox as items and want to access the checkbox status. Would anybody help me on this topic. Manoj Chauhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 GIF image for a finate time
Convert it to multiple png's use androids animation manager. On Jan 6, 5:31 am, RamaMohan rama.mohan...@gmail.com wrote: Hi all, I want to show a loading Image of GIF type for a finite time .how to do this. Please tell me the solution if anyone knows. Thanks, Ram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Geolocation in Browser works in 1.6 (Gears) but not 2.0 (HTML5/W3C) - Tested in emulator and real devices.
I created this little Geolocation experiment site http://www.bctx.info/wx it works great on my Android 1.6 (Magic, I/O Phone) it prompts the user to share, returns lat, log and is snappy. 1.6 uses Gears for this. I tried it on an up to date Droid and a 2.0 emulator image and it detects the navigator.geolocation element (excellent!) and waits for the user to share but no popup appears on the device and it cannot proceed. Any thoughts? The test site: http://www.bctx.info/wx -Ben -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL ES 2.0 on Eclair
I would like to bump this. . . I was thinking the same thing - use the NDK to gain access to the 2.0 functions. I imagine that the OpenGL ES 2.0 functions are exposed in Imagination Technologies shared object file. Games should be considered an NDK level application. Wasn't anybody watching Microsoft when they tried this? Remember Direct-Draw? On Dec 28 2009, 11:10 am, rollbak roll...@gmail.com wrote: So, that means that with NDK i can? Can you explain this further please? Thanks, Lucas On Dec 28, 3:09 pm, Romain Guy romain...@android.com wrote: Java apps cannot directly accessOpenGLES2.0 APIs at the moment. On Thu, Dec 24, 2009 at 7:32 PM, Lawrencelee leelawrenc...@gmail.com wrote: Eclair has supportedOpenGLES2.0. But I can not find related JNI wrapper forOpenGLESAPI. How a Java application useOpenGLES2.0 functions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Nexus 2.1 one sale, WHERE is the SDK!
On Tue, Jan 5, 2010 at 3:12 PM, Dianne Hackborn hack...@android.com wrote: While I will not argue that we need to be better about getting SDKs out earlier, for developers the changes in 2.1 are really not that significant. Does it raise the hard coded heap limit? -- -- David Sauter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Enable / Disable android widgets runtime.
i am (also) having trouble enabling/disabling widgets at runtime. as reported before you can enable/disable component with the packagemanager. but for the widget the behaviour i see is not what i expect. the widget will be referenced in the widget menu on the home screen when the widget is enabled by default. if you disable it by default and enable it at runtime there is not change in the widget menu. what do i have to do to 'force' this change to the widget menu? groet, jurg. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to figure out what WindowManagerservice and PhoneWindowManager difference
Possibly separate Policy from Mechanism WindowManagerService extends IWindowManager.Stub: System private interface to the window manager. WindowManagerPolicy interface: supplies all UI-specific behavior of the window manager. An instance of it is created by the window manager when it starts up, and allows customization of window layering, special window types, key dispatching, and layout. On Jan 5, 9:29 pm, Kunal sinhakunal...@gmail.com wrote: Hi, The PhoneWindowManager implements WindowManagerPolicy while the WindowManagerService also implements the WindowState of the WindowManagerPolicy Can somebody provide me with the inputs of how PhoneWindowManager and WindowManagerService be differentiated? Thanks, Kunal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: JmDNS succeeds on simulator, fails on phone
Can you post a snippet of how you got it working on the emulator? Based on other threads in this group, I'm inclined to think this is not possible, mostly due to various networking limitations of the emulator (http://groups.google.com/group/android-developers/ browse_thread/thread/77b45f357ff183d4/defa24b49242d44c? hl=enlnk=gstq=jmdns#defa24b49242d44c). I would really like to see some code using jmdns that can resolve a service running separately on the development machine. Cheers, -jsi On Dec 31 2009, 6:06 pm, SFSDCris cris94...@gmail.com wrote: I'm attempting to useJmDNS(zeroconf / Bonjour) to resolve a local network hosts ip address. JmDNSsucceeds on the simulator, but fails on the phone. The phone is an HTC Magic (from the Google I/O conference) Both are running Android 1.5 Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView not responding to Click or KeyPress
Hey! I think I have the same problem, and I do not have any focusable children. My layout for a Row in the ListView contains: LinearLayout | +-- ImageView | +-- LinearLayout | +-- TextView | +-- TextView | +-- TextView and the Main activity is like this: code public class Main extends Activity { ArrayListNode nodes; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.main); ArrayListNode nodes = new ArrayListNode(); nodes.add(new Node(My name, My text, 13:10, 0)); NodeRowAdapter nra = new NodeRowAdapter(this, nodes); ListView listView1 = (ListView) findViewById (R.id.ListViewNodes); listView1.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { System.out.println (get onItem Click position= +position); } }); listView1.setAdapter(nra); } } /code It seems to me as nothing at all happens when I click the item in the ListView... On 4 Dec 2009, 19:43, Romain Guy romain...@android.com wrote: This is unnecessary. This problem will occur if your list item contains focusable children (like buttons, edittexts, etc.) On Thu, Dec 3, 2009 at 4:20 PM, hwii77 hwi...@gmail.com wrote: maybe maybe try this: Add android:clickable=true (and android:focusable=true) On Dec 2, 1:37 pm, n179911 n179...@gmail.com wrote: Hi, I have a simple ListView in my layout.xml file. ListView android:id=@+id/action_list android:layout_width=fill_parent android:layout_height=wrap_content / And in my javacode, I add a setOnItemClickListener() to my listview: listView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { System.out.println (get onItem Click position= +position); } }); But when I run on G1. I don't see any print out when I click an item on the ListView on the phone. Or when I select an item using track ball and press CENTER. Can you please tell me why to resolve my problem? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JmDNS succeeds on simulator, fails on phone
Can you post a snippet of code that demonstrates how to make jmdns work on the emulator? Other threads on this list appear to claim that various networking restrictions in the emulator prevent jmdns from working properly but it seems projects have successfully used it in on real devices. If you got the emulator to resolve a service published on the host machine, I'd be happy to see the code =] Cheers, -jsi On Dec 31 2009, 6:06 pm, SFSDCris cris94...@gmail.com wrote: I'm attempting to use JmDNS (zeroconf / Bonjour) to resolve a local network hosts ip address. JmDNS succeeds on the simulator, but fails on the phone. The phone is an HTC Magic (from the Google I/O conference) Both are running Android 1.5 Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse with ADT plugin error
Hi, I installed Eclipse with ADT plugin (latest version). Doing so, I now end up in a no longer working Eclipse. It states An error has occurred. See the logfile... The logfile reads like this: !SESSION Tue Dec 08 13:40:49 CET 2009 -- !ENTRY org.eclipse.equinox.launcher 4 0 2009-12-08 13:40:49.687 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:315) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ActiveSync warnings on exchange server caused by Droid users only
Exact same senerio here... SonicWall Pro2040 has timeout at 15 min. Nothing broke just hate filling log files with useless errors. Confused, Ken On Dec 7 2009, 10:30 am, ahahum aha...@gmail.com wrote: We have users setup on our coprorate email server connecting using activesync. Most users are windows mobile and iPhones. We currently have 2 droids for testing (one is mine!). I get warnings in my exchange server application logs like this. It only began when we started testing the droids. Event Type: Warning Event Source: Server ActiveSync Event Category: None Event ID: 3033 Date: 12/2/2009 Time: 3:32:30 PM User: username Computer: EXCHANGE Description: The average of the most recent [200] heartbeat intervals used by clients is less than or equal to [540]. Make sure that your firewall configuration is set to work correctly with Exchange ActiveSync and direct push technology. Specifically, make sure that your firewall is configured so that requests to Exchange ActiveSync do not expire before they have the opportunity to be processed. For more information about how to configure firewall settings when using Exchange ActiveSync, see Microsoft Knowledge Base article 905013, Enterprise Firewall Configuration for Exchange ActiveSync Direct Push Technology (Enterprise firewall configuration for Exchange ActiveSync Direct Push Technology). I have modified my firewall here to meet MS's recommendations for timeout values - mine are at 900 seconds. It seems that the droid's activesync is doing something a little different than the standard activesync session with the server. Does anyone else manage an exchange server and have access to these logs? Please look to see if you're getting the same warning. It's logged about 1 time per hour. The only thing that I haven't tried is restarting the server after the changes on our firewall. I don't expect this to be an issue. Thanks! Adam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to run application in Back ground?
Hello Friends, I want to develope an application in which if SIM card is changed then the application should sent SMS to a predefined number from the new SIM. User should not know that SMS are being send from his/ her mobile. For this application needs to run in background. How can I achieve it? Thank you in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Composite USB Android Driver user space Connection
Hi All, i have one query related to android USB composite drivers, can anybody tell me from where android_adb_enable (android.c) driver open and release functions are getting called from userspace. i can see following file opens the driver, is it correct? or is there any other location? system/core/adb/usb_linux_client.c because when i disable the above code also composite driver is working fine, so i just wonder from where it is getting called. Thanks in Advance, Madhu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launching another application through the current application
Hello all The problem I am facing is, I want to launch another application through the current application. In RIM there is a ApplicationManager.getApplicationManager().launch(String path) method that launches directly RIM application mentioned in String path. Is there any method like this in android or any other way to solve this problem ?? Regards, Rajiv -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Simultaneous Video recording, Calling and GPS
Our current application on Symbian S60 does simultaneous voice calls, audio/video recording and GPS. With android sdk, can we develop such application ? Thanks, Jawad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding a customized layer to the Maps application
Hi, I've developed an app that is using a map as part of the application and adding locations to it. Users are asking me to add the possibility to see these locations on the Maps application. Do you know how I can create an customized layer for the Maps application? Thanks for your help Nicolas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hello
I came to know that it is not possible to send mms in android emulator.Is it possible to send mms in android device. Is there any API for mms? May I have any help from u people regarding 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: Android Books?...
There really aren't any good Android books out there. I bought two of them and they are just poor copies of what Google wrote for developers. If you want to build games you should look for books on making games with open gl es. You should be able to find info on the internet about any Android specific open gl implementation. Good luck On Jan 5, 3:37 pm, Duey Oxburger cg-art...@hotmail.com wrote: Can anyone recommend any good Android books for a beginner? I'm mostly interested in games... Thx All, D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get service state?
Hi! I'm trying to get current service state of my phone (IN_SERVICE, OUT_OF_SERVICE, EMERGENCY_ONLY, POWER_OFF). It can be easily fetched with getState() method of ServiceState when a onServiceStateChanged (ServiceState serviceState) callback is invoked: public class ServiceStateListener extends PhoneStateListener{ @Override public void onServiceStateChanged(ServiceState serviceState) { switch(serviceState.getState()){ case ServiceState.STATE_IN_SERVICE: Log.i(Listener, In Service); break; case ServiceState.STATE_EMERGENCY_ONLY: Log.i(Listener, Emergency); break; case ServiceState.STATE_OUT_OF_SERVICE: Log.i(Listener, Out Of Service); break; case ServiceState.STATE_POWER_OFF: Log.i(Listener, Phone Off); break; } } But if you explicitly create a ServiceState object and try to get it's state. It's always Out Of Service (returns 1), no matter what state your phone is in right now: @Override public void onCreate() { ServiceState serviceState = new ServiceState(); Log.i(onCreate, Integer.toString(serviceState.getState())); } I don't have much experience with Android. Any help is appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Question about emulator and accented character input
I'm puzzled by the difference between the accented characters that are available on a long keypreess on the soft keyboard that pops up within the device in the emulator, and those which are available on a long keypress on the soft keyboard in the emulator itself. The behavior that I see is that the device's soft keyboard presents a subset of the options -- for example, the Latin IME offers 7 alternates for a but the keyboard offers 9. The characters that I'm particularly interested (vowel with macron) in are found in the keyboard's larger set but not in the IME's subset, but I haven't been able to find any information on why the IME provides only a subset, and whether the larger set is accessible to devices with a physical keyboard, only to those devices, and not to devices with only the IME/soft keyboard. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Interface fo wi-fi
hi all, can anyone please tell me what all are required as inputs to develop a communication interface for wi-fi. Avanish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using an image in a listview
What does your getView code look like. Are re-inflating your row view every time it's called, are there multiple views for the rows etc? Vince On Jan 6, 10:18 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi all, for my app i'm using a listview to display rss news articles. All goes well, and the implementation is almost done. But when using my app, i'm not really satisfied with the smoothness and user experience of it. The main problem is that when i scroll through the listview, which contains an image for each row in the listview, the scrolling isn;t smooth, it executes the getview override every time. I already threw out the holder startegy, as it slowed the scrolling... any thoughts? Thanx, Patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to delete applications from the Android simulator.
I know that this is probably a stupid question, but I am completely new to Android development. I have worked through a number of the examples, and now have a bunch of apps on my simulated phone. I would like to remove some of those apps (to reduce the clutter), but cannot figure out how to do it. If I click on the app icon and hold down the mouse button, the screen changes to the main screen, and there appears to be a trash can at the bottom. However, dragging the icon to the trash can seems to have no effect. 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] OpenGL fixed point vs. floating point
OpenGL ES allows values to be specified in either fixed point or floating point format, but I haven't been able to find any information about how this is actually implemented on Android devices. Are there actually two different pipelines, one for fixed point and one for floating point? If so, what happens if you mix and match them, such as specifying your matrix in floating point but your vertices in fixed point? Alternatively, does it implement everything with just one format internally, and convert the other format to it as necessary? If so, then you presumably get the best performance if you always specify values in the internal format so as to avoid conversions. How then can I determine which format is used internally? I notice that the Matrix and Visibility classes only accept floating point values for matrices. Should I interpret that as a recommendation to use floating point for matrices? Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nexus 2.1 one sale, WHERE is the SDK!
Reading the numerous N1 reviews over the last day, one recurring theme is (now that there's finally Android hardware to equal the iPhone) the app catalog is the major drawback to the platform. IOW, pissing off developers is the last thing Google should be doing right now. Amusingly enough it's the defenses that Android has because it can multitask that are killing high end development for it. 16MB heap renders the phone just about useless for the high end stuff. -- -- David Sauter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: scaling game images according display sizes
Hi Robert, thanks for the reply. Ok the images are loaded as Bitmaps (not drawable) and drawed on the onDraw(Canvas c) method of a view. Inside that method I invalidate() all the view. So the game runs as fast as it can. The game is using dirty rects technique to redraw only the portions of the screen that need to be changed. Here is the simply code structure: //on a view private void onDraw(Canvas c){ //do staff invalidate(); } if you need some other info, tell me it. a.p. Robert Green ha scritto: What's your design like? How are you drawing everything? If you tell me that, I can offer some suggestions. On Jan 6, 9:02 am, Andrea andrea.pai...@gmail.com wrote: Hi I developed a game with the g1 in my mind. Now I want to support large screen sizes but I don't want to add in the apk different images for different screen sizes because now the apk is 3mb and when installed trought market it became 6mb (due to protection on). If i have to double the images to support new screens, the apk would be too heavy (about 13mb, i think) so I'm wondering to know if scaling images at runtime by myself (without compatibility mode) maybe the best way for supporting larger screens. Someone tried this solution? Compatbility mode does a great work in scaling images but it slows down drastically the framerate (i think because the scale operation is made every time an image is used/moved and not only once on the load of the image itself). 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