[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-10 Thread metal mikey
My hypothesis is that since instructions came out as to how to setup the emulator with Android Marketplace, spammers/weirdos have used tons of gmail accounts to download Apps then uninstall them with the intent of throwing stats off. On Sep 10, 3:05 pm, dah...@gmail.com dah...@gmail.com wrote:

[android-developers] Random ClassCastException in Stress testing

2010-09-10 Thread ankita.nhst
Hello All, I have a ListActivity with the custom ListAdapter. On clicking a button in rowlayout of list item I get a custom dialog with a couple of buttons. Since the Custom dialog carries same buttons and should not be created again and again even if the user clicks on several buttons of list

[android-developers] Can android support more than one sdcard?

2010-09-10 Thread Nikkea Dong
Hey Guys, Is there anyone tell me android support more than one sdcard? How to add one more sdcard by coding? Thanks, Nikki -- 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: Is anyone's active install % dropping like a rock lately?

2010-09-10 Thread Jonas Petersson
On 09/10/2010 08:10 AM, metal mikey wrote: My hypothesis is that since instructions came out as to how to setup the emulator with Android Marketplace, spammers/weirdos have used tons of gmail accounts to download Apps then uninstall them with the intent of throwing stats off. I have not clue

[android-developers] Switching font

2010-09-10 Thread Jon mailinglists
Hi all I want to switch font in my application, and I of course want to use the same font in every text element. The only way I've found out how to do it is to pull out each textview/button/edittext/... in java and do: TextView txt = (TextView) findViewById(R.id.custom_font); Typeface

[android-developers] some time my Phone state receiver not receiving any broadcast message wot to do

2010-09-10 Thread A N K ! T
i have create a receiver which receive on phone state change i have register it in xml by android.intent.action.PHONE_STATE but some time it dont receive any broadcast message log mesages are::: 09-10 11:20:36.968: WARN/ActivityManager(74): Timeout of broadcast BroadcastRecord{43347258

Re: [android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread TreKing
On Thu, Sep 9, 2010 at 2:36 PM, DanH danhi...@ieee.org wrote: In the case of something like Monkey, the need to meet an internal demo date would be valid cause for urgent, in my opinion. Yes - to person with the deadline, sure this would seem urgent. To the rest of us on this volunteer list?

[android-developers] How to prevent a service from being restarted by the system...

2010-09-10 Thread sdphil
From what I can tell -- if you return START_NOT_STICKY from Service.onStartCommand(...), the system should not restart a service if it crashes. However, I'm not seeing that behavior -- any ideas on what could be restarting the service? tia. -- You received this message because you are

[android-developers] Re: GeoCoding Problems

2010-09-10 Thread Droid
I had with same problem with my App in that some geocoder returns are empty. I can suggest two solutions 1) Do try catch exceptions that traps a null and then starts the method again (which it will do until it gets a result). Seems to work for me. 2) The results come back thick and fast so use

Re: [android-developers] json

2010-09-10 Thread TreKing
On Fri, Sep 10, 2010 at 12:17 AM, vineeshkc kcvine...@gmail.com wrote: pls help for reteriving data from the webserver usin json http://www.catb.org/esr/faqs/smart-questions.html - TreKing

[android-developers] Re: How to handle Home Key in our Activity

2010-09-10 Thread Paul Turchenko
+1 On Sep 9, 9:58 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 8, 2010 at 10:50 PM, AnnuDroid enigma.an...@gmail.com wrote: How to handle Home keyPlzz Help me out Plzz take two seconds to spell please correctly. I want the Answer. 42. No one in this Blog has any idea

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread Tez
FYI I am a scientific programmer for a european university. We are doing work on Android security. We have a research hypothesis that can be proved valid if we solve the above stated problem. This work is on a deadline. And one entire chain of work will be regarded as discarded/valid based on

[android-developers] setPositiveButton listener is called multiple times when button is repeatedly clicked (very fast).

2010-09-10 Thread Vibhor Mahajan
Hello All, Below code is executed on a button click in my application. new AlertDialog.Builder() .setTitle(Test) .setMultiChoiceItems(items, state, new DialogInterface.OnMultiChoiceClickListener() { public void onClick(DialogInterface dialog, int whichButton, boolean isChecked) { //ToDo:

Re: [android-developers] Re: somebody stole our app and resell it on the market.

2010-09-10 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/10/10 01:54 , William Ferguson wrote: OK, firstly deploying your app without obfuscating the code was a mistake. But now that its happened why do you think someone who is selling a paid version of your app and who will have a hard time

[android-developers] android office document viewer apk if anyone have it.

2010-09-10 Thread Nency Robert
HI, Looking for free android MS office document viewer application. Please attach with reply if anyone have it. Or share a link to download it directly to computer (not to phone, I want apk file). Ex: OffiViewer,K2 Document viewer... etc Thanks. -- You received this message because you are

[android-developers] Re: WebView and ignoring SSL certificate

2010-09-10 Thread Indicator Veritatis
How many root certificates do you need these days? Unless origin servers are using mom-and-pop CAs instead of real ones, six root certs should cover all serious vendor sites. At least such was the case when I last confronted this issue just a few years ago. Now I realize that developers often use

[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-10 Thread William Ferguson
How does the Market get informed of a new install? How does the Market get informed of an uninstall? Does installing an app other than via the market (on a phone that has the android market) increment the number of installs? Is it possible that the apps are being downloaded from a source other

[android-developers] android doesn't recognize battery

2010-09-10 Thread Anand Android
Hi all, in the presence of usb cable if i remove battery from the device and put it back ,the device is not recognizing the battery. but from the kernel log i can see the battery charging event at the time of inserting the battery back and after that if the usb cable is taken out ,device will

[android-developers] Re: Adding checkboxes to a LinearLayout

2010-09-10 Thread Indicator Veritatis
But won't that make all the widgets in the Layout go to the bottom? So he will need to have one LinearLayout vertically oriented for the widgets that go at the top or middle, then start another vertically oriented LinearLayout (with fill-parent) with android:gravity=bottom and buttons only. Or

Re: [android-developers] How to prevent a service from being restarted by the system...

2010-09-10 Thread Dianne Hackborn
What is in the log? What does it say about your service in adb shell dumpsys service? On Thu, Sep 9, 2010 at 11:45 PM, sdphil phil.pellouch...@gmail.com wrote: From what I can tell -- if you return START_NOT_STICKY from Service.onStartCommand(...), the system should not restart a service if

[android-developers] Re: Choosing background for Live Wallpaper.

2010-09-10 Thread Pent
 What I would like is for the user to be able to press a button in the Settings menu, have the list of options show up just like setting the wallpaper from the home screen, minus the Live Wallpapers options.  Once the user navigates the choices and picks an actually image I would load it to

[android-developers] Re: How to handle Home Key in our Activity

2010-09-10 Thread skink
On 9 Wrz, 05:50, AnnuDroid enigma.an...@gmail.com wrote: How to handle Home keyPlzz Help me outWe can handle Home button you CAN NOT handle Home key in your Activity. Period. How many times will you be asking that question again and again? pskink -- You received this message

Re: 回复: [android-developers] Re: TCP Client Is sue

2010-09-10 Thread Vinod Joseph
I could change MTU using busybox. Also, init.rc provides me commands to change TCP Window Size. Hope that improves my throughput performance ! Any other tips for throughput optimization is deeply appreciated. 2010/9/9 孙文杰 javenson0...@gmail.com @Vinod: AFAIK you can change the TCP window size

Re: [android-developers] Widget Layout Help Please

2010-09-10 Thread Kostya Vasilyev
If your widget is too large, check these: - Android UI guidelines has standard widget sizes, as well as shows the grid on which widgets are laid out: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#sizes - Check your appwidget-provider XML file (usually

Re: [android-developers] Re: Adding checkboxes to a LinearLayout

2010-09-10 Thread Kostya Vasilyev
That's why I was suggesting RelativeLayout. With it, some items can be pushed to the bottom, while others positioned in other ways. Your suggestion for nested LinearLayout would work, too. It's just that I really like using RelativeLayout (I think it's really nice, once you get the hang of

Re: 回复: [android-developers] Re: TCP Client Is sue

2010-09-10 Thread Kostya Vasilyev
10.09.2010 11:56, Vinod Joseph пишет: Hope that improves my throughput performance ! Any other tips for throughput optimization is deeply appreciated. Yes, use Channel.transferTo() to send data to the network (this requires that you use NIO). With this, I am able to send about 8 Mbit /

[android-developers] How I get Command in Home Screen In Android

2010-09-10 Thread Animesh Sinha
I mean to say that i want a notification(Command) same as when we type *#06# in home screen it will show a IMEI no. in the same way when i press a certain code (eg: *#12345#) then it will notify to my service which is running in background. Plz solve my problem and reply me soon. Waiting

[android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread draf...@gmail.com
In my application I use an AsyncTask on start up of my Activity to fetch the ringtone of a particular contact. It works normally but I have noticed that if the application is stopped twice before the AsyncTask gets to the doInBackground method then when the Activity starts again the AsyncTask

[android-developers] Re: Know if my Alarm is active

2010-09-10 Thread Albert
Anyone? No hidden code to achieve the above? 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

Re: [android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Shawn Brown
Has anybody got any idea why this would be happening? Well... from http://brainflush.wordpress.com/2009/11/16/introducing-droid-fu-for-android-betteractivity-betterservice-and-betterasynctask/ So the basic idea is: launch an AsyncTask making your service call, show a nifty progress dialog

[android-developers] I am getting the PVMFInfoUnderflow while playing the video from youtube

2010-09-10 Thread manoj
Hi all, while I am playing the video from browser (youtube.com), I am getting the PVMFInfoUnderflow event. Could some one explain why I am getting? in which scenarios we get this error. and if possible try to provide the solution also. Thanks, IIIanoj. -- You received this message because you

[android-developers] Re: Adding checkboxes to a LinearLayout

2010-09-10 Thread Zsolt Vasvari
Actually, I suspect that android:gravity=bottom on the LinearLayout may suffice to have the buttons be at the bottom. I think you have to use layout_gravity, as only TextFields support android:gravity. You also have to use wrap_content for the LinearLayout's height and pray that its parent

Re: [android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Donal Rafferty
Thanks for that Shawn, but I'm looking for a solution that doesn't involve external libraries. On Fri, Sep 10, 2010 at 10:45 AM, Shawn Brown big.coffee.lo...@gmail.comwrote: Has anybody got any idea why this would be happening? Well... from

[android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Federico Paolinelli
You could probably move the async task to a service, and broadcast all your stuff when you finish. If your activity listens for the broadcast, it won't matter if the activity itself started the service, or if it was started by another activity (of the same kind). Federico On Sep 10, 12:14 pm,

Re: [android-developers] Re: Know if my Alarm is active

2010-09-10 Thread Kostya Vasilyev
Setting an alarm cancels any previous alarms set with the same pending intent, where same has a certain definition. This means that it's OK to set your alarm if it's already set - this will not result in extraneous events. For initializing the alarm in the first place, implement a broadcast

[android-developers] Re: Know if my Alarm is active

2010-09-10 Thread Albert
Thanks for your reply. I have all that set up. The thing is that if an user kills my app/ service with a task killer app, then my alarm would go away. I would like to be able to do a check about whether I have a alarm ready to go off at some point in the future. I do not want to re-set the alarm

Re: [android-developers] How I get Command in Home Screen In Android

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 4:57 AM, Animesh Sinha animesh.andr...@gmail.com wrote: I mean to say that i want a notification(Command) same as when we type *#06# in home screen it will show a IMEI no. in the same way when i press a certain code (eg: *#12345#) then it will notify to my service which

Re: [android-developers] Re: Know if my Alarm is active

2010-09-10 Thread Mark Murphy
2010/9/10 Albert albert8...@googlemail.com: I have all that set up. The thing is that if an user kills my app/ service with a task killer app, then my alarm would go away. If they did that, then they do not want your alarm. And, starting with Android 2.2, they can't do this anyway. Hence, I

[android-developers] Re: Samsung Galaxy S and Bluetooth Issues

2010-09-10 Thread snedex
Hi Don, Thanks for responding, Sorry about the slow response. OK at least that gives me more information on trying to circumvent this issue, still having no joy with it. Have you had any luck at all? Thanks! On Aug 12, 7:47 pm, DonFrench dcfre...@gmail.com wrote: I also have aBluetoothapp

[android-developers] Re: Know if my Alarm is active

2010-09-10 Thread Albert
If they did that, then they do not want your alarm. And, starting with Android 2.2, they can't do this anyway. Yes I noticed that it doesn't happen in 2.2, users can easily switch the alarm off by going to the app settings and unchecking the notifications. I would like to be able to do a

[android-developers] How to run adb commands from within the applications.

2010-09-10 Thread Prince
Hi All, I want to run adb commands like adb install application.apk or adb uinstall application.apk from my android application. Kindly help me out in this or provide some directions to perform this task. Thanks Regards, Pranjal -- You received this message because you are subscribed to the

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Donal Rafferty
Excellent idea Federico, However my AsyncTask fetches a RingTone object (com.android.RingTone) and I have no way of passing this object from my Service to my Activity? On Fri, Sep 10, 2010 at 11:36 AM, Federico Paolinelli fedep...@gmail.comwrote: You could probably move the async task to a

Re: [android-developers] How to run adb commands from within the applications.

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 7:29 AM, Prince pranjal.andr...@gmail.com wrote: I want to run adb commands like adb install application.apk or adb uinstall application.apk from my android application. Kindly help me out in this or provide some directions to perform this task. You can't run adb

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread DanH
Yes - to person with the deadline, sure this would seem urgent. To the rest of us on this volunteer list? Not so much. I think it makes the poster seem impatient, especially when the OP does not explain what makes it so important. He could be trying to cram in some last minute homework

Re: [android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread { Devdroid }
On 10 September 2010 13:59, DanH danhi...@ieee.org wrote: Yes - to person with the deadline, sure this would seem urgent. To the rest of us on this volunteer list? Not so much. I think it makes the poster seem impatient, especially when the OP does not explain what makes it so important. He

Re: [android-developers] Monkey problems -- **URGENT HELP** --

2010-09-10 Thread Mark Murphy
On Wed, Sep 8, 2010 at 11:00 AM, Tez earlencefe...@gmail.com wrote: I start monkey like this: monkey -p MY PACKAGE --port 4321 There is no documented --port switch on the monkey command: http://developer.android.com/guide/developing/tools/monkey.html Hence, you are probably going to have to

[android-developers] Working Around Samsung Double-SD Problem

2010-09-10 Thread Pent
My thinking was: if ( android.os.Build.MODEL contains-case-insensitive Vibrant / Incredible / Galaxy ) { if ( dirExists( /sdcard/sd ) ) // use that one else if ( dirExists( /emmc ) ) // use that one } else { // usual procedure getExternal... } Does

[android-developers] Content Providers implementation and closing of DB

2010-09-10 Thread Arpit
I am extending the ContentProvider class and writing content provider for my app. Some what similar to the tutorial given here http://goo.gl/91WV What I want to know is, we create a ReadableDatabase or WriteableDatabase instance in the overridden query method which returns a cursor. Now from the

[android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Federico Paolinelli
One way I would try is to bind your activity to the service and give the service a callback to be called when you asynctask has finished its dirty job. (I've never done this, but it may work). You can provide your ringtone object as argument of the callback. On 10 Set, 13:38, Donal Rafferty

[android-developers] Re: some time my Phone state receiver not receiving any broadcast message wot to do

2010-09-10 Thread A N K ! T
no one know how to resolve this On Fri, Sep 10, 2010 at 12:10 PM, A N K ! T ankit.awasth...@gmail.comwrote: i have create a receiver which receive on phone state change i have register it in xml by android.intent.action.PHONE_STATE but some time it dont receive any broadcast message log

Re: [android-developers] Re: some time my Phone state receiver not receiving any broadcast message wot to do

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 8:42 AM, A N K ! T ankit.awasth...@gmail.com wrote: no one know how to resolve this Perhaps you are spending too much time in onReceive() of the BroadcastReceiver, which is triggering the timeout. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread TreKing
On Fri, Sep 10, 2010 at 1:53 AM, Tez earlencefe...@gmail.com wrote: I hope this clears things. It explains why you feel you need help urgently - it does not explain why the rest of the people on this group would find it urgent to help you. That's a very important difference. Please understand

[android-developers] Hi All

2010-09-10 Thread lokesh gupta
Hi -- Thanks Regards Lokesh Gupta -- You received this message because you are subscribed to the Google 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] Working Around Samsung Double-SD Problem

2010-09-10 Thread Kostya Vasilyev
Pent, Looks close for the Galaxy S, but on my retail Euro version Build.MODEL is GT-I9000. Build.PRODUCT and Build.DEVICE have the same value, as well. Also, /sdcard/sd exists even when the external memory card is not installed, in that case, writing to /sdcard/sd places files on the

[android-developers] is there a way to implement screenshot functionality in android

2010-09-10 Thread dadada
hi all, question as above! thanks bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: How to prevent a service from being restarted by the system...

2010-09-10 Thread sdphil
C:\dev\testApp adb shell dumpsys service Can't find service: service C:\dev\testApp adb shell dumpsys MyService Can't find service: MyService On Sep 10, 12:28 am, Dianne Hackborn hack...@android.com wrote: What is in the log?  What does it say about your service in adb shell dumpsys service?

[android-developers] Re: How to prevent a service from being restarted by the system...

2010-09-10 Thread sdphil
i am running my app in the debugger. when I hit the red square (in eclipse) on the debug tab -- to stop debugging, I get this in the logcat window: 09-10 06:55:52.248: WARN/ActivityManager(83): Scheduling restart of crashed service com.testapp/MyApp/com.testapp.service.MyService in 5000ms and

Re: [android-developers] is there a way to implement screenshot functionality in android

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 9:53 AM, dadada ytbr...@gmail.com wrote: question as above! This is not supported, for security reasons. There are apparently ways you can get something to work if you root your phone. And, of course, you can do screenshots from outside your phone using DDMS. -- Mark

[android-developers] Versioning and common code-bases with Eclipse

2010-09-10 Thread MobDev
Hi there, I'd like to bring out an app in the near future, so I was wondering how to support a couple of funcitonalities I have got used whilst developing for J2ME and iPhone - first the versioning. With J2ME (using NetBeans as IDE) I had the option to auto-increment the softwwares version every

[android-developers] Re: Working Around Samsung Double-SD Problem

2010-09-10 Thread Pent
Looks close for the Galaxy S, but on my retail Euro version Build.MODEL is GT-I9000. Sugar. Build.PRODUCT and Build.DEVICE have the same value, as well. Double sugar. Also, /sdcard/sd exists even when the external memory card is not installed, in that case, writing to /sdcard/sd places

[android-developers] Re: J2ME to Android

2010-09-10 Thread kypriakos
I found out that ConnectionNotFound exception thrown when opening a stream-based socket could be thrown when the protocol indicated in the Connection class is not supported - does Android support all of the following? http, comm, datagram, file, socket etc? I think yes but the exception does not

[android-developers] problem with AsyncTask

2010-09-10 Thread André
Hi, I was wondering if someone could help me with my asynctask? I have a problem with onPostExecute and onCancelled. onPostExecute seems to be skipped everytime I run the asynctask, the file downloads, no problem, but the dialog is still there. As for the cancel button, it doesn't seem to reach

[android-developers] Twitter4j 2.1.4 HttpClietImpl calls wrong Scheme Constructor

2010-09-10 Thread Jakob Sachse
Hi, I was looking for a good twitter lib. Twitter4J claims to be Android platform and Google APP Engine ready. I liked how the website came up with just the example code one needs to jump right into development. I have the twitter4j properties file on my classpath and am using the - core and the

[android-developers] Re: Working Around Samsung Double-SD Problem

2010-09-10 Thread Chris Stratton
How about reading /proc/self/mounts or /proc/partitions ...and of course falling back to default if none of that works. You could also bury a user modifiable path string somewhere in a config menu Pent wrote: Looks close for the Galaxy S, but on my retail Euro version Build.MODEL is

[android-developers] registerForContextMenu not working

2010-09-10 Thread JasonMP
Hi everyone, My context menus are not registering when called. In addition setOnItemClickListener is also not working. Any ideas why this is happening? @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread Tez
@Devdroid - Its only written urgent I have not reposted nobody? and things like that. Please read before you speak. I was patiently waiting for replies. @Mark, thanks for the reply. Yes --port is a new thing. it allows network control of the monkey, looks like i'll have to dig thru the code to

[android-developers] AsyncTask and screen rotation

2010-09-10 Thread Bret Foreman
Is there a standard pattern for handling a running AsyncTask with screen rotation? My AsyncTask runs for about 10 seconds. I could call AsyncTask.cancel in the Activity's onDestroy method and restart the task in onCreate but that would waste cycles, bandwidth, and user time. I'm guessing there is

[android-developers] Re: Adding checkboxes to a LinearLayout

2010-09-10 Thread Robert Nekic
Aside from the gravity discussion that has started, I'm not sure addContentView is what you want. I think the approach you are taking now is simply stacking the CheckBoxes on top of the LinearLayout...not putting them inside it. You say you already have a vertically oriented LinearLayout? Is

[android-developers] Re: Working Around Samsung Double-SD Problem

2010-09-10 Thread Alessandro Pellizzari
Il Fri, 10 Sep 2010 05:28:17 -0700, Pent ha scritto: if ( android.os.Build.MODEL contains-case-insensitive Vibrant / Incredible / Galaxy ) { if ( dirExists( /sdcard/sd ) ) // use that one else if ( dirExists( /emmc ) ) // use that one Hardcoding paths

[android-developers] Tiled Bitmap sometimes doesn't tile...

2010-09-10 Thread Andrew n marshall
I'm trying to use the following layered drawable: ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/android; item bitmap android:src=@drawable/bluestar_tile android:tileMode=repeat / /item item bitmap

Re: [android-developers] AsyncTask and screen rotation

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 11:13 AM, Bret Foreman bret.fore...@gmail.com wrote: Is there a standard pattern for handling a running AsyncTask with screen rotation? My AsyncTask runs for about 10 seconds. I could call AsyncTask.cancel in the Activity's onDestroy method and restart the task in

[android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Maps.Huge.Info (Maps API Guru)
You can handle screen rotation yourself or block it from restarting your app by adding this (along with other code) in the manifest: android:configChanges=orientation Search the docs for that. -John Coryat -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: UriMatcher match not working properly

2010-09-10 Thread Arpit
I had not copied the code here, but re-wrote it in the post. This miss was because I made mistake while typing. And I got -1 cause my content provider was getting registered. It was not a problem Now I will write the test case as you said and it will also help me fix the code properly.

Re: [android-developers] Re: Working Around Samsung Double-SD Problem

2010-09-10 Thread Kostya Vasilyev
10.09.2010 18:46, Pent пишет: (the usual rule with a mount point that has not been mounted). The usual rule where ? Default linux it should be an empty directory. So any solution to this is going to be extremely messy in other words. In any case thanks for course for the info. Pent I

Re: [android-developers] Re: J2ME to Android

2010-09-10 Thread Kostya Vasilyev
Don't know off hand, sorry. Your code, however, appears to expect http protocol at least in one case out of the two: streamCon = (HttpConnection) Connector.open(strURL, Connector.READ); Note that cast to HttpConnection. -- Kostya 10.09.2010 18:56, kypriakos пишет: I found out that

[android-developers] Re: registerForContextMenu not working

2010-09-10 Thread Robert Nekic
Why do you say your context menu registration is failing? It looks like you are registering it OK but I don't see any code that creates the context menu (onCreateContextMenu). Check out the ContextMemnu docs here: http://developer.android.com/guide/topics/ui/menus.html On Sep 10, 11:05 am,

[android-developers] Re: how to maintain consistent UI over multiple versions of Android OS skinned by carriers and hardware manufacturers

2010-09-10 Thread NewB
thank you for the quick reply. I see the same dimension changes more often in HTC sense that others. The rating bar seems more compact in HTC sense than in stock skin or Samsung skin. Just to note, sometimes even if the dimensions of the widget don't change, the widget view appears cropped, i.e.

[android-developers] problem with accented letters

2010-09-10 Thread Simone
I fill a TextView like this: TextView instructions=(TextView) findViewById(R.id.batteryInstructionsText); try { InputStream instrStr=res.openRawResource(R.raw.instructionsfile); byte [] text=new byte[580]; int i=instrStr.read(text); instructions.setText(new

[android-developers] Adding native Binder service permission error when not root

2010-09-10 Thread masrepus
What is the best way to add a new native service that uses Binder and can get past the service_manager.cpp restrictions on what users can add services? I have created a new native service that is similar to the MediaPlayer. I make the addService() calls to add the Binder service to the system.

[android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Bret Foreman
Yeah, Mark's option 1 looks like the best approach for my application. Android should provide more infrastructure for this sort of thing because async web services are becoming almost universal and they always require something like this when they interact with the UI. -- You received this

Re: [android-developers] problem with accented letters

2010-09-10 Thread Kostya Vasilyev
Simone, You are using a byte array to read your data. When converting a byte array to a String, you should specify encoding. My guess is it's Western European, so you'd do: new String(someByteArray, iso-8859-1) Also your code tries to convert the entire byte array to String and then

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread DanH
it's only validly urgent to the person posting and everyone else really doesn't give a damn. Then why respond to anything? Just so you can prove how smart you are? On Sep 10, 8:02 am, TreKing treking...@gmail.com wrote: On Fri, Sep 10, 2010 at 1:53 AM, Tez earlencefe...@gmail.com wrote: I

[android-developers] Libraries STILL not working

2010-09-10 Thread Robert Schmid
I was really excited today when I saw the Tools r7 and ADT 0.9.8 were available and the latter had this note; Fixes problems with handling of library project names that contain characters that are incompatible with the Eclipse path variable. Now properly sets up the link between the main project

[android-developers] How to use custom fonts all over your app

2010-09-10 Thread thilo.haged...@googlemail.com
Is there another way to use custom fonts than use setTypeface directly on your view like in the following code lines? typeface = Typeface.createFromAsset(context.getAssets(), fonts/ xyz.TTF); textview.setTypeface(typeface); The best way to use a custom font I can imagine is by setting it

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Donal Rafferty
Is that possible? I have a bind between my Service and the Activity at the minute but when I try to change to aidl file to allow me pass the RingTone object it wont compile for me, saying RingTone and com.android.RingTone cannot be resolved/found On Fri, Sep 10, 2010 at 1:34 PM, Federico

[android-developers] info

2010-09-10 Thread dashman
can a kind soul point me to a documentation on valid layout attribute key and values. specifically - valid values for e.g. android:paddingRight etc -- You 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: problem with accented letters

2010-09-10 Thread Simone
Thank you so much, that helped a lot. The substring() call was just temporary, but thanks anyway ;) Simone p.s. the language was Italian :D -- 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] Widget Layout Help Please

2010-09-10 Thread Tommy
O SNAP!! Im an idiot I forgot about the app widget provider XML file.I left the width/height the same from the tutorial 150 x 150 lol spasiba my friend From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Friday,

Re: [android-developers] info

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 12:36 PM, dashman erjdri...@gmail.com wrote: can a kind soul point me to a documentation on valid layout attribute key and values. specifically - valid values for e.g. android:paddingRight etc Generally, they are in the documentation for the class. So, paddingRight is

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 12:28 PM, Donal Rafferty draf...@gmail.com wrote: Is that possible? I have a bind between my Service and the Activity at the minute but when I try to change to aidl file to allow me pass the RingTone object it wont compile for me, saying RingTone and

Re: [android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Romain Guy
Option #1 is a lot more intrusive. You lose the ability to automatically switch layouts, drawables, etc. It might be fine now but it might come back to bite you in the future. It should always be your last resort. Saving and restoring an AsyncTask is not difficult. On Fri, Sep 10, 2010 at 8:56

Re: [android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Dianne Hackborn
On Fri, Sep 10, 2010 at 9:46 AM, Romain Guy romain...@android.com wrote: Option #1 is a lot more intrusive. You lose the ability to automatically switch layouts, drawables, etc. It might be fine now but it might come back to bite you in the future. It should always be your last resort. Saving

Re: [android-developers] Adding native Binder service permission error when not root

2010-09-10 Thread Dianne Hackborn
This is not available to either the SDK or NDK. The question would be better asked on android-porting or android-platform. On Fri, Sep 10, 2010 at 8:53 AM, masrepus sha...@gmail.com wrote: What is the best way to add a new native service that uses Binder and can get past the

[android-developers] AudioManager request/abandon focus messages

2010-09-10 Thread Steve Hugg
We have an app which requests and abandons audio focus several times over the course of its lifetime. When the process exits, these messages appear several (30+) times in the log: W/AudioService( 1086): AudioFocus audio focus client died W/AudioService( 1086): AudioFocus audio focus

[android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Maps.Huge.Info (Maps API Guru)
Option #1 is a lot more intrusive. You lose the ability to automatically switch layouts, drawables, etc. It might be fine now but it might come back to bite you in the future. It should always be your last resort. Saving and restoring an AsyncTask is not difficult. What if that AsyncTask is

[android-developers] EditText in a simple Activity

2010-09-10 Thread Simone
I've got a simple activity layout wich contains a couple of EditText elements. Everything works ok, but the only problem is that when I open this activity, the Android keyboard is opened automatically as well, ready to take input for the first of the two EditTexts. Is there a way to avoid this?

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Donal Rafferty
No luck :( --- package com.xxx.phone.ui; import android.media.Ringtone; interface ICallDialogActivity{ void sendRingTone(in RingTone aRingTone); } --- I get the red x beside the import and coundn't find import for class android.media.Ringtone; On Fri, Sep 10, 2010 at 5:45 PM, Mark

Re: [android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Mark Murphy
On Fri, Sep 10, 2010 at 12:46 PM, Romain Guy romain...@android.com wrote: Option #1 is a lot more intrusive. You lose the ability to automatically switch layouts, drawables, etc. Worst-case scenario: Step #1: Take your UI setup that is in onCreate() and move it to a separate method (e.g.,

[android-developers] How to zoom in/out image with webkit

2010-09-10 Thread Ghetto Bill Gates
I have an app where its a website wrapped with webview/webkit but when I load images via linkes, you can use basic functions to zoom in/out. I thought this was standard throughout using Android? http://pastie.org/1144392 Thanks -- You received this message because you are subscribed to the

Re: [android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Dianne Hackborn
On Fri, Sep 10, 2010 at 9:53 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: What if that AsyncTask is downloading a file? Interrupting it, regardless of how nicely done, would be a bad thing wouldn't it? You don't need to interrupt it. See Mark's option 2. Just don't have it

  1   2   3   >