Re: [android-developers] Re: Read NfcA card

2011-09-10 Thread Michael Roland
Hallo, I need to read and write ISO 14443-4 smart card . In this case you won't need NfcA at all. You only need the IsoDep class. In general you shouldn't care whether your IsoDep card uses NfcA or NfcB as low-level technology. I had used mTechLists = new String[][] { new String[] {

[android-developers] How to develop an app that involves google maps

2011-09-10 Thread Mohit Agarwal
Hello This is the first time i m developing an app... I need to know from where to get my api key.. i went on to the site getting an api key, it asks me MD5 fingerprint(wat's This??) how to get MD5 fingerprint... pls help.. -- You received this message because you are subscribed to the

Re: [android-developers] How to develop an app that involves google maps

2011-09-10 Thread Michael Banzon
The sign up page tells you how to obtain the MD5 fingerprint: http://code.google.com/android/maps-api-signup.html Use keytool... On Sat, Sep 10, 2011 at 8:52 AM, Mohit Agarwal mohitiit...@gmail.com wrote: Hello This is the first time i m developing an app... I need to know from where to

[android-developers] OutOfMemory exceptions

2011-09-10 Thread bob
How do I tell how much RAM my MetroPCS LG Optimus uses? I keep getting OutOfMemory exceptions. Also, what is the most user- friendly way to handle OutOfMemory exceptions? Right now, the app crashes. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Problems with deactivating the title bar

2011-09-10 Thread skink
On Sep 9, 4:50 pm, Felix Schröter fels...@googlemail.com wrote: Hi everyone, I´m 15 years old (in a few weeks 16) and I´m very new to Android and Java and at the moment I just copy and past, but I want to learn the language Java complete but later. So my Problem: I didn´t deavticate the

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread Michael Banzon
Do you know what causes the OutOfMemoryException? My general advise would be to try and avoid that... On Sat, Sep 10, 2011 at 9:20 AM, bob b...@coolgroups.com wrote: How do I tell how much RAM my MetroPCS LG Optimus uses? I keep getting OutOfMemory exceptions.  Also, what is the most user-

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread Christopher Van Kirk
Check that the pointer returned to you when you allocate memory is non-null. If it's null, you're out of memory. If you're even getting close to the memory limit, though, you're doing something very wrong. On 9/10/2011 3:20 PM, bob wrote: How do I tell how much RAM my MetroPCS LG Optimus

[android-developers] one AsyncTask at a time

2011-09-10 Thread bob
So, I have a bunch of buttons and each one launches an AsyncTask. So, should I keep a variable like this: AsyncTask currentTask=null; Then should I do if (currentTask != null) currentTask.cancel(); before I launch the new task? I only want one task running at a time. Right now, if someone

Re: [android-developers] How to develop an app that involves google maps

2011-09-10 Thread Mohit Agarwal
Thanku for ur reply. but i wrote the command in cmd and it is not showing any MD5 fingerprint. can u pls tell me t he full exact command to obtain MDR fingerprinti m using windows On Sat, Sep 10, 2011 at 12:29 PM, Michael Banzon mich...@banzon.dk wrote: The sign up page tells you how to

Re: [android-developers] How to develop an app that involves google maps

2011-09-10 Thread Mohammed Hossain Doula
http://code.google.com/android/add-ons/google-apis/mapkey.html here you can get the detailed information regarding this... On Sat, Sep 10, 2011 at 1:55 PM, Mohit Agarwal mohitiit...@gmail.comwrote: Thanku for ur reply. but i wrote the command in cmd and it is not showing any MD5

Re: [android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-10 Thread b0b
It would crash on Android 1.x only, since starting with 2.0 the classloader loads the symbols only when they are reached. No need to use reflection for that kind of test if the target is Android 2.0+ On Saturday, September 10, 2011 1:14:39 AM UTC+2, Dianne Hackborn wrote: This will probably

[android-developers] Re: Finding if the Soft Input Method is visible

2011-09-10 Thread Pent
store the value of the height and width at startup and compare the height with the initial value. Would be nice if you could just query the IMM... would then also be possible outside of activities. Pent -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How is RockPlayer doing hardware decoding?

2011-09-10 Thread gjs
Hi, You should ask 'RockPlayer' Regards On Sep 9, 6:30 pm, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi,     Would somebody have some idea what exactly has RockPlayer done in the Hardware Decoding mode on a high level basis? I mean have they used the mediaplayer as it is or they have

Re: [android-developers] How to develop an app that involves google maps

2011-09-10 Thread Mohit Agarwal
i used debug.keystore to get my MDB fingerprint. It said the following The fingerprint you entered is not valid. Please press the Back button on your browser and enter a valid certificate fingerprint. wat to do nw On Sat, Sep 10, 2011 at 1:33 PM, Mohammed Hossain Doula

[android-developers] how to blit a row of a bitmap as fast as possible to the canvas?

2011-09-10 Thread Marco Alexander Schmitz
Hello, Id like To take a row of a bitmap and paint IT To The canvas, as fast as possible, and over and over again. This is going to be a retro effekt... how can this be done? I rather dislike the idea of a for loop which paints from the bitmap e.g. 480 times. Thanks for advice, Marco -- You

Re: [android-developers] one AsyncTask at a time

2011-09-10 Thread Marco Alexander Schmitz
Hi. How about blocking the ui with some nice waiting dialog? Greetings marco Am 10.09.2011 09:39 schrieb bob b...@coolgroups.com: So, I have a bunch of buttons and each one launches an AsyncTask. So, should I keep a variable like this: AsyncTask currentTask=null; Then should I do if

[android-developers] how to fetch friend list, profile image and status(online or offline) from facebook in listview

2011-09-10 Thread Nasreen
Hi friends, i m creating an application who will show the facebook friend list, image and its status, in a single listview, my friend list is coming in my listview, but unable to show image ans its status if you have some idea about this then plz let me know thank You -- You received this

[android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?

2011-09-10 Thread Yahel
However, you should not discount the question for what it is. It benefits us all to understand the nuances of the Android market and the publishing process. Its a technical question, so let's find an answer. As I told you in my previous answer : Trying to upload an apk with the same or lower

[android-developers] Textview from thread

2011-09-10 Thread Kristoffer
Hello. I have been searching for answer how to update a textview from another thread, i have found several answer that point to using Handler but i dont know how i should implement that in my code, maybe you could point it out for me. Iam checking if the user is logged in or not to Twitter, here

[android-developers] Finding if softkeyboard is open in an alertdialog.

2011-09-10 Thread sblantipodi
Hi, is there a way to detect if the softkeyboard is opened from an alertdialog? The alertdialog is shown upside my canvas. If I call the getHieght() from the canvas once the alertdialog is shown and the softkeyboard is shown, I get always the same height (the full screen one). -- You received

[android-developers] request for an interview

2011-09-10 Thread Lela Mose
Dear group members, Please take a minute to read this request for an interview. My name is Lela Mosemghvdlishvili, I am a PhD candidate at the Erasmus University Rotterdam ( http://www.eshcc.eur.nl/english/personal/mosemghvdlishvili/) and for my research am interviewing App developers. The

Re: [android-developers] Re: Webview android

2011-09-10 Thread Christian Bianchini
I found that the problem is the SVG, android doesn't support it but maybe there is a library to implement it. Anyone know something about that? On Sat, Sep 10, 2011 at 2:38 AM, IcedNet d...@icednet.info wrote: I looked at xui before giving in and writing all the javascript by hand... on the

Re: [android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-10 Thread Mark Murphy
On Sat, Sep 10, 2011 at 4:11 AM, b0b pujos.mich...@gmail.com wrote: It would crash on Android 1.x only, since starting with 2.0 the classloader loads the symbols only when they are reached. No need to use reflection for that kind of test if the target is Android 2.0+ That might be true for

Re: [android-developers] hiding keyboard after button press

2011-09-10 Thread Mark Murphy
On Fri, Sep 9, 2011 at 11:02 PM, martypantsROK martyg...@gmail.com wrote: I am using     confirmButton.setOnClickListener(new View.OnClickListener() {        public void onClick(View view) {         //hide keyboard :

[android-developers] Modules similar to DLLs in android

2011-09-10 Thread New Developer
Hi All Is there a mechanism to create the equivalence of DLLs so that one can create modules. It's not quite an apk, can't be run by itself, it must be called from a main.apk. and this main.apk will scan looking for these modules and based on what is or is not present will then have a

[android-developers] Re: hiding keyboard after button press

2011-09-10 Thread sblantipodi
this does not work for me neither. On Sep 10, 1:36 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 9, 2011 at 11:02 PM, martypantsROK martyg...@gmail.com wrote: I am using     confirmButton.setOnClickListener(new View.OnClickListener() {        public void onClick(View view) {

[android-developers] Re: hiding keyboard after button press

2011-09-10 Thread sblantipodi
to make it work on every phone you should delay the softInputMode only once the keyboard is compeltely visible. something like this really help that much: Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() {

Re: [android-developers] Modules similar to DLLs in android

2011-09-10 Thread Michael Banzon
I haven't actually tried to see if it's possible - but I suppose you could make an application with no activity for the launcher. The main problem I see is distribution - how do you get users to install the program package from Android Market? I make a few programs that share functionality and

[android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

2011-09-10 Thread sblantipodi
As title. I have two apps. One app should monitor how much CPU and how much RAM is consuming the other app. Is there some API to do that? 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] Autoreload of Webview

2011-09-10 Thread Jay Bloodworth
At my work, I have to access an intranet site several times a day. The site has a short session inactivity logout - shorter than the frequency with which I must access it - so I end up having to relog every time. I'd like to write a small Webview app to just to a reload every ten minutes or so to

[android-developers] Re: one AsyncTask at a time

2011-09-10 Thread bob
That's a possibility. Or, I might use this function I wrote: void replaceCurrentTask(android.os.AsyncTaskVoid, Void, Long newTask){ if (currentTask != null) { currentTask.cancel(true); while (!currentTask.isCancelled()

Re: [android-developers] Re: one AsyncTask at a time

2011-09-10 Thread Mark Murphy
On Sat, Sep 10, 2011 at 10:13 AM, bob b...@coolgroups.com wrote: That's a possibility.  Or, I might use this function I wrote:        void replaceCurrentTask(android.os.AsyncTaskVoid, Void, Long newTask){                if (currentTask != null)  {                        

Re: [android-developers] Modules similar to DLLs in android

2011-09-10 Thread New Developer
Thanks Michael I'm not sure I'm going to use the Android Market, and I'm guessing I could host the apk (with no activity) on my own site. Do you know of any tutorials (or care to share) how to create a jar file and then link/include it inside an activity ? thanks again On 09/10/2011

[android-developers] Why is the default to use dpi instead of screen size for drawables

2011-09-10 Thread ArcDroid
Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- You

Re: [android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-10 Thread b0b
It has to be in a conditional test ie: if (Build.VERSION.SDK_INT = some api level { // you can call any function defined only since some api level or greater. } On Saturday, 10 September 2011 13:32:39 UTC+2, Mark Murphy (a Commons Guy) wrote: That might be true for data members

Re: [android-developers] Modules similar to DLLs in android

2011-09-10 Thread TreKing
On Sat, Sep 10, 2011 at 6:41 AM, New Developer secur...@isscp.com wrote: and this main.apk will scan looking for these modules and based on what is or is not present will then have a certain set of functions and functionality ? Google Android Plugins or something - many apps do this. On

Re: [android-developers] Modules similar to DLLs in android

2011-09-10 Thread Michael Banzon
The JAR files are a standard Java thing - google'ing it should give good resources. The process have nothing to do with the final Android app - you deal with all the magic in Eclipse or your favorite development env. On Sat, Sep 10, 2011 at 4:37 PM, New Developer secur...@isscp.com wrote:

Re: [android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-10 Thread Mark Murphy
On Sat, Sep 10, 2011 at 10:48 AM, b0b pujos.mich...@gmail.com wrote: It has to be in a conditional test ie:   if (Build.VERSION.SDK_INT =  some api level { // you can call any function defined only  since  some api level or greater.   } Ah, my apologies. I thought the issue remained

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-10 Thread ArcDroid
One example is the htc hero and the acer iconica a500 10 tablet both use mdpi On Sep 10, 7:44 am, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some

[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-10 Thread darrinps
I have two text books that cover Bluetooth and have read multiple articles and not one has mentioned the need to do that. What I read in the documentation is that the UUID is random: A Universally Unique Identifier (UUID) is a standardized 128-bit format for a string ID used to uniquely identify

Re: [android-developers] How to develop an app that involves google maps

2011-09-10 Thread Mohit Agarwal
thank u guys it worked i got my api key... On Sat, Sep 10, 2011 at 2:08 PM, Mohit Agarwal mohitiit...@gmail.comwrote: i used debug.keystore to get my MDB fingerprint. It said the following The fingerprint you entered is not valid. Please press the Back button on your browser and enter a

[android-developers] How to run google map on Emulator

2011-09-10 Thread Mohit Agarwal
i m developing an app based on google mapsi hv the api key... When i run my app instead of map it's showing some checkboxesno map can be seen...help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] How to run google map on Emulator

2011-09-10 Thread Mark Murphy
Either: -- your API key is wrong (or is in the wrong place), or -- you do not have the INTERNET permission, or -- the emulator does not have Internet access On Sat, Sep 10, 2011 at 12:42 PM, Mohit Agarwal mohitiit...@gmail.com wrote: i m developing an app based on google mapsi hv the api

[android-developers] Re: How to deal with expensive view height calculation?

2011-09-10 Thread blake
Tedd, I'm quite sure that you don't want to do any of this in onDraw. It's just a thought, but suppose that measureHeight, in addition to remembering the width it had just returned, kept a number that represented the error in that width. When it returns, it requests a re-layout, unless that

Re: [android-developers] How to run google map on Emulator

2011-09-10 Thread Mohit Agarwal
surely api key is at right place n also i hv included INTERNET PERMISSION in manifest..i also hv internet access... the only option left is emulator does nt hv internet accessHow to get it accessedpls tell me On Sat, Sep 10, 2011 at 10:18 PM, Mark Murphy mmur...@commonsware.comwrote:

Re: [android-developers] How to run google map on Emulator

2011-09-10 Thread Mark Murphy
On Sat, Sep 10, 2011 at 12:53 PM, Mohit Agarwal mohitiit...@gmail.com wrote: surely api key is at right place n also i hv included INTERNET PERMISSION in manifest..i also hv internet access... the only option left is emulator does nt hv internet accessHow to get it accessedpls tell

[android-developers] Autoreload of Webview

2011-09-10 Thread rich friedel
Have you attempted to discuss this with your IT people? You are asking how to break their currently implemented securtiy policies. No offense, but I would fire anyone who did this on the spot without question. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Why is the default to use dpi instead of screen size for drawables

2011-09-10 Thread Dianne Hackborn
They are two completely different things. Please read: http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that

Re: [android-developers] Re: one AsyncTask at a time

2011-09-10 Thread Dianne Hackborn
I wouldn't trust that not to have a deadlock. Not to mention sitting in a tight loop polling is pretty wretched. If the desire is: I want to execute whatever is the most recent operation, dropping any before it, then my general solution is to have a pointer to the most recent operation, schedule

Re: [android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

2011-09-10 Thread Dianne Hackborn
Sorry there is no API in the SDK. There are non-supported things you can do to get CPU info, but no way to get good memory use info. On Sat, Sep 10, 2011 at 5:29 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: As title. I have two apps. One app should monitor how much CPU and how much

Re: [android-developers] Re: PARTIAL_WAKE_LOCK and thread running in a service

2011-09-10 Thread Dianne Hackborn
And note that holding a partial wake lock will have a *very* noticeable impact on battery life. On Fri, Sep 9, 2011 at 3:18 PM, nexbug gsuku...@gmail.com wrote: Get the lock in the oncreate of the service and release it at the end of the thread On Sep 9, 4:41 am, Evelyon evely...@gmail.com

Re: [android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

2011-09-10 Thread Jim Graham
On Sat, Sep 10, 2011 at 10:49:59AM -0700, Dianne Hackborn wrote: Sorry there is no API in the SDK. There are non-supported things you can do to get CPU info, but no way to get good memory use info. Ok, I'm confused now (so what's new?) What, then, are all of the apps that list system

Re: [android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

2011-09-10 Thread Mark Murphy
On Sat, Sep 10, 2011 at 2:21 PM, Jim Graham spooky1...@gmail.com wrote: Ok, I'm confused now (so what's new?)  What, then, are all of the apps that list system memory usage, both total and per app, doing to get the information?

Re: [android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

2011-09-10 Thread Jim Graham
On Sat, Sep 10, 2011 at 02:30:58PM -0400, Mark Murphy wrote: Apps are probably using various Linux values out of /proc/ and hoping they are doing it correctly, that the results will be available on all devices, etc. This is not part of the Android SDK and there are no guarantees here. Ahh,

Re: [android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

2011-09-10 Thread Mark Murphy
On Sat, Sep 10, 2011 at 2:47 PM, Jim Graham spooky1...@gmail.com wrote: So when developing a live wallpaper, for example, and getting advice to check its usage of RAM, CPU, and battery, there is no valid way of doing so, and the advice is therefore equally invalid?  Or is even an approximate

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread TreKing
On Sat, Sep 10, 2011 at 2:36 AM, Christopher Van Kirk christopher.vank...@gmail.com wrote: Check that the pointer returned to you when you allocate memory is non-null. If it's null, you're out of memory. You don't use pointers or allocate memory directly in Java and even if you did you

[android-developers] Bitmap upload issue

2011-09-10 Thread ANKUR GOEL
i am taking the photo from camera and converting it to ...bytearray Bitmap bmp = intent.getExtras().get(data); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bmp.compress(Bitmap.CompressFormat.PNG, 100, stream); byte[] byteArray = stream.toByteArray(); something like that ..

[android-developers] Webview session or how to hold some particular view

2011-09-10 Thread ANKUR GOEL
can anybody help me for maintain the session in webview suppose i am login in some url then i go different activities when i return back to webview it should show the last page only -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Need help building Android 2.2.2 (Unable to look up android.git.kernel.org)

2011-09-10 Thread Anuj Goyal
I am trying to build Android 2.2.2 from scratch - is this the right way to do so? ~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo Getting repo ... from git://android.git.kernel.org/tools/repo.git fatal: Unable to look up android.git.kernel.org (port 9418) (Name

Re: [android-developers] Need help building Android 2.2.2 (Unable to look up android.git.kernel.org)

2011-09-10 Thread Mark Murphy
Questions regarding building the firmware belong on one of the Google Groups listed at: http://source.android.com/community/ such as the [android-building] Google Group. Please bear in mind that android.git.kernel.org is still unavailable, after the kernel.org hack attack. On Sat, Sep 10, 2011

[android-developers] Get views and widgets of activities in a default android applications (Settings, contacts etc)

2011-09-10 Thread rich friedel
AFAIK you cannot do what you describe with the standard Android SDK. -- 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] OutOfMemory exceptions

2011-09-10 Thread Christopher Van Kirk
Quite right. Sorry, thought this was on a different list. I still think he (or she) needs to review memory usage. Running into the memory limit is a good indicator of a bad design. On 9/11/2011 3:56 AM, TreKing wrote: On Sat, Sep 10, 2011 at 2:36 AM, Christopher Van Kirk

[android-developers] same app one tablet and phone with differnt gui

2011-09-10 Thread rich friedel
You are on the correct path... use the different layouts to target the device. -- 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

[android-developers] Re: How is RockPlayer doing hardware decoding?

2011-09-10 Thread Doug
On Sep 9, 1:30 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote:     Would somebody have some idea what exactly has RockPlayer done in the Hardware Decoding mode on a high level basis? I mean have they used the mediaplayer as it is or they have changed something at the source code level of

[android-developers] character replace

2011-09-10 Thread bob
How do I tell Java what to replace a special UTF-8 character with when converting to US-ASCII? -- 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

[android-developers] URI-escape

2011-09-10 Thread bob
I'm looking at this WebView function: public void loadData (String data, String mimeType, String encoding) Since: API Level 1 Load the given data into the WebView. This will load the data into WebView using the data: scheme. Content loaded through this mechanism does not have the ability to load

Re: [android-developers] How to run google map on Emulator

2011-09-10 Thread Mohit Agarwal
i tried to run internet in web browser,it still doesn't work pls help... On Sat, Sep 10, 2011 at 10:56 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Sep 10, 2011 at 12:53 PM, Mohit Agarwal mohitiit...@gmail.com wrote: surely api key is at right place n also i hv included INTERNET

[android-developers] Hide Phone Number in the Dialer

2011-09-10 Thread mwllace
Im using and intent to invoke the default dialer and automatically call phone number stored in my application. Everything works fine, but the number is visible in the default dialer UI. I need to display something else in place of the number like My Special Number. The behavior would be much