[android-developers] Is collapse /expand list not working in 1.0?
I upgrade for my application from M5 to 1.0? In M%, I created a list, when user clicks the list, it will expand to have more detail information. When user clicks it again, it will collapse. The first part, which is exppand is still working. But the second part is nor working? There is no event created when user click the list. Is it a bug for 1.0? has anyone the same experience? Thanks! April --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Unable to install the .apk file via OTA in Android 1.0 release
Hi All, I am trying to install the downloaded apk files (downloaded via OTA in SD Card) but on installing the downloaded application shows Install blocked alert message. below is full prompt: For security, our phone is set to block installation of applications not sources in android market Any idea/suggestion on how to install the application which are downloaded via OTA. Regards Wiki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Logon to spreadsheets.google.com
Thanks sebrOck. I just verified my google account, and it's working. However, the link given above still leads me to a page asking me to log on to my google.com mail account, where my login credentials for my google account don't work. There is no alternative given on that page (nothing like Register, Don't know how to logon?,...). On 22 Sep., 17:00, sebrOck [EMAIL PROTECTED] wrote: hiclavigo, afaik, to access google spreadsheets you will need a *google account*, not nescessarily a gmail account. On Sep 22, 1:16 pm,clavigo[EMAIL PROTECTED] wrote: Some time after participating at the challenge, I got an email suggesting to fill out a form for further information about showcasing my application. The form was made available by this link: https://spreadsheets.google.com/a/google.com/viewform?key= (Key value omitted here.) When clicking on this link, however, I get placed on a logon page of google.com for accessing a google email account. I neither have any such account nor do I want to create one. Is the information announced only available for people who have a google.com account, or am I missing something here? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Deployment
Hi, I'm not sure how to deploy the application to the real device. When I tried to install it via the browser, the browser always tell me the phone doesn't know this type or format, and doesn't download it. So is it really need to post the application to the Market for user to get it? Just like what iPhone does? Regards, Eddie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] On screen Key board
Has there been a program developed for an on screen key board with Android software? I currently have an HTC T Mobile Wing, and I am used to a quarty keyboard. Though convenient, I still like to be able to text, or send an email with one hand. I am able to do this on the wing using windows 6.0, but I was hoping the new Android phones( T Mobile G1) would also include an touch screen keyboard with large buttons that make it easy to 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: Deployment
This pretty much covers it: http://groups.google.com/group/android-discuss/browse_thread/thread/4b3e7a099931beb9 You can also check out http://slideme.org. We are preparing to launch around the 22nd. Shane On Tue, Sep 30, 2008 at 12:45 AM, Eddie [EMAIL PROTECTED] wrote: Hi, I'm not sure how to deploy the application to the real device. When I tried to install it via the browser, the browser always tell me the phone doesn't know this type or format, and doesn't download it. So is it really need to post the application to the Market for user to get it? Just like what iPhone does? Regards, Eddie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] I need help in http connection???
hi all, I not quite familiar with android... hoping I can get some answer here... thanks... I have two questions here... 1st Question --- How can I use android to call a url and get the inputStream to get the content of the pages??? Code in J2me:- --- connection = (HttpConnection) Connector.open(Info.DeviceInfo.URL + ? cmd=gsesuserid= + userSession); connection.setRequestMethod(HttpConnection.GET); if (connection.getHeaderField(Set-Cookie) != null) { cookie = connection.getHeaderField(Set-Cookie); } DataInputStream dis = connection.openDataInputStream(); int ch; String str = ; while ((ch = dis.read()) != -1) { str += (char) ch; } 2nd Question How can I get Stream Connection from a server using Android?? Coding in J2me -- connection=(StreamConnection)Connector.open(DeviceInfo.URL_CONNECTION); inpStream = connection.openInputStream(); outStream = connection.openOutputStream(); anyone have any example can show me??? wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Bitmap on sdcard decodestream
Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Translate
There is no support for i18n in the 1.0 SDK -- it looks like this is nothing too high on the list for Google's developers at the moment.This is from the official documentation ( http://code.google.com/android/devel/resources-i18n.html)http://code.google.com/android/devel/resources-i18n.html Internationalization and Localization *Coming Soon:* Internationalization and Localization are critical, but are also not quite ready yet in the current SDK. As the SDK matures, this section will contain information on the Internationalization and Localization features of the Android platform. In the meantime, it is a good idea to start by externalizing all strings, and practicing good structure in creating and using resources. 2008/9/27 Xat [EMAIL PROTECTED] How can I translate Anroid system ? Where are system files ? I have the emulator. 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] Browser and SSL
Does android's browser support SSL v3, 128 bit encryption? Thanks, Shane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: WebView loadData limitations
schmielson wrote: Thanks for the quick reply. Unfortunately, that does not work. The link text becomes highlighted to indicate that it has been clicked, but the URL is never loaded and the code in shouldOverrideUrlLoading is never called. Visit http://commonsware.com/Android/, and download the source code to Version 1.3 of my book. Here's the direct link to the ZIP file: http://commonsware.com/Android/source_1.3.zip Check out WebKit/Browser3 in the ZIP. This sample loads a dynamically-generated Web page via loadDataWithBaseUrl(), intercepts clicks on the link with shouldOverrideUrlLoading(), and updates the page. If it works for you (and I'm fairly certain I tested it this past weekend on Android 1.0), perhaps you can see what the differences are between the sample and your project, to determine how to get the technique to work in your case. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 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: Remote MP4 video in 0.9 SDK
On linux, just use MP4Box test.3gp(or mp4) -hint And it will be streamable and compatible with android. On 26 sep, 09:14, wiki [EMAIL PROTECTED] wrote: Hey Justin! As we have got the 1.0 SDK . will RTSP work on emulator now? Regards On Sep 25, 2:02 pm, Iroid [EMAIL PROTECTED] wrote: I am trying to run a remote progressive downloadable mp4 file using VideoView. It is giving MediaPlayer error -1 and VideoView error -1. I do not know what does it mean? Could any one help please? Thanks On Sep 20, 9:36 am, Dan Walmsley [EMAIL PROTECTED] wrote: Any idea whenRTSPwill be fixed? Or, at least some form of MP3 streaming? Happy to retrieve directly via HTTP if necessary, but my app absolutely _requires_ live, ongoing mp3 streaming at a minimum. It's strange to me that it wouldn't work, given Android's out-of-the-box support for streaming video formats like 3GPP/MP4/etc directly. Don't make me rewrite it for iPhone ;-) Cheers, Dan On Aug 29, 4:58 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: I don't believeRTSPwill work in the emulator. The emulator currently has some issues with handling UDP packets, whichRTSPuses. Sorry. Regards, Justin Android Team @ Google On Aug 28, 3:02 am, jayant [EMAIL PROTECTED] wrote: Hi All, Can anyone post anrtsplink which works fine.. gunaaa, can you please provide the external URL that was played.. All I am doing here is setting the path variable in the API Demo(MediaPlayerDemo) example to different links But none seems to work...In the error log I am getting following error: 08-28 15:08:59.894: ERROR/MediaPlayerDemo(749): error: Prepare failed.: status=0x Justin, can you plz explain this: code snippet: ***** case STREAM_VIDEO: /* * TODO: Set path variable to progressive streamable mp4 or * 3gpp format URL. Http protocol should be used. * Mediaplayer can only play progressive streamable * contents which basically means: 1. the movie atom has to * precede all the media data atoms. 2. The clip has to be * reasonably interleaved. * */ path = rtsp://172.17.5.81:80/ sample_h264_100kbit.mp4; if (path == ) { // Tell the user to provide a media file URL. Toast .makeText( MediaPlayerDemo_Video.this, Please edit MediaPlayerDemo_Video Activity, + and set the path variable to your media file URL., Toast.LENGTH_LONG).show(); } break; } // Create a new media player and set the listeners mMediaPlayer = new MediaPlayer(); mMediaPlayer.setDataSource(path); // dialog.setMessage(set data source+path); // dialog.show(); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepare(); mMediaPlayer.setOnBufferingUpdateListener(this); mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); ****** On Aug 26, 12:01 pm, gunaaa [EMAIL PROTECTED] wrote: Try Using Streams from any external URL... it will play your file... Changing the format is time expensive...- 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: Launch browser issue. Is this a bug for 1.0?
april wrote: url=http://www.google.com;; Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse(url)); startActivity(i); If I changed url=http://127.0.0.1:4343/a.html;, I will get error the application is stopped unexpectly. Is this a bug? 127.0.0.1 is localhost, which, in this case, would be the emulator itself. If you are trying to access something on the computer hosting the emulator, try using the non-localhost IP address. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 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: I need help in http connection???
I replied with some info on this over at Anddev where it was also asked - before I noticed this. http://www.anddev.org/viewtopic.php?p=10646#10646 HTH On Sep 30, 4:23 am, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi all, I not quite familiar with android... hoping I can get some answer here... thanks... I have two questions here... 1st Question --- How can I use android to call a url and get the inputStream to get the content of the pages??? Code in J2me:- --- connection = (HttpConnection) Connector.open(Info.DeviceInfo.URL + ? cmd=gsesuserid= + userSession); connection.setRequestMethod(HttpConnection.GET); if (connection.getHeaderField(Set-Cookie) != null) { cookie = connection.getHeaderField(Set-Cookie); } DataInputStream dis = connection.openDataInputStream(); int ch; String str = ; while ((ch = dis.read()) != -1) { str += (char) ch; } 2nd Question How can I get Stream Connection from a server using Android?? Coding in J2me -- connection=(StreamConnection)Connector.open(DeviceInfo.URL_CONNECTION); inpStream = connection.openInputStream(); outStream = connection.openOutputStream(); anyone have any example can show me??? wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Alignment issue related to ListView
My layout looks like this way ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:cacheColorHint=# android:layout_centerHorizontal=true android:background =@drawable/b1 / TextView android:id=@id/android:empty android:layout_width=fill_parent android:layout_height=fill_parent android:text=/ /LinearLayout But the list is coming in the top left corner. 1.how to align the listview such that it takesup teh entire screen. I tried to change the weight value.But no effect 2.how to put the list viw in the center of the screen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Port issue with the Android Emulator
Hello Team, I have doubt in the Android telephoney simulation. The one Android emulator runs in the User A's machine and the second Android emulator runs in the User B's Machine. when user A starts the emulator using the following command emulator -http-proxy http://UserB's id:UserB's password@IP address of UserB 5554 The emulator runs sucessfully. and in the UserA's uses the telnet command to redirect the tcp connections. the telnet command is also sucessful. When userA calls to UserB'semulator using the prot number is 5554. The call is not redirected to the UserB's Emulator. What is the problem here?? 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] Using the battery state
The scenario is that I am writing a small app that I want to run in the background only when the device is charging. My problem is that this appears to impossible to achieve. The documentation helpfully informs me that ACTION_BATTERY_CHANGED intents cannot be received through components declared in manifests (Why this is this? I'm interested), instead Context.registerReceiver() must be used. But this method cannot be called from a BroadcastReceiver - again the documentation is clear on this point. I am assuming that any dynamically registered BroadcastReceiver is bound to the lifetime of the Component that registered it (Is this correct? The documentation appears to be silent on this point). And since I don't want my application running unless the device is being powered, I don't have a suitably long-lived component to register it under. The result is that I can't seem to obtain battery state notifications in any way that is useful for starting the work of my application. My next thought was to poll: use the AlarmManager to periodically run the BroadcastReceiver, poll the state of the battery, and only do the work when the battery is in the desired state. But (and this was a surprise) there doesn't appear to be any method in the API for polling the battery state. So I can't see that approach working either. Now it's seems quite possible to me that I'm missing something very simple and obvious which can resolve this (please put me out of my misery), but apart from obvious half-arsed approaches that run a service in the background to monitor the battery state - a total waste of resources for something that is intended to run just a couple of minutes a day - I just can't see any way of doing this. Is it really the case that it's impossible to start an application in response to a change in battery state? Tom. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] current page's url
hi all, can get the current page's url from the default web browser ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Important Announcement: Handango Android Catalog
May I know how do you overcome the restriction on 1.0 SDK that it does NOT allow any apk to be installed unless it comes from Android Market? Thanks Eric Portable Electronics Ltd www.hdmp4.com On Sep 30, 1:57 am, Handango [EMAIL PROTECTED] wrote: Handango, the original multi-platform app store, will be launching one of the industry’s first Android catalogs in November. Handango has served millions of customers since 1999 and has become the trusted and agnostic source for smartphone content. Handango's legacy is with the early adopters and, in fact, Handango has supported Linux applications for many years. Content providers building Android applications and looking for distribution are encouraged to contact Will Pinnell ([EMAIL PROTECTED] or +1.972.894.0467) for priority in the promotion of the content within the catalog. Beginning October 1st, content providers will be able to add Android applications directly to developer accounts and choose to distribute them to customers in three ways: 1) Give them away for free 2) Sell them for a one-time purchase fee 3) Set them up as a monthly, quarterly, or yearly subscription fee (subscription APIs provided at no cost) Content providers are encouraged to jump on this opportunity as soon as possible in order to maximize distribution and revenue as soon as the first Android phone is in the market. If you’re an existing Handango content partner, simply add the new Android content to your account. If you’re not yet working with Handango, you can apply to become a software partner athttp://developer.handango.comand your application will be accepted within 24 hours. Depending on volume, content providers keep 50-70% of the suggest retail price that they provide, less any transaction costs that might occur. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Is it possible to connect two android with different machine?
Is it possible to connect with android emulator with different machine??? Please help me... 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: Unable to install the .apk file via OTA in Android 1.0 release
See recent discussion at http://groups.google.com/group/android-discuss/browse_thread/thread/4b3e7a099931beb9/c71a8ed2e3d2f2e0?show_docid=c71a8ed2e3d2f2e0# On Sep 30, 8:16 am, wiki [EMAIL PROTECTED] wrote: Hi All, I am trying to install the downloaded apk files (downloaded via OTA in SD Card) but on installing the downloaded application shows Install blocked alert message. below is full prompt: For security, our phone is set to block installation of applications not sources in android market Any idea/suggestion on how to install the application which are downloaded via OTA. Regards Wiki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] ProgressBar no coming on a ListActivity
Hi I am having a ListActivity in the onListItemClick() of an item I need to do some processing so I need to show a progressbar on the screen. But ProgressBar is not getting shown I gave probar.show() no effect plz help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: ProgressBar no coming on a ListActivity
I tried //myProgressDialog.show(); //myProgressDialog.setView(getCurrentFocus()); //requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); // setProgressBarVisibility(true); nothing worked Please help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
That is a correct way to call decodeStream. Are you sure the path is correct (i.e. are you getting a non-null fileinputstream)? On Sep 30, 2008, at 5:17 AM, Matteo Crippa wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Nokia N810 Skin for Android Emulator
Hello folks. The new Nokia N810 Internet Tablet skin for the Android Emulator is ready for taking. screen resolution is WVGA (800x480). http://www.android.encke.net/#Nokia-N810 Enjoy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
Hi sahn0 thanks for the tip, but it still fails with a NullPointerException... I tried looking at f.isFile() and it returns true... so file exists... On 30 Set, 12:27, sahn0 [EMAIL PROTECTED] wrote: Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
Please file a bug for this, and attach one or more of the images and your code snippet. That will make it much easier to diagnose. thanks, mike On Sep 30, 2008, at 9:25 AM, Matteo Crippa wrote: Hi sahn0 thanks for the tip, but it still fails with a NullPointerException... I tried looking at f.isFile() and it returns true... so file exists... On 30 Set, 12:27, sahn0 [EMAIL PROTECTED] wrote: Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Need Help with diaplaying Menu
The @Override annotation is useful in your case because you will have a compile time error if you mispelled the function name. On Sep 29, 5:48 pm, Dipen [EMAIL PROTECTED] wrote: Thanks Mark. yes, it was spelling error. Also, i was not calling show() on Toast. I am little bit surprise eclipse did not catch it. Logcat did not report any error so, I was constantly paying attention to the logic than spellings. Thanks again. On Sep 29, 11:19 am, Mark Murphy [EMAIL PROTECTED] wrote: Dipen wrote: public boolean onCreatgeOptionsMenu(Menu menu) You do not have onCreateOptionsMenu spelled correctly above. public boolean onOptionsItenSelected(MenuItem item) You do not have onOptionsItemSelected spelled correctly above. I do not know if those are real problems or merely something in how you pasted the code into the email message, though. -- 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: SDK 1.0: what about multipart entities
I used - org.apache.http.entity.FileEntity - instead... On Sep 29, 12:10 am, gjs [EMAIL PROTECTED] wrote: Hi, Hmm, I think these jars are packaged into the .apk, I can see lot of references inside classes.dex to these libraries and the size of the generated .apk and .dex files would seem to indicate that this true. I would still like an answer re correct way to do this in V1.0. Google/Justin/Megha any assistance greatly appreciated. Regards On Sep 27, 2:28 pm, shotwave [EMAIL PROTECTED] wrote: gjs, yeap it worksin the eumlator, but I wonder if it will work on the real phone since emulator uses your classpath with the dedicated jars, but these jars are not packed into apk I guess, so they might be not available to the real world phone app On Sep 26, 7:14 pm, gjs [EMAIL PROTECTED] wrote: I have found that the method described for V0.9 still works ok in V1.0... On Sep 26, 4:11 pm, gjs [EMAIL PROTECTED] wrote: Hi, Does this mean that we still have to use the method described for V0,9 ? As discussed in - http://groups.google.com/group/android-developers/browse_frm/thread/e... Anybody ? Regards On Sep 25, 3:48 pm, shotwave [EMAIL PROTECTED] wrote: umm, no, I do not tink that this affects te browser, it is all about the http clien api included into sdk On Sep 25, 12:44 am, Shane Isbell [EMAIL PROTECTED] wrote: Does this mean that the browser itself also no longer supportsmultipart content? Thanks, Shane On Wed, Sep 24, 2008 at 9:38 PM, shotwave [EMAIL PROTECTED] wrote: Hi, theMultipartentities were removed from http commons, so in order to use them in SDK 0.9 we had to use external jars apache- mime4j-0.3.jar, commons-io-1.4.jar, httpmime-4.0-alpha4.jar. This was was fine for beta and android emulation. But now the phone is here, the SDK is released and not beta anymore and it looks like the multipartentities API is not there. I wonder how this is intended to work? Do we need to implement the http post for forms ourselves? and advice anybody? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] KeyListener doesn't see enter key?
I have a KeyListener on an EditText. The only key I want to catch is the enter key, but that seems to be the only key the KeyListener doesn't see. What am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Need Help with diaplaying Menu
If you override a function with ctrl+space (or by going into menus), the @Override will automatically be added, and you can't mispell the name with auto-completion... On Sep 30, 3:44 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: The @Override annotation is useful in your case because you will have a compile time error if you mispelled the function name. On Sep 29, 5:48 pm, Dipen [EMAIL PROTECTED] wrote: Thanks Mark. yes, it was spelling error. Also, i was not calling show() on Toast. I am little bit surprise eclipse did not catch it. Logcat did not report any error so, I was constantly paying attention to the logic than spellings. Thanks again. On Sep 29, 11:19 am, Mark Murphy [EMAIL PROTECTED] wrote: Dipen wrote: public boolean onCreatgeOptionsMenu(Menu menu) You do not have onCreateOptionsMenu spelled correctly above. public boolean onOptionsItenSelected(MenuItem item) You do not have onOptionsItemSelected spelled correctly above. I do not know if those are real problems or merely something in how you pasted the code into the email message, though. -- 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: Bitmap on sdcard decodestream
Hi Mike, i've just tried adding these few lines inside my code to hard-debug it: Log.d(stream,+is.available()); Log.d(stream,is.toString()); Log.d(bstream,+bis.available()); Log.d(bstream,bis.toString()); if(is==null) Log.d(stream,is null); and debugger says me: 09-30 15:41:52.605: DEBUG/3(951): /sdcard/app/img/7.jpg 09-30 15:41:52.615: DEBUG/stream(951): 22080 09-30 15:41:52.615: DEBUG/stream(951): [EMAIL PROTECTED] 09-30 15:41:52.645: DEBUG/bstream(951): 22080 09-30 15:41:52.645: DEBUG/bstream(951): [EMAIL PROTECTED] So i think it works fine and it's not null, but I still get the same error using bis and is input for bitmapdecode: 09-30 15:46:57.916: WARN/System.err(2066): java.lang.NullPointerException 09-30 15:46:57.916: WARN/System.err(2066): at com.app.Galleria.onCreate(Galleria.java:97) 09-30 15:46:57.916: WARN/System.err(2066): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 09-30 15:46:57.916: WARN/System.err(2066): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) 09-30 15:46:57.925: WARN/System.err(2066): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 09-30 15:46:57.925: WARN/System.err(2066): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 09-30 15:46:57.925: WARN/System.err(2066): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 09-30 15:46:57.925: WARN/System.err(2066): at android.os.Handler.dispatchMessage(Handler.java:88) 09-30 15:46:57.935: WARN/System.err(2066): at android.os.Looper.loop(Looper.java:123) 09-30 15:46:57.935: WARN/System.err(2066): at android.app.ActivityThread.main(ActivityThread.java:3742) 09-30 15:46:57.935: WARN/System.err(2066): at java.lang.reflect.Method.invokeNative(Native Method) 09-30 15:46:57.935: WARN/System.err(2066): at java.lang.reflect.Method.invoke(Method.java:515) 09-30 15:46:57.945: WARN/System.err(2066): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) 09-30 15:46:57.945: WARN/System.err(2066): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 09-30 15:46:57.945: WARN/System.err(2066): at dalvik.system.NativeStart.main(Native Method) And line 97 in Galleria.java is: photos[i] = BitmapFactory.decodeStream(is); On 30 Set, 15:09, Mike Reed [EMAIL PROTECTED] wrote: That is a correct way to call decodeStream. Are you sure the path is correct (i.e. are you getting a non-null fileinputstream)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: qemu emulator flag not supported anymore in the 1.0 SDK?
Google, please tell us how to increase the amount of memory available for our emulator in the 1.0 SDK. On Sep 25, 12:56 am, Volker Gropp [EMAIL PROTECTED] wrote: Hi, same Problem here with the SDK1.0 emulator on Linux. Im really missing the qemu network settings to be able to use the SDK1.0. Volker Gropp On Sep 24, 5:38 pm, Cheryl Sedota [EMAIL PROTECTED] wrote: In the 1.0 SDK, trying to run: emulator.bat -qemu-m 256 on Windows XP does not work - I get this error: w: invalid option -- '-qemu' This used to work in the beta (0.9) SDK and the emulator's usage hint in the 1.0 SD indicates that the option is valid: -qemuargs... pass arguments toqemu -qemu-h displayqemuhelp Please advise. Thanks, Cheryl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] save image in Database
Hi Frnds. I have to save an image in database.How can it be possible in SDK-1.0?? 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: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0
Hey Brad, Just to be sure I tested it out and manually typed in amp; into the source for the web service. I didn't expect this to work, because even manually typing it in still leads to each character being encoded. In the quote you provided it says they MUST be escaped using either numeric character references UTF-8 (and all unicode) encoding does just that :) The '' is number 38. On the other hand, I also tested the bracket characters and . Both cause the same issue as the character. Other brackets such as [ and { and ( do not cause issue. So clearly this does have something to do with the SAXParser in Android handling the special XML characters. I have never used SAXParser outside of Android so I cannot say whether or not it is any different. But I can confirm that this did not happen in 0.9 and I am 99% confident it should not be happening at all. Thanks, Chris On Sep 29, 9:10 pm, Brad Gies [EMAIL PROTECTED] wrote: Chris, Well sure... UTF-8 can represent the ampersand character, but the ampersand is a Reserved character in XML. Below is a paragraph from the XML spec : http://www.w3.org/TR/REC-xml/ The ampersand character () and the left angle bracket () MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings amp; and lt; respectively. The right angle bracket () may be represented using the string gt;, and MUST, for compatibility, be escaped using either gt; or a character reference when it appears in the string ]] in content, when that string is not marking the end of a CDATA section. Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.EDI-Simple.com - Moderation in everything, including abstinence -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc Sent: Monday, September 29, 2008 8:47 PM To: Android Developers Subject: [android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0 Hey Brad, As far as I know it doesn't have to be escaped if it's unicode encoded. In this case, the XML is coming from a .Net Web Service, which is encoded in UTF-8. Also, we aren't comparing two different parsers, but rather the old and new version of the SAXParser with unmodified code. -chris On Sep 29, 5:30 pm, Brad Gies [EMAIL PROTECTED] wrote: Shouldn't the '' character be escaped if you are going to use it in XML? The SAX parser if probably just following the XML spec and the other parser wasn't :) Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.EDI-Simple.com - Moderation in everything, including abstinence -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc Sent: Monday, September 29, 2008 4:47 PM To: Android Developers Subject: [android-developers] Re:SAXParserreports diffeernt qName on SDK 0.9 from SDK 1.0 Hey Charlie, I think this should be added to the bug list. I'll do it tonight when I get home if you haven't already by then... What I don't understand is this doesn't seem to be an encoding or namespace issue, since all unicode characters except '' work fine (that I've tried). As far as I know, there are no encoding schemes or namespaces that single out the '' character, though I admit my experience with this is too limited to say for sure. I'm guessing this isn't a planned change, since there should be *something* written in the change log/migration guide and there is nothing. So I'm all but certain it's an unintended bug... -chris On Sep 29, 2:51 pm, Charlie Collins [EMAIL PROTECTED] wrote: I have this same issue. I switched to localname as well, but it seems like as soccercheng notes, you should be able to dictate namespace and namespace-prefix features. This blows up though, anyone on the team care to elaborate - should this work with Android, and should a bug be filed, or what? (I didn't see any current bugs related to in my cursory search.) Also, this seems like a pretty big change from 0.9 to 1.0, maybe it should go in the migrating guide? On Sep 29, 10:09 am, Chris Cicc [EMAIL PROTECTED] wrote: Hello, I am also having a problem with theSAXParserthat I believe is similar to your problem. I had a parser for a basic XML document that contained
[android-developers] Re: Barcodes
http://code.google.com/p/zxing/ is a barcode (amongst others) reader. It is opensource and has a android client. On 30 sep, 01:50, Peli [EMAIL PROTECTED] wrote: If you look at the OpenIntents list of applicationshttp://www.openintents.org/en/applications you will find ZXing which is a multi-format 1D/2D barcode reader. You can simply start it as an intents, and get the read-out values back. Peliwww.openintents.org On 29 Sep., 21:02, Brad Gies [EMAIL PROTECTED] wrote: I know other people have been working on reading barcodes from Android. Specifically, reading a barcode from an image taken from the phone's camera. Does anyone know if someone has released their code as open source? I know there are several Java libraries that have the code, and I can write it/ port it to Android, but don't see the need to do it if someone else has already done and released the code. Anyone know of any links they can pass to me? Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 - Moderation in everything, including abstinence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Light theme bug?
Hi, I changed my app to use the light theme android:theme=@android:style/ Theme.Light.NoTitleBar however that theme makes the text in list view in all alertdialog invisible. The text was changed to white color against the white background therefore they are invisible the same issue is also in the ApiDemo aps if I change the theme to Light, the list dialog under App/Dialog will also appear to have the same white text color issue. does anyone know how to change the text color of the list view in an alertdialog? or is this a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Anybody get succeed with DatagramSocket on 1.0-r1
Oh, many thanks, this is exactly what I missed. On Sep 28, 8:24 pm, Mark Murphy [EMAIL PROTECTED] wrote: I have following code: socket_snd = newDatagramSocket(); It works well with m5-r15. But it always fail on 1.0-r1. I telneted to emulator, the network of emulator works well. Any advice is appreciated. You may already have done this, but did you add the INTERNET permission to your AndroidManifest.xml file? -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 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] Detect Emulator/Get phone info
Is there a way to detect wether a activity is running on the emulator or on a real device? And if so, can we detect what the name of the device is? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Replacing Dialer, IM, and SMS Apps
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 2) Hidden Content Providers. The open access guarantees don't necessarily grant access to the underlying content providers that power the native applications. At the moment (this might change) access to the native mail, SMS, and IM Content Providers is not available. I figured out how to read the SMS provider: Cursor c = this.getContentResolver().query(Uri.parse(content://sms/inbox), null, null, null, null); Log.d(TAG, Read + Integer.toString(c.getCount()) + SMS messages from content ( + Integer.toString(c.getColumnCount()) + columns)); String[] cols = c.getColumnNames(); for(int i = 0; i cols.length; i++) { Log.d(TAG, Column: + cols[i]); } while(c.moveToNext()) { Log.d(TAG, c.getString(c.getColumnIndex(address)) + : + c.getString(c.getColumnIndex(person)) + : +c.getString(c.getColumnIndex(date)) + : +c.getString(c.getColumnIndex(body))); } I saw the URI content://sms/inbox after adding the receiver and listening for incoming SMS. I got the column names from the middle block of code. cheers, - -- ᛏᚠᛖᚾᚱᛁᛊᚢᛚᚠᚱᛏ ᛏᚢᛚᚠᛊᛚᛖᛁᚠᚨᚱᛏ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjhlmcACgkQNig/07RbnEvfwACfVuJbDVbkmN4254ACfGK+sj8Q GT0An3iVFc8COgtX500vO3okk0viN7AD =xsFW -END PGP SIGNATURE- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Light theme bug?
i can't post a link in my message? see screenshot http://tinyurl.com/3rt5z7 On Sep 30, 10:12 am, zl25drexel [EMAIL PROTECTED] wrote: Hi, I changed my app to use the light theme android:theme=@android:style/ Theme.Light.NoTitleBar however that theme makes the text in list view in all alertdialog invisible. The text was changed to white color against the white background therefore they are invisible the same issue is also in the ApiDemo aps if I change the theme to Light, the list dialog under App/Dialog will also appear to have the same white text color issue. does anyone know how to change the text color of the list view in an alertdialog? or is this a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Bitmap on sdcard decodestream
Ok, bug filed, but I don't think it could be related to images, i've just tested jpgs and pngs, and it fails with both of them... http://code.google.com/p/android/issues/detail?id=921 On 30 Set, 15:44, Mike Reed [EMAIL PROTECTED] wrote: Please file a bug for this, and attach one or more of the images and your code snippet. That will make it much easier to diagnose. thanks, mike On Sep 30, 2008, at 9:25 AM, Matteo Crippa wrote: Hi sahn0 thanks for the tip, but it still fails with a NullPointerException... I tried looking at f.isFile() and it returns true... so file exists... On 30 Set, 12:27, sahn0 [EMAIL PROTECTED] wrote: Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Barcodes
Yes, that's exactly the one I meant. I wanted to stress that it is not necessary to copy the code into one's application (although that is also possible and supported), but one can simply send an intent to open the ZXing application, and obtain the result back. Peli On Sep 30, 4:10 pm, MrSnowflake [EMAIL PROTECTED] wrote: http://code.google.com/p/zxing/ is a barcode (amongst others) reader. It is opensource and has a android client. On 30 sep, 01:50, Peli [EMAIL PROTECTED] wrote: If you look at the OpenIntents list of applicationshttp://www.openintents.org/en/applications you will find ZXing which is a multi-format 1D/2D barcode reader. You can simply start it as an intents, and get the read-out values back. Peliwww.openintents.org On 29 Sep., 21:02, Brad Gies [EMAIL PROTECTED] wrote: I know other people have been working on reading barcodes from Android. Specifically, reading a barcode from an image taken from the phone's camera. Does anyone know if someone has released their code as open source? I know there are several Java libraries that have the code, and I can write it/ port it to Android, but don't see the need to do it if someone else has already done and released the code. Anyone know of any links they can pass to me? Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 - Moderation in everything, including abstinence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Barcodes
zxing is a barcode (amongst others) reader. Actually there are not so many barcode readers for Android. The top-50 winning apps that read barcode were all using the ZXing library made by Google employees. The only independent barcode reader for Android that I know (Moseycode: http://www.tomgibara.com/android/moseycode/releases/0.2.1/ ) didn't make it into the top 50, although it really had cool features (like finding the 3D position of a Moseycode in space in real time). Peli On Sep 30, 4:10 pm, MrSnowflake [EMAIL PROTECTED] wrote: http://code.google.com/p/zxing/is a barcode (amongst others) reader. It is opensource and has a android client. On 30 sep, 01:50, Peli [EMAIL PROTECTED] wrote: If you look at the OpenIntents list of applicationshttp://www.openintents.org/en/applications you will find ZXing which is a multi-format 1D/2D barcode reader. You can simply start it as an intents, and get the read-out values back. Peliwww.openintents.org On 29 Sep., 21:02, Brad Gies [EMAIL PROTECTED] wrote: I know other people have been working on reading barcodes from Android. Specifically, reading a barcode from an image taken from the phone's camera. Does anyone know if someone has released their code as open source? I know there are several Java libraries that have the code, and I can write it/ port it to Android, but don't see the need to do it if someone else has already done and released the code. Anyone know of any links they can pass to me? Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 - Moderation in everything, including abstinence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
I also use BitmapFactory.decodeStream on images on the sdcard, but I have no problem. Does your images work with the standard Pictures application ? On Sep 30, 4:29 pm, Matteo Crippa [EMAIL PROTECTED] wrote: Ok, bug filed, but I don't think it could be related to images, i've just tested jpgs and pngs, and it fails with both of them... http://code.google.com/p/android/issues/detail?id=921 On 30 Set, 15:44, Mike Reed [EMAIL PROTECTED] wrote: Please file a bug for this, and attach one or more of the images and your code snippet. That will make it much easier to diagnose. thanks, mike On Sep 30, 2008, at 9:25 AM, Matteo Crippa wrote: Hi sahn0 thanks for the tip, but it still fails with a NullPointerException... I tried looking at f.isFile() and it returns true... so file exists... On 30 Set, 12:27, sahn0 [EMAIL PROTECTED] wrote: Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
yes, i've just test them using the default app and also with the dev tools raw image viewer and both are able to show my pics :( Guillaume, may I ask you if can kindly paste a snippet of the code you are using to load an img from the sdcard? On 30 Set, 16:49, Guillaume Perrot [EMAIL PROTECTED] wrote: I also use BitmapFactory.decodeStream on images on the sdcard, but I have no problem. Does your images work with the standard Pictures application ? On Sep 30, 4:29 pm, Matteo Crippa [EMAIL PROTECTED] wrote: Ok, bug filed, but I don't think it could be related to images, i've just tested jpgs and pngs, and it fails with both of them... http://code.google.com/p/android/issues/detail?id=921 On 30 Set, 15:44, Mike Reed [EMAIL PROTECTED] wrote: Please file a bug for this, and attach one or more of the images and your code snippet. That will make it much easier to diagnose. thanks, mike On Sep 30, 2008, at 9:25 AM, Matteo Crippa wrote: Hi sahn0 thanks for the tip, but it still fails with a NullPointerException... I tried looking at f.isFile() and it returns true... so file exists... On 30 Set, 12:27, sahn0 [EMAIL PROTECTED] wrote: Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Detect Emulator/Get phone info
I don't know if this would help you, but one way is to read the number of sensors http://code.google.com/android/reference/android/hardware/SensorManager.html#getSensors() . This is 0 on the emulator, and should be some number 0 on a real device, provided that the device has sensors (which the G1 will have at least). By name of the device, do you mean its IMEI? http://code.google.com/android/reference/android/telephony/TelephonyManager.html#getDeviceId() Peli On Sep 30, 4:14 pm, MrSnowflake [EMAIL PROTECTED] wrote: Is there a way to detect wether a activity is running on the emulator or on a real device? And if so, can we detect what the name of the device is? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 use my custom library apk file in other applications.
Hi, I have my own custom library apk file (say lib.apk) i want make it available to other applications. How to provide the uses-library in the android manifest.xml file in other apps so as to use my custom library. Kindly suggest if any one has worked on this topic. 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: I need help in http connection???
Hi, thanks for d reply. I have one more questions... Did anyone know how to make socket connection using androird wesley. On 9/30/08, Charlie Collins [EMAIL PROTECTED] wrote: I replied with some info on this over at Anddev where it was also asked - before I noticed this. http://www.anddev.org/viewtopic.php?p=10646#10646 HTH On Sep 30, 4:23 am, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi all, I not quite familiar with android... hoping I can get some answer here... thanks... I have two questions here... 1st Question --- How can I use android to call a url and get the inputStream to get the content of the pages??? Code in J2me:- --- connection = (HttpConnection) Connector.open(Info.DeviceInfo.URL + ? cmd=gsesuserid= + userSession); connection.setRequestMethod(HttpConnection.GET); if (connection.getHeaderField(Set-Cookie) != null) { cookie = connection.getHeaderField(Set-Cookie); } DataInputStream dis = connection.openDataInputStream(); int ch; String str = ; while ((ch = dis.read()) != -1) { str += (char) ch; } 2nd Question How can I get Stream Connection from a server using Android?? Coding in J2me -- connection=(StreamConnection)Connector.open(DeviceInfo.URL_CONNECTION); inpStream = connection.openInputStream(); outStream = connection.openOutputStream(); anyone have any example can show me??? wesley. -- Sent from Gmail for mobile | mobile.google.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] changing path r.java
Is it possible to change the path of r.java? My application has shared source folders with a J2ME app, r.java is automatically placed in the first folder in the project which is one of the shared folders, i would like it to be in one of the android specific folders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: qemu emulator flag not supported anymore in the 1.0 SDK?
Note that a defect has been opened for this issue: http://code.google.com/p/android/issues/detail?id=906 On Sep 30, 8:59 am, Cheryl Sedota [EMAIL PROTECTED] wrote: Google, please tell us how to increase the amount of memory available for our emulator in the 1.0 SDK. On Sep 25, 12:56 am, Volker Gropp [EMAIL PROTECTED] wrote: Hi, same Problem here with the SDK1.0 emulator on Linux. Im really missing the qemu network settings to be able to use the SDK1.0. Volker Gropp On Sep 24, 5:38 pm, Cheryl Sedota [EMAIL PROTECTED] wrote: In the 1.0 SDK, trying to run: emulator.bat -qemu-m 256 on Windows XP does not work - I get this error: w: invalid option -- '-qemu' This used to work in the beta (0.9) SDK and the emulator's usage hint in the 1.0 SD indicates that the option is valid: -qemuargs... pass arguments toqemu -qemu-h displayqemuhelp Please advise. Thanks, Cheryl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
Thanks Romain, you are right! I totally forgot to init it... and it was driving me crazy :( On 30 Set, 18:24, Romain Guy [EMAIL PROTECTED] wrote: The fix is simple, initialize you array photos. In the bug report you filed, the array itself is null. The Bitmap returned by BitmapFactory is not. On Tue, Sep 30, 2008 at 2:17 AM, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? -- Romain Guywww.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: Alignment issue related to ListView
?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:cacheColorHint=# android:layout_centerHorizontal android:background =@drawable/b1 / TextView android:id=@id/android:empty android:layout_width=fill_parent android:layout_height=fill_parent android:text=/ /LinearLayout if you change layout_height, it will work --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] error in the Java Runtime Environment
I getting this crazy error Message when I build and launch my App from Eclipse: # # An unexpected error has been detected by Java Runtime Environment: # # Internal Error (classFileParser.cpp:2924), pid=12395, tid=3084123024 # Error: ShouldNotReachHere() # # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode linux-x86) # An error report file with more information is saved as: # /home/falko/android/samples/HelloActivity/hs_err_pid12395.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # and a log is being created, but I have no clue how to stop it. I was gone for a moment but now it´s coming back. I pasted the log in here because I don know if we´re allowed to send attachments. Thx for suggestions how to solve this (I´m running Kubuntu 8.04) The complete log: # # An unexpected error has been detected by Java Runtime Environment: # # Internal Error (classFileParser.cpp:2924), pid=12395, tid=3084123024 # Error: ShouldNotReachHere() # # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode linux-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 (0x08058c00): JavaThread Unknown thread [_thread_in_vm, id=12396, stack(0xb7cef000,0xb7d4)] Stack: [0xb7cef000,0xb7d4], sp=0xb7d3ead0, free space=318k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x3bdb69] V [libjvm.so+0x1c01d0] V [libjvm.so+0x182bfd] V [libjvm.so+0x187962] V [libjvm.so+0x3756bc] V [libjvm.so+0x374305] V [libjvm.so+0x373377] V [libjvm.so+0x373082] V [libjvm.so+0x376e8d] V [libjvm.so+0x376a79] V [libjvm.so+0x39f0ba] V [libjvm.so+0x3a05ef] V [libjvm.so+0x1f34f8] V [libjvm.so+0x395296] V [libjvm.so+0x2454d3] C [java+0x2fcc] C [java+0x1942] JavaMain+0x72 C [libpthread.so.0+0x54fb] --- P R O C E S S --- Java Threads: ( = current thread ) Other Threads: =0x08058c00 (exited) JavaThread Unknown thread [_thread_in_vm, id=12396, stack(0xb7cef000,0xb7d4)] VM state:not at safepoint (not fully initialized) VM Mutex/Monitor currently owned by a thread: None Dynamic libraries: 0600-0641b000 r-xp 08:04 550015 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/client/libjvm.so 0641b000-06435000 rwxp 0041a000 08:04 550015 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/client/libjvm.so 06435000-06855000 rwxp 06435000 00:00 0 08048000-08052000 r-xp 08:04 549989 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java 08052000-08053000 rwxp 9000 08:04 549989 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java 08053000-080ba000 rwxp 08053000 00:00 0 [heap] adb1d000-adb6 r-xs 0026a000 08:03 2060593 /home/falko/android/android.jar adb6-adb67000 rwxp adb6 00:00 0 adb67000-adb81000 rwxp adb67000 00:00 0 adb81000-adb84000 rwxp adb81000 00:00 0 adb84000-adb9f000 rwxp adb84000 00:00 0 adb9f000-adba rwxp adb9f000 00:00 0 adba-adba1000 rwxp adba 00:00 0 adba1000-adba4000 rwxp adba1000 00:00 0 adba4000-adbbf000 rwxp adba4000 00:00 0 adbbf000-adbc5000 rwxp adbbf000 00:00 0 adbc5000-adbdf000 rwxp adbc5000 00:00 0 adbdf000-adce rwxp adbdf000 00:00 0 adce-ae0c rwxp adce 00:00 0 ae0c-ae4c rwxp ae0c 00:00 0 ae4c-b1be rwxp ae4c 00:00 0 b1be-b27e rwxp b1be 00:00 0 b27e-b5be rwxp b27e 00:00 0 b5be5000-b5be6000 rwxp b5be5000 00:00 0 b5be6000-b5c65000 rwxp b5be6000 00:00 0 b5c65000-b5c95000 rwxp b5c65000 00:00 0 b5c95000-b7c65000 rwxp b5c95000 00:00 0 b7c65000-b7c74000 r-xp 08:04 550024 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/libzip.so b7c74000-b7c76000 rwxp e000 08:04 550024 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/libzip.so b7c76000-b7c99000 r-xp 08:04 550021 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/libjava.so b7c99000-b7c9b000 rwxp 00023000 08:04 550021 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/libjava.so b7c9b000-b7ca6000 r-xp 08:04 550020 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/libverify.so b7ca6000-b7ca7000 rwxp b000 08:04 550020 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/libverify.so b7ca7000-b7cb r-xp 08:04 376710 /lib/tls/i686/cmov/ libnss_files-2.7.so b7cb-b7cb2000 rwxp 8000 08:04 376710 /lib/tls/i686/cmov/ libnss_files-2.7.so b7cb2000-b7cba000 r-xp 08:04 376714 /lib/tls/i686/cmov/ libnss_nis-2.7.so b7cba000-b7cbc000 rwxp 7000 08:04 376714 /lib/tls/i686/cmov/ libnss_nis-2.7.so b7cbc000-b7cd r-xp 08:04 376704 /lib/tls/i686/cmov/ libnsl-2.7.so b7cd-b7cd2000 rwxp 00013000 08:04 376704 /lib/tls/i686/cmov/ libnsl-2.7.so b7cd2000-b7cd4000 rwxp b7cd2000 00:00 0 b7cde000-b7ce6000 rwxs 08:04 97966 /tmp/hsperfdata_falko/12395 b7ce6000-b7ced000 r-xp 08:04 376723 /lib/tls/i686/cmov/ librt-2.7.so b7ced000-b7cef000
[android-developers] glass pane like widget
hi, i'm just wondering whether there is jswing's glass pane like mechanism under android platform. i found surface/surfaceview but probably it's not what i want. thanks, skink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] glass pane like widget
hi, i'm just wondering whether there is jswing's glass pane like mechanism under android platform. i found surface/surfaceview but probably it's not what i want. thanks, skink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Find existing contact by phone number
Worked great, thank you! On Sep 26, 3:57 pm, Mark Murphy [EMAIL PROTECTED] wrote: I am not sure what your managedQuery does, but does it move the cursor to the first position with moveToFirst()? Ludwig's probably correct. I actually just posted an errata to Version 1.2 ofmybook on this topic... Activity#managedQuery() probably returns a Cursor positioned before the first row. Try calling moveToFirst() on the Cursor after getting it back from managedQuery(). -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 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: Vibrate constructor is not public and not documented in API Differences
Bump On Sep 30, 12:36 am, tberthel [EMAIL PROTECTED] wrote: How do I get an instance of Vibrate in a different package now that the constructor is not public? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 disable the back key for the phone
My application needs to send several request to server. I don't want user to click back key of the phone during sending process. Is there any way I can block it ? If application is doing something, user click back, what is the life cycle of activity it would be? Thanks! April --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Anyone able to get streetview working?
Is anyone able to get streetview working? i was able to start the streetview map but the map wont display and gave an error that says 'invalid panorama' The only documentation about street view i can found is http://code.google.com/android/reference/available-intents.html private static final String STREET_VIEW_FORMAT = google.streetview:cbll={0},{1}cbp=1,0,-20,1.0mz=test; GeoPoint pt = listing.getGeopoint(); Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse( MessageFormat.format(STREET_VIEW_FORMAT, pt.getLatitudeE6()/100f, pt.getLongitudeE6()/100f))); startActivityForResult(i, RESULT_OK); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Bitmap on sdcard decodestream
The fix is simple, initialize you array photos. In the bug report you filed, the array itself is null. The Bitmap returned by BitmapFactory is not. On Tue, Sep 30, 2008 at 2:17 AM, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed some jpg files. So my data path is something like: /sdcard/app/img/1.jpg /sdcard/app/img/2.jpg /sdcard/app/img/3.jpg /sdcard/app/img/4.jpg [...] /sdcard/app/img/n.jpg Now I want to create a gallery app to show out these files, I looked at demo srcs by android sdk, but they always use imgs from resources... I decided to try using Bitmapfactory.decodeFile and also Bitmapfactory.decodestream but both seems not to work fine returning a NullPointerException Here you are a little snippet of my app: Java: for(int i=0;iimgsTokens.length;i++) { Log.d(+i,/sdcard/app/img/+imgsTokens[i] +.jpg); try { FileInputStream is = new FileInputStream(new File(/sdcard/app/img/+imgsTokens[i]+.jpg)); BufferedInputStream bis = new BufferedInputStream(is); photos[i] = BitmapFactory.decodeStream(is); bis.close(); is.close(); //photos[i] = BitmapFactory.decodeFile(/ sdcard/app/img/+imgsTokens[i]+.jpg); } catch(Exception e) { e.printStackTrace(); } } any idea how to fix? -- 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: Vibrate constructor is not public and not documented in API Differences
android.os.Vibrator is the actual class. Strange that it's not just a static call to begin with. On Sep 30, 12:55 pm, tberthel [EMAIL PROTECTED] wrote: Bump On Sep 30, 12:36 am, tberthel [EMAIL PROTECTED] wrote: How do I get an instance of Vibrate in a different package now that the constructor is not public? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Vibrate constructor is not public and not documented in API Differences
Never mind I found it: Vibrator vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE); On Sep 30, 1:56 pm, tberthel [EMAIL PROTECTED] wrote: android.os.Vibrator is the actual class. Strange that it's not just a static call to begin with. On Sep 30, 12:55 pm, tberthel [EMAIL PROTECTED] wrote: Bump On Sep 30, 12:36 am, tberthel [EMAIL PROTECTED] wrote: How do I get an instance of Vibrate in a different package now that the constructor is not public? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Important Announcement: Handango Android Catalog
This question has been answered here: http://groups.google.com/group/android-discuss/browse_frm/thread/4b3e7a099931beb9 Peli www.openintents.org On 30 Sep., 14:45, Eric [EMAIL PROTECTED] wrote: May I know how do you overcome the restriction on 1.0 SDK that it does NOT allow any apk to be installed unless it comes from Android Market? Thanks Eric Portable Electronics Ltdwww.hdmp4.com On Sep 30, 1:57 am, Handango [EMAIL PROTECTED] wrote: Handango, the original multi-platform app store, will be launching one of the industry’s first Android catalogs in November. Handango has served millions of customers since 1999 and has become the trusted and agnostic source for smartphone content. Handango's legacy is with the early adopters and, in fact, Handango has supported Linux applications for many years. Content providers building Android applications and looking for distribution are encouraged to contact Will Pinnell ([EMAIL PROTECTED] or +1.972.894.0467) for priority in the promotion of the content within the catalog. Beginning October 1st, content providers will be able to add Android applications directly to developer accounts and choose to distribute them to customers in three ways: 1) Give them away for free 2) Sell them for a one-time purchase fee 3) Set them up as a monthly, quarterly, or yearly subscription fee (subscription APIs provided at no cost) Content providers are encouraged to jump on this opportunity as soon as possible in order to maximize distribution and revenue as soon as the first Android phone is in the market. If you’re an existing Handango content partner, simply add the new Android content to your account. If you’re not yet working with Handango, you can apply to become a software partner athttp://developer.handango.comandyour application will be accepted within 24 hours. Depending on volume, content providers keep 50-70% of the suggest retail price that they provide, less any transaction costs that might occur. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 disable the back key for the phone
overwrite onKeyDown of your Activity and put a case KeyEvent.KEYCODE_BACK to a switch for the keycode-parameter. Return true in that case. Regards, plusminus # anddev.org | Worlds largest Android Community On Sep 30, 1:58 pm, april [EMAIL PROTECTED] wrote: My application needs to send several request to server. I don't want user to click back key of the phone during sending process. Is there any way I can block it ? If application is doing something, user click back, what is the life cycle of activity it would be? Thanks! April --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: WebView loadData limitations
Hi Mark, Thanks so much for the examples. I did go ahead and try using loadDataWithBaseUrl as in your example, not to any success. However, looking at your code - and seeing that it worked! - prompted me to take a step back and simplify my layout. The layout in which I had been displaying the WebView was as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent WebView android:id=@+id/ad_view android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 / Button android:id=@+id/close_web android:text=@string/close_web android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout As it turns out, the android:layout_height=wrap_content used along with android:layout_weight=1 of the WebView was preventing the WebView from properly receiving events! After changing the WebView's layout_height attribute to 0px instead of wrap_content, shouldOverrideUrlLoading is being called and things work like a charm. This bug was particularly insidious, however, since I never would have expected that these attributes would have altered the view's ability to process clicks/touches in this way. Do you think this is an SDK bug or a documentation bug? Thanks! Dave On Sep 30, 4:19 am, Mark Murphy [EMAIL PROTECTED] wrote: schmielson wrote: Thanks for the quick reply. Unfortunately, that does not work. The link text becomes highlighted to indicate that it has been clicked, but the URL is never loaded and the code in shouldOverrideUrlLoading is never called. Visithttp://commonsware.com/Android/, and download the source code to Version 1.3 of my book. Here's the direct link to the ZIP file: http://commonsware.com/Android/source_1.3.zip Check out WebKit/Browser3 in the ZIP. This sample loads a dynamically-generated Web page via loadDataWithBaseUrl(), intercepts clicks on the link with shouldOverrideUrlLoading(), and updates the page. If it works for you (and I'm fairly certain I tested it this past weekend on Android 1.0), perhaps you can see what the differences are between the sample and your project, to determine how to get the technique to work in your case. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 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] Keyguardmanager
Hi my friend, I try to use Keyguardmanager to lock the key. But never works. Do you have any sample to show me. I just want to do something like the screen lock of GPhone and we need to push the menu botton to unlock it. Please kindly help me with this. Appreciated. Barrie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Info on 3D hardware in Qualcomm MSM7201A ??
I am trying to find out what sort of graphics acceleration is present in the Qualcomm MSM7201A chipset that drives the G1 device. I see reports associated with the HTC Touch Diamond, also based on the MSM7201A, indicating that it can move 7-8 million polygons/second... http://www.engadget.com/2008/05/06/a-little-more-on-htcs-touch-diamond/ ...but I'm not sure if the HTC device features and on-board GPU external to that present in the Qualcomm chipset. Does anyone have _any_ info on this? Thanks much. blakespot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Working with Images
We have no API to decode a subset of an image in 1.0, so for now you'll have to decode the entire image (with optional subsampling) On Sep 30, 2008, at 3:57 PM, xMemphisx [EMAIL PROTECTED] wrote: Hello, What i'm currently trying to do, is load a large image... lets say the dimensions are 1500x1500... but then i want to create other images FROM that loaded image, but in smaller portions... so for instance... i want to use just the pixels from [250,0] to [500,250] to make a new image (on the fly). How can this be accomplished? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: On screen Key board
Hi, please check the following thread,that maybe what you want. http://groups.google.com/group/android-developers/browse_thread/thread/957b7b8214769ffb/032d760477205522?lnk=gstq=SoftKey#032d760477205522 Best Regards PowerGUI -- Android DotPhone Team http://www.dotphone.org/english/ http://groups.google.com/group/android-dotphone/ http://www.dotphone.org/android-dotphone/ (The Android DotPhone Project Home Page will be avaiable recently) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: On screen Key board
*Hi * ** *I want to know how to use Keyguardmanager to lock the key board or Screen lock when u push cancel phone key.* ** *Please give me some sample.* ** *Thanks* *Barrie* On Wed, Oct 1, 2008 at 7:53 AM, PowerGUI [EMAIL PROTECTED] wrote: Hi, please check the following thread,that maybe what you want. http://groups.google.com/group/android-developers/browse_thread/thread/957b7b8214769ffb/032d760477205522?lnk=gstq=SoftKey#032d760477205522 Best Regards PowerGUI -- Android DotPhone Team http://www.dotphone.org/english/ http://groups.google.com/group/android-dotphone/ http://www.dotphone.org/android-dotphone/ (The Android DotPhone Project Home Page will be avaiable recently) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 launch SMS message edit from API
Hi, Group, Is there a way to launch SMS editor from application? I know for dialer, we can use following action: Intent dialIntent = new Intent(Intent.ACTION_DIAL, Uri.parse(tel: + mPhoneNumber)); startActivity(dialIntent); Anyone can help? --elephantbug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Working with Images
If I understand your question correctly you just want: Bitmap.createBitmap(Bitmap source, int x, int y, int width, int height) where source will be your 1500x1500 bitmap, x and y are the top left of the sub image and width and height are the width and height of the sub image. Memory could be an issue though particularly if you are going to keep a lot of sub images in memory. Don't forget that you can draw sub sections of an image to a canvas using clipping so maybe you don't need to create a new sub image. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 use my custom library apk file in other applications.
Sorry, third party shared libraries are not supported in 1.0. On Sep 30, 9:06 am, Ashutosh [EMAIL PROTECTED] wrote: Hi, I have my own custom library apk file (say lib.apk) i want make it available to other applications. How to provide the uses-library in the android manifest.xml file in other apps so as to use my custom library. Kindly suggest if any one has worked on this topic. 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: how to disable the back key for the phone
But keep in mind that the user can still get out of your application with the HOME key, and there is absolutely no way for you to prevent that. On Sep 30, 1:01 pm, plusminus [EMAIL PROTECTED] wrote: overwrite onKeyDown of your Activity and put a case KeyEvent.KEYCODE_BACK to a switch for the keycode-parameter. Return true in that case. Regards, plusminus # anddev.org | Worlds largest Android Community On Sep 30, 1:58 pm, april [EMAIL PROTECTED] wrote: My application needs to send several request to server. I don't want user to click back key of the phone during sending process. Is there any way I can block it ? If application is doing something, user click back, what is the life cycle of activity it would be? Thanks! April --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: SAXParser reports different name on SDK 0.9 from SDK 1.0
Chris, What you described doesn't seem like the proper behavior even for the XML special characters. But, I have to admit that I'm just getting into Unicode, so I don't know exactly what should happen. It does seem to me that if you are using the ampersand character and it's not in one of the sections it's allowed in, it should fail if it's not escaped. Did it work when the ampersand was escaped? If so, then that's the solution. I send a lot of XML files and I know I have to parse a lot of the data to remove any special characters but I don't use Unicode. Sorry I can't be of more help :( Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 www.bgies.com www.truckerphone.com www.EDI-Easy.com www.pricebunny.com - Moderation in everything, including abstinence -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc Sent: Tuesday, September 30, 2008 10:10 AM To: Android Developers Subject: [android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0 Hey Brad, Just to be sure I tested it out and manually typed in amp; into the source for the web service. I didn't expect this to work, because even manually typing it in still leads to each character being encoded. In the quote you provided it says they MUST be escaped using either numeric character references UTF-8 (and all unicode) encoding does just that :) The '' is number 38. On the other hand, I also tested the bracket characters and . Both cause the same issue as the character. Other brackets such as [ and { and ( do not cause issue. So clearly this does have something to do with the SAXParser in Android handling the special XML characters. I have never used SAXParser outside of Android so I cannot say whether or not it is any different. But I can confirm that this did not happen in 0.9 and I am 99% confident it should not be happening at all. Thanks, Chris On Sep 29, 9:10 pm, Brad Gies [EMAIL PROTECTED] wrote: Chris, Well sure... UTF-8 can represent the ampersand character, but the ampersand is a Reserved character in XML. Below is a paragraph from the XML spec : http://www.w3.org/TR/REC-xml/ The ampersand character () and the left angle bracket () MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings amp; and lt; respectively. The right angle bracket () may be represented using the string gt;, and MUST, for compatibility, be escaped using either gt; or a character reference when it appears in the string ]] in content, when that string is not marking the end of a CDATA section. Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.EDI-Simple.com - Moderation in everything, including abstinence -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc Sent: Monday, September 29, 2008 8:47 PM To: Android Developers Subject: [android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0 Hey Brad, As far as I know it doesn't have to be escaped if it's unicode encoded. In this case, the XML is coming from a .Net Web Service, which is encoded in UTF-8. Also, we aren't comparing two different parsers, but rather the old and new version of the SAXParser with unmodified code. -chris On Sep 29, 5:30 pm, Brad Gies [EMAIL PROTECTED] wrote: Shouldn't the '' character be escaped if you are going to use it in XML? The SAX parser if probably just following the XML spec and the other parser wasn't :) Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.EDI-Simple.com - Moderation in everything, including abstinence -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc Sent: Monday, September 29, 2008 4:47 PM To: Android Developers Subject: [android-developers] Re:SAXParserreports diffeernt qName on SDK 0.9 from SDK 1.0 Hey Charlie, I think this should be added to the bug list. I'll do it tonight when I get home if you haven't already by then... What I don't understand is this doesn't seem to be an encoding or namespace issue, since
[android-developers] Re: How to use SmsManager.sendDataMessage() to send the message
*bump* On 24 Sep., 09:45, Cristina [EMAIL PROTECTED] wrote: I have just done a test to send a binary messege to a port using this code in 1.0 SmsManager smsManager = SmsManager.getDefault(); short port = 16001; smsManager.sendDataMessage(5556,5554, port, Hola.getBytes(), null, null); I use two emulators, one is launched at 5554 and the other at 5556 and I try to send the binary sms from 5554 to 5556. In the 5556 phone I have launch an application with a BroadcastReceiver in order to receive SMS Messages (but I do not know how to specify the port) The application does not failed. But the 5556 phone does not receive anything. Instead, in the console I receive the following messege every time I do a try [2008-09-24 14:05:06 - ddms]ADB rejected shell command (ls -l /): Strange but it seems that the adb is receiving the request... Does anybody has an example on how to send/receive binary SMS to an application port usingsendDataMessage? anywhere, were you able to do it? On 18 sep, 11:11, anywhere [EMAIL PROTECTED] wrote: hi Justin Ithink i have found the answer to the question 2. i think BroadcastReceiver#getResultCode() can get the sms send result. Please help to anwer the following question 1. Thanks (1) Whether Android support sending a text message with a port? If not, whether will be supported in future release? I find SmsManager#sendDataMessagecan be used to send a binary message with a port. But not found method for text message with port. Thanks BR On Sep 18, 4:35 pm, anywhere [EMAIL PROTECTED] wrote: hi Justin Thans for your assistance. I still have other two issues to bother you. (1) Whether Android support sending a text message with a port? If not, whether will be supported in future release? I findSmsManager#sendDataMessagecan be used to send a binary message with a port. But not found method for text message with port. (2) I noticed when sending a sms message, a result code can be got. So How can i get the result code? I didn't find the method. Thanks br On Sep 18, 6:53 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: Well, sorry this has taken so long to respond to! In the process of trying to write a demonstration I discovered a bug. There is a bug in the emulator code that causesSmsManager.sendDataMessage() to fail due to an infinite loop. A bug has been filed and this should be fixed in a future release of the SDK. At that time, please bring this issue up again to remind me to write a sample. Cheers, Justin Android Team @ Google On Sep 10, 2:28 am, anywhere [EMAIL PROTECTED] wrote: hi Justin Thanks for your help. But i am still confused about how to set the port, as i did not find any method to set a port for listen coming sms binary message in the document. if i write a appliction to receive the binary sms message how should i do? Thanks On Sep 10, 8:18 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: Data messages sent over SMS are limited in length (133 bytes actually), so this is probably the crash that you are running into. The port number is the port on the receiving device that the receiving service is listening on. Presumably your service is bound to this port and waiting for messages. Using SMS data messages might not be really what you want to do because of their small size. This is not really a feasible replacement for GTalk's data messaging functionality. Cheers, Justin Android Team @ Google On Sep 4, 6:08 pm, plusminus [EMAIL PROTECTED] wrote: *bump* I'd like to know that too. How to receive DataMessages then? Btw: your bug may be reated to this one:http://code.google.com/p/android/issues/detail?id=856 Best Regards, plusminus #http://www.anddev.org-WorldslargestAndroidDevelopmentCommunity On 26 Aug., 05:13, anywhere [EMAIL PROTECTED] wrote: hi all I am now trying to write some application about sms on 0.9 beta SDK. The method sendTextMessage ofSmsManagerclass performed well. But when usingsendDataMessageto send message SDK will crash. Would you please explain what's means of destinationPort parameter and how to set it. Thanks- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Ocultar texto de la cita - - Mostrar texto de la cita - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To
[android-developers] Dynamic insert code into an existing .apk
HI, I would like to know if we can add our own piece of code into any .apk dynamically? like we have JavaAssist tool to do that. does it work in this scenario as well. kindly suggest. -Wiki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 -~--~~~~--~~--~--~---