[android-developers] Re: Getting Owner and Contact Data

2011-02-10 Thread JAlexoid (Aleksandr Panzin)
But it is one of the accounts of type Google on the system. On 9 фев, 22:53, Dianne Hackborn hack...@android.com wrote: There is not a phone's e-mail address.  If the user downloaded your app from Market, they must have a Google account set up, but they may have multiple accounts.  And anyway,

[android-developers] Button click Navigation not working ( application gets crashes)

2011-02-10 Thread Ramesh M
This is manifest.xml file: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=button.pack android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name

Re: [android-developers] Button click Navigation not working ( application gets crashes)

2011-02-10 Thread Kostya Vasilyev
10.02.2011 11:05, Ramesh M пишет: 02-10 13:33:53.962: ERROR/AndroidRuntime(1756): Caused by: java.lang.NullPointerException 02-10 13:33:53.962: ERROR/AndroidRuntime(1756): at button.pack.Activity1.onCreate(Activity1.java:18) The above says there is a null pointer in your code, in

Re: [android-developers] Re: showDialog(int id) vs dialog.show()

2011-02-10 Thread Kostya Vasilyev
Yes, that method only appeared in 2.2, and not available before then. Without it, you're either going to need to create your own solution for managing dialogs and their states (and handle activity being recreated when configuration changes), or just accept that a dialog will not survive an

[android-developers] The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread stymie
I lost my old certificate.What can I do? Am I totally out of luck? This is a major upgrade to my application. I am going nuts. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Emulator crashing with System Tools rev 9

2011-02-10 Thread Matthias
the rev9 emulator is also very unstable for me. Whenever I send a geo fix (from DDMS or telnet), the emulator crashes and reboots. It also randomly reboots when using it sometimes. I wonder if that's related to the same issue the Nexus S has. it's also slower than previous emulators. -- You

[android-developers] can we upgrade paid version to free version with add.

2011-02-10 Thread Atik
HI ALL, i have uploaded one application , which is paid version and i have very few downloads of it. so i want to upgrade the same application with as free version with ad support in it. can any one tell me how much i will earn if my application will get downloaded 1000 times. i am using admob

Re: [android-developers] The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread Narendra Bagade
u can write some code to delete old version apk and install new one . On Thu, Feb 10, 2011 at 2:02 PM, stymie jamesty...@gmail.com wrote: I lost my old certificate.What can I do? Am I totally out of luck? This is a major upgrade to my application. I am going nuts. -- You received this

[android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread stymie
The Market won't even let me upgrade though. On Feb 10, 12:46 am, Narendra Bagade bagadenaren...@gmail.com wrote: u can write some code to delete old version apk and install new one . On Thu, Feb 10, 2011 at 2:02 PM, stymie jamesty...@gmail.com wrote: I lost my old certificate.What can I do?

Re: [android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread Kostya Vasilyev
Next time make sure to backup your key file. Just mailing to yourself with GMail is better than nothing. -- Kostya 10.02.2011 11:59, stymie пишет: The Market won't even let me upgrade though. On Feb 10, 12:46 am, Narendra Bagadebagadenaren...@gmail.com wrote: u can write some code to

[android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread stymie
As per http://developer.android.com/guide/publishing/app-signing.html If you sign the new version without using matching certificates, you will also need to assign a different package name to the application — in this case, the user installs the new version as a completely new application. I

Re: [android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread Kostya Vasilyev
This means that if you don't have the original key, your only option is to upload a completely new application (new key and new package name). -- Kostya 10.02.2011 12:14, stymie пишет: As per http://developer.android.com/guide/publishing/app-signing.html If you sign the new version without

Re: [android-developers] StageFright: why are you not using JavaBeans?

2011-02-10 Thread Dianne Hackborn
Android doesn't use JavaBeans, period. On Wed, Feb 9, 2011 at 10:48 PM, ss mno@gmail.com wrote: Hello! Im relatively new to Android, and on the verge of using StageFright. I am curious to know why StageFright has been designed the way it is in the GingerBread release. Why have Google

[android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread stymie
But how would the users who bought it be able to upgrade without being charged again? Am I stuck here? On Feb 10, 1:19 am, Kostya Vasilyev kmans...@gmail.com wrote: This means that if you don't have the original key, your only option is to upload a completely new application (new key and new

Re: [android-developers] Re: Camerapreview

2011-02-10 Thread Kevin R. Octavian
and teh how to upload image to server from android?? On Thu, Feb 10, 2011 at 1:33 AM, Kevin Duffey andjar...@gmail.com wrote: Email intent.. which you can use to bring up email app and attach photo to it, to/subject/etc lines final Intent i = new Intent(Intent.ACTION_SEND);

[android-developers] Re: Playing an audio file during a call

2011-02-10 Thread Gazy
Hi guys, Are you sure this isnt possible? How do the sound board applications work so well if this isnt possible? Gareth On Feb 4, 5:14 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Feb 4, 2011 at 12:10 AM, Nagesh nagesh.go...@gmail.com wrote: I am new to android development, i am

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-10 Thread Samuh
You should be ashamed. It's not supported on earlier devices and there is no indication that it will be supported by 3.0. @Aleksandr: Thanks for your reply I know that it was not supported earlier but a lot changed with regards to MediaPlayer framework and there was some confusion as regards

[android-developers] Debug application running on emulator on another computer in LAN

2011-02-10 Thread RG
I need to connect my Eclipse Debugger to a emulator running on another computer in LAN. Can anyone please provide me the instruction to do this setup? Thanks RG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-10 Thread Samuh
I know that Honeycomb Preview SDK is not the finished product but did anyone try playing m3u8 playlist on it? Is this even worth trying of should I wait for final version of 3.0 SDK to be released. -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] can we upgrade paid version to free version with add.

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 09:44, Atik atik0...@gmail.com wrote: i have uploaded one application , which is paid version and i have very few downloads of it. so i want to upgrade the same application with as free version with ad support in it. can any one tell me how much i will earn if my

Re: [android-developers] Re: Can't properly stop a thread

2011-02-10 Thread Kaloian Doganov
onPause() is not an option since it is called even more frequently than onDestroy(). Perhaps the most reasonable way is to indeed hook on onDestroy() but to kill the background thread only if onRetainNonConfigurationInstance() hasn't been called before onDestroy(). 2011/2/10 Roger Podacter

[android-developers] Upload youtube videos by intent

2011-02-10 Thread NightGospel
Hello, I googled this and found that the suggested way is as follows: Intent ii = new Intent(Intent.ACTION_SEND); ii.setType(video/3gp); ii.putExtra(Intent.EXTRA_STREAM, uri); ii.putExtra(Intent.EXTRA_TEXT, Sample text );

[android-developers] Re: Server Response

2011-02-10 Thread Samsung Galaxy
Hi, Not executing :-( Server Side //Script if($count==1){ echo true; }else { echo false; } ? Client Side ... if (true.equals(responseText)){ Log.i(Output,responseText); responseText = here it should be true; Toast.makeText(

[android-developers] Re: ArrayList with contacts view issue

2011-02-10 Thread Abalufaske
the error is the view of the ArrayListContact todoItems = new ArrayListContact(); , when i try to view the content of the array with ç final ArrayAdapterContact aa; aa = new ArrayAdapterContact(this, android.R.layout.simple_list_item_1, todoItems);

[android-developers] Probelm with getting posts from database

2011-02-10 Thread André
I have a listview that gets it's posts from a database. I want the ten latest entries sorted by the time they where added to the database. This works, but it always skips the first post until a newer one is added. What could I be doing wrong? For this I use the following code: public Cursor

[android-developers] Re: Ginger bread - NFC Card Emulation p2p

2011-02-10 Thread Faboom
Hi there, is card emulation mode supported in 2.3.3 ? Cheers, Fabian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Server Response

2011-02-10 Thread Kostya Vasilyev
The empty line is due to there being a newline character in your server's response. Trim it before testing for true / false: response = response.trim(); -- Kostya 10.02.2011 13:50, Samsung Galaxy пишет: Hi, Not executing :-( Server Side //Script if($count==1){ echo true; }else { echo

[android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi, I have a problem, in my application i am displaying webview in customized dialog. suppose if the user browse 5 pages in the webview how can he come back to previous page, if i click on back button the dialog is dismissing. So i thought i want to put a button also in dialog to achieve the

[android-developers] Re: Server Response

2011-02-10 Thread Samsung Galaxy
Thanks All its working :-) On Feb 10, 11:57 am, Kostya Vasilyev kmans...@gmail.com wrote: The empty line is due to there being a newline character in your server's response. Trim it before testing for true / false: response = response.trim(); -- Kostya 10.02.2011 13:50, Samsung

Re: [android-developers] Probelm with getting posts from database

2011-02-10 Thread Kostya Vasilyev
This for loop looks really strange: for(cursor.moveToFirst(); cursor.moveToNext(); cursor.isAfterLast()) The condition for isAfterLast should be inverted. Also don't iterate twice and call getColumnIndex for each row, nether of those is necessary. Something like this should work: cursor =

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Kostya Vasilyev
Try this: add a key-down handler, pass the key to the web view. Make sure the user can eventually close the dialog somehow. -- Kostya 10.02.2011 14:03, Abhilash baddam ?: Hi, I have a problem, in my application i am displaying webview in customized dialog. suppose if the user browse 5

Re: [android-developers] Re: ArrayList with contacts view issue

2011-02-10 Thread TreKing
On Thu, Feb 10, 2011 at 4:54 AM, Abalufaske abalufa...@gmail.com wrote: the error is the view of the ArrayListContact todoItems = new ArrayListContact(); , when i try to view the content of the array with ç final ArrayAdapterContact aa; aa = new ArrayAdapterContact(this,

[android-developers] Re: Camerapreview

2011-02-10 Thread Jayanthi
Hi , I am getting this error :ERROR/Mms/media(215): java.io.FileNotFoundException: /sdcard/1297337002449.jpg (No such file or directory) below is the path where I write the file path = String.format(/sdcard/%d.jpg, System.currentTimeMillis()); Log.e(Image,from Sdcard + path);

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 12:03, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: I have a problem, in my application i am displaying webview in customized dialog. suppose if the user browse 5 pages in the webview how can he come back to previous page, if i click on back button the dialog

[android-developers] Re: Probelm with getting posts from database

2011-02-10 Thread André
Thanks Kostya, I did as you suggested and it looks much better. For my question though I got the same problem when using your code. But I tried adding: String item1 = cursor.getString(index1); String item2 = cursor.getString(index2); before while(cursor.moveToNext()){ as well as in it. And then

Re: [android-developers] Re: Probelm with getting posts from database

2011-02-10 Thread Kostya Vasilyev
Interesting. The docs specifically say that query() returns A Cursor object, which is positioned before the first entry. You can test by calling cursor.getPosition(), it should be -1. Are you moving the cursor *before* that processing loop? (calling any move() methods?) If you're not,

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi Marcin, What u have sent the link, is helped me alot in general webview but here i am displaying the webview in Customized Dialog. Here i used dialog.setCancellable(false); and i used back button functionality like this its not working in dialog..what may be the reason.

[android-developers] No access to Browser.BookmarkColumns.THUMBNAIL anymore?

2011-02-10 Thread Liorry
Hello! I've been trying to locate Browser.BookmarkColumns.THUMBNAIL on Android API and it seems like it's not supported anymore. When I google Browser.BookmarkColumns.THUMBNAIL I see lots of applications sources using it and also Browser.HISTORY_PROJECTION_THUMBNAIL_INDEX . When I look in

[android-developers] Re: Probelm with getting posts from database

2011-02-10 Thread André
My misstake! I didn't remove cursor.moveToFirst(); So that must have been the problem all the time. It does return -1. After move to first its 0. Works fine now! //André On Feb 10, 1:22 pm, Kostya Vasilyev kmans...@gmail.com wrote: Interesting. The docs specifically say that query() returns

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi, if i give dialog.setCancellable(true); the the dialog box is dismissing...? what shall i do? On Thu, Feb 10, 2011 at 6:14 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi Marcin, What u have sent the link, is helped me alot in general webview

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Kostya Vasilyev
Um, if you don't want that, call dialog.setCancellable(false) ? 10.02.2011 15:53, Abhilash baddam ?: Hi, if i give dialog.setCancellable(true); the the dialog box is dismissing...? what shall i do? On Thu, Feb 10, 2011 at 6:14 PM, Abhilash baddam

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
hi kostya, but if i do as u told back button is not working...? Any alternate for this ? On Thu, Feb 10, 2011 at 6:46 PM, Kostya Vasilyev kmans...@gmail.com wrote: Um, if you don't want that, call dialog.setCancellable(false) ? 10.02.2011 15:53, Abhilash baddam пишет: Hi,

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Kostya Vasilyev
I think you are trying to handle the key in your activity - whereas you should be handling it in the dialog. http://developer.android.com/reference/android/app/Dialog.html#setOnKeyListener(android.content.DialogInterface.OnKeyListener) dialog.setOnKeyListener(new

Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Abhilash baddam
Hi kostya, You are right, i did like as u said. Thanks for the solution. On Thu, Feb 10, 2011 at 7:15 PM, Kostya Vasilyev kmans...@gmail.com wrote: I think you are trying to handle the key in your activity - whereas you should be handling it in the dialog.

[android-developers] javascript graphing

2011-02-10 Thread Jags
hi all, i need to render a thin client application in android browser. there, i need to draw a line graph. Is there any java script library sorts which will work for android browsers ? any examples ? jags -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: can we upgrade paid version to free version with add.

2011-02-10 Thread Brill Pappin
Try putting out a version with limited features, but use it to push users to your paid version. I do this with one of my keyboards, and it seems to work to some degree. - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Brill Pappin
Sometimes when I uninstall an app, I get a popup dialog that asks me to tell it why I'm uninstalling. Does anyone know if this is built into the market or if its a custom component? If its built into the market, can we acces the data? On average I get about a 60-70% retention on my keyboards

Re: [android-developers] javascript graphing

2011-02-10 Thread Vinay Julme
I don't know about Android Javscript lib. But I have made php sites and used javascript on it... And it worked fine on android phone web browser. On Thu, Feb 10, 2011 at 7:49 PM, Jags jag...@gmail.com wrote: hi all, i need to render a thin client application in android browser. there, i need

[android-developers] Re: Insrumentation testing in Android

2011-02-10 Thread Diego Torres Milano
If $ adb shell pm list instrumentation output is empty, then you don't have any test installed. Install them first. On Feb 9, 8:44 am, Oleg Popenov popenov.o...@gmail.com wrote: Hi, I've tried to run Instrumentation Tests on device from adb shell and I get a strange error, could you please

[android-developers] retrieve current shadow effect attributes from a textview

2011-02-10 Thread Hari Edo
I can set shadow layer attributes in XML for a textview. Separate attributes control the Dx, Dy, radius and color. I can also set shadow layer attributes in code. One method will allow me to set all four of those parameters. However, I don't see any getters for these parameters. I'd prefer to

[android-developers] Downloading an .apk update

2011-02-10 Thread dashman
i'd like to allow users to download any updates directly from my app (hosted on own server). right now i do this: the url contains a link to the http: link to the .apk file: Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url));

Re: [android-developers] Downloading an .apk update

2011-02-10 Thread Marcin Orlowski
is there a better way of doing this - w/o the webviewer popping up. You can download APK (i.e. to SD card) yourself w/o need of WebView and the just init install of downloaded package -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread TreKing
On Thu, Feb 10, 2011 at 8:44 AM, Brill Pappin br...@pappin.ca wrote: Does anyone know if this is built into the market or if its a custom component? Market, I believe. If its built into the market, can we acces the data? Nope, that would help developers improve their apps. Why would the

[android-developers] Creating an image programmatically

2011-02-10 Thread Mattias Svala
Hello! I want to create an image programmatically that I will later use in an ImageView. I was thinking that I can use BitmapDrawable to do this. Something like this perhaps? Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.RGB_565); BitmapDrawable drawable = new

Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 15:44, Brill Pappin br...@pappin.ca wrote: Sometimes when I uninstall an app, I get a popup dialog that asks me to tell it why I'm uninstalling. It pops up always unless you leave app details page before uninstall finishes Does anyone know if this is built into the market

Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Kevin Duffey
I don't think it pops up always.. I get the uninstal, the OK button that it was uninstalled, and back to my Manage apps page. I seldom see it actually. I am surprised however that we can't access that data. What's the point of even asking why someone uninstalled a specific app? I suppose google

[android-developers] Re: Redrawing a view when the transparent activity closes

2011-02-10 Thread Hari Edo
Are you saying that your MainActivity.onResume() nor your MainActivity.onActivityResult() is not being called? I would think both should be happening here, and the translucent visual effect is irrelevant. See the activity lifecycle documentation. On Feb 9, 6:02 am, vivin joy

Re: [android-developers] Re: Getting Owner and Contact Data

2011-02-10 Thread Kevin Duffey
Well, I would think the only thing we can do if there is no actual me record, is to pull the accounts connected to, and get emails from those.. if there is only 1, use it, if more than 1, offer the end user a choice. However, at the very least I'd still ask the end user if that is the email they

Re: [android-developers] Creating an image programmatically

2011-02-10 Thread Mark Murphy
On Thu, Feb 10, 2011 at 11:02 AM, Mattias Svala thebra...@gmail.com wrote: I want to create an image programmatically that I will later use in an ImageView. Why not just draw it on-screen? Why create a Bitmap? Where do I get a Resources object and what does it do? getResources() in your

Re: [android-developers] Downloading an .apk update

2011-02-10 Thread Mark Murphy
Don't forget to include the MIME type in the Intent, though. On Thu, Feb 10, 2011 at 10:59 AM, Marcin Orlowski webnet.andr...@gmail.com wrote: is there a better way of doing this - w/o the webviewer popping up. You can download APK (i.e. to SD card) yourself w/o need of WebView and the just

Re: [android-developers] Focus and raise keyboard for Dialog with EditText

2011-02-10 Thread Tobiah
On 02/09/2011 02:15 PM, Kostya Vasilyev wrote: No idea about the hardware keyboard, sorry. Have you tried requesting focus inside the show listener? I would think it'd do the right thing for both soft/hard keyboards I did. That was your original suggestion. So I have:

Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Marcin Orlowski
I don't think it pops up always.. I get the uninstal, the OK button that it was uninstalled, and back to my Manage apps page. You have to uninstall via Market, not settings - applications. So how do developers figure out install/uninstall rate? I always see in the market 1000-5000,

Re: [android-developers] Re: can we upgrade paid version to free version with add.

2011-02-10 Thread Kevin Duffey
From my understanding of ads, you need a huge number of users running it to earn any sort of money. Probably in the millions running it every day to earn a decent amount. Not many apps out there that do that. Android is still too young and too many expect most things free. Have you looked at

Re: [android-developers] Re: Camerapreview

2011-02-10 Thread Kevin Duffey
@Jay.. did you set the right permissions to access/write files? Make sure you do that or it wont work. Also, google (or search here) on how to access the sdcard. I forget off the top of my head. @Kevin.. you can post it using HttpClient, and on the server side (assuming Java) use the apache

Re: [android-developers] Creating an image programmatically

2011-02-10 Thread Marcin Orlowski
How do I figure out how many pixels equals X display independent pixels? This shall do the sufficient math: float screenDensity = getResources().getDisplayMetrics().density; float widthDip = 90.0f; int areaWidthPx = (int)( widthDip * screenDensity + 0.5f ); -- You received this message

Re: [android-developers] Re: Can't properly stop a thread

2011-02-10 Thread Streets Of Boston
You can call 'isFinishing()' in the onPause method to determine if the onPause is called during the destruction of an activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Server Response

2011-02-10 Thread Kevin Duffey
Dang too late.. lol.. use responseText.trim().equalsIgnoreCase(true). Of course I'd check for null first.. On Thu, Feb 10, 2011 at 3:18 AM, Samsung Galaxy atif.musad...@gmail.comwrote: Thanks All its working :-) On Feb 10, 11:57 am, Kostya Vasilyev kmans...@gmail.com wrote: The empty

Re: [android-developers] Focus and raise keyboard for Dialog with EditText

2011-02-10 Thread Kostya Vasilyev
10.02.2011 19:24, Tobiah пишет: If I uncomment the two input manager lines, the keyboard raises with the dialog. In any case, whether the requestFocus() is called makes no difference. You could try clearing the focus and requesting it again. Can I get the actual dialog back from the

Re: [android-developers] Re: Ginger bread - NFC Card Emulation p2p

2011-02-10 Thread Kevin Duffey
I am interested in playing around with NFC. I don't have a device yet.. waiting on the Bionic and/or xoom... but what do you use to test the android device with? Is there a NFC device we can buy to test our NFC android device with? Also, 2.3.3? What phones actually run this? I thought at this

Re: [android-developers] Re: Playing an audio file during a call

2011-02-10 Thread Kevin Duffey
I can tell you that GPS continues to talk while on a call.. but what the caller on the other end hears is the speaker phone output of the gps talking going into the mic, not a direct audio feed. I suppose if there is a way to make sure the speaker phone is turned on in your app and you can turn up

[android-developers] Re: Downloading an .apk update

2011-02-10 Thread dashman
i set the mime-type like this i.setType(application/vnd.android.package-archive); and the app crashes. if i comment out the line - no crash and the webview opens and the .apk file is downloaded. again the url points to a .apk file. -- You received this message because you are subscribed to

Re: [android-developers] Re: Fetch data from android service to HTML

2011-02-10 Thread Kevin Duffey
You gave no reason as to why you would do this? By this I am trying to understand if there is a better way to do this, as generally from what I've read, and based on small size and limited battery of phones, you don't generally want to run a server on it. Maybe you are doing something the wrong

[android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread Brill Pappin
I've got a situation where i set a EditText to disabled, but the keyboard still allows the user to input text (although delete key doesn't work). Is EditText.setEnabled(false) designed to work this way? Just so you have context for the problem: In this case I am showing the user some encrypted

[android-developers] [Camera API] Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-10 Thread Joe McCann
I'm trying to avoid having to rewrite the Android source for the native camera app (as it is a cluster***k of code), but am curious as to the proper, most efficient away of being able to update the Camera Parameters AFTER the SurfaceView of the Camera has been created and opened. For example, if

Re: [android-developers] Creating an image programmatically

2011-02-10 Thread Mattias Svala
On Thursday, February 10, 2011 5:21:17 PM UTC+1, Mark Murphy (a Commons Guy) wrote: On Thu, Feb 10, 2011 at 11:02 AM, Mattias Svala theb...@gmail.com wrote: I want to create an image programmatically that I will later use in an ImageView. Why not just draw it on-screen? Why create a

Re: [android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread TreKing
On Thu, Feb 10, 2011 at 3:24 AM, stymie jamesty...@gmail.com wrote: But how would the users who bought it be able to upgrade without being charged again? They can buy the new app and have you refund the original. Am I stuck here? Yes, yes you are. Back. That. Sh*t. UP!

Re: [android-developers] Creating an image programmatically

2011-02-10 Thread Mark Murphy
On Thu, Feb 10, 2011 at 12:30 PM, Mattias Svala thebra...@gmail.com wrote: I'm going to use the image in an app widget. And when building an app widget I need to use views supported by the RemoteViews class. So far this is the only way I have come up with on how to get a dynamically generated

Re: [android-developers] Re: Downloading an .apk update

2011-02-10 Thread Mark Murphy
On Thu, Feb 10, 2011 at 12:11 PM, dashman erjdri...@gmail.com wrote: i set the mime-type like this i.setType(application/vnd.android.package-archive); and the app crashes. Use setDataAndType(). setType() nulls out your Uri. And, again, this is only needed if you follow Marcin's

Re: [android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread TreKing
On Thu, Feb 10, 2011 at 11:24 AM, Brill Pappin br...@pappin.ca wrote: Is EditText.setEnabled(false) designed to work this way? I don't think so, but I ran into this as well. I worked around it by calling setFocusable(false) as well as setEnabled(false). That worked to prevent editing the text.

Re: [android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread Brill Pappin
Yah, I'm thinking its a bug as well. There is no logical reason i can think of for a disabled text input to accept new data from the keyboard (although you should be able to programatically set it). I'll go see if I can find where the bugs are for Android and add a report. -- You received

[android-developers] Re: Emulator crashing with System Tools rev 9

2011-02-10 Thread kypriakos
Much slower - I was finally able to get the 2.3.3 avd to run on the tools rev 9 emulator (kept crashing but the last time I run it it stayed up) and the whole time that was up it was running at 90%+ CPU ... On Feb 10, 3:43 am, Matthias m.kaepp...@googlemail.com wrote: the rev9 emulator is also

[android-developers] Re: DDMS does not show VM list

2011-02-10 Thread jotobjects
Well - today the issue is resolved by the action of sunspots maybe :-) Now both phones show the same processes in the upper left quadrant of DDMS. Maybe what happened is that I powered down the development system and the phones overnight. Perhaps the device driver on the development system

Re: [android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread TreKing
On Thu, Feb 10, 2011 at 12:04 PM, Brill Pappin br...@pappin.ca wrote: Yah, I'm thinking its a bug as well. There is no logical reason i can think of for a disabled text input to accept new data from the keyboard (although you should be able to programatically set it). I'll go see if I can

Re: [android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread Brill Pappin
Yikes, more bugs with doing that. Seems once you set focusable == false, you can't undo it. here is the method... it never seems to reenable the property. public void setFocusable(boolean focusable) { if (!focusable) { setFlags(0, FOCUSABLE_IN_TOUCH_MODE); }

[android-developers] Re: The apk must be signed with the same certificates as the previous version.

2011-02-10 Thread stymie
Ok Lesson Learned.It was a hard one :-) On Feb 10, 9:43 am, TreKing treking...@gmail.com wrote: On Thu, Feb 10, 2011 at 3:24 AM, stymie jamesty...@gmail.com wrote: But how would the users who bought it be able to upgrade without being charged again? They can buy the new app and have you

[android-developers] Re: Honeycomb SDK

2011-02-10 Thread Ed Burnette
Ok, so if 2.3.3 is API level 10, and 3.0 is API level 11, where would any future 2.x releases fit in? Will they be called API level 10, or 12, or will you start using fractional numbers somehow (currently the level has to be an int)? The answer affects how we should write apps that work across

Re: [android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread TreKing
On Thu, Feb 10, 2011 at 12:31 PM, Brill Pappin br...@pappin.ca wrote: Yikes, more bugs with doing that. Seems once you set focusable == false, you can't undo it. Wow - that's awesome. I used this for a restricted feature in my free version so I never had to undo it. Looks like you're slapping

[android-developers] Re: Intent Resolution

2011-02-10 Thread Dan
I added the Default Category to the intent and intent filter in the manifest, it now works but the original issue is confusing to me. On Feb 9, 2:44 pm, Dan king...@gmail.com wrote: Hello, I am unable to start an Activity. My goal is to specify my application's packages so that Intent

Re: [android-developers] EditText still allows input when setEnabled(false)!?

2011-02-10 Thread Romain Guy
You can re-enable the property, just call setFocusableInTouchMode(). On Thu, Feb 10, 2011 at 10:31 AM, Brill Pappin br...@pappin.ca wrote: Yikes, more bugs with doing that. Seems once you set focusable == false, you can't undo it. here is the method... it never seems to reenable the

[android-developers] Drag and drop in a web application?

2011-02-10 Thread Keith Hughitt
Anyone know how it can be supported for web pages in Android browser? Typically it is pretty straight-forward to support using a combination of the mouseDown, mouseMove, and mouseUp events. The default behavior in the Android web browser, however, is to drag the document itself. It looks like

[android-developers] Re: Sliding Drawer question

2011-02-10 Thread Salsero69
I'm having the same issue. Eclipse allows me to add it, but then can't do visual editing which sucks. On Jan 15, 11:24 pm, Scott Deutsch surger...@gmail.com wrote: Hello group. I tried to add a Sliding Drawer through the visual xml builder thingy, but it is telling me The following classes

[android-developers] adb_usb.ini documentation?

2011-02-10 Thread A Curtis
Hello, Is there any documentation available that refers to .android/ adb_usb.ini and other related files? I just spent 3 frustrating days Googling for a solution for using ADB on Linux or the OS-X. The answer was to add the USB vendor ID to this file. I can not find any reference to this in any

Re: [android-developers] Re: Honeycomb SDK

2011-02-10 Thread Shane Isbell
Even before the 2.3.3 SDK update, the Build.VERSION.SDK_INT on the 3.0 emulator said 10. So I assumed that SDK 10 was honeycomb preview and that the final release of honeycomb would be SDK 11. But after updating, the SDK now says 2.3.3 is SDK 10, emulator (3.0) also says 10. I don't think Google

Re: [android-developers] Re: Honeycomb SDK

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 19:37, Ed Burnette ed.burne...@gmail.com wrote: Ok, so if 2.3.3 is API level 10, and 3.0 is API level 11, where would Unless 3.0 is officially out it can be any api number. Who said 3.0 is going to be 11? -- You received this message because you are subscribed to the Google

[android-developers] exporting signed apk in Eclipse

2011-02-10 Thread DanielleM
Hello all: I have exported my android project using eclipse and I have a signed .apk. However, when I installed it on a device to test it. It would never launch. I just get a black screen and if I press the home or menu buttons on the device it takes forever to go back to the home screen. When I

[android-developers] How to intercept when the application is brought to foregroud from background

2011-02-10 Thread Hari
Hi, Out Mobile Application required the user to provide username and password to login. After login, if the user navigates to another application and tries to come back to our application again, i would like to intercept this action and redirect the user to login screen and then lead to where ever

Re: [android-developers] Re: Honeycomb SDK

2011-02-10 Thread Dianne Hackborn
Well by definition there would be no API changes between API level 10 and 11. The whole point API levels is to provide a consistent, strict super-setting of platform progression. That is, you can say is the platform API level = X and always know that if this is true it will contain at least all

[android-developers] How to vertically center text inside TabWidget tabs?

2011-02-10 Thread Jin Chiu
How can I make the text in each tab within my TabWidget vertically centered. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] How to intercept when the application is brought to foregroud from background

2011-02-10 Thread Mark Murphy
On Thu, Feb 10, 2011 at 2:19 PM, Hari mba.for.d...@gmail.com wrote: Out Mobile Application required the user to provide username and password to login. Why? After login, if the user navigates to another application and tries to come back to our application again, i would like to intercept

Re: [android-developers] How to vertically center text inside TabWidget tabs?

2011-02-10 Thread Mark Murphy
Use the version of setIndicator() that takes a View, and format it however you wish. On Thu, Feb 10, 2011 at 2:21 PM, Jin Chiu live2drea...@gmail.com wrote: How can I make the text in each tab within my TabWidget vertically centered. -- You received this message because you are subscribed to

  1   2   >