Re: [android-developers] Re: Using barcode scanner as input method?

2010-06-22 Thread Chi Kit Leung
Depend on also your cams quality. On Tue, Jun 22, 2010 at 8:40 AM, brucko geoff.bruck...@gmail.com wrote: I'm not sure what the question is here, but barcode scanner usually reads the barcode in less than a couple of seconds - depending on focus, and how steady your hand is. In my limited

[android-developers] How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
Dear all, I used AlarmManager to set the pending intent. I need to find out the state of the pending intent, in other word, is this pending intent working or not. Boz i may need to cancel this pending intent, but before canceling it i want to make sure it's active. But i see no function in

[android-developers] Building the apk using the ant script .

2010-06-22 Thread sheik
Hi , iam facing problem in creating the .apk file using the ant script . The generated .apk named as _unaligned.apk instead of .apk and on installing the _unaligned.apk file to the device i get force-close showing the java.lang.VerifyError exaception , but the same apk generated using IDE works

[android-developers] Re: How to Draw a Button in a View

2010-06-22 Thread mike
hi grace, thanks for your comment. i have found the solution. this is how you should do it public class Draw extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub final Context context

[android-developers] Re: Java Midlet

2010-06-22 Thread perumal316
Hi, Is there any kind of emulator available which I can install in my android phone to run the java midlets? Regards, Perumal On Jun 20, 8:02 pm, Robert Kochem rob...@mailueberfall.de wrote: perumal316 schrieb: I have my own java midlets which I want to try to run in Android phone itself.

[android-developers] Re: How to Draw a Button in a View

2010-06-22 Thread grace
use the function button.setVisibility(View.VISIBLE); and try once again.. On Jun 21, 2:04 pm, mike hasitharand...@gmail.com wrote: hi guys, i have a class which extends a View and i'm drawing few images in the canvas. and i want to draw two buttons as well. could someone tell me how to do

[android-developers] About Monkey Script

2010-06-22 Thread mlc
this is my Monkeyscript type= point count= 0 speed= 1 start data captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0); captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0); captureDispatchKey(5113146,5113146,0,4,0,0,0,0); captureDispatchKey(5113146,5113146,1,4,0,0,0,0);

Re: [android-developers] Re: Emulator behaving like I´m pressing =, but I´m not!

2010-06-22 Thread David Turner
Thank you, This is very weird, it looks like the emulator's event loop falsely believes it is receiving keypresses from the user. It seems to be a problem in the emulator binary. The relevant code uses the SDL library, and I don't see anything that could trigger this in the code. For the record,

Re: [android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-22 Thread Andy Savage
From an Adsense point of view I can understand why this might be a bad idea. I guess the way the adsense system works is the people who click are the ones who are genuinally interested. Therefore if you promote people to just click for no reason other than to support you then the advertiser would

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread reda
Hi , I've faced this problem and what I did is just creating the intent and the pendingIntent the same manner I did the first time and now I can cancel it. Intent intentToFire = new Intent(Main.ACTION_GET_NEW_EGGS); PendingIntent alarmPendingIntent =

[android-developers] How to develop new language for TTS

2010-06-22 Thread $§Kalle§$
We would be interested to develop a country specific flavor of a language, which then can be used for TTS (Text-To-Speech). Where can we find instructions, how to do that? Thx Kalle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-22 Thread hzakimoto
Hi Mike, I use a number of providers. I'll check their policy on this. But since AdSense prohibit that, then I guess it's a bad approach after all. Thank you for your fast reply. =) On Jun 22, 12:12 pm, EboMike ebom...@gmail.com wrote: Who's the provider for your apps? If it's AdSense, then

[android-developers] Re: Best way to determine device capabilities, chipset, etc

2010-06-22 Thread Piotr Buła
On Jun 19, 9:18 am, Robert Green rbgrn@gmail.com wrote: 3)  Pull some raw info out of linux and use that. Pros - Most detailed info available Cons - Can't find things like raw CPU Mhz, OpenGL version support, etc.. This seems like the best approach. As for the cons, you can do this stuff

[android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-22 Thread EboMike
That's what I did in my app, and I am honestly surprised about the amount of donations I got. I have no idea how much you typically get when you use AdSense/AdMob, but I kept my request for donations deliberately non-intrusive (donation link on top of help page, and one dialog pops up after using

[android-developers] Avoiding GPL

2010-06-22 Thread Naveen
Hi! I need to use some open source code with GPL3. As usual I don't want to open source code for full application. Now what I understand is if I make two separate process one with my main application code and other as a service or something with Open source library then in that case I have to

Re: [android-developers] Re: Camera preview - works on all devices apart from the Droid

2010-06-22 Thread Tom Gibara
I *think* this is caused by the Droid/Milestone not liking the default previewFrameRate that Android sets. Try setting that to one of the values specified by getSupportedPreviewFrameRates(). -- Tom Gibara email: m...@tomgibara.com web: http://www.tomgibara.com blog: http://blog.tomgibara.com

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread reda
Hi , I've faced this problem and what I did is just creating the intent and the pendingIntent the same manner I did the first time and now I can cancel it. Intent intentToFire = new Intent(Main.ACTION_GET_NEW_EGGS); PendingIntent alarmPendingIntent =

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread reda
Hi , I've faced this problem and what I did is just creating the intent and the pendingIntent the same manner I did the first time and now I can cancel it. Intent intentToFire = new Intent(Main.ACTION_GET_NEW_EGGS); PendingIntent alarmPendingIntent =

[android-developers] Re: Animated widgets?

2010-06-22 Thread James W
You can have animations in App widgets. There are several ways to do it depending on what kind of animation is needed. For Ryan's particular example, using the Alarm Manager with a recurring alarm every second that calls OnUpdate() or some other routine which updates the view would do the job.

Re: [android-developers] Avoiding GPL

2010-06-22 Thread Anton Persson
If you are creating a closed source application, maybe you should invest in acquiring/creating a library that supports that. Using code from a GPL3 code and actively trying to step around the license is really bad behaviour. On Tue, Jun 22, 2010 at 9:10 AM, Naveen naveen...@gmail.com wrote: Hi!

Re: [android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-22 Thread Chi Kit Leung
I think that is a bad idea. Your user is just visiting some websites you do not really need. On Tue, Jun 22, 2010 at 4:34 PM, EboMike ebom...@gmail.com wrote: That's what I did in my app, and I am honestly surprised about the amount of donations I got. I have no idea how much you typically get

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
Maybe i didn't make myself clearly. I have no problem to set multiple PendingIntent into the AlarmManager, my solution is to set a dummy action: intent.setAction(DUMMY); But the question in this post is: I need to know if the specific PendingIntent is active or not I wish to display the

Re: [android-developers] Re: help on singleinstance launchmode

2010-06-22 Thread Vibhor Mahajan
Hello, Thanks Dianne for reply. I understood your point. But after doing some more tests I have confusions. Kindly provide some suggestions. Activity A has SINGLEINSTANCE and B C has STANDARD launch mode. Execute below steps: 1. Start A from launcher 2. Launch B from A. (oncreate of B is

Re: [android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Dianne Hackborn
There isn't a way to do this; you will need to keep track of it yourself. Also I would recommend keeping track of which item you have enabled in your app, and only setting a single alarm for the next item in time, instead of having multiple in the alarm manager. See the alarm clock app for an

Re: [android-developers] Re: help on singleinstance launchmode

2010-06-22 Thread Dianne Hackborn
Yes that is working as intended, you have B and C together in their own task, and A can't be in it because it is single instance. Again, just ignore single instance unless you have a clear reason for using it, and then you will want to structure the rest of your interaction to work well with it.

[android-developers] In SDK2.1 There's problem with VideoView

2010-06-22 Thread Emca
Hello. I tried to use a VideoView in SDK 1.6. Just simply playing video and it worked properly. and then I tried to change it into SDK 2.1 for some reasons. But it was not worked. I thought my codes have a problem So I've made a new project and simplely I made some code that play video which is

[android-developers] setParameters Failed

2010-06-22 Thread grace
Hi, I have downloaded one open source ocr application. when i run it on the g1 phone it is working,but for the nexus one its throwing up a exception telling E/QualcommCameraHardware( 52): Invalid preview size requested: 533x310 E/AndroidRuntime( 5038): java.lang.RuntimeException:

[android-developers] Trying to create wizard-like layout

2010-06-22 Thread Dirk Vranckaert
Hey, I'm currently trying to create some wizard-like layout for some edit/ add views in my Android application. Therefore I use only one activity and different layout files which I load. Altough there is something wrong with my layout files. The layout files can be found here:

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
Thanks for the reply. 1. Ok, i will try too keep track myself, whenever the phone reboot, i will set all pending intents into the alarm manager, then remember the active/inactive status. 2. Sometimes i have to create multiple pending intents, for instance i need to trigger some operation at 8am,

Re: [android-developers] Re: help on singleinstance launchmode

2010-06-22 Thread Vibhor Mahajan
Hello, Simply saying, I am trying to understand the behavior of singleinstance in detail. I found 2 different behaviors when a activity with singleinstance launchmode, launches an another activity. Based on your reply, I understood SINGLEINSTANCE activity is launching an activity in new task and

[android-developers] getAppWidgetIds returning too much data

2010-06-22 Thread Kostya Vasilyev
Hello, I am in the process of updating my widget to allow appearance configuration. There is a config activity, and a few preference values, organized by widget id. My widgets are updated outside onUpdate in response to Wi-Fi events, and the code need to apply individual configuration to

[android-developers] Need help with a Java issue

2010-06-22 Thread Mariano Kamp
Hey guys. This is not an Android issue per-se, but I am puzzled about a Java issue and want to pick your brains. I recently got a couple of bug reports with a NPE that I don't understand and can't reproduce myself. Here is an abbreviated representation of the offending class. I tried to stay as

Re: [android-developers] Need help with a Java issue

2010-06-22 Thread Toni Menzel
Hi Mariano, First of all, did you leave out synchronization for simplicity in this mail or is it not in place at all ? (assuming you do access EntityManager from multiple threads). Also, pls doublecheck that EntryManager.java:1529 is really at the spot you indicated (cannot verify with complete

[android-developers] Re: setParameters Failed

2010-06-22 Thread nah0y
Hi, in fact this is because of the support preview screen size of your Nexus One, If you try to put width : 480 and height : 320 it should work :D (not 533x310) See Roman Nurik answer here : http://stackoverflow.com/questions/2046523/runtimeexception-on-camera-setparameters-on-nexus-one nah0y.

[android-developers] ListView Out Of Memory Problem

2010-06-22 Thread Rahul
I have one listView and i am trying to add minimum 4000 row in list view but when i scrolling the list up to 800 row it showing out of memory error and the application is crashing i dont understand what is the problem for listView . i am using following code for that and Using Array adapter

Re: [android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 5:29 AM, Jeruliu jeru@gmail.com wrote: 2. Sometimes i have to create multiple pending intents, for instance i need to trigger some operation at 8am, 12pm and 3pm everyday. In this case is it possible to set only a single alarm? Sure. Set an alarm for 8am. When it

Re: [android-developers] In SDK2.1 There's problem with VideoView

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 4:58 AM, Emca seo.yeon...@wipro.com wrote: I tried to use a VideoView in SDK 1.6. Just simply playing video and it worked properly. and then I tried to change it into SDK 2.1 for some reasons. But it was not worked. I thought my codes have a problem So I've made a new

Re: [android-developers] Avoiding GPL

2010-06-22 Thread Tom Gibara
I am not a lawyer etc. but I think you should be very careful about trying to circumvent the GPLv3 in this way; its wording is broad. You have several options without attempting this, they include: finding a revenue model that's compatible with open sourcing your application, consulting a lawyer

Re: [android-developers] Re: the android calendar api question

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 1:08 AM, EboMike ebom...@gmail.com wrote: Mark, when using the gdata API, you will need to query the user for the username and password of the gmail account to use. Is that correct? Or is there a nifty way to get an authentication token with the account linked to the

[android-developers] Re: READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-22 Thread Viktor Linder
Indeed, this is how my uses-sdk clause looks like: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/ Yet, the user is queried about the READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE permissions anyway (when downloading from a direct link in the browser). The project target (set by the

Re: [android-developers] UI Stack over flow

2010-06-22 Thread Mark Murphy
On Mon, Jun 21, 2010 at 11:47 PM, shakeel shakeelaha...@tataelxsi.co.in wrote: My application works fine if launch independently, but gives stack over flow when I use add my class to tabhost. Please suggest Don't use activities as the contents of tabs. Use views as the contents of tabs. As I

Re: [android-developers] Re: Animated widgets?

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 3:17 AM, James W jpbwebs...@gmail.com wrote: You can have animations in App widgets. For some definition of animation, yes. My apologies to the OP. When I see animated, my mind immediately jumps to android.view.animation, which is not possible with an app widget. For

[android-developers] BroadcastReceiver and abortBroadcast()

2010-06-22 Thread Steve
Hi all Are there any good design patterns to solve the following problem: How can I best implement a BroadcastReceiver that may need to consume the current broadcast (via abortBroadcast()), but it first needs to perform some non-trivial work to determine whether or not the broadcast should be

Re: [android-developers] BroadcastReceiver and abortBroadcast()

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 8:06 AM, Steve stec...@gmail.com wrote: Are there any good design patterns to solve the following problem: How can I best implement a BroadcastReceiver that may need to consume the current broadcast (via abortBroadcast()), but it first needs to perform some non-trivial

[android-developers] ListView and CheckedTextView questions - help me, thanks!!!!

2010-06-22 Thread Alex Xin
Hi, guys I'm now developing an application that uses a ListView with a CheckedTextView on every item that managed by an ArrayAdapter to support multiple chooses. The contents in my ListView are dynamic, that means, can be changed during runtime. Now I try to use ListView.getCheckedItemPositions()

[android-developers] Android libraries

2010-06-22 Thread deg
Managing an Android project in Eclipse, which I need to divide into several libraries... What, exactly, are the differences between Android Libraries (made with Properties | Android | Library | Add) and Referenced libraries (made with Properties | Java Build Path | Libraries | Add JARs). I've

[android-developers] Re: setParameters Failed

2010-06-22 Thread blindfold
See the declined issue discussion on setPreviewSize() at http://code.google.com/p/android/issues/detail?id=7909 and the recommendations made there by Wu-Cheng (Comment 29). Regards The vOICe for Android http://www.seeingwithsound.com/android.htm On Jun 22, 10:59 am, grace grace.a...@wipro.com

Re: [android-developers] Animated widgets?

2010-06-22 Thread Sean Hodges
What is the problem you are trying to solve? Perhaps there is a better solution than an app widget. For instance, you can have a canvas in a live wallpaper (assuming you do not need to support Android 1.x), or maybe the animation could be triggered after clicking on the app widget (e.g. it opens

Re: [android-developers] Re: One of my application is invisible now on the market (Pure messenger / not copy protected)

2010-06-22 Thread TreKing
On Tue, Jun 15, 2010 at 1:55 AM, Koxx kox...@gmail.com wrote: Can I have support please ? Unfortunately Google does not provide support for Android Market issues. Sorry. - TreKing - Chicago transit

[android-developers] Re: Android libraries

2010-06-22 Thread Mike dg
Android libraries can include resources. Java libraries can not. On Jun 22, 8:47 am, deg d...@degel.com wrote: Managing an Android project in Eclipse, which I need to divide into several libraries... What, exactly, are the differences between Android Libraries (made with Properties | Android

[android-developers] Poor roaming performance ! Is it an Android bug ?

2010-06-22 Thread Cydrike
Hi, I'm encountering very poor roaming performance. When my device switch from 3G to Wifi and vice versa, my application can't connect to the INTERNET for about 10 minutes. The given error is connection timeout: socket is not connected. I've already posted a similar problem here:

[android-developers] Service unable to call Java Class Methods

2010-06-22 Thread MobDev
Hi, I am using a Service to play some music. In the same project I have several Activity's but also some custom classes which are part of a framework, so nothing graphical. One of those (singleton) classes is a Logging class which send logs to my server. I noticed that even though I can call the

Re: [android-developers] Service unable to call Java Class Methods

2010-06-22 Thread Gyan
Can you paste the logcat trace? Some hints 1. Have u imported the class(logger) 2. Debugging the service - sysouts 3. Creating ur own - not advisable(might hamper responsiveness) - use the existing Logger - just in case! Gyan -- You received this message because you are subscribed to the

Re: [android-developers] Poor roaming performance ! Is it an Android bug ?

2010-06-22 Thread Gyan
This is a little off topic, but yet, if you might have noticed(just that I've noticed) there is a DNS cache error in all of google's products that connects to the internet! Not sure of Chrome - but Android sure has a problem - Dont have the issue number here but yeah, it is STILL there. What

[android-developers] Hebrew Fonts in Froyo?

2010-06-22 Thread Alain
A Droid user mentioned that when he downloaded a Froyo image for his Droid, it included Hebrew fonts and he did not have to load them independently and that emails and SMS in Hebrew were displayed in Hebrew chars without the empty white boxes Will that be the case for the upcoming Froyo release

[android-developers] Re: Poor roaming performance ! Is it an Android bug ?

2010-06-22 Thread Cydrike
I'm running a 2.1 Android on my HTC Desire. Is there a way to clear DNS cache when we detect roaming ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: Service unable to call Java Class Methods

2010-06-22 Thread MobDev
Actuall the LogCat doesn't show anything... It's not like I am getting any errors/exceptions... I have been using System.err.println in the Service, which print out just fine in Logcat... But, yes there is always a but :P, I don't want the service to write to the System.err but to my Logger

Re: [android-developers] ListView and CheckedTextView questions - help me, thanks!!!!

2010-06-22 Thread Alex Xin
Or could anyone who can teach me how to get the position of CheckedTextView in its OnClickListener callback? If I can do this it means I can monitor user actions by my own. On Tue, Jun 22, 2010 at 8:41 PM, Alex Xin xinxi...@gmail.com wrote: Hi, guys I'm now developing an application that uses

[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-22 Thread Streets Of Boston
You return an object that doesn't hold any permanent residence to an activity, just a temporary one. private final Runnable mUpdateDisplayRunnable = new Runnable() { public void run() { mData.getCurrentActivity().updateDisplay(); } }; public void onCreate(...) { ... mData =

Re: [android-developers] Re: Poor roaming performance ! Is it an Android bug ?

2010-06-22 Thread Gyan
DNS cache might not be the actual problem too! Try clearing browser cache from the applications' menu! Gyan -- You received this message 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] Re: Extremely Simple Question

2010-06-22 Thread MobDev
Guess you are using an ArrayAdapter ? Or did you impelment your own Filter ? If so don't forget to call notifyDataSetChanged()... Also it might simply be selecting the first element of your old list... On 21 jun, 08:29, HeyYouThere newsome...@gmail.com wrote: Here goes: I have a very simple

Re: [android-developers] Re: Service unable to call Java Class Methods

2010-06-22 Thread Gyan
Try giving the entire context path all the time. myprojects.android.loggingModule.Logger.Log() Or try using reflections API built in Android!! Gyan -- 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] Getting FileNotFound Exception when using FileReader

2010-06-22 Thread TreKing
On Fri, Jun 11, 2010 at 5:47 PM, ethan puripun...@gmail.com wrote: try{ FileReader fr = new FileReader(4ltrwrds); } catch(FileNotFoundException e) { System.out.println(File not Found); System.exit(0); } 1 - You're

[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-22 Thread Bara
I'm sorry, but I'm still not understanding what exactly I should be holding a reference to. What should mData contain (or rather, what are the properties in the MyRetainedData class)? I appreciate the help immensely :) Bara On Jun 22, 10:23 am, Streets Of Boston flyingdutc...@gmail.com wrote:

Re: [android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-22 Thread Gyan
Classic problem! Use a static variable rather than onRetainConfigurationChange() lot of state data to be saved doesn't work all the time!! Gyan -- 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] How to debug on device with Eclipse/ADB ?

2010-06-22 Thread TreKing
On Fri, Jun 11, 2010 at 12:38 PM, Stu.Axon stu.a...@gmail.com wrote: I can't work out how to get debug to use the device instead of the simulator though. http://developer.android.com/guide/developing/device.html

[android-developers] Nexus can't install/update software anymore

2010-06-22 Thread Pentiumao
Hi everyone, today, when I debug my software on my nexus one, suddenly can't not install correctly, then I check the logs as following: ** 06-22 22:50:33.341: DEBUG/VoldCmdListener(54): asec list 06-22 22:50:33.350: INFO/ActivityManager(85): Displayed

Re: [android-developers] Changing entry activity causes app only to open from downloads page

2010-06-22 Thread TreKing
On Mon, Jun 14, 2010 at 6:40 PM, Christopher Perry mr.christopher.pe...@gmail.com wrote: I have no clue what could be causing this behavior I recently ran into this as well. In my experience, the update installation process appears to sometimes screw things up and causes completely random,

Re: [android-developers] Nexus can't install/update software anymore

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 11:12 AM, Pentiumao pentiu...@gmail.com wrote: btw, my nexus has been updated to Froyo(2.2). No, it hasn't. Android 2.2 has not shipped. You have upgraded to a test build of Froyo. After that, I found that I can't install or update software anymore, through the log,

[android-developers] Re: Service unable to call Java Class Methods

2010-06-22 Thread MobDev
unfortunately using the complete path didn't make any difference at all :( Reflection, afaik, are handy if some method's/api's are missing and thus you can fall back on another implementation.. But I'm afraid in my case it would always fall back to the other implementation, thus never using my

[android-developers] app not working in background

2010-06-22 Thread pranay
hi, i have an app that responds to user the incoming sms via speech . The app seems to work perfectly when it is lauched or even when i press the back button on the emulator, however when i start a new app , then i receive the new message only as a Toast (as shown in the prgm below) but i cannnot

[android-developers] Re: Poor roaming performance ! Is it an Android bug ?

2010-06-22 Thread Cydrike
I think there's a little misunderstanding. I've no problem with integrated browser. When I switch from 3G to Wifi, the browser works well. It's my application that stops working correctly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] app not working in background

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 12:04 PM, pranay streetfi...@gmail.com wrote: hi, i have an app that responds to user the incoming sms via speech . The app seems to work perfectly when it is lauched or even when i press the back button on the emulator, however when i start a new app , then i receive

[android-developers] Re: ListView Out Of Memory Problem

2010-06-22 Thread Mike dg
A 4000 row array seems to be a bit much. Are you using bit maps, thee can be memory issues related to them? On Jun 22, 7:05 am, Rahul nakate.ra...@gmail.com wrote: I have one listView and i am trying to add minimum 4000 row in list view but when i scrolling the list up to 800 row it showing out

[android-developers] iPhone like Spinning Wheel

2010-06-22 Thread Brad Gies
Hi, I was wondering if someone with better Android memory management skills than I have would like to give me some advice. I needed the functionality that is in several iPhone apps that is : Shake the phone a couple of times when on certain activities and a spinning wheel pops up, spins at

[android-developers] Re: saving sharedPreferences collapse my app... for advanced dev I think

2010-06-22 Thread Mike dg
I don't think using Shared Preferences for a loot of data is recommended. Try saving a file with your relevant information somewhere. On Jun 21, 12:52 pm, Kofa elk...@gmail.com wrote: I've done an game and it works right, the task it's compossed by a main activity (main menu) where you can

Re: [android-developers] Nexus can't install/update software anymore

2010-06-22 Thread Dianne Hackborn
/mnt/secure is the directory where secure containers holding apps installed on SD card get mounted. On the SD card, they appear as a single file, under something like .android_secure (can't remember the exact name). The file name should contain the package name of the app. You could try

Re: [android-developers] Re: Service unable to call Java Class Methods

2010-06-22 Thread Dianne Hackborn
I can't think of anything about the platform that would make your code not work like that. Have you tried attaching the debugger and stepping through your code to see what is happening? Or if you don't like the debugger, put some Log.i() in interesting places in the code path to see what is

Re: [android-developers] Personalized Screen lock

2010-06-22 Thread TreKing
On Mon, Jun 14, 2010 at 10:30 AM, ranjan ar ranjan@gmail.com wrote: can you let me know if there is a tool or something. Tool or something for what? - TreKing - Chicago transit tracking app for

[android-developers] Reading and Writing PNG Metadata

2010-06-22 Thread pkc
Is there a core facility to read/write PNG meteadata? In standard Java, it's available as part of imageio but I don't see simliar feature provided by BitmapFactory. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Disable scaling of ImageView

2010-06-22 Thread mbaroukh
Hi all. Most of the time, Android scaling is nice but I have a case where I don't wan't any scaling and I can't find how to do this. I made a simple layout to test : ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] New tutorials up - feedback welcome

2010-06-22 Thread Matt
Hi everyone. I've started my first blog to document my experience with Android development, and so far I've put up some tutorials. I'd appreciate some feedback because this is my first experience doing this. Not to mention checks for accuracy. www.androidengineer.com There's one about

Re: [android-developers] Need help with a Java issue

2010-06-22 Thread Mariano Kamp
Hey Toni. Yes, I verified that this is the exact spot where the NPE occurs. More than 10 times ;) It would be possible though that the tag I used wasn't accurate, but even then I wouldn't know which of the variables could be null and fail in that way. The databaseHelper is also initialized in the

Re: [android-developers] Disable scaling of ImageView

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 1:52 PM, mbaroukh mike.baro...@gmail.com wrote: Most of the time, Android scaling is nice but I have a case where I don't wan't any scaling and I can't find how to do this. Try putting the resource in res/drawable-nodpi/ and see if that helps. -- Mark Murphy (a Commons

Re: [android-developers] MotoBlur Alarm Clock Intent

2010-06-22 Thread TreKing
2010/6/15 Tomáš Hubálek tom.huba...@gmail.com P.S. Various proprietary interfaces makes me crazy. There does not exist standard way how to invoke Alarm Clock Settings. Because the alarm clock is an app, which, like any other app, is not part of the official SDK and is not guaranteed to even

Re: [android-developers] MotoBlur Alarm Clock Intent

2010-06-22 Thread Tomáš Hubálek
TreKing, thanks for email. This is functionality of my application http://android.hubalek.net/application/digital-world-clock-widget Many users asked to add option to invoke alarm clock settings from it. As it is not officially supported I found what intents calls standard alarm clock settings.

[android-developers] TableLayout is not appearing in the screen?

2010-06-22 Thread pnk444
Hi, I have a TableLayout in a scrollView, which is ocuupying entire screen. I have multiple rows, each having two textviews. Each row occupying parent width and height as wrapping. But when i trying to display it TableLayout is not appearing on the screen. While i trying to use

[android-developers] Spinner selection dialog without spinner

2010-06-22 Thread maik
I have a spinner selection box on my activity, but now I want to remove the spinner from the main view and make the selection available by an option from the menu button. How do I get the dialog the spinner shows if I click it without having the spinner? Currently I fill the spinner using a

Re: [android-developers] Spinner selection dialog without spinner

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 2:16 PM, maik maik.wi...@googlemail.com wrote: I have a spinner selection box on my activity, but now I want to remove the spinner from the main view and make the selection available by an option from the menu button. How do I get the dialog the spinner shows if I click

Re: [android-developers] Re: Poor roaming performance ! Is it an Android bug ?

2010-06-22 Thread Gyan
Correct - if the browser behaves so clear the browser cache As browser is like any other app, you can clear whichever applications' cache and it might work! Else restarting ur phone works all the time! Gyan -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] MotoBlur Alarm Clock Intent

2010-06-22 Thread TreKing
2010/6/22 Tomáš Hubálek tom.huba...@gmail.com Motoblur intent is probably last major one. Sure, for now, until the next phone with a new Alarm Clock, if any, rolls around. I guess it's up to you if it's worth the trouble, though. Sorry, don't have an answer to your actual question though. Good

Re: [android-developers] MotoBlur Alarm Clock Intent

2010-06-22 Thread Tomáš Hubálek
For sure it is worth the trouble if users get their functionality and are happy (and give a lot of stars ;-)) I'm not the one that can fix this issue (Google should create something like list of generic intents that programs can register to handle) I just have to play with cards I got. But never

[android-developers] Re: Service unable to call Java Class Methods

2010-06-22 Thread Bob Kerns
(Yes, I've read the rest of the conversation, but I'm returning to your original message). First, you debug a Service the same way you debug anything else. You set breakpoints in the appropriate lifecycle methods, or in routines called from those methods. If I recall correctly, this works even if

[android-developers] Android: Set selected icon in GridView

2010-06-22 Thread HJ
I'm trying to find a way to store the name of an icon in my database, then use that name to let a user select an icon from an ImageView. I've found various guides on ImageViews and Galleries, but none that show how to get/set the selected image by name. The list of available images won't change,

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
Hi Mark, Good hint, but how do you know a alarm goes off? BTW, may i know where is your tutorials version 2.1? On Jun 22, 7:13 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 5:29 AM, Jeruliu jeru@gmail.com wrote: 2. Sometimes i have to create multiple pending

[android-developers] How to autostart a service instead of activity?

2010-06-22 Thread Jeruliu
Hi, I can managed to autostart my activiy when reboot. But however I realized that what should i autostart is not the activiy with UI but a one time function call in background. I used to define the receiver in manifest xml to autostart the activity, this is working good. receiver

Re: [android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 3:47 PM, Jeruliu jeru@gmail.com wrote: Good hint, but how do you know a alarm goes off? Your PendingIntent is run. Whatever component is started via that PendingIntent has the responsibility of scheduling the next alarm. BTW, may i know where is your tutorials

Re: [android-developers] How to autostart a service instead of activity?

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 3:55 PM, Jeruliu jeru@gmail.com wrote: Hi, I can managed to autostart my activiy when reboot. But however I realized that what should i autostart is not the activiy with UI but a one time function call in background. I used to define the receiver in manifest xml

[android-developers] Re: Prevent application from showing up when dialing.

2010-06-22 Thread Achanta
That seems to work. Although I did not understand what you meant by Use new Intent(this, MyReallyScaryActivity.class) instead. How do I replace new Intent(Intent.ACTION_DIAL, Uri.parse(tel://911)); with what you suggested? Thank you anyway. On Jun 17, 4:49 am, Mark Murphy

Re: [android-developers] Re: Prevent application from showing up when dialing.

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 4:06 PM, Achanta krishna.acha...@gmail.com wrote: Although I did not understand what you meant by Use new Intent(this, MyReallyScaryActivity.class) instead. How do I replace new Intent(Intent.ACTION_DIAL, Uri.parse(tel://911)); with what you suggested? I'd use copy

  1   2   >