[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame
How come I recognize so many of these findings? ;-) 4. I believe that processing breaks down whenever I spend too much time in the onPreviewFrame function. That's what I observed too: so do the heavy duty image processing outside onPreviewFrame(), with supplementary frame skipping and subsampling as needed. Then there is no problem quitting the app either. I'd incurr an extra copy of the YUV_422 byte[] buffer from onCameraFrame into the Thread prior to processing. Yes, you need to take care of the limited data[] lifetime in onPreviewFrame(). Between this and skipping frames that overlap the frame-processing thread, this might drastically reduce the filter/display speed. I doubt that the buffer copying matters (especially when using arraycopy) as compared to the time lost in decoding the preview image (pixel-by-pixel) for lack of an Android API with a native decoding method for the preview format(s). I've looked at various offsets within each expected set of 6 bytes for each 2 pixels. For the Y (luminance) part just use the first block in data[]: the colors are not interleaved with Y; Y is in one block of bytes with offset zero in data[], with one byte per pixel. So decoding Y is easy, and identical for emulator and G1 (except for the stride due to preview image size differences: default 176x144 vs 480x320). Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: another new return of findViewById???
I add android:configChanges=orientation in AndroidManifest.xml, but seems it does not work, onConfigurationChanged(Configuration newConfig) is not invoked when rotating. And the activity is still be detroyed and recreated again. Copy andorid doc, not sure why not work: ---Otherwise, the activity will remain running and its Activity.onConfigurationChanged method called with the new configuration. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Require Source code of tools
Hello friends, Can u please tell me where can i get the source code of tools provided in sdk. I need source code of DDMS and traceview. Any help appreciated. Thanks Amit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to get the current city/country name?
Is it possible to get the city name(I mean the city where the phone is in at the current time)? I need it as a parameter for google weather API, like this: http://www.google.com/ig/api?weather=city_name,country_name I tried browsing the classes in android.location package but have yet to find a method to get the 'exact city name' and country name needed for google weather API. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] message during install: ... has an ealier definition; blocking out
what does this mean? the information is not sufficient, where have those definitions been found? In the one project that during install caused the message, in the android.jar in other project apk's? I double checked my sources and libs and can't find classes that are defined more that once. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android on Motorola A810...
Hello ALL, Can Android be ported on Motorola A810? Has anyone done this? A little I have come to know that Android was ported on Motorola Ming A1200, the predecessor of Motorola A810. Regards, - sam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
I am not sure you are experiencing the same thing I am. It's not a transient waiting for the radio to turn on phenomenon. I spent several hours last night working with NetworkInfo. When NetworkInfo says I am connected, yep, I am connected. But when I am not connected, I can spin in a loop waiting for a connection as long as I please, 30 seconds, a minute, more - still, not connected. I even tried to break down and reconnect wifi when it said I was not connected - waiting a luxurious 30 seconds for the reconnect to succeed - the result? Still not connection. I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. On Nov 24, 8:13 pm, JP [EMAIL PROTECTED] wrote: I am working on an app with similar requirements and behavior. 15 seconds polling cycle to XML server. (User can set it, so user decides the level of load (;-)) I've had similar problems as you describe, and here's a couple of strategies I've employed successfully (i.e. surviving multiple test runs such as leaving WiFi coverage down office building elevator onto street level walk down into subway ride subway and back out onto street level with on-and-off 3G/Edge coverage, you get the idea...) - Check network status. Obviously there are no UDP/TCP connects possible when the device is not connected to a data network (zero bars). Check this through the status info from the NetworkInfo class. You need to request proper permission (android.permission.ACCESS_NETWORK_STATE). If not connected, I cycle through this twelve times on a one second interval. This is typically sufficient to wait for the completion of data network connections after the device wakes up. The device enters different levels of sleep, depending on the period of inactivity; you can see this in the DDMS log; things like DHCP release in Wifi mode, for example. So, after the device resumes, I give it up to twelve attempts to check data network connection status, take a break, and try again later, or if user triggers these twelve attempts. Provide UI feedback showing you're trying to connect. - Having established data network connectivity, you cannot assume a UDP/TCP (=URL) connect or read goes through. Either not at all, or things are just plain too slow (high latency) in comparison to the polling cycle. If the programmed URL timeouts extend beyond your polling cycle, you run into problems,. Which you are, because the standard timeouts are carry-overs from the dial-up Internets; you are looking at default timeouts in the 30s neighborhood. This means you need to set the connect and read timeouts of your network interactions to values below your polling cycle, and wrap everything in try/catch blocks. Again, provide user feedback if connections fail. The URL connect and read timeouts are set with java.net.URLConnection.setConnectTimeout(int) and .setReadTimeout (int). I've been experimenting with 4s to 8s. These strategies helped stabilize the action. I am under the impression that the data network/TCP stack connectivity gets confused if you try to connect at inopportune times (no data network connectivity) or while a connect/read is timing out, and then throw additional connection attempts at it. Hope this helps. On Nov 24, 5:17 am, joshv [EMAIL PROTECTED] wrote: I am attempting to write an application that regularly polls data from a publicly available website using a URLConnection. The code is pretty basic (urlStr contains the URL...) URL url = new URL(urlStr); URLConnection urlConn = url.openConnection(); urlConn.setConnectTimeout(5000); BufferedReader in = new BufferedReader(new InputStreamReader (urlConn.getInputStream())); String line; while ((line = in.readLine())!=null) { Anyway, even when the G1 is connected to the network (verified in browser) this block of code will regularly throw java.net.SocketException: No route to host, java.net.SocketTimeoutException: Socket is not connected (though this is probably because I added a timeout), and many times throw an Exception claiming that it could not resolve the hostname in urlStr - oddly the web browser has no such issues resolving the name. The above block of code runs every 10 seconds (or longer if the previous request takes longer), and I'd guess succeeds approximately 25-50% of the time, though it tends to be a bit streaky. When the connection succeeds, it take less than a second to connect and download the data, it's a very small data set - so the timeout setting should not be an issue. The periods of error do not correspond to a loss of connectivity, as I can browser the web at the same time the errors
[android-developers] Re: Call JavaScript functions in the WebKit?
David Orriss Jr wrote: I need to call a JavaScript function in a page in a webkit view and get a return value. Possible? Suggestions? I don't think you can get a result directly from calling loadUrl(javascript:yourfunctionhere()) on a WebView. However, you *could*: 1. Add a callback via addJavascriptInterface() 2. Have your Javascript function call that callback with your result 3. Call the Javascript function as described above On the plus side, this probably works. On the minus side, it requires a change, or at least a wrapper, for the Javascript function to use the callback. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
joshv wrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example: http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
I see, sure sounded like it though. In any case, to manage communications helped out a great deal to eliminate the breakdowns I've seen, similar to what you described. Once you've determined the root cause of your problem I recommend to pull in a layer that handles calls as I described. Other than that, do exactly what Mark suggested - try to isolate the problem. I've had similar thoughts re: the health of my particular handset on another occasion (responses to touches) when in fact I had to work out a couple of bugs. One was particularly odd, because it rippled down to other apps once I had triggered it in mine, so one would think it wasn't my problem. So... from distance... a handset problem seems unlikely. JP On Nov 25, 4:25 am, joshv [EMAIL PROTECTED] wrote: I am not sure you are experiencing the same thing I am. It's not a transient waiting for the radio to turn on phenomenon. I spent several hours last night working with NetworkInfo. When NetworkInfo says I am connected, yep, I am connected. But when I am not connected, I can spin in a loop waiting for a connection as long as I please, 30 seconds, a minute, more - still, not connected. I even tried to break down and reconnect wifi when it said I was not connected - waiting a luxurious 30 seconds for the reconnect to succeed - the result? Still not connection. I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. On Nov 24, 8:13 pm, JP [EMAIL PROTECTED] wrote: I am working on an app with similar requirements and behavior. 15 seconds polling cycle to XML server. (User can set it, so user decides the level of load (;-)) I've had similar problems as you describe, and here's a couple of strategies I've employed successfully (i.e. surviving multiple test runs such as leaving WiFi coverage down office building elevator onto street level walk down into subway ride subway and back out onto street level with on-and-off 3G/Edge coverage, you get the idea...) - Check network status. Obviously there are no UDP/TCP connects possible when the device is not connected to a data network (zero bars). Check this through the status info from the NetworkInfo class. You need to request proper permission (android.permission.ACCESS_NETWORK_STATE). If not connected, I cycle through this twelve times on a one second interval. This is typically sufficient to wait for the completion of data network connections after the device wakes up. The device enters different levels of sleep, depending on the period of inactivity; you can see this in the DDMS log; things like DHCP release in Wifi mode, for example. So, after the device resumes, I give it up to twelve attempts to check data network connection status, take a break, and try again later, or if user triggers these twelve attempts. Provide UI feedback showing you're trying to connect. - Having established data network connectivity, you cannot assume a UDP/TCP (=URL) connect or read goes through. Either not at all, or things are just plain too slow (high latency) in comparison to the polling cycle. If the programmed URL timeouts extend beyond your polling cycle, you run into problems,. Which you are, because the standard timeouts are carry-overs from the dial-up Internets; you are looking at default timeouts in the 30s neighborhood. This means you need to set the connect and read timeouts of your network interactions to values below your polling cycle, and wrap everything in try/catch blocks. Again, provide user feedback if connections fail. The URL connect and read timeouts are set with java.net.URLConnection.setConnectTimeout(int) and .setReadTimeout (int). I've been experimenting with 4s to 8s. These strategies helped stabilize the action. I am under the impression that the data network/TCP stack connectivity gets confused if you try to connect at inopportune times (no data network connectivity) or while a connect/read is timing out, and then throw additional connection attempts at it. Hope this helps. On Nov 24, 5:17 am, joshv [EMAIL PROTECTED] wrote: I am attempting to write an application that regularly polls data from a publicly available website using a URLConnection. The code is pretty basic (urlStr contains the URL...) URL url = new URL(urlStr); URLConnection urlConn = url.openConnection(); urlConn.setConnectTimeout(5000); BufferedReader in = new BufferedReader(new InputStreamReader (urlConn.getInputStream())); String line; while ((line = in.readLine())!=null) { Anyway, even when the G1 is connected to the network (verified in browser) this
[android-developers] Way to sell applications
Hi, I have my application ready for release. As far as I understood, the Market is currently only for FREE applications, though - and that does NOT include FREE TRIALS. So - when (if at all) will the market enable selling apps ? And - are there other channels ? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Way to sell applications
There are other channels, You might find Mogees (www.mogees.com) useful as they offer a method you can integrate with your app which distributed via any of the app directories (Marketplace, AndAppStore, etc.) Al. [EMAIL PROTECTED] wrote: Hi, I have my application ready for release. As far as I understood, the Market is currently only for FREE applications, though - and that does NOT include FREE TRIALS. So - when (if at all) will the market enable selling apps ? And - are there other channels ? Thanks in advance. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
Not putting words in Mark's mouth but he meant to explain that you need to eliminate uncertainties; one being the site you try to access and if it's bomb proof as you describe; done. Next - you've got to isolate the problem. No way around it even though recreating the problem in a sandbox will cost you a couple of hours. Wireless comms is a tricky environment; the spiel of the different states of the underlying stack and their impact on your app are more complex than what you will find in the emulator. For test purposes, you definitely should reduce the complexity of your multi-threaded environment. The correct approach for the architecture of your app (perhaps more complicated than need be?), but a candidate to cause trouble if you do not fully understand the dynamics of the underlying communications stack (emulator vs. the real thing). On Nov 25, 5:43 am, joshv [EMAIL PROTECTED] wrote: I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example:http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can't retrieve page with HttpClient
Have a weird problem - I'm trying to read a page from my web site but for some reason it just can't find it. I can navigate to my page in a browser no problem but if I use the same URL in HttpClient I get the 404 (File not found) from my host service. Any clues? Here is the code I use - seems pretty straightforward HttpClient client = new DefaultHttpClient(); HttpGet getMethod = new HttpGet(strURL); try { HttpResponse response = client.execute(getMethod); Log.d(LOG_TAG, Response Code + Integer.toString (response.getStatusLine().getStatusCode())); if(response.getStatusLine().getStatusCode()==404) { Log.d(LOG_TAG, WTF - 404); return; } String res = EntityUtils.toString(response.getEntity()); Log.d(LOG_TAG, res); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] See this info on Android Developers
=== Developer Challenge - Android To support you in your efforts, Google has launched the Android Developer Challenge, which will provide $10 million in awards — no strings ... === ii http://www.freewebs.com/recordindstry/ ii --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Setting up intents for dynamic buttons
Hello Julian, I think that you need to attach the button by name to the view. Please refer to this thread for information which might be relevant. http://groups.google.com/group/android-developers/browse_thread/thread/297073fb1c8579cc/df6767b1f70f86d6?lnk=gstq=alexdonnini#df6767b1f70f86d6 Alex Donnini On Nov 22, 10:30 pm, Julian [EMAIL PROTECTED] wrote: Ok. I have a screen that is essentially a list with a dynamic number of items. Each of these items when clicked needs to switch to the next screen and pass a variable over saying which was clicked. I am trying to use intents to do this, but I am having some trouble. Here is the chunk of code where I am trying to do this: for (int i = 0; i count; i++){ mi = db.getItem(i); //countText.setText(mi.title); items[i] = new TextView(this); items[i].setClickable(true); items[i].setText(mi.title); inteIntent = new Intent(this, MIScreen.class); inteIntent.putExtra(com.android.MIScreen.curIndex, i); items[i].setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(inteIntent); } }); linearLayout.addView(items[i]); //items[i].setVisibility(1); }; What happens is every button I click just has the last intent settings so no matter which one I click the next screen shows that I clicked the last item. I also tried to do this by using an array of intents. But that gives me an error when I click a button that I have not been able to figure out. So how should I be doing this? Am I taking the wrong approach completely or am I just missing something small? Also, Im trying to use the wsimport tool to set up the Amazon API but am very unfamiliar with the Java tools and can't get wsimport to run on the command line at all. Thanks. -Julian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Querys involving more than one table of Contatcs Content Provider
I've been looking at a similar problem. Something like this: Cursor cursor = context.getContentResolver().query( Contacts.GroupMembership.CONTENT_URI, new String[] {Contacts.GroupMembership._ID,Contacts.GroupMembership.PERSON_ID, Contacts.GroupColumns.NAME}, Contacts.GroupMembership._ID = Contacts.Groups.GROUP_MY_CONTACTS, null, null); will get you the IDs of the people in the group. I'd love to make a cursor which also included the name of the person, but as far as I know there is no way to do that with a single query. That is, as far as I can tell, there's no way to do a join via the content provider interface, and permissions prevent us from accessing the contacts database directly via SQL calls. I really hope somebody can prove me wrong! Richard On Nov 24, 11:14 am, Huebi [EMAIL PROTECTED] wrote: I'd like to get a Cursor for all contacts in the My Contacts group. I could not figure out how to do this with the ContentProvider. As far as I understood the table structure, I need to use the GroupMembership table, the Groups table (to get the ID of the My Contacts group and the People table to actually retrieve the contact data. Has anyone successfully solved this task? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
I just spent a minute knocking out a test case over a cup of tea. Seems to work fine for me on WIFI, GPRS, and 3G. Tom. void testConnection() { TextView view = (TextView) findViewById(R.id.message); HttpURLConnection conn = null; try { URL url = new URL( http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2;); conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(GET); conn.connect(); Reader reader = new InputStreamReader( conn.getInputStream() ); StringWriter writer = new StringWriter(); for (int c = reader.read(); c = 0; c = reader.read()) writer.write(c); view.setText(writer.toString()); } catch (IOException e) { Log.e(test, connection test failed, e); } finally { if (conn != null) conn.disconnect(); } } 2008/11/25 joshv [EMAIL PROTECTED] I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example: http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
I appear to have found the problem. The polling thread was starting in the constructor of a different class, and NOT from the UI thread. I changed the code to launch the polling thread from the main UI thread in the call to the Activity's onResume method - and it seems to be working quite well on the handset now. Why would this make a difference? No idea. I am assuming it's some subtlety of the security implementation with respect to threading. Perhaps the reason it worked on the emulator is that my handset and the emulator are at different release levels. On Nov 25, 8:12 am, JP [EMAIL PROTECTED] wrote: Not putting words in Mark's mouth but he meant to explain that you need to eliminate uncertainties; one being the site you try to access and if it's bomb proof as you describe; done. Next - you've got to isolate the problem. No way around it even though recreating the problem in a sandbox will cost you a couple of hours. Wireless comms is a tricky environment; the spiel of the different states of the underlying stack and their impact on your app are more complex than what you will find in the emulator. For test purposes, you definitely should reduce the complexity of your multi-threaded environment. The correct approach for the architecture of your app (perhaps more complicated than need be?), but a candidate to cause trouble if you do not fully understand the dynamics of the underlying communications stack (emulator vs. the real thing). On Nov 25, 5:43 am, joshv [EMAIL PROTECTED] wrote: I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example:http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
No, its probably a bug in your code :) Tom. 2008/11/25 joshv [EMAIL PROTECTED] I appear to have found the problem. The polling thread was starting in the constructor of a different class, and NOT from the UI thread. I changed the code to launch the polling thread from the main UI thread in the call to the Activity's onResume method - and it seems to be working quite well on the handset now. Why would this make a difference? No idea. I am assuming it's some subtlety of the security implementation with respect to threading. Perhaps the reason it worked on the emulator is that my handset and the emulator are at different release levels. On Nov 25, 8:12 am, JP [EMAIL PROTECTED] wrote: Not putting words in Mark's mouth but he meant to explain that you need to eliminate uncertainties; one being the site you try to access and if it's bomb proof as you describe; done. Next - you've got to isolate the problem. No way around it even though recreating the problem in a sandbox will cost you a couple of hours. Wireless comms is a tricky environment; the spiel of the different states of the underlying stack and their impact on your app are more complex than what you will find in the emulator. For test purposes, you definitely should reduce the complexity of your multi-threaded environment. The correct approach for the architecture of your app (perhaps more complicated than need be?), but a candidate to cause trouble if you do not fully understand the dynamics of the underlying communications stack (emulator vs. the real thing). On Nov 25, 5:43 am, joshv [EMAIL PROTECTED] wrote: I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example: http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at
[android-developers] Re: Flaky network connections
Tom, see upstream - it works fine for me now when I launch the polling thread from the UI thread. I was launching it from the constructor of another class, and for some reason this causes issues. It's quite reproducible. If I launch the polling thread from the UI thread it works. If I go back to launching it in the constructor it goes back to being very unreliable. I assume your example below is being called directly in the UI thread as you are updating UI objects directly. On Nov 25, 9:15 am, Tom Gibara [EMAIL PROTECTED] wrote: I just spent a minute knocking out a test case over a cup of tea. Seems to work fine for me on WIFI, GPRS, and 3G. Tom. void testConnection() { TextView view = (TextView) findViewById(R.id.message); HttpURLConnection conn = null; try { URL url = new URL(http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2;); conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(GET); conn.connect(); Reader reader = new InputStreamReader( conn.getInputStream() ); StringWriter writer = new StringWriter(); for (int c = reader.read(); c = 0; c = reader.read()) writer.write(c); view.setText(writer.toString()); } catch (IOException e) { Log.e(test, connection test failed, e); } finally { if (conn != null) conn.disconnect(); } } 2008/11/25 joshv [EMAIL PROTECTED] I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example: http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Flaky network connections
Yes, it's on the UI thread. I still think the balance of probabilities is a bug in your code. As far as I know, permissions are assigned on a app-process basis. And what's the likelihood of some unspecified change causing the problems, versus a race condition in your code triggered by a difference in speed between the emulator and the phone? Produce a tidy test case and report an issue, then everyone can find out it's a bug in the Android framework. Until then I think we have to assume its your bug. Tom. 2008/11/25 joshv [EMAIL PROTECTED] Tom, see upstream - it works fine for me now when I launch the polling thread from the UI thread. I was launching it from the constructor of another class, and for some reason this causes issues. It's quite reproducible. If I launch the polling thread from the UI thread it works. If I go back to launching it in the constructor it goes back to being very unreliable. I assume your example below is being called directly in the UI thread as you are updating UI objects directly. On Nov 25, 9:15 am, Tom Gibara [EMAIL PROTECTED] wrote: I just spent a minute knocking out a test case over a cup of tea. Seems to work fine for me on WIFI, GPRS, and 3G. Tom. void testConnection() { TextView view = (TextView) findViewById(R.id.message); HttpURLConnection conn = null; try { URL url = new URL( http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2;); conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(GET); conn.connect(); Reader reader = new InputStreamReader( conn.getInputStream() ); StringWriter writer = new StringWriter(); for (int c = reader.read(); c = 0; c = reader.read()) writer.write(c); view.setText(writer.toString()); } catch (IOException e) { Log.e(test, connection test failed, e); } finally { if (conn != null) conn.disconnect(); } } 2008/11/25 joshv [EMAIL PROTECTED] I can disclose the URL, it's publicly available and always up - yahoo finance csv stock price download. For example: http://finance.yahoo.com/d/quotes.csv?s=GOOG+Tf=sl1c1p2 It doesn't get much more highly available than this. I could test other URLs, but as I have mentionned before, the exact same code, with the exact same URL runs marvelously in the emulator, so I very much doubt it has anything to do with the URL. It's also not specific to wi-fi on the handset. I get the same behavior when I disable wi-fi and use only 3G. It would take me a bit of work to create a reproducible snippet, no proprietary concerns - just space. The code snippet I've already posted is simply running in another thread spawned by the UI thread. If I get some time I will try to work on a self-contained demo that reproduces the problem on my handset. On Nov 25, 7:02 am, Mark Murphy [EMAIL PROTECTED] wrote: joshvwrote: I am really starting to think that there is something wrong with my handset. I certainly have no problem with transient disconnects and such resulting from moving from cell to cell, or from 3G to wifi, or edge to 3G - but I am sitting 3 feet from a very stable access point. Here's my recommendation on how to proceed: First, create a separate really simple application that uses your current techniques (URLConnection or HTTPComponents) to access a Web site. Retrieve a Web page that is a no-brainer always-gonna-work-for-everyone page, particularly one that is OK for you to disclose. If this gives you the same symptoms as you're experiencing in your main application, post the manifest, layout, and activity source code, so some of us can try it and see if we get problems on our devices. If, however, this simplified example works just fine, start to slowly convert it to look more like what's giving you problems (e.g., switch to the actual Web page you're trying to hit instead), and see where the problems creep in. At the point when you start getting problems again, if your test code is still safe for public release (e.g., no proprietary information), post the manifest, layout, and activity source code, so some of us can try it out and see if we get the same problems. Going all the way back to your original post, the snippet of source you provided doesn't seem problematic (other than I'm a fan of HTTPComponents over URLConnection), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml
[android-developers] Re: Call JavaScript functions in the WebKit?
On Tue, Nov 25, 2008 at 4:44 AM, Mark Murphy [EMAIL PROTECTED] wrote: David Orriss Jr wrote: I need to call a JavaScript function in a page in a webkit view and get a return value. Possible? Suggestions? I don't think you can get a result directly from calling loadUrl(javascript:yourfunctionhere()) on a WebView. However, you *could*: 1. Add a callback via addJavascriptInterface() 2. Have your Javascript function call that callback with your result 3. Call the Javascript function as described above On the plus side, this probably works. On the minus side, it requires a change, or at least a wrapper, for the Javascript function to use the callback. Hi Mark, Y'know I did some digging after posting this and came to this exact same conclusion. Thanks for verifying what I thought was the case. I'll tinker around and see if it works. I'll let the list know what I find. Thanks. And happy holidays -- David Orriss Jr. My blog: http://www.codethought.com/blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: another new return of findViewById???
You probably want to use android:configChanges=orientation| keyboardHidden. Also, where in your manifest did you put this? It's a parameter of the activity section. And it works when I do it :) - michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Sending a message from Service to Activity
Ah, found that part of the API demo now, must've learned binding from a different tutorial. Sorry for asking a dumb question :x On Nov 24, 9:02 pm, Mark K [EMAIL PROTECTED] wrote: You need to set up the aidl as you have to connect to the service as you have, you then need to register a seperate call back interface with the service, and implement that interface in your activity, the API demos has an example of this, under remote service. I have successfully set up two way communication for an activity and service using a callback interface, so it can be done. M On Nov 24, 11:29 am, Dianne Hackborn [EMAIL PROTECTED] wrote: Also for most people just writing their own service for use with their own app, the service and activity are always running in the same process, so you can just use the LocalService API demo and get a direct pointer to the service object and call back and forth between them however you want. On Mon, Nov 24, 2008 at 8:42 AM, Jeff Smith [EMAIL PROTECTED]wrote: Have you looked at RemoteService.java and RemoteServiceBinding.java in the APIDemos project that comes as a sample with the SDK? I believe these are using remote callbacks to achieve the result it seems you are looking for. -Original Message- From: android-developers@googlegroups.com [mailto: [EMAIL PROTECTED] On Behalf Of G Sent: Monday, November 24, 2008 9:50 AM To: Android Developers Subject: [android-developers] Sending a message from Service to Activity After a long working weekend I finally have a grasp on how activities bind to services (as well as how services outlive the activities that started them). But it seems that through binding, the communication is only 1-way (Activity - Service). How can my service notify my activity of something? Do I need to define a BroadcastReceiver and sendBroadcast() from my service or is there an easier way to do it while the Service and Activity are binded? (This is a Remote Service btw, and if you're going to tell me to use a Handler, please please please include a link to a tutorial or some good sample code, cause I can't seem to find any) Thanks in advance :) -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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.- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android J2ME project
This is a produce from our company. On 11/24/08, Jayabharath B [EMAIL PROTECTED] wrote: Hi Dana, *J2ME Runner* is part of Android later platforms or is it a product from your company? Cheers On Thu, Nov 13, 2008 at 10:47 PM, Dana Li [EMAIL PROTECTED] wrote: We have a product called J2ME Runner which allows any j2me application to run in android directly without code change What is the url to your j2me ? Thanks, Dana Li On 11/11/08, David Given [EMAIL PROTECTED] wrote: brownbear wrote: [...] I'm a new member of this group a newbie in google android j2me. Unfortunately Android doesn't actually support J2ME --- it's J2SE more than anything else. You're unlikely to be able to use any existing J2ME code. The documentation is excellent; try the 'getting started' pages on the left: http://code.google.com/android/documentation.html -- David Given [EMAIL PROTECTED] -- Thanks! Jay. -- Dana --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to put a dialog box to another activity's foreground?
Anyone? On Nov 24, 5:29 pm, android dev [EMAIL PROTECTED] wrote: Hi, I have an activity which listens to certain event from another application. In onReceive, I fire a dialog box. How do I get the dialog box to appear on top of the other application? What's happening is that the dialog box does not appear while the other application still running. But as soon as I close the other application, it goes back to my activity, and the dialog box stays there. Do I need to convert the activity to a service? Thanks, J --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ADB via USB
http://forum.xda-developers.com/showthread.php?p=2918876 On Oct 24, 2:06 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah. I'm wating for a x64 driver myself :-\ On Oct 23, 12:28 pm, Declan Shanaghy [EMAIL PROTECTED] wrote: But is the driver x64 compatible? -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of plusminus Sent: Thursday, October 23, 2008 8:57 AM To: Android Developers Subject: ***SPAM*** [android-developers] Re: ADB via USB Btw: I've compiled a list of steps to debug on Windows(Vista) with a Driver-Download: http://href.to/Jo5 Regards, plusminushttp://anddev.org # Worlds largest Android Development Community / Tutorials On 23 Okt., 11:48, Ed Burnette [EMAIL PROTECTED] wrote: I see the doc has been changed to say Windows (32-bit only). I tried it on a Win32 (XP) machine and it worked fine. Any tips on how to port the driver to Win64? On Oct 22, 4:20 pm, Ed Burnette [EMAIL PROTECTED] wrote: It's not working for me. The device driver won't install, and I get this error from Vista64: Description: Windows detected a new device attached to your computer, but could not find the driver software it needs to make the device usable. Each device manufacturer typically includes driver software of a CD that comes with the device, or as a download from its website. The hardware ID of your device is USB\VID_0BB4PID_0C02REV_0100MI_01. Problem signature: Problem Event Name: PnPDriverNotFound Architecture: x64 Hardware Id: USB\VID_0BB4PID_0C02REV_0100MI_01 OS Version: 6.0.6001.2.1.0.256.4 Locale ID: 1033 On Oct 22, 3:03 pm, Xavier Ducrohet [EMAIL PROTECTED] wrote: Hi Mark, We just updated the doc regarding developing on devices, for all platforms. http://code.google.com/android/intro/develop-and-debug.html#developin... Xav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can I get the Contact Pointer of Google(Android) blow Issue
Hi! My name is Hunt Bae from Korea Telematics Business Association (KOTBA: http://www.kotba.org) which was established to promote telematics market in Korea with Gov't (Ministry of Knowledge Economy)and private sectors in Korea. The reason I am writing this Post to you is that since we have 55 members who are leading telematics market in Korea such as Mobile operator, Car OEM(Hyundai Motor) and several device manufacturers (SamSung and LG), we would like to ask you for a few thing to cooperate. 1. We would like to propose if we can work on platform “Android” for car device. 2. We have established “AIIC-Automotive Information Innovation Center” with Microsoft, Hyundai Motor and IITA(Institute for information Technology Advancement) that we would like to join this work or apply your platform to this center if possible) I know this very sudden and informal way to approach but I would like to who to contact and what to do o process this with google. Thank you very much for your time and hope to hearing from you soon. Best Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] subscribe
--~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] OSGi Enterprise OSGi under Android
Hello, I would like to ask about any ideas about using of OSGi and Enterprise OSGi as primary Software architecture for Android applications. As you know OSGi is very popular in GSM Devices and it will be very helpful if Android natevliy support OSGi. Regards, Miro. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fw: [android-developers] Re: Android and bluetooth
Any idea when a version with BT support will be released? I need to choose a mobile platform for a project and BT support is required. On 24 nov, 13:45, Mark Murphy [EMAIL PROTECTED] wrote: Android geek wrote: That means, I will have to forget BT until the next release of SDK? You have two choices: 1. Work with the core Android team, over onhttp://source.android.com, to add greater BT support. 2. Wait until that work gets done by somebody else. In either case, to use it in an SDK-level application (versus in the firmware), you will most likely need to wait until the next release of the SDK. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Anyone looking at Cell Broadcast on the G1?
OK but, how to enable this feature on Android? Regards Mauricio On Oct 29, 10:55 pm, Rob Franz [EMAIL PROTECTED] wrote: Cell Broadcast is enabled/disabled by the network operator - T-Mobile here in US doesn't enable it. I don't believe ATT Mobility does either... On Wed, Oct 29, 2008 at 8:28 PM, Selmi [EMAIL PROTECTED] wrote: can anyone who owns g1 confirm it works? because it doesn't work on treo, as far as i know it doesnt work on iphone, so i am a bit afraid in fact no usa-made phone i had experience with supports it :( and if its not supported i will rather keep my old phone and forget about upgrading On 30. Okt, 00:15 h., CyberchuckTX [EMAIL PROTECTED] wrote: Hello: Is anyone looking at the Cell Broadcast capability (if any) of the G1? Mandatory Wikipedia entry on Cell Broadcasthttp:// en.wikipedia.org/wiki/Cell_Broadcast Cell Broadcast Forum Note: cell broadcast is NOT SMS (text messaging). It is a location- aware/specific broadcast mechanism built in to most modern GSM phones. And it is *not* in wide use around the world (yet).- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Webkit - prevent reload of page when screen is popped out..?
look at WebViewDemo On Nov 23, 1:08 pm, David Orriss Jr [EMAIL PROTECTED] wrote: Hi, I have an app using the WebKit that I'm developing. In my onCreate() method I'm loading my page: browser = (WebView) findViewById(R.id.webkit); browser.getSettings().setJavaScriptEnabled(true); browser.loadUrl(file:///android_asset/mystuff.html); However, this fires off when the keyboard is popped out. What do I need to do in order to have the browser only load on the initial start of the app and not do a complete reload of the page when the orientation is changed? -- David Orriss Jr. My blog:http://www.codethought.com/blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android htc touch HD
Hi, You should look there http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux and in this related thread on their forum http://forum.xda-developers.com/showthread.php?t=402002 Pierre 2008/11/24 Josh Joy [EMAIL PROTECTED] Hi, Was wondering if anyone was working on putting android on the htc touch HD? If there are any efforts, I would be willing to help out. Thanks, Josh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android.opengl.Matrix
Can someone explain to me why android.opengl.Matrix is implemented using floats and not fixed numbers? Am I right in thinking this is a big performance hit? Is there an alternative version or do I need to write my own? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Editing the incoming call dialog
Can anyone offer some advice on how I can add/replace text on the dialog displayed when an incoming call is ringing? I guess I need a way to get a handle on the view. Thanks Rich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android SW development request
Dear All, we are UK-based transnational group developing and marketing mobile phones. Our main RD centre is based in Moscow, Russia. As we have interest to develop Android-based mobile phone novelty, please advise your terms of its S/W and apps development. Looking forward to your reply, Sincerely, Dmitry Tsoy Meridian Group Moscow Product Dev. Planning DEPT PM [EMAIL PROTECTED] M: + 7.926.036 5534|T: +7.495.780 5136 X 321|F: +7.495.956 6849 Skype: tsoy88| MSN: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Building and running OpenCORE test framework
Hi, I want to build and run the OpenCORE test framework. Can someone please guide me for 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] a softwares which makes music by shaking your cell phone ........download now
get it here www.2createaweb.blogspot.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Download Service
I was wondering if there is a reusable Android Download service, e.g. like the one used by Android Market to download a file to a certain folder. e.g. You would be able to create a download intent, passing extras for the sourceUrl, destinationFolder and an intent to be called when the file has been downloaded. I'm guessing I can (try) and implement my own service to do this, but it would be nice if there was a standard download service that everyone could use. Regards lummie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android J2ME project
Ohh!! OK. Thanks On Tue, Nov 25, 2008 at 10:45 AM, Dana Li [EMAIL PROTECTED] wrote: This is a produce from our company. On 11/24/08, Jayabharath B [EMAIL PROTECTED] wrote: Hi Dana, *J2ME Runner* is part of Android later platforms or is it a product from your company? Cheers On Thu, Nov 13, 2008 at 10:47 PM, Dana Li [EMAIL PROTECTED] wrote: We have a product called J2ME Runner which allows any j2me application to run in android directly without code change What is the url to your j2me ? Thanks, Dana Li On 11/11/08, David Given [EMAIL PROTECTED] wrote: brownbear wrote: [...] I'm a new member of this group a newbie in google android j2me. Unfortunately Android doesn't actually support J2ME --- it's J2SE more than anything else. You're unlikely to be able to use any existing J2ME code. The documentation is excellent; try the 'getting started' pages on the left: http://code.google.com/android/documentation.html -- David Given [EMAIL PROTECTED] -- Thanks! Jay. -- Thanks! Jay. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ACTION_VIEW uri.parse options (System Settings)
Ok, If I create a new intent like this: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(market:// search?q=pname:com.android.MY_PACKAGE_NAME)); It launches the market. A couple of questions: -Where is this Market:// uri intent documented? (I can't seem to find it.) -What would I use to send the user directly to the system settings. (Location and Security) Thanks, Josh Beck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Call JavaScript functions in the WebKit?
yes look at the WebViewDemo On Nov 24, 9:46 pm, David Orriss Jr [EMAIL PROTECTED] wrote: I need to call a JavaScript function in a page in a webkit view and get a return value. Possible? Suggestions? -- David Orriss Jr. My blog:http://www.codethought.com/blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android on Motorola A810...
Hello ALL, Can Android be ported on Motorola A810? Has anyone done this? A little I have come to know that Android was ported on Motorola Ming A1200, the predecessor of Motorola A810. Regards, - sam. Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Plz help me getting solution for the below problem
Hi All, I am beginner to android development , it would be helpful if some one care to provide follwing solutions 1. Example application which can send and recieve chunk data across the data network(GPRS) and display the recieved data on the UI. 2. Procedure to configure android emulator in order to enable it to connect it to internet ( enabling browser to connect to internet ). Thanks and regards Suhail --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Validate preferences and save multiple changes at the end of a group of edits
I am very impressed with the shared preferences framework within Android and the ability to specify preferences in an XML file. However, I would like to perform validation on preferences, particularly on preferences within a child preference screen. Is this possible and if so is there a standard way of displaying an error message to the user? I am also hoping to group any changes made within the child preference screen and save them all at once. Is this possible? The reason for doing it this way is that the preferences are all related and when they are changed this sets into motion a series of events within my application. If each change the user makes is saved straight away then the events will be triggered multiple times because I am using a preferences listener to pick up the changes. Many thanks, Charles --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] FLAG_ONEWAY for asynchronous communication between services
Hi, for research reasons I want to study the possibility for asynchronous communication between services in Android. Currently I'm using the FLAG_ONEWAY option in the AIDL interface of the services. What I see is that the asynchronous commmunication works fine when the services are implemented in different APKs. If the services are implemented in the same APK, they communicate synchronous although I have defined them with the attribute android:process=:remote and I've used the FLAG_ONEWAY option. Can anybody explain me why that happens? Is it possible for two services to communicate asynchronously with each other through AIDL interfaces using the FLAG_ONEWAY option? Best wishes, Vladimir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Calling youtube from Android
Hi davidsparks, Can I get the drawable icon of youtube app from another app? I want to offer youtube service when user click this icon. Is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Download Service
The download code that is used by the Android Market (and a few other system apps) is here: http://android.git.kernel.org/?p=platform/packages/providers/DownloadProvider.git;a=summary= Its primary interface to initiate downloads actually uses a content provider, not intents (though I have thought about adding an intent-based interface). For a variety of reasons, it can only be used for system applications (and it would take a fair bit of effort to fix that, though I'd like to see it eventually happen). Unfortunately, the code as it is doesn't compile with the SDK, because it uses APIs that aren't public at this point. You can still use it for inspiration, and of someone wants to make it SDK-compilable, please hop over to the android-framework mailing list and we'll discuss the details. JBQ (who wrote the download provider) On Tue, Nov 25, 2008 at 9:25 AM, lummie [EMAIL PROTECTED] wrote: I was wondering if there is a reusable Android Download service, e.g. like the one used by Android Market to download a file to a certain folder. e.g. You would be able to create a download intent, passing extras for the sourceUrl, destinationFolder and an intent to be called when the file has been downloaded. I'm guessing I can (try) and implement my own service to do this, but it would be nice if there was a standard download service that everyone could use. Regards lummie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android SW development request
Try reading stuff on http://code.google.com/android/documentation.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Plz help me getting solution for the below problem
#2 happens by default, there's no special configuration. As for #1, what is chunk data? Most networking operations in Android are done the same as in Java, with the Socket library. For displaying data, why not look at the example applications included in the source code, as well as the tutorial? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Require Source code of tools
The source for the entire project is at source.android.com. On Nov 25, 1:22 am, Amit [EMAIL PROTECTED] wrote: Hello friends, Can u please tell me where can i get the source code of tools provided in sdk. I need source code of DDMS and traceview. Any help appreciated. Thanks Amit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Editing the incoming call dialog
Sorry, you can't do this with the SDK. On Tue, Nov 25, 2008 at 4:00 AM, Rich [EMAIL PROTECTED] wrote: Can anyone offer some advice on how I can add/replace text on the dialog displayed when an incoming call is ringing? I guess I need a way to get a handle on the view. Thanks Rich -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Recorder Audio
Dave, But how about the codec, which is the kbps/sec rate? in AMR_NB there is a lot...thanks Breno On Nov 7, 1:01 am, Dave [EMAIL PROTECTED] wrote: Audio recording support is a bit rough in 1.0. The AMR-NB file format is described here: http://www.ietf.org/rfc/rfc3267.txt It's just a simple header appended to the raw AMR stream. On Nov 4, 1:55 am, mesak82 [EMAIL PROTECTED] wrote: I'm using Sound Recorder application and after recording I cannot see that audio in the playback list in Music application, but it's on the SD card. Sound Recorder also stores recorded audio in raw format? Is it expected not to see the recorded file in playback lists? Rgrds, Misa if u are just receiving the data from recorder and storing it in raw format it wont play; requires other magic headers to be placed for .amrfile format; On Oct 28, 10:49 pm, gs_cmans [EMAIL PROTECTED] wrote: But the music media in Android can't play this format? try save it as .3GPP and play it. if u are just receiving the data from recorder and storing it in raw format it wont play; requires other magic headers to be placed for .amrfile format; refer IF2 documentation -g On Sep 22, 9:50 am, ZIN [EMAIL PROTECTED] wrote: I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only format audio recorder type is .AMR But the music media in Android can't play this format? What can i solve this problem?- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android htc touch HD
Hi, this kind of discussion should be on the android-porting list, thanks. On Mon, Nov 24, 2008 at 1:20 PM, Josh Joy [EMAIL PROTECTED] wrote: Hi, Was wondering if anyone was working on putting android on the htc touch HD? If there are any efforts, I would be willing to help out. Thanks, Josh -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android on Motorola A810...
Questions about porting Android should be on the android-porting list, thanks! On Mon, Nov 24, 2008 at 10:42 PM, Sam Android [EMAIL PROTECTED] wrote: Hello ALL, Can Android be ported on Motorola A810? Has anyone done this? A little I have come to know that Android was ported on Motorola Ming A1200, the predecessor of Motorola A810. Regards, - sam. -- Add more friends to your messenger and enjoy! Invite them now.http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/ -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: FLAG_ONEWAY for asynchronous communication between services
A oneway interface currently only applies when an IPC is needed to go through the interface -- that is when the callee and caller are running in different processes -- and is handled by Binder, the low-level IPC transport. When two interfaces are in the same process, calls on them are just direct function calls into the other object, so there is no way to introduce asynchronicity. I'd like to do the user-space work to allow for async local interfaces, but don't know when that may happen. In the meantime, what we generally do is use a Handler on the receiving side to schedule the work in another thread so that all calls into the object are async. On Tue, Nov 25, 2008 at 4:20 AM, nimbus83 [EMAIL PROTECTED] wrote: Hi, for research reasons I want to study the possibility for asynchronous communication between services in Android. Currently I'm using the FLAG_ONEWAY option in the AIDL interface of the services. What I see is that the asynchronous commmunication works fine when the services are implemented in different APKs. If the services are implemented in the same APK, they communicate synchronous although I have defined them with the attribute android:process=:remote and I've used the FLAG_ONEWAY option. Can anybody explain me why that happens? Is it possible for two services to communicate asynchronously with each other through AIDL interfaces using the FLAG_ONEWAY option? Best wishes, Vladimir -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] contextmenu getselectedtestid
How do u the row id or position of a listactiviy when using a context menu. It always seems to always select 0 for the row id. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to obtain meda-data (like bit rate) from audio files ?
The metadata retriever currently doesn't support that level of detail. On Nov 24, 12:09 pm, AP08 [EMAIL PROTECTED] wrote: I checked android.provider.MediaStore.Audio.Media, but it can provide only limited data about audio file. I want to obtain data such as bit- rate, how do I get that ? thanks, AP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I get the Contact Pointer of Google(Android) blow Issue
There is no need to get in contact with Google, Android is a fully open-source platform and you can get the source and start working with it: http://source.android.com/ On Mon, Nov 24, 2008 at 10:49 PM, Hunt Bae [EMAIL PROTECTED] wrote: Hi! My name is Hunt Bae from Korea Telematics Business Association (KOTBA: http://www.kotba.org) which was established to promote telematics market in Korea with Gov't (Ministry of Knowledge Economy)and private sectors in Korea. The reason I am writing this Post to you is that since we have 55 members who are leading telematics market in Korea such as Mobile operator, Car OEM(Hyundai Motor) and several device manufacturers (SamSung and LG), we would like to ask you for a few thing to cooperate. 1. We would like to propose if we can work on platform Android for car device. 2. We have established AIIC-Automotive Information Innovation Center with Microsoft, Hyundai Motor and IITA(Institute for information Technology Advancement) that we would like to join this work or apply your platform to this center if possible) I know this very sudden and informal way to approach but I would like to who to contact and what to do o process this with google. Thank you very much for your time and hope to hearing from you soon. Best Regards, -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] CacheManager.CacheResult
Has anyone been able to create a valid CacheResult object manually? I am using UrlInterceptHandler to return custom cached html pages. The instance variables of CacheManager.CacheResult are accessible within the android.webkit package only. And as far as I can tell there is no way to set the mimeType of a CacheResult object. I went through the code from the Android Open Source Project and it looks like the android webkit caching code accesses the instance variable directly rather than through the getters. So I could not even use a custom CacheResult object. Has anyone been able to use UrlInterceptHandler successfully? I also saw that there is a method call CacheManager.createCacheFile but it is not available in the Android 1.0 r1 sdk.Will this be available soon? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Notification details Activity never receives Intent used to fire it
It may or may not be the right thing to do. If you are not going to use the old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the existing one so it can be replaced with your new one. On Tue, Nov 25, 2008 at 12:29 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: Yes using request codes is the right thing to do, this is just a documentation bug in the end. 2008/11/25 alex [EMAIL PROTECTED] Ok, so I ran into this exact issue too. I need to send different data via the extras of the intent, but the old intent with the old extras keeps getting delivered unless I pass unique values into the mysterious requestCode parameter. So this begs the question: is using the requestCode in this way kosher? Is there a better way? BTW, I'm using PendingIntents for alarms and notifications. On Nov 21, 2:47 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: Thanks for your answer, it eventually solves the mystery \o/ I quoted it in the Issue 863. http://code.google.com/p/android/issues/detail?id=863 On 21 nov, 23:38, Dianne Hackborn [EMAIL PROTECTED] wrote: Ah you are right, the request code is also part of its identity. For the nitty gritty details, this file defines a PendingIntent maintained by the system and the full key used to match them: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;. .. On Fri, Nov 21, 2008 at 3:07 AM, Matthias [EMAIL PROTECTED] wrote: And to further clear up my intentions: I have a model class called Event. It represents user activity in my system (such as rating items or writing messages). These events are delivered to the user through NotificationManager. For every such event, the NM calls Event.toNotification() and delivers the notification. Furthermore, I have an activity called EventDetailsActivity. This is triggered whenever the user taps on the notification to read the event info in full length. This implies primarily two things: 1. I must be able to pass an Event model object to EventDetailsActivity whenever the user taps the corresponding notification 2. I must be able to reuse EventDetailsActivity even it is already displaying another event (e.g. update it via onNewIntent()) Thus, in Event.toNotification(), I do this: public final Notification toNotification(Context context) { Intent intent = new Intent(context, EventDetailsActivity.class); intent.putExtra(event, this); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP); configureIntent(intent); // template method for subclasses PendingIntent contentIntent = PendingIntent.getActivity (context, requestCode++, intent, 0); Notification notification = new Notification (getNotificationIcon(), getTickerText(), getDate().getTime()); notification.setLatestEventInfo(context, getTitle(), getText (), contentIntent); return notification; } Hope that clears up my intentions. On 21 Nov., 11:14, Matthias [EMAIL PROTECTED] wrote: Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each time I called it (I checked the OID in the debugger), and in this new object, I always store a new Intent object. As Guillaume suggested, I solved the problem by calling getActivity() like this: private static int requestCode; ... pi = PendingIntent.getActivity(context, requestCode++, intent, 0) and now everything works as expected. As for the intent itself, I instantiated it using FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_SINGLE_TOP. On 20 Nov., 22:55, Dianne Hackborn [EMAIL PROTECTED] wrote: I am really not clear on exactly what you are doing or expecting, but one thing to watch out for -- when you get a PendingIntent, if there is already a PendingIntent matching the Intent you have been given (NOT including the extras), then you get that PendingIntent, NOT a new one. So if you want to change the extras you will either need to cancel the existing one, or modify something in the action, type, data, or category so that it doesn't match the existing one. This is covered (not very well) in the last paragraph of the PendingIntent documentation: http://code.google.com/android/reference/android/app/PendingIntent.html On Thu, Nov 20, 2008 at 8:38 AM, Matthias [EMAIL PROTECTED] wrote: This gets weirder every minute. Just out of curiosity I just called setIntent(null) in onPause() to make sure the Intent the Activity was started with is always reset. As soon as I start the Activity again
[android-developers] Re: can we assure that Application#onCreate always runs before the Provier#onCreate and Activity#onCreate
I wouldn't count on one or the other. For your problem, just have a global singleton for accessing the data, and retrieve that everywhere you need it. The first one who gets it will initialize it. On Mon, Nov 24, 2008 at 9:16 PM, magicpig [EMAIL PROTECTED] wrote: Hi, I have a AndroidManifest.xml: application . activity /activity provider... provider... /application I guess the Application#onCreate always runs first. But during some experiments, Provider#onCreate may run before Application#onCreate. I want to find a place that can read the meta-data from AndroidManifest.xml that will be used for the whole application and I put it in Application#onCreate. During my experiment... I am afraid I have made a mistake. Any one can tell me where is the right place, the first will read the meta-data before all the onCreates run. Thanks a lot. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Launch browser issue. Is this a bug for 1.0?
Hard to say without a stack crawl or anything. On Mon, Nov 24, 2008 at 11:10 PM, 3D [EMAIL PROTECTED] wrote: On Sep 29, 9:37 pm, april [EMAIL PROTECTED] wrote: url=http://www.google.com;; Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse(url)); startActivity(i); I've been developing with SDK 0.9 and I haven't updated to 1.0 yet. I have this same code (above) and it works just fine on my emulator (SDK 0.9) but when I run it on a G1 it crashes when this Intent is started. Any idea why thats happening? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ACTION_VIEW uri.parse options (System Settings)
On Tue, Nov 25, 2008 at 9:29 AM, joshbeck [EMAIL PROTECTED] wrote: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(market:// search?q=pname:com.android.MY_PACKAGE_NAME)); It launches the market. A couple of questions: -Where is this Market:// uri intent documented? (I can't seem to find it.) Probably nowhere. In fact I didn't know about it, and that is a really bad name to have chosen for a scheme; there probably shouldn't be a scheme at all. :( -What would I use to send the user directly to the system settings. (Location and Security) http://code.google.com/android/reference/android/provider/Settings.html -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to put a dialog box to another activity's foreground?
This is working as intended, please don't try to work around it. Popping dialogs up on the user from outside of where they are currently working is an ugly thing to do. If you need to get the user's attention from outside of your application, the notification manager is the recommended solution. On Mon, Nov 24, 2008 at 5:29 PM, android dev [EMAIL PROTECTED]wrote: Hi, I have an activity which listens to certain event from another application. In onReceive, I fire a dialog box. How do I get the dialog box to appear on top of the other application? What's happening is that the dialog box does not appear while the other application still running. But as soon as I close the other application, it goes back to my activity, and the dialog box stays there. Do I need to convert the activity to a service? Thanks, J -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: can we assure that Application#onCreate always runs before the Provier#onCreate and Activity#onCreate
Thanks. Can we assure application#OnCreate run before activity#onCreate ? On Nov 25, 10:25 am, Dianne Hackborn [EMAIL PROTECTED] wrote: I wouldn't count on one or the other. For your problem, just have a global singleton for accessing the data, and retrieve that everywhere you need it. The first one who gets it will initialize it. On Mon, Nov 24, 2008 at 9:16 PM, magicpig [EMAIL PROTECTED] wrote: Hi, I have a AndroidManifest.xml: application . activity /activity provider... provider... /application I guess the Application#onCreate always runs first. But during some experiments, Provider#onCreate may run before Application#onCreate. I want to find a place that can read the meta-data from AndroidManifest.xml that will be used for the whole application and I put it in Application#onCreate. During my experiment... I am afraid I have made a mistake. Any one can tell me where is the right place, the first will read the meta-data before all the onCreates run. Thanks a lot. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView selection highlight size
Have you tried setting your own list selector via android:listSelector or setSelector(int)? Hmm, when I read documentation first time I thought that it is a kind of an icon (checkbox or smth else) I can use in addition to the selection. Now, I played with it a little bit, and I guess that's what I need (I also need a designer :) who can read about Draw 9-patch and create a selector image similar to the native Android one, but smaller). It completely replaces selector. However, I'm disappointed that Android doesn't support all list item sizes (available via TextAppearance styles) natively. :( I use standard (non-custom) components with standard styles and have to create custom selector to make it look consistent. Thanks for your help, 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: HTTP compression lost when using 3G connection
Thanks. I ran the test in the emulator, and the http compression was kept. So this does indeed seem to be a problem being caused by a proxy at T-Mobile. Not to be overly dramatic, but isn't this a pretty serious issue? I would think that under 3G, T-Mobile would very much want us all to be using HTTP compression so that we don't flood their network. Even on my home broadband connection, when I turn off http compression in my browser to do testing work, most websites load much more slowly, especially with the massive css/js files being transmitted these days. Something else that may or may not be related: I noticed that the T-Mobile proxy is also converting my http request to a HTTP 1.0 request, whereas I am actually trying to send a HTTP 1.1 request. David Turner wrote: The best way to test this is try to run your test from the emulator, since the browser wouldn't then use an intermediate T-Mobile proxy. On Tue, Nov 25, 2008 at 12:27 AM, melody [EMAIL PROTECTED] wrote: I've been working on improving the speed of my application and noticed that when I turn off wifi and use the 3G connection, http requests no longer use http compression. Specifically, when using the 3G connection, the Accept-Encoding header (which I have set to gzip, deflate) are stripped off before the request arrives at my server. I tested this with the HttpClient class, and with my own custom http client through java.net.Socket. I then also verified this using the native android web browser. With wifi turned on, my server recieves a header Accept-Encoding: gzip. With wifi turned off, and using the 3G connection, my server does not receive that header. I initially thought this might be an intentional behavior as part of 3G connections, but then I tested it with a 3G iphone (on ATT), and there was no such problem there. So I'm guessing it's a problem specific to T-Mobile. i wonder if there is some proxy that is intentionally stripping out this header. I'd appreciate any advice about this. For an XML-based web service like mine where the response data has a high compression ratio, this behavior causes a significant speed hit. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: HTTP compression lost when using 3G connection
It's actually not uncommon in the cell world to turn off compression on the public Internet, so that the proxy can have an easier time looking at the data and processing it to send it over the air (where it is compressed), i.e. trading Internet bandwidth for some CPU time on the proxy. JBQ On Tue, Nov 25, 2008 at 10:53 AM, melody [EMAIL PROTECTED] wrote: Thanks. I ran the test in the emulator, and the http compression was kept. So this does indeed seem to be a problem being caused by a proxy at T-Mobile. Not to be overly dramatic, but isn't this a pretty serious issue? I would think that under 3G, T-Mobile would very much want us all to be using HTTP compression so that we don't flood their network. Even on my home broadband connection, when I turn off http compression in my browser to do testing work, most websites load much more slowly, especially with the massive css/js files being transmitted these days. Something else that may or may not be related: I noticed that the T-Mobile proxy is also converting my http request to a HTTP 1.0 request, whereas I am actually trying to send a HTTP 1.1 request. David Turner wrote: The best way to test this is try to run your test from the emulator, since the browser wouldn't then use an intermediate T-Mobile proxy. On Tue, Nov 25, 2008 at 12:27 AM, melody [EMAIL PROTECTED] wrote: I've been working on improving the speed of my application and noticed that when I turn off wifi and use the 3G connection, http requests no longer use http compression. Specifically, when using the 3G connection, the Accept-Encoding header (which I have set to gzip, deflate) are stripped off before the request arrives at my server. I tested this with the HttpClient class, and with my own custom http client through java.net.Socket. I then also verified this using the native android web browser. With wifi turned on, my server recieves a header Accept-Encoding: gzip. With wifi turned off, and using the 3G connection, my server does not receive that header. I initially thought this might be an intentional behavior as part of 3G connections, but then I tested it with a 3G iphone (on ATT), and there was no such problem there. So I'm guessing it's a problem specific to T-Mobile. i wonder if there is some proxy that is intentionally stripping out this header. I'd appreciate any advice about this. For an XML-based web service like mine where the response data has a high compression ratio, this behavior causes a significant speed hit. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.opengl.Matrix
Because your 3D world is virtual and infinite, meaning that it's not fixed at 0 to 100. Your whole world could be 0 to 1 if you wanted or -1000 to 1000. This means that you really need floats because there will be too much error if everything is rounded to the nearest whole number. Also, If you were to use ints or longs, there would be potential for overflow instead of rounding, which would be disastrous for any of the math. On Nov 25, 10:09 am, Waylon Grange [EMAIL PROTECTED] wrote: Can someone explain to me why android.opengl.Matrix is implemented using floats and not fixed numbers? Am I right in thinking this is a big performance hit? Is there an alternative version or do I need to write my own? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.opengl.Matrix
Maybe I wasn't too clear in my question but I am talking about using fixed point numbers (16.16). OpenGL has a fixed point version of almost all functions but the android.opengl.Matrix class is strictly floats. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: connection with Gdata : problem
Following the recommendation from this thread: http://markmail.org/message/2do7hlyw6ka4dat2#query:android%20HttpsUrlConnection+page:2+mid:slnqe4wtk6k77e3r+state:results I have placed some modified jars here: http://www.shanaghy.com/gdatamod/ I modified the gdata source to override the https cert verifier in the following places. com\google\gdata\client\GoogleAuthTokenFactory.java(461): HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); com\google\gdata\client\authn\oauth\OAuthHttpClient.java(43): HttpURLConnection connection = (HttpURLConnection) url.openConnection(); com\google\gdata\client\http\AuthSubUtil.java(303): HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); com\google\gdata\client\http\AuthSubUtil.java(371): HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); com\google\gdata\client\http\AuthSubUtil.java(431): HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); com\google\gdata\client\http\HttpGDataRequest.java(320): HttpURLConnection uc = (HttpURLConnection) requestUrl.openConnection(); The modified code looks like this: // Open connection HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); if ( urlConnection instanceof HttpsURLConnection ) { HttpsURLConnection ucs = (HttpsURLConnection) urlConnection; ucs.setHostnameVerifier( new X509HostnameVerifier(){ @Override public boolean verify(String arg0, SSLSession arg1) { return true; } @Override public void verify(String arg0, SSLSocket arg1) throws IOException { } @Override public void verify(String arg0, X509Certificate arg1) throws SSLException { } @Override public void verify(String arg0, String[] arg1, String[] arg2) throws SSLException { } }); } I have only tested this using PicasawebService.setUserCredentials and it passed the verification step without any problems. I have not tested this extensively and do not plan to maintain it. If you wish to use it do so at your own leisure/risk ;-P On Tue, Nov 18, 2008 at 1:44 AM, Waldo [EMAIL PROTECTED] wrote: I'm having the same problem. Apparently lots of people are, judging from searches I've done... W On Nov 3, 7:35 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello. I'm from Belgium, so, sorry for my english ;-) I'm developing an application withgdataAPI. I tried : PicasawebService myService = new PicasawebService(exampleCo- exampleApp-1);myService.setUserCredentials([EMAIL PROTECTED], password); it works fine on an J2SE application but there is an error with Android : com.google.gdata.util.AuthenticationException: Error connecting with login URI I put the INTERNET permission in manifest file but it doesn't works Can anybody help me ? thanks Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dalvik and BOOTCLASSPATH
Ahh, I see. Thanks for the heads up on that documentation. I had looked at the dexopt source and it looked like that libraries in the boot class path were restricted to being in dependency order... so that basically shoots down my idea of overriding class loading. On Nov 16, 10:26 pm, fadden [EMAIL PROTECTED] wrote: On Nov 14, 1:37 pm, Koush [EMAIL PROTECTED] wrote: From adb shell on the emulator, I am prepend theBOOTCLASSPATHto include a jar that contains an implementation of android.widget.EditText. This won't work. Generally speaking, it's not a good idea to try to change the bootstrap class path. For a full explanation, see dalvik/docs/dexopt.html in the open source tree. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dalvik and BOOTCLASSPATH
Also, I've tried just pushing a vanilla framework.jar and framework- apk.jar (as built from the source) to the emulator. This didn't work at first. I found that it was looking for EGLImpl, and then pushed lib/ libandroid_runtime.so to the phone to fix it, and though it worked, most of the applications would continue crashing? Any reason that updating all or any of the files on the emulator would keep it from running properly? I've also tried running the emulator off the resultant system.img, but that image is doesn't seem to have internet access. On Nov 16, 10:26 pm, fadden [EMAIL PROTECTED] wrote: On Nov 14, 1:37 pm, Koush [EMAIL PROTECTED] wrote: From adb shell on the emulator, I am prepend theBOOTCLASSPATHto include a jar that contains an implementation of android.widget.EditText. This won't work. Generally speaking, it's not a good idea to try to change the bootstrap class path. For a full explanation, see dalvik/docs/dexopt.html in the open source tree. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dalvik and BOOTCLASSPATH
The issue of internet access on the emulator built from the open-source tree was resolved a while back, but you need to do a clean build and wipe data for it to stick. JBQ PS: this discussion is falling on the side where it should probably continue on one of the open-source lists (e.g. android-framework) instead of using an SDK list. On Tue, Nov 25, 2008 at 11:48 AM, Koush [EMAIL PROTECTED] wrote: Also, I've tried just pushing a vanilla framework.jar and framework- apk.jar (as built from the source) to the emulator. This didn't work at first. I found that it was looking for EGLImpl, and then pushed lib/ libandroid_runtime.so to the phone to fix it, and though it worked, most of the applications would continue crashing? Any reason that updating all or any of the files on the emulator would keep it from running properly? I've also tried running the emulator off the resultant system.img, but that image is doesn't seem to have internet access. On Nov 16, 10:26 pm, fadden [EMAIL PROTECTED] wrote: On Nov 14, 1:37 pm, Koush [EMAIL PROTECTED] wrote: From adb shell on the emulator, I am prepend theBOOTCLASSPATHto include a jar that contains an implementation of android.widget.EditText. This won't work. Generally speaking, it's not a good idea to try to change the bootstrap class path. For a full explanation, see dalvik/docs/dexopt.html in the open source tree. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is it possible to add a custom link in the Share Picture Via dialog?
If you look at how the MMS App handles this: http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=blob;f=src/com/android/mms/ui/ComposeMessageActivity.java;h=b4a00709c596b5da5cefc1486924aab6bbbf63fe;hb=HEAD#l2162 This is what they do: Uri uri = (Uri)extras.getParcelable(Intent.EXTRA_STREAM); My guess is that intent.getStringExtra(android.content.Intent.EXTRA_STREAM) returns null because the value stored for that key isn't a string but a URI. I want to do the same thing in an app I'm working on, but I won't have a chance to work on it until tomorrow. :( But I'm glad that you're working through all the issues now so it should be easier for me tomorrow. :) Bill On Tue, Nov 25, 2008 at 12:46 AM, Freddy [EMAIL PROTECTED] wrote: Thank you for your response. This worked great. Do you know how I can extract the jpg data from the Intent? Looking at the intent in the debugger I don't see any data. Here's my code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Intent intent = getIntent(); String type = intent.getType (); // return image/ jpg ... that's good String stream = intent.getStringExtra (android.content.Intent.EXTRA_STREAM); // returns null ... ouch String text = intent.getStringExtra (android.content.Intent.EXTRA_TEXT); // return null Bundle extras = getIntent().getExtras(); if(extras != null) { String test = extras.getString(what goes here); // need docs for ACTION_SEND?? } The docs http://code.google.com/android/reference/android/content/Intent.html#ACTION_SEND say the data should be in the EXTRA_STREAM but it's null. Any ideas? I assume it might be stuffed in the bundle somewhere but I'm not sure how to figure out which named string to use in the extras.getString() call to find it. Is there some docs I'm overlooking or maybe something I can see in the debugger? Thanks. On Nov 24, 12:38 am, Bill Napier [EMAIL PROTECTED] wrote: Yes. Register an intent-filter for your activity that captures: action: android.intent.action.SEND category: android.intent.category.DEFAULT mimeType: image/* If you look at the AndroidManifest.xml for the Mms application in the git repo you can see an example of it. b On Sat, Nov 22, 2008 at 10:11 PM, Freddy [EMAIL PROTECTED] wrote: After taking a picture on the G1 the user is prompted with Save | Set As | Share | Delete. If Share is selected then they're taken to a Share Picture Via dialog. Currently the options Google mail and Messaging are in the dialog. I want to add a link to my program which can share the photo with a different service Is it possible to add a custom link in the Share Picture via dialog? Thanks!- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Maps API Key to run in emulator, is it necessary??
hi there, kind of confused with this, found two documentations: http://code.google.com/android/toolbox/apis/mapkey.html Stated: Because MapView gives you access to Google Maps data, you need to register with the Google Maps service and agree to the applicable Terms of Service before your MapView will be able to obtain data from Google Maps. This will apply whether you are developing your application on the emulator or preparing your application for deployment to mobile devices. http://code.google.com/android/reference/com/google/android/maps/package-descr.html Stated: In order to use a MapView in your app, you need to include the android:apiKey attribute in the MapView (or include a key in the MapView constructor). For now, just put any value there (e.g., myapikey) so, do I need it or not? Also, where can I find any sample that loads a map? App demos in the SDK dont load any... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Maps API Key to run in emulator, is it necessary??
Henry! http://www.addhen.org/blog On Tue, Nov 25, 2008 at 8:39 PM, crontabpy [EMAIL PROTECTED] wrote: hi there, kind of confused with this, found two documentations: http://code.google.com/android/toolbox/apis/mapkey.html Stated: Because MapView gives you access to Google Maps data, you need to register with the Google Maps service and agree to the applicable Terms of Service before your MapView will be able to obtain data from Google Maps. This will apply whether you are developing your application on the emulator or preparing your application for deployment to mobile devices. http://code.google.com/android/reference/com/google/android/maps/package-descr.html Stated: In order to use a MapView in your app, you need to include the android:apiKey attribute in the MapView (or include a key in the MapView constructor). For now, just put any value there (e.g., myapikey) so, do I need it or not? Also, where can I find any sample that loads a map? App demos in the SDK dont load any... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Maps API Key to run in emulator, is it necessary??
Now getting a map key is enforced so you need to get the API key from Google before you can receive data with your MapView. Henry! http://www.addhen.org/blog On Tue, Nov 25, 2008 at 8:39 PM, crontabpy [EMAIL PROTECTED] wrote: hi there, kind of confused with this, found two documentations: http://code.google.com/android/toolbox/apis/mapkey.html Stated: Because MapView gives you access to Google Maps data, you need to register with the Google Maps service and agree to the applicable Terms of Service before your MapView will be able to obtain data from Google Maps. This will apply whether you are developing your application on the emulator or preparing your application for deployment to mobile devices. http://code.google.com/android/reference/com/google/android/maps/package-descr.html Stated: In order to use a MapView in your app, you need to include the android:apiKey attribute in the MapView (or include a key in the MapView constructor). For now, just put any value there (e.g., myapikey) so, do I need it or not? Also, where can I find any sample that loads a map? App demos in the SDK dont load any... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Maps API Key to run in emulator, is it necessary??
Yes, now you need to have a real API key to use MapView. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fw: [android-developers] Re: Android and bluetooth
Bluetooth is a big category. What feature(s) do you need? On Nov 25, 1:26 am, supernova [EMAIL PROTECTED] wrote: Any idea when a version with BT support will be released? I need to choose a mobile platform for a project and BT support is required. On 24 nov, 13:45, Mark Murphy [EMAIL PROTECTED] wrote: Android geek wrote: That means, I will have to forget BT until the next release of SDK? You have two choices: 1. Work with the core Android team, over onhttp://source.android.com, to add greater BT support. 2. Wait until that work gets done by somebody else. In either case, to use it in an SDK-level application (versus in the firmware), you will most likely need to wait until the next release of the SDK. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issues: Webview.loadData() trying to load a string created from a read file(asset) and a string
Hi, Finally I created the content provider overriding the openFile method so that I can use loadUrl() but still a part of the Javascript (of the page loaded) that worked when it was loading from the web or an asset file doesn't work here. I got a WebCore error telling me there is a parsing issue!!! The content is exactly the same. Looks like the WebKit doesn't work the same whether the file is an asset, page loaded from Network or a string or a text from a file (ContentProvider solution). This problem drives me crazy! Polo On Nov 21, 4:56 pm, polo777 [EMAIL PROTECTED] wrote: I am gonna give a try and let you know. Thanks Mark! On Nov 21, 4:45 pm, Mark Murphy [EMAIL PROTECTED] wrote: polo777 wrote: After having tried to use addJavascriptInterface, I start working on the ContentProvider-based solution that you described. With this solution can I just create/open/read/delete a file in which I would store my string (javascript + html) so that I could use loadUrl or loadDataWithBaseURL properly using the url content:// blabla.provider? In theory, yes. I haven't tried it myself, though I should be giving that a shot sometime next week, I think. I've seen other posts on these lists that suggest others have it working, though it is not exactly trivial. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Streaming RTSP directly by suing MediaPlayer
The media framework does support RTSP with RTP payloads. The OpenCore code includes an RTSP/RTP client built on sockets that will handle buffering and transport controls. It does not work in the emulator environment due to some firewall issues in the emulator network layer. On Nov 24, 12:30 pm, Jona [EMAIL PROTECTED] wrote: Question: Does MediaPlayer support the following code. mp.setDataSource(rtsp://someRTSPStremingSite.com); Does it take the path of the RTSP stream and the Media Player handles the connection etc...? how would this work? Thanks! Jona --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error after creating a service
If you could include the code from your service, it would help to diagnose the problem. As far as creating the service in eclipse, it's nothing more that creating a new class that extends Service (unless you're trying to implement an interface as well). I'd suggest starting with a new project and building a very simple service from scratch (i.e. without all the code you have already included in it). See if the new simple service compiles and runs (you'll still need an activity as android wont install an app without a main activity node), then bit by bit, add your code to it, just make sure to compile and test after every significant change. On Nov 25, 4:34 pm, Brad Gies [EMAIL PROTECTED] wrote: Does anyone have a link to some step by step directions to creating a service in Eclipse (Ganymede)? I can't seem to get rid of the following error (below), and I'm not seeing what the problem is, but I'm sure it's because I haven't done something I should have :-). # # An unexpected error has been detected by Java Runtime Environment: # # Internal Error (classFileParser.cpp:2924), pid=5188, tid=5112 # Error: ShouldNotReachHere() # # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode windows-x86) # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- T H R E A D --- Current thread (0x001c6000): JavaThread Unknown thread [_thread_in_vm, id=5112, stack(0x0026,0x002b)] Stack: [0x0026,0x002b] [error occurred during error reporting (printing stack bounds), id 0xc005] --- P R O C E S S --- Java Threads: ( = current thread ) Other Threads: =0x001c6000 (exited) JavaThread Unknown thread [_thread_in_vm, id=5112, stack(0x0026,0x002b)] VM state:not at safepoint (not fully initialized) VM Mutex/Monitor currently owned by a thread: None Dynamic libraries: 0x0040 - 0x00423000 C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe 0x7c90 - 0x7c9af000 C:\WINDOWS\system32\ntdll.dll 0x7c80 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll 0x77dd - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll 0x77e7 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll 0x77fe - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll 0x7e41 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll 0x77f1 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll 0x7639 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL 0x629c - 0x629c9000 C:\WINDOWS\system32\LPK.DLL 0x74d9 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll 0x003c - 0x003db000 C:\WINDOWS\TEMP\logishrd\LVPrcInj01.dll 0x7c34 - 0x7c396000 C:\Program Files\Java\jre1.6.0_07\bin\msvcr71.dll 0x6d7c - 0x6da1 C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll 0x76b4 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll 0x6d27 - 0x6d278000 C:\Program Files\Java\jre1.6.0_07\bin\hpi.dll 0x76bf - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL 0x6d36 - 0x6d389000 C:\Program Files\Java\jre1.6.0_07\bin\jdwp.dll 0x6d6c - 0x6d6c6000 C:\Program Files\Java\jre1.6.0_07\bin\npt.dll 0x6d77 - 0x6d77c000 C:\Program Files\Java\jre1.6.0_07\bin\verify.dll 0x6d31 - 0x6d32f000 C:\Program Files\Java\jre1.6.0_07\bin\java.dll 0x6d7b - 0x6d7bf000 C:\Program Files\Java\jre1.6.0_07\bin\zip.dll VM Arguments: jvm_args: -Xbootclasspath:C:\Program Files\Android\android-sdk-windows-1.0_r1\android.jar -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:2286 java_command: com.pricebunny.client.PBService Launcher Type: SUN_STANDARD Environment Variables: PATH=C:\Program Files\Java\jre1.6.0_07\bin\client;C:\Program Files\Java\jre1.6.0_07\bin;C:\Program Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7\Projects\Bpl\;C:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\P r ogram Files\Intel\DMIX;C:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Android\android-sdk-windows-1.0_r1\tools;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ USERNAME=Tax Prep OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel --- S Y S T E M --- OS: Windows XP Build 2600 Service Pack 3 CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model
[android-developers] Re: how to remove certain SMS notifications
I would like to be able to do this as well, but I think the folks at google deemed it a security risk (which is sad because SMS-intercept capabilities could allow almost any app to support some kind of push notification in a very simple way) On Nov 24, 1:13 pm, Tughi [EMAIL PROTECTED] wrote: Hi, I have a BroadcastReceiver that fetches incoming SMSs. I need to know how can I remove/cancel the notification for a particular SMS. I found no way to list the contents of the notifications bar, and also only marking a SMS as read doesn't do the trick. Is it possible to remove a particular notification from the notification bar? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Intent variable required for onStart function
Hi, Quick question, I am running a service (code below). I have a problem with the super.onStart(intent, startId) line. The onStart call expects and Intent as paremeter. How can I get this from the context below? Thanks package com.stevemacleod.prankapp; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.IBinder; public class PrankService extends Service { MediaPlayer player = null; String str; public IBinder onBind(Intent intent) { return null; } public void onStart(int startId, Bundle arguments) { super.onStart(intent, startId); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } public void onDestroy() { super.onDestroy(); player.stop(); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent variable required for onStart function
Er... the onStart() method takes Intent as a parameter, so that is what your onStart() method should be taking. This code looks like it was from a pre-1.0 version of the platform (and whoever wrote it didn't use @Override, naughty naughty!). On Tue, Nov 25, 2008 at 3:09 PM, steve_macleod [EMAIL PROTECTED]wrote: Hi, Quick question, I am running a service (code below). I have a problem with the super.onStart(intent, startId) line. The onStart call expects and Intent as paremeter. How can I get this from the context below? Thanks package com.stevemacleod.prankapp; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.IBinder; public class PrankService extends Service { MediaPlayer player = null; String str; public IBinder onBind(Intent intent) { return null; } public void onStart(int startId, Bundle arguments) { super.onStart(intent, startId); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } public void onDestroy() { super.onDestroy(); player.stop(); } } -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame
Peter and Jeff, Thanks for each of your fantastic help, I am very close to achieving a filtered preview display as required for my project - Modification of the Android Camera Display from onPreviewFrame. Here is my current stumbling block: I can't seem to make coexist: SurfaceHolder for the camera ImageView for the filtered Bitmap to display. One must assign the Camera preview display into a SurfaceHolder in order to get preview callbacks: mCamera.setPreviewDisplay(surfaceHolder); The SurfaceHolder's Surface must be a child of the current View in order to receive surfaceCreated, surfaceChanged, and surfaceDestroyed callbacks. I have been using an ImageView object to display the Bitmap into which I am writing my decoded preview data via an int[] array. Therefore, both the SurfaceView and the ImageView seem to have to be children of the same ViewGroup, which is currently displayed. However, as soon as I add the ImageView to the ViewGroup via: linearLayout.addView(imageView); or absoluteLayout.addView(imageView); etc. My Activity stops receiving Camera preview callbacks onPreviewFrame (). LogCat indicates an AndroidRuntime ERROR: thread attach failed error. I am not sure if this is related. I have tried setting the Surface to the same size as the Camera preview size setting in the surfaceChanged callback: Camera.Parameters parameters = mCamera.getParameters(); final Size preSz = parameters.getPreviewSize(); mHolder.setFixedSize(preSz.width, preSz.height); I tried to create and manage the Surface (needed by Camera preview) outside of the SurfaceHolder callbacks using the Activity's onResume and onPause methods. I did this so that I would not have to put the SurfaceView into the active display hierarchy (i.e. remove as child of current View) so that it would not conflict with the ImageView as above. Unfortunately, this causes a Camera exception app passed NULL surface - directly after my call to: surfaceView = new SurfaceView(this); mHolder = surfaceView.getHolder(); // mHolder.addCallback(this); Do you know why I can't make the Camera's Surface and an ImageView Bitmap simultaneous members of the same active ViewGroup? Thanks again. Your generous responses help me more than you might realize. - Regards, David Manpearl On Nov 25, 12:47 am, blindfold [EMAIL PROTECTED] wrote: How come I recognize so many of these findings? ;-) 4. I believe that processing breaks down whenever I spend too much time in the onPreviewFrame function. That's what I observed too: so do the heavy duty image processing outside onPreviewFrame(), with supplementary frame skipping and subsampling as needed. Then there is no problem quitting the app either. I'd incurr an extra copy of the YUV_422 byte[] buffer from onCameraFrame into the Thread prior to processing. Yes, you need to take care of the limited data[] lifetime in onPreviewFrame(). Between this and skipping frames that overlap the frame-processing thread, this might drastically reduce the filter/display speed. I doubt that the buffer copying matters (especially when using arraycopy) as compared to the time lost in decoding the preview image (pixel-by-pixel) for lack of an Android API with a native decoding method for the preview format(s). I've looked at various offsets within each expected set of 6 bytes for each 2 pixels. For the Y (luminance) part just use the first block in data[]: the colors are not interleaved with Y; Y is in one block of bytes with offset zero in data[], with one byte per pixel. So decoding Y is easy, and identical for emulator and G1 (except for the stride due to preview image size differences: default 176x144 vs 480x320). Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent variable required for onStart function
Hi Dianne, OK Im new with this, but how do I get the initiating Intent object from the onStart function? thanks, On Nov 25, 11:43 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: Er... the onStart() method takes Intent as a parameter, so that is what your onStart() method should be taking. This code looks like it was from a pre-1.0 version of the platform (and whoever wrote it didn't use @Override, naughty naughty!). On Tue, Nov 25, 2008 at 3:09 PM, steve_macleod [EMAIL PROTECTED]wrote: Hi, Quick question, I am running a service (code below). I have a problem with the super.onStart(intent, startId) line. The onStart call expects and Intent as paremeter. How can I get this from the context below? Thanks package com.stevemacleod.prankapp; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.IBinder; public class PrankService extends Service { MediaPlayer player = null; String str; public IBinder onBind(Intent intent) { return null; } public void onStart(int startId, Bundle arguments) { super.onStart(intent, startId); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } public void onDestroy() { super.onDestroy(); player.stop(); } } -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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.- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent variable required for onStart function
Oh yeah should also say the example code im working from is in the Android Essentials book, and its quite outdated now... On Nov 25, 11:43 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: Er... the onStart() method takes Intent as a parameter, so that is what your onStart() method should be taking. This code looks like it was from a pre-1.0 version of the platform (and whoever wrote it didn't use @Override, naughty naughty!). On Tue, Nov 25, 2008 at 3:09 PM, steve_macleod [EMAIL PROTECTED]wrote: Hi, Quick question, I am running a service (code below). I have a problem with the super.onStart(intent, startId) line. The onStart call expects and Intent as paremeter. How can I get this from the context below? Thanks package com.stevemacleod.prankapp; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.IBinder; public class PrankService extends Service { MediaPlayer player = null; String str; public IBinder onBind(Intent intent) { return null; } public void onStart(int startId, Bundle arguments) { super.onStart(intent, startId); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } public void onDestroy() { super.onDestroy(); player.stop(); } } -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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.- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent variable required for onStart function
steve_macleod wrote: Hi Dianne, OK Im new with this, but how do I get the initiating Intent object from the onStart function? She's saying your onStart() callback should look like this: @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Two questions about Toast
In the code below, I added a button to the toast, but I am facing two problems. 1. The button is not clickable! onClick is not called when I click on the button. 2. If I replace Toast.LENGTH_LONG with a number 1, the toast does not stay for 10 seconds. Is it by design that you can't add any listener to the UI controls on the toast? How do you change the duration of how long the toast stays? [code] protected void showToast() { LayoutInflater vi = (Layout Inflater) getSystemService(Context...); View view = vi.inflate (R.layout, null); toast = new Toast(this); TextView tv = (TextView)view.findViewById(R.id); tv.setText(blah); toast.setView(view); toast.setDuration(Toast.LENGTH_LONG); Button button = (Button) view.findViewById(R.id); button.setOnClickListener (new Button.OnClickLIstener() { public void onClick(View v) { // do a few things here before cancel toast.cancel(); }} ); toast.show(); [/code] Thanks, J --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Querys involving more than one table of Contatcs Content Provider
jarkman wrote: I'd love to make a cursor which also included the name of the person, but as far as I know there is no way to do that with a single query. That's probably true. That is, as far as I can tell, there's no way to do a join via the content provider interface, and permissions prevent us from accessing the contacts database directly via SQL calls. I really hope somebody can prove me wrong! I will be dealing with a somewhat similar situation later this week, when I attempt to join data from a ContentProvider and a SQLite database. Since what I want in the end is a Cursor, the approach I am trying is to use a custom CursorWrapper subclass. It will get handed the Cursor from the ContentProvider and will fold in the data from the SQLite database on demand as the relevant values are requested. Caching gets a mite tricky (gotta remember to flush the cache on requery(), for example), but I see no reason it won't work. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Two questions about Toast
1. The button is not clickable! onClick is not called when I click on the button. Toasts are meant only to display information, they are not meant for user interaction. Use a dialog to do this. 2. If I replace Toast.LENGTH_LONG with a number 1, the toast does not stay for 10 seconds. You cannot specify the duration of a toast except using the predefined duration. Is it by design that you can't add any listener to the UI controls on the toast? Yes. How do you change the duration of how long the toast stays? You can choose between SHORT and LONG. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Two questions about Toast
My application listens to certain event from another app. As soon as the event is received, I want to displays a dialog or a toast to notify the user and give users a few action choices with buttons. We can't display a dialog because it doesn't pop up in the foreground over the other app. Toast is my only choice. Looks like toast is not the answer either! On Tue, Nov 25, 2008 at 4:33 PM, Romain Guy [EMAIL PROTECTED] wrote: 1. The button is not clickable! onClick is not called when I click on the button. Toasts are meant only to display information, they are not meant for user interaction. Use a dialog to do this. 2. If I replace Toast.LENGTH_LONG with a number 1, the toast does not stay for 10 seconds. You cannot specify the duration of a toast except using the predefined duration. Is it by design that you can't add any listener to the UI controls on the toast? Yes. How do you change the duration of how long the toast stays? You can choose between SHORT and LONG. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Two questions about Toast
You can use notifications :) (If it makes sense, that is) On Tue, Nov 25, 2008 at 4:52 PM, Jamie L [EMAIL PROTECTED] wrote: My application listens to certain event from another app. As soon as the event is received, I want to displays a dialog or a toast to notify the user and give users a few action choices with buttons. We can't display a dialog because it doesn't pop up in the foreground over the other app. Toast is my only choice. Looks like toast is not the answer either! On Tue, Nov 25, 2008 at 4:33 PM, Romain Guy [EMAIL PROTECTED] wrote: 1. The button is not clickable! onClick is not called when I click on the button. Toasts are meant only to display information, they are not meant for user interaction. Use a dialog to do this. 2. If I replace Toast.LENGTH_LONG with a number 1, the toast does not stay for 10 seconds. You cannot specify the duration of a toast except using the predefined duration. Is it by design that you can't add any listener to the UI controls on the toast? Yes. How do you change the duration of how long the toast stays? You can choose between SHORT and LONG. -- Romain Guy www.curious-creature.org -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Two questions about Toast
you can put buttons on notification? On Tue, Nov 25, 2008 at 4:55 PM, Romain Guy [EMAIL PROTECTED] wrote: You can use notifications :) (If it makes sense, that is) On Tue, Nov 25, 2008 at 4:52 PM, Jamie L [EMAIL PROTECTED] wrote: My application listens to certain event from another app. As soon as the event is received, I want to displays a dialog or a toast to notify the user and give users a few action choices with buttons. We can't display a dialog because it doesn't pop up in the foreground over the other app. Toast is my only choice. Looks like toast is not the answer either! On Tue, Nov 25, 2008 at 4:33 PM, Romain Guy [EMAIL PROTECTED] wrote: 1. The button is not clickable! onClick is not called when I click on the button. Toasts are meant only to display information, they are not meant for user interaction. Use a dialog to do this. 2. If I replace Toast.LENGTH_LONG with a number 1, the toast does not stay for 10 seconds. You cannot specify the duration of a toast except using the predefined duration. Is it by design that you can't add any listener to the UI controls on the toast? Yes. How do you change the duration of how long the toast stays? You can choose between SHORT and LONG. -- Romain Guy www.curious-creature.org -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---