[android-developers] multiple notifications

2010-11-12 Thread kampy
hi as a part of application i need to notify the files downloaded but when downloading the other file after one completed the notification displayed is changing to the current download and the notification for the before download is not displaying import android.app.Activity; import

Re: [android-developers] changing icon of application of home screen

2010-11-12 Thread Dianne Hackborn
Sorry, not normally. A home screen app could of course implement this as a special case by simply using a different icon it has for a specific app package name. On Thu, Nov 11, 2010 at 11:36 PM, shaireen dhingra shaireen.dhin...@gmail.com wrote: Is it possible to change the icon images of

[android-developers] How to get metadata of song while playing in android

2010-11-12 Thread gvenugopal
Hi friends, i am playing the live stream of songs in mediaplayer. when the song is changed, the metadata of stream will be changed but i dont know how to get that metadata changed event in my application. i regestered OnInfoListener for mediaplayer and setAudioStreamType as

[android-developers] Re: multiple notifications

2010-11-12 Thread Pent
I would guess it's because you're using the same notify ID for both. Pent -- 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] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Emre A. Yavuz
Not much, just NullPointer Emre Date: Fri, 12 Nov 2010 10:37:56 +0530 Subject: Re: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ? From: coomar@gmail.com To: android-developers@googlegroups.com What does it complain about? Look

[android-developers] Re: multiple notifications

2010-11-12 Thread kampy
private int NOTIFY_ID = 1; mNotificationManager.notify(NOTIFY_ID++, notification); hey we replaced the code like this but now alo we are geting like same as before On Nov 12, 1:15 pm, Pent tas...@dinglisch.net wrote: I would guess it's because you're using the same notify ID for both. Pent

Re: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Kumar Bibek
Not much !!! :) In Java, NullPointer is pretty too much. You might not have initialized the TextView for which you are setting the text. Look into the logcat for more details. It will give you the line number where this exception is being generated. On Fri, Nov 12, 2010 at 1:59 PM, Emre A. Yavuz

Re: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Kostya Vasilyev
There should be a detailed stack trace in logcat, look for caused by. -- Kostya 12.11.2010 11:29, Emre A. Yavuz ?: Not much, just NullPointer Emre Date: Fri, 12 Nov 2010 10:37:56 +0530 Subject: Re:

[android-developers] memory fault detect application on Android platform

2010-11-12 Thread ashwani
Hi, I want to know, is there any utility/software to detect memory (NOR/ NAND flash RAM) fault on Android platform? Like in linux memtest86+ and smartmontools. Regards Ashwani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Animating different views during the same animation

2010-11-12 Thread gontran
Hello folks, still no ideas? On 11 nov, 00:02, gontran geoffroydecorb...@gmail.com wrote: Hello, does anyone knows if it's possible to animate different views during the same animation: I have a linear layout containing 6 dices (each dice extends a textview) and I need to animate each dice

[android-developers] Re: multiple notifications

2010-11-12 Thread kampy
hi we resolved the error but we are passing some information to the intent which is not geeting to the another class the code which used for passing the info is below Intent notificationIntent = new Intent(this,DownloadDetails.class); notificationIntent.putExtra(filename,

[android-developers] LocationListener and getLastKnownLocation

2010-11-12 Thread John-Z80
In one application, when an activity start I use the getLastKnownLocation to get the last know position, using something like: Location position=mlocManager.getLastKnownLocation(mlocManager.getBestProvider(new Criteria(), true)); (in the onCreate) After this, my application register a listener in

[android-developers] Re: Buttons on Android Devices

2010-11-12 Thread mort
On 11 Nov., 19:24, Mark Murphy mmur...@commonsware.com wrote: Any device that has the Android Market on it will have a MENU and a BACK hard or soft button. I think the Home button is mandatory as well, the Search button seems to be optional. Most devices without Market will have those buttons

[android-developers] Droid slide event callback method

2010-11-12 Thread DraganA
Hi there, I'm having crash reports on Motorola Droid phone which force closes my app when the slide is open or closed. I don't have the phone and can't test it. I was wondering if anyone know what kind of event occurs and if any activity callback method is called for those events. Btw, my app is

[android-developers] add a linear layout on click of button

2010-11-12 Thread RKJ (Android developer)
Hi all, I want to add a full layout on click of button, i did in below way... I want when i press the R.id.phone_more_botton button, then entire LinearLayout android:id=@+id/add_contact_phone (button + EditText) will added, if i click again again add then entire layout. addContact.java

[android-developers] SAP ABAP Interactive Online Training at BigClasses.com

2010-11-12 Thread big class
* 100% JOB Oriented Training * Attend Two FREE Trail Classes * Affordable FEES with REAL TIME Trainers * 3 Months Free SAP SERVER ACCESS SAP ABAP course content: http://bigclasses.com/cms/sap-technical/abap.html BigClasses.com is a Global Interactive Online Learning Portal started by proven SAP

[android-developers] Problem in database

2010-11-12 Thread pramod.deore
Hi all, I have a table which has four columns (roomid primary key, roomaname, switchid, and switchname). Now if I tried to insert a record in this table then if roomid is not exist in the table then record is added successfully. (And it is obvious ). But what I want is if

Re: [android-developers] Problem in database

2010-11-12 Thread Kostya Vasilyev
If a record (row) already exists, you need to perform an update, not insert. Before: roomid: 1001 roomname: Scheherezade's bedroom switchid, switchname: null Update: UPDATE tablename SET switchid = 512, switchname = 'blahblah' WHERE roomid = 1001 After: roomid: 1001 roomname: Scheherezade's

[android-developers] Typography

2010-11-12 Thread mboehmer
Where can I find information on available typos on Android Devices? And maybe something on best practices? Best, Matthias -- 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 in database

2010-11-12 Thread pramod.deore
Hi, Kostya Thanks. But I think it only override older value. what I want is If suppose I have roomid:101 roomName:Hall switchid:202 switchName:AC Now if suppose I insert a record as(101,Hall,203, Light) then record is added as roomid:101 roomName:Hall switchid:202,203 switchName:AC,Light. I

Re: [android-developers] detect the language of a particular piece of text (no internet connection)

2010-11-12 Thread Daniel Drozdzewski
On Thu, Nov 11, 2010 at 8:48 AM, alan lam certain...@gmail.com wrote: Is there any function/library/API which can detect the language of a particular piece of text (no internet connection)? i.e. for an input text This is a sentence, it should detect the language as English. Or for Esto es una

[android-developers] Re: Fetch Spinner value outside setOnItemSelectedListener

2010-11-12 Thread sisko
Hey, thanks for the clarification. As for the EditViews, I am using the following code: final EditText input_field = (EditText) findViewById(editViewINT); if( mGameSettings.contains(preference) ){ input_field.setText(

Re: [android-developers] Re: Problem in database

2010-11-12 Thread Kostya Vasilyev
Ah. That's done with a one to many relationship, where you have two tables linked by a foreign key. This is a fundamental topic with SQL databases, Google should find plenty of articles. For example, this: http://www.databaseprimer.com/relationship_1tox.html Or this:

Re: [android-developers] Re: Problem in database

2010-11-12 Thread Daniel Drozdzewski
On Fri, Nov 12, 2010 at 10:52 AM, pramod.deore deore.pramo...@gmail.com wrote: Hi, Kostya Thanks. But I think it only override older value. what I want is If suppose I have roomid:101 roomName:Hall switchid:202 switchName:AC Now if suppose I insert a record as(101,Hall,203, Light) then

[android-developers] Re: Problem in database

2010-11-12 Thread pramod.deore
Thanks Kostya for useful Links and Daniel for great explanation. On Nov 12, 4:08 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Fri, Nov 12, 2010 at 10:52 AM, pramod.deore deore.pramo...@gmail.com wrote: Hi, Kostya Thanks. But I think it only override older value. what I

[android-developers] Re: setScaleType for an ImageButton

2010-11-12 Thread John-Z80
Perhaps you want to sacle the image to fit the button, something like: The image is in Bitmap bm int width = bm.getWidth(); int height = bm.getHeight(); int newWidth = 32; int newHeight = 32; float scaleWidth = ((float) newWidth) / width;

[android-developers] Spinner/drum roller control like native Clock app has for choosing hours/minutes

2010-11-12 Thread Hatch
Hi all. I cannot find a corresponding control anywhere. The control I am interested in is iPhone's spinner. It's much simpler to use than Android's TimePicker. Since I see that native Clock app has it, does anyone know how is that control called and how can one use it in his app ? Thanks,

[android-developers] Re: setScaleType for an ImageButton

2010-11-12 Thread John-Z80
Sorry the first line should be scale not sacle :-) -- 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]

2010-11-12 Thread xc s
hey,everyone,I am student from china,I want to buy a book about android ,not just some demo samples,I want to learn real android app from the book, which book should I buy?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers]

2010-11-12 Thread Rocky
Hi, Welcome to android community. No need to invest money on books, just go through the *developer.android.com * enough :) On Fri, Nov 12, 2010 at 5:24 PM, xc s sxchao2...@gmail.com wrote: hey,everyone,I am student from china,I want to buy a book about android ,not just some demo

RE: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Emre A. Yavuz
I know ... ; ) This is what I meant by not much: 11-12 12:34:15.666: WARN/dalvikvm(510): threadid=3: thread exiting with uncaught exception (group=0x40013140) 11-12 12:34:15.666: ERROR/AndroidRuntime(510): Uncaught handler: thread main exiting due to uncaught exception 11-12 12:34:15.696:

Re: [android-developers]

2010-11-12 Thread ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
I got these and they helped me a lot. http://commonsware.com/Android http://commonsware.com/AdvAndroid http://commonsware.com/AndTutorials Nice reading. 2010/11/12 xc s sxchao2...@gmail.com hey,everyone,I am student from china,I want to buy a book about android ,not just some demo samples,I

Re: [android-developers]

2010-11-12 Thread Rocky
dear, thats the paid... 2010/11/12 ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com I got these and they helped me a lot. http://commonsware.com/Android http://commonsware.com/AdvAndroid http://commonsware.com/AndTutorials Nice reading. 2010/11/12 xc s sxchao2...@gmail.com hey,everyone,I am student

[android-developers] to load image from drawable folder

2010-11-12 Thread Alok Upadhyay
i have thirty images in my drawable folder.a layout having back and next buttons and having an imageview.now on clicking next and back buttons different-2 images displayed.my xml code is: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Re: multiple notifications

2010-11-12 Thread Pent
we resolved the error but we are passing some information to the intent which is not geeting to the another class Your putting the Intent in a PendingIntent, right ? Extras aren't sufficient to differentiate, you need to e.g. set the intent data different: notificationIntent.setData(

Re: [android-developers] add a linear layout on click of button

2010-11-12 Thread Stephen Jungels
findViewById requires that you have already inflated the xml view (with setContentView, for example). To load a view defined in xml dynamically you want to use a layout inflater of some kind: http://developer.android.com/reference/android/view/LayoutInflater.html Or you could also just change

Re: [android-developers] add a linear layout on click of button

2010-11-12 Thread Rocky
thax dear, let me work on that On Fri, Nov 12, 2010 at 6:11 PM, Stephen Jungels sjung...@gmail.com wrote: findViewById requires that you have already inflated the xml view (with setContentView, for example). To load a view defined in xml dynamically you want to use a layout inflater of

Re: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Kostya Vasilyev
Emre, Ok, good, so that's your logcat stack trace for the crash. And it has the whole story about the crash. The what happened is this: 11-12 12:34:15.666: WARN/dalvikvm(510): threadid=3: thread exiting with uncaught exception (group=0x40013140) The what it its immediate cause is this:

Re: [android-developers] Spinner/drum roller control like native Clock app has for choosing hours/minutes

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 6:17 AM, Hatch tomislav.hecimo...@gmail.com wrote: I cannot find a corresponding control anywhere. The control I am interested in is iPhone's spinner. It's much simpler to use than Android's TimePicker. Since I see that native Clock app has it, does anyone know how is

Re: [android-developers] Droid slide event callback method

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 5:05 AM, DraganA dand...@gmail.com wrote: I'm having crash reports on Motorola Droid phone which force closes my app when the slide is open or closed. What is the slide? I don't have the phone and can't test it. I was wondering if anyone know what kind of event occurs

[android-developers] How to get notified when list view is displayed

2010-11-12 Thread Alex Xin
Hi, I have a list view with array adapter to show user some information that retrieved from Internet, As we all know reading data from Internet requires some time to finish, but if I try to read data on getView(), it means user must wait and he/she cannot see anything at that time, the screen is

Re: [android-developers] How to get notified when list view is displayed

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 7:50 AM, Alex Xin xinxi...@gmail.com wrote: I have a list view with array adapter to show user some information that retrieved from Internet, As we all know reading data from Internet requires some time to finish, but if I try to read data on getView(), it means user

[android-developers] Use HTTP persistent connection

2010-11-12 Thread pedr0
Hi at all, I am writing a little application that make a heavy use of image from internet, but I have a little issue. I have write this code for download images over internet, these image fill some fields on a ListView : loop{ method =

[android-developers] Rapidly load data on Re-launch of an Activity

2010-11-12 Thread paresh mayani
Hello all, Actually, i am fetching XML from the web, parsing it and display it on the screen. The problem which i am getting is that the activity tries to load the data from web each time the activity is called.(Actually, my mobile app requires frequent trips to the server) So i am in search of

[android-developers] Re: Will service be restarted with all unfinished intents that returned start status START_REDELIVER_INTENT?

2010-11-12 Thread Jonas Schwertfeger
Yes is not exactly the most useful response to the question Which [of the two] is it now?. I'm assuming yes relates to the question in the subject. Thanks for the help. On Nov 1, 4:36 pm, Dianne Hackborn hack...@android.com wrote: Yes,. -- You received this message because you are subscribed

[android-developers] Re: Droid slide event callback method

2010-11-12 Thread DraganA
Sorry, yes, by the slide, I meant the hardware keyboard. Now, if this is indeed an orientation change event, in theory it shouldn't be breaking my app since I have fixed the orientation to portrait in my application xml. Or maybe there is some kind of override on Droid phones related to the

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread raukodraug
Thanks a lot Ganapathy and fr4gus, it sounds like the way to go. Ill implement that. And Dianne, I know its not the way it is supposed to be, but that was the solution i took after trying to make the tabs work in 1.5. Always running out of memory in the stack, since the tabhost puts like 5 levels

Re: [android-developers] Re: Droid slide event callback method

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 9:02 AM, DraganA dand...@gmail.com wrote: Sorry, yes, by the slide, I meant the hardware keyboard. Now, if this is indeed an orientation change event, in theory it shouldn't be breaking my app since I have fixed the orientation to portrait in my application xml.

Re: [android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 9:13 AM, raukodraug gabriel.martine...@gmail.com wrote: And Dianne, I know its not the way it is supposed to be, but that was the solution i took after trying to make the tabs work in 1.5. Always running out of memory in the stack, since the tabhost puts like 5 levels

[android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Alok Kulkarni
Hi, I am having a unicode string \u3403 which is actualy some japansee character I want to pass it through a JSON object. So i put the value as say String str = \u3403 jsonObject.put(name,str); When i do this the json object internally adds another escape sequence as \\u3403, and the request

[android-developers] How best to suggest changes to the API?

2010-11-12 Thread darrinps
I would really like to see the voice recognition service accept other display options than the one that it has now (a single, dialog that always shows). What is the process for requesting mods to the API? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] How best to suggest changes to the API?

2010-11-12 Thread Kumar Bibek
Use the Issue Tracker. http://code.google.com/p/android/issues On Fri, Nov 12, 2010 at 8:32 PM, darrinps darri...@gmail.com wrote: I would really like to see the voice recognition service accept other display options than the one that it has now (a single, dialog that always shows). What

[android-developers] Re: Rapidly load data on Re-launch of an Activity

2010-11-12 Thread Kumar Bibek
Of course, save your results to a local database. That will be considerably faster. On Nov 12, 6:05 pm, paresh mayani pareshmay...@gmail.com wrote: Hello all, Actually, i am fetching XML from the web, parsing it and display it on the screen. The problem which i am getting is that the activity

[android-developers] Re: to load image from drawable folder

2010-11-12 Thread Kumar Bibek
I am really really confused. How are you including the ImageView that you have in the activity. I can see that you have created a new ImageView through code, but haven't added it to the Activity anywhere. On Nov 12, 5:21 pm, Alok Upadhyay maddy.luck...@gmail.com wrote: i have thirty images in my

[android-developers] Get web page with spaces in path

2010-11-12 Thread Pikoh
Hi all, i'm stuck with this one. i just want to get this webpage - http://www.emtmalaga.es/portal/page/portal/EMT/Tiempos de espera into a string. I'm using HttpGet(url). First it threw me an error because of spaces, and i used %20 to replace them. Now it doesn't throw me any error, but it

Re: [android-developers] Get web page with spaces in path

2010-11-12 Thread Kumar Bibek
What is the error? UrlEncoder if used properly, should solve your problem. On Fri, Nov 12, 2010 at 8:40 PM, Pikoh pik...@gmail.com wrote: Hi all, i'm stuck with this one. i just want to get this webpage - http://www.emtmalaga.es/portal/page/portal/EMT/Tiempos de espera into a string. I'm

Re: [android-developers] Rapidly load data on Re-launch of an Activity

2010-11-12 Thread Kostya Vasilyev
Paresh, There are a couple options, depending on how large the data is, how quickly it changes, and how important it is to completely avoid unnecessary reloads: 1 - Use SQLiteDatabase or SharedPreferences. This is truly persistent, and will survive the death/resurrection of not just the

Re: [android-developers] Re: Fetch Spinner value outside setOnItemSelectedListener

2010-11-12 Thread TreKing
On Fri, Nov 12, 2010 at 5:05 AM, sisko adeod...@gmail.com wrote: So the input is set in a sharedpreference and writing that value back into the EditView whenever the activity is restarted. Then just do the same thing with the index of the spinner.

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Daniel Drozdzewski
On Fri, Nov 12, 2010 at 3:01 PM, Alok Kulkarni kulsu...@gmail.com wrote: Hi, I am having a unicode string \u3403 which is actualy some japansee character I want to pass it through a JSON object. So i put the value as say String str =  \u3403 jsonObject.put(name,str); When i do this  the json

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Alok Kulkarni
Thanks Daniel for your response, In my app, the user enters a name in japanese language which is to be sent to server in a JSON request.The server expects the name parameter in form of a UTF-8 encoded string. So the encoding of source code should not matter.Here is the sample code

[android-developers] Re: problem with AVD manager (last version) on XML verification failed.

2010-11-12 Thread Dani
I have tried that solution but no way: the xml file is downloaded and after appears the error.. I realy don't know how to do On 11 Nov, 18:40, Mark Murphy mmur...@commonsware.com wrote: Go into Settings in the AVD Manager and check Force https://... sources to be fetched with http://...;, then

[android-developers] Multiple audio channels

2010-11-12 Thread Károly Holczhauser
Hi all ! I have to write an application wihich can play multiple audio chennels. My boss asked me to make some market research how many device able to play multiple audio channels on the same time. Where can I check the android phones hardware capacity, which one can do this and which don't.

[android-developers] How to handle major revisions to OpenGL game in Android Market

2010-11-12 Thread scott19_68
Hi all, This post contains several questions that are related and some may have been answered in other posts but after about 15 minutes of searching through this group I've determined that it is easier to ask in a new post. I'd also like to make sure that this thread does not veer-off in some

[android-developers] Localizing example somewhere?

2010-11-12 Thread Rutton
Hello, I am interested in localizing an app and have read the Localizing Andrdoi Apps - Draft article on the first page of the Android Developers group page. Unfortunately the example project isn't accessible anymore, clicking to download results in a not-available message. Does someone has

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Frank Weiss
\u3403 is not a unicode string, but a string that has hex code of an unicode character in it. It can be unicode encoded or its encoding can be anything else really. Since \ is a special character and has extra meaning in Java String class, it gets escaped by escape character, which is \. Now

Re: [android-developers] drawing views on top

2010-11-12 Thread TreKing
On Wed, Nov 10, 2010 at 11:58 PM, kavitha b kkavith...@gmail.com wrote: But the views which i draw are drawing down the scrollview. What does down the scrollview mean? Why are you calling super.dispacthDraw(canvas) in onDraw(canvas) ?

[android-developers] Re: ListView.invalidateViews() not working

2010-11-12 Thread jotobjects
It looks to me in the Adapter source that notifyDatasetChanged(), invalidateViews(), and notifyDataSetInvalidated() all have the desired effect. Reminds me of Perl programming - there are always seven right ways to do something :-) On Nov 11, 9:10 pm, Kumar Bibek coomar@gmail.com wrote:

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Frank Weiss
It looks like the code you are using is adding the extra \ here: strJson = start + \\u file://u/ + strHex.substring(strHex.length()-4)+ end; I don't understand the need for the EncodeJson function. As I pointed out earlier, Java stores char and String data internally as sequences of 16-bit

Re: [android-developers] LocationListener and getLastKnownLocation

2010-11-12 Thread Frank Weiss
How is the position being passed from the onCreate method to your application? I suspect when you restart you app, onCreate is not being called. You may need to save it in the savedInstanceState. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: [EXCEPTION IN SYSTEM PROCESS]

2010-11-12 Thread GPU
Hi All , The above exception due to the issue in SparseArray .This issue was fixed in the Donut release 2.This issue happen when accesing the null value in the SparseArray if some account updation happend.

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Alok Kulkarni
I am using Androids JSON library, The extra \ in the line strJson = start + \\u + strHex.substring(strHex.length()-4)+ end; has to be added as an escape sequence else the code does not compile. I don't understand the need for the EncodeJson function. -Though internally java might be storing as

[android-developers] Re: Droid slide event callback method

2010-11-12 Thread DraganA
Thanks for that. Since my app is fixed to portrait, I now prevent onCreate being called on orientation change by setting android:configChanges=orientation|keyboardHidden in the app xml. This will hopefully fix it. On Nov 12, 2:15 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 12,

[android-developers] Save and continue game

2010-11-12 Thread acr
Hi everyone, I have a puzzle game with a 7x7 grid of graphics, and a timer, its just about ready to go. But I am stuck on how to go about saving/continuing game. For example when someone exits I want them to be able to save and exit, then come back and click continue to pick up where they left off

[android-developers] Delayed click events mystery

2010-11-12 Thread jotobjects
The app I am working on is having this strange behavior - It works correctly for a while, but after some series of actions (that I'm not sure how to replicate) it does this - - seems to stop responding to clicks on some ImageViews that have OnClickListener() set. These methods call

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Daniel Drozdzewski
Alok, On Fri, Nov 12, 2010 at 3:56 PM, Alok Kulkarni kulsu...@gmail.com wrote: Thanks Daniel for your response, In my app, the user enters a name in japanese language which is to be sent to server in a JSON request.The server expects the name parameter in form of a UTF-8 encoded string. In

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Frank Weiss
Yes it won't compile, but I think you are supposing that (\\u file://u/ + 3403) is the same as \u3403. At any rate, I still thing the EncodeJson function is bogus. AFAIK, the JSON encoder should take care of the UTF-8 encoding. It could also use JSON encoding. -- You received this message

Re: [android-developers] change the language of sim

2010-11-12 Thread TreKing
On Thu, Nov 11, 2010 at 2:27 AM, rajesh chandrasekaran crajeshdanger...@gmail.com wrote: I am new in Android, I need to know how to change the language of sim If you mean the emulator, there should be an app or option that lets you change the language and / or locale settings.

[android-developers] Re: Begging with Web Services in Android

2010-11-12 Thread Hal
Your welcome. BTW, The Jt framework also supports secure messaging/ REST web services. It requires configuration. I'll probably post additional info. Regards, On Nov 9, 4:03 pm, William Añez wecu...@gmail.com wrote: Thanks for this information, I'll give a try. Regards, On Nov 5, 10:36 am,

Re: [android-developers] Problem passing Unicode string through JSON request

2010-11-12 Thread Daniel Drozdzewski
On Fri, Nov 12, 2010 at 4:33 PM, Frank Weiss fewe...@gmail.com wrote: Yes it won't compile, but I think you are supposing that (\\u + 3403) is the same as \u3403. At any rate, I still thing the EncodeJson function is bogus. AFAIK, the JSON encoder should take care of the UTF-8 encoding. It

RE: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Emre A. Yavuz
Hi Kostya, Thanks for the comments. That's (SampleConnection.java line 275 ) actually where I am calling the setText() method and thus getting the null reference occurence. Anyway, it seems I've found the problem. It was an accidental copy/paste operation which replaced the location of

[android-developers] Re: Get web page with spaces in path

2010-11-12 Thread Pikoh
Hi Kumar, With URLEncoder, HttpGet gave me target host must not be null. It's strange, now i've found a solution using url = new URL(http://www.emtmalaga.es/portal/page/portal/EMT/Tiempos %20de%20espera); InputStream is=url.openStream(); I suppose using (%20) instead of spaces should work

[android-developers] how to center justify within a LinearLayout

2010-11-12 Thread DulcetTone
The following code incorrectly (in my view) places the text left- justified, and the button is in the center, horizontally. Why is this? LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content

Re: [android-developers] Re: Get web page with spaces in path

2010-11-12 Thread Kumar Bibek
How are you using it? I guess, you are doing something wrong. Also, when you replace spaces with %20, what status codes do you get? On Fri, Nov 12, 2010 at 10:16 PM, Pikoh pik...@gmail.com wrote: Hi Kumar, With URLEncoder, HttpGet gave me target host must not be null. It's strange, now i've

[android-developers] Re: how to center justify within a LinearLayout

2010-11-12 Thread Streets Of Boston
Because your TextView's layout_width is set to fill_parent. Do 'wrap_content' instead, just like your Button's layout_width. On Nov 12, 11:49 am, DulcetTone dulcett...@gmail.com wrote: The following code incorrectly (in my view) places the text left- justified, and the button is in the center,

Re: [android-developers] Re: how to center justify within a LinearLayout

2010-11-12 Thread Kumar Bibek
Use android:gravity=center_horizontal instead of layout_gravity On Fri, Nov 12, 2010 at 10:24 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Because your TextView's layout_width is set to fill_parent. Do 'wrap_content' instead, just like your Button's layout_width. On Nov 12, 11:49

[android-developers] Re: How best to suggest changes to the API?

2010-11-12 Thread darrinps
Done (http://code.google.com/p/android/issues/detail?id=12524) Thanks! On Nov 12, 9:03 am, Kumar Bibek coomar@gmail.com wrote: Use the Issue Tracker. http://code.google.com/p/android/issues On Fri, Nov 12, 2010 at 8:32 PM, darrinps darri...@gmail.com wrote: I would really like to see

[android-developers] Re: how to center justify within a LinearLayout

2010-11-12 Thread Streets Of Boston
That won't layout the TextView in the center of the LinearLayout. Instead, it will layout the text in the center of the TextView. Visually, it looks the same though :) On Nov 12, 11:56 am, Kumar Bibek coomar@gmail.com wrote: Use android:gravity=center_horizontal instead of layout_gravity

[android-developers] Re: Get web page with spaces in path

2010-11-12 Thread Pikoh
Well let's see. This is basically what i'm doing: HttpGet httpGet = new HttpGet(http://www.emtmalaga.es/portal/ page/portal/EMT/Tiempos%20de%20espera?idParada=364); HttpResponse response= null; response = httpClient.execute(httpGet, localContext); reader = new

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread raukodraug
Ganapathy and fr4gus, the startactivityforresult does not work when using singleTask, which is what i am doing http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int) and Mark, the problem is that i have several activities within each

Re: [android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 12:15 PM, raukodraug gabriel.martine...@gmail.com wrote: and Mark, the problem is that i have several activities within each tab, thus the need for creating Activities. As the British like to say, bollocks. Any other ideas? Get rid of the several activities within

[android-developers] Re: Default Media Button Application

2010-11-12 Thread michael
Hmm... I don't quite agree with the above statements for different reasons: 1) The user usually has one single intention when hitting a media button. I've in fact already written an application that misused the media buttons for voting, but even for this application, I would expect to place a

[android-developers] detect Bluetooth A2DP disconnection

2010-11-12 Thread Stephen Lau
Anyone know how I can detect when the Bluetooth audio is disconnected? I want to be able to pause the currently playing audio when it's disconnected, similar to how I do for the ACTION_HEADSET_PLUG intent, but can't figure out how to do it for a Bluetooth device. Any ideas? cheers, steve --

Re: [android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread Dianne Hackborn
On Fri, Nov 12, 2010 at 9:15 AM, raukodraug gabriel.martine...@gmail.comwrote: Ganapathy and fr4gus, the startactivityforresult does not work when using singleTask, which is what i am doing

Re: [android-developers] Re: Will service be restarted with all unfinished intents that returned start status START_REDELIVER_INTENT?

2010-11-12 Thread Dianne Hackborn
Sorry, I was replying to the subject. On Fri, Nov 12, 2010 at 5:17 AM, Jonas Schwertfeger jschwertfe...@gmail.com wrote: Yes is not exactly the most useful response to the question Which [of the two] is it now?. I'm assuming yes relates to the question in the subject. Thanks for the help.

[android-developers] Expandable ListView (how to collapse, expand groups and remove groups)

2010-11-12 Thread bobetko
In my app I have nice ExpandableListView. I would like sometime, depending of situation, to expand some or all groups. I would also like to be able to remove/hide groups, expand all and basically have (visually) ExpandableListView without groups. I looked at all available methods for

Re: [android-developers] Localizing example somewhere?

2010-11-12 Thread Marcin Orlowski
I am interested in localizing an app and have read the Localizing Andrdoi Apps - Draft article on the first page of the Android Developers group page. Do you have any exact problems with localization? Or you want to start? If so, things are quite simple: just put all your messages and strings

Re: [android-developers] custom view onDraw() in layout xml not called

2010-11-12 Thread TreKing
On Thu, Nov 11, 2010 at 8:24 AM, pvee ppillai...@gmail.com wrote: View class=android.pvee.vm.animateview android:id=@+id/ animateview01 android:layout_gravity=top android:layout_weight=1 android:background=@drawable/vmquad android:layout_width=fill_parent

[android-developers] Sell Apps from India

2010-11-12 Thread Waj
Hi Dear Developers and Google, I'm a developer from India, I wanted to sell my apps in Android Market. Is there any way of doing it? When will Google Checkout be launched in India? Thanks! Waj -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Save and continue game

2010-11-12 Thread TreKing
On Fri, Nov 12, 2010 at 10:29 AM, acr acr...@gmail.com wrote: I looked at onSaveInstanceState android examples, but not sure if this is what I need or how to implement it in my case. Any help on this would be GREATLY appreciated. Thanks Al You'll probably want some sort of persistent

[android-developers] Re: uses-feature android.hardware.wifi and android:required=false

2010-11-12 Thread Manfred Moser
I find the same problem. Building again version 4 .. On Oct 29, 7:54 am, TreKing treking...@gmail.com wrote: 2010/10/25 Antonio Vázquez Blanco antoniovazquezbla...@gmail.com How can I fix it? Which API version are you building against?

  1   2   >