Re: [android-developers] Re: How to set the size and position of an image?

2011-05-07 Thread Justin Anderson
Look for the caused by line after the NullPointerException. That should give you the file and line number where you are getting the exception... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 6, 2011 at 9:17 PM, Tom taaki...@uwaterloo.ca

[android-developers] Sent/delivered SMS: how do you identify to which SMS the broadcast belongs?

2011-05-07 Thread Mathias Lin
In thread http://stackoverflow.com/questions/4639778/how-to-monitor-each-of-sent-sms-status it is described how you can monitor the status of a sent/delivered SMS via broadcast. However, I haven't found: how do you identify to which SMS the broadcast belongs? There doesn't seem to be any

Re: [android-developers] Re: Suspended my dev account without any explanation, Why?

2011-05-07 Thread Marcin Orlowski
For my themes I used materials that are freely available. Namely, I used the images found in Google images . If you found them using Google images it only means such images are published on the net. It does NOT automatically mean you are allowed to use it for your projects nor that these

Re: [android-developers] Help needed in.android tabs

2011-05-07 Thread Me
Can't understand what you exactly need ,for tabs you can visit below links ... http://developer.android.com/resources/tutorials/views/hello-tabwidget.html http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

Re: [android-developers] Re: onBackPressed to hide Not destroy activity

2011-05-07 Thread Me
On back button you need to save the instance state of activity . . . On Fri, May 6, 2011 at 11:51 PM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: moveTaskToBack is what you're asking for, but check the rest of the documentation about the lifecycle too to make sure it's what you

[android-developers] Re: Suspended my dev account without any explanation, Why?

2011-05-07 Thread Maps.Huge.Info
Hmm, but I see on market many themes like mine. They all will be banned similarly? You must have angered somebody and they filed a DMCA noticed. Google responds to those complaints quickly and forcefully. The other apps that violate copyrights are all subject to similar actions as yours, it's

[android-developers] what is the difference between progressdialog and progressbar?

2011-05-07 Thread Hitendrasinh Gohil
hi, can anyone tell me what is the difference between progreessbar and progressdialog? In which circumstances we suppose to use progressbar and progressdialog? i want to make on progressdialog in which i want to set one image in background and spinner.how can i do it? please provide me an

[android-developers] Fwd: How to Implement onChildClick Listener

2011-05-07 Thread Me
Repeating Message I also put this issue on http://stackoverflow.com/questions/5897093/android-expandablelistview-using-baseexpandablelistadapter http://stackoverflow.com/questions/5897093/android-expandablelistview-using-baseexpandablelistadapterbut still not able what I am doing wrong to get the

[android-developers] API to test if an application has the Auto Update flag enabled?

2011-05-07 Thread stuckless
I'd like to get a list of my applications that have the auto update flag enabled. After searching the APIs and lots of googling, i can't seem to find an API that would allow me to test if an Application has this set or not. Does anyone know how to check for this behaviour? Thanks. -- You

[android-developers] Re: Backporting from gingerbread to froyo-language support

2011-05-07 Thread NicuLiviu
Froyo has only 26 languages, Gingerbread comes in with a 57 languages, included in this list is the Arabic, Hindi support, among many others. I want to add the new languages from gingebread to froyo. From what I have read the support languages are included in sdk in system image but I don't

Re: [android-developers] Re: 回覆:Hello, Android troubles

2011-05-07 Thread Kostya Vasilyev
What might have caused this in the first place is: The first time you run or debug a project in Eclipse, it asks how the project should be run. The choices are: Android Application, Android JUnit test, Java Applet, etc. You might have clicked on the wrong one here. The setting is saved for

[android-developers] Re: Backporting from gingerbread to froyo-language support

2011-05-07 Thread lbendlin
This has nothing to do with the SDK. You would have to recompile the actual Froyo operating system. Google are offering a compatibility library for fragments. If they would offer something similar for languages that might be another option. -- You received this message because you are

[android-developers] Re: what is the difference between progressdialog and progressbar?

2011-05-07 Thread lbendlin
http://developer.android.com/reference/android/app/ProgressDialog.html http://developer.android.com/reference/android/widget/ProgressBar.html -- 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] How to launch the interface for incoming/outgoing calls ?

2011-05-07 Thread Alaeddine Ghribi
Hello, I'm developping a SIP application and want to know how to launch the default UI for receiving and making calls. Thank you very much. -- 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: Suspended my dev account without any explanation, Why?

2011-05-07 Thread Angry Developer
Thanks for the replies! I guess I do not know much U.S. law, because I live in another country. I started making these themes after I saw similar products of other developers on the market(and they sold them for a long time). What about the second account, it turns out what I can't register

[android-developers] How to obtain dimensions of an Activity's top-level view.

2011-05-07 Thread burtoogle
Hi, I want to scale some (fixed length) text so that it nearly fills the view that contains it. The size of that view depends on the screen dimensions but, of course, is not exactly the width/height of the screen due to decorations, action bars, etc. The question is, how can you obtain the

[android-developers] Re: 回覆:Hello, Android troubles

2011-05-07 Thread exax
so after a brief moment of success, I tried to change the program to show the screen by xml instead of java. Now the program doesn't work again. This time though it installs and then gets the error on the emulator saying that the application has stopped unexpectedly and that it has to force close.

[android-developers] Delete all rows from a table throws nullpointer

2011-05-07 Thread Capt Spaghetti
My problem would appear to be simple but I can find no information which tells me how to correct the problem. There must be people who use a temporary table and then delete all the rows and reuse it. I create a temporary table. I can display the table using a ListView and am able to select a

[android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Droid
Seems I can use an async task OR roll my own thread to do a background task. Is one better than the other? -- 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

Re: [android-developers] Re: 回覆:Hello, Android troubles

2011-05-07 Thread Kostya Vasilyev
That is a runtime error. You application did something wrong, and Android shut it down. Use the logcat (in Eclipse Debug / DDMS perspectives) to see the stack trace. Look for the lines that say Caused by: and below - that's the reason for the crash, usually accompanied by a helpful

Re: [android-developers] Help needed in.android tabs

2011-05-07 Thread आशुतोष हिन्दुस्तानी
i want to ask how can i place multiple editTexts in a single tab. 2011/5/7 Me tonasirin...@gmail.com Can't understand what you exactly need ,for tabs you can visit below links ... http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

Re: [android-developers] Delete all rows from a table throws nullpointer

2011-05-07 Thread Kostya Vasilyev
Assuming that com.oys is your application's package, you have a null pointer access somewhere. The exact location is just below the lines you posted. You could also use the debugger to step through, checking that variables are not null before you access them. -- Kostya 07.05.2011

Re: [android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Kostya Vasilyev
07.05.2011 19:53, Droid пишет: Seems I can use an async task OR roll my own thread to do a background task. Is one better than the other? Not better, mostly just plug into the rest of your code somewhat differently. AsyncTask provides helpers methods, like onPreExecute, onProgressUpdate,

Re: [android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Ralph Bergmann
Am 07.05.11 17:53, schrieb Droid: Is one better than the other? yes, but it depends on what you want to do if you only want a background task you can do it a thread. if your task acts with the ui you can do it with both but it is easier with the asynctask (your thread vs. ui thread)

[android-developers] writeNativeHandle - why call dup( )

2011-05-07 Thread Nitin Mahajan
Hello, I just wanted to know that, inside Parcel::writeNativeHandle() , why is the file descriptor duplicated? Is it the only way a descriptor can be shared between two processes? regards -Nitin -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-05-07 Thread snpe
Can anybody reproduce this issue on Linux ? On May 5, 4:59 pm, Jake Basile jakerbas...@gmail.com wrote: This problem has not gone away, and is getting worse. I need to fully restart eclipse so often now to get it to use my new code that I do it about 15 times a day. Incredibly frustrating,

[android-developers] Re: Suspended my dev account without any explanation, Why?

2011-05-07 Thread Bob Kerns
Images found in Google Images are *not*, repeat, absolutely *not* freely available. Just because they are searchable does not make them available for you to use -- for any purpose. They are copyrighted. Every. Single. One. Some of them may have expired copyrights. You can use those, but you

Re: [android-developers] Re: Replay monkey execution

2011-05-07 Thread Bob Kerns
True enough, but the difficulty generally comes between step #1 and step #2, in this sort of scenario of a rare, hard-to-reproduce crash. Often you have to figure out everything you need to know to do step #3 (fix the bug) before you can do step #2. Even so, do it in this order. Write the test

[android-developers] Re: Not able to make perticualar pixels in image as transparent

2011-05-07 Thread Bob Kerns
Perhaps this example (showing a variety of techniques) will be of assistance: https://groups.google.com/forum/#!search/authormsg:fametest,RtVO9WT4U50J$20after:2011$2F4$2F1$20before:2011$2F5$2F1%7Csort:date/android-developers/llVSftDzGFM/KoHt5eFYRqEJ Among other things, it uses AvoidXfermode to

[android-developers] Re: Async Task or Spawn a Thread?

2011-05-07 Thread Bob Kerns
Use an AsyncTask -- unless both of the following are true: - AsyncTask doesn't meet your needs somehow - You know very clearly and well how to properly synchronize between threads, and how to transfer work to the UI thread where needed, etc. If AsyncTask doesn't meet your needs, and

[android-developers] Multiple Tasks within an Application Stack Overflow

2011-05-07 Thread Eric
It is understandable that if you have Activities (in the same task) that can reference each other through startActivity(), that you could have a circular loop where the user keeps going back/forth between the Activities, and your Activity stack would keep growing without bound until it finally

[android-developers] Re: Suspended my dev account without any explanation, Why?

2011-05-07 Thread Streets Of Boston
Why other developers are not blocked: It's like a speeding ticket that way. You can't get out of a speeding ticket by saying to a cop that others were speeding too and didn't get a ticket Anytime you add artwork (images, sounds, etc) that you didn't create yourself, you have to ask

[android-developers] Textview background with text inside background image

2011-05-07 Thread ArcDroid
Hello, I have a background image in my textview (like a chat bubble) and want to make the text inside the background image. How Do i add padding to the text, but not the image? TextView android:id=@+id/text android:layout_height=wrap_content

Re: [android-developers] Multiple Tasks within an Application Stack Overflow

2011-05-07 Thread Dianne Hackborn
I would suggest that you don't do this. Tasks are for things the user thinks of as applications -- things they launch from the home screen, see in the recent tasks list, etc. If this is not what your application is, abusing the facility for interaction within the app is likely just to lead to

Re: [android-developers] writeNativeHandle - why call dup( )

2011-05-07 Thread Dianne Hackborn
It is because the parcel needs to own the fd so it can ensure it is valid for as long as it needs it. On May 7, 2011 10:38 AM, Nitin Mahajan np.maha...@gmail.com wrote: Hello, I just wanted to know that, inside Parcel::writeNativeHandle() , why is the file descriptor duplicated? Is it the

Re: [android-developers] How to obtain dimensions of an Activity's top-level view.

2011-05-07 Thread Dianne Hackborn
It doesn't have a size yet in onCreate(). You should make a subclass of the view and onSizeChanged() will be called when it gets its initial size or that size changes. On May 7, 2011 8:08 AM, burtoogle burtoo...@gmail.com wrote: Hi, I want to scale some (fixed length) text so that it nearly

[android-developers] Re: Multiple Tasks within an Application Stack Overflow

2011-05-07 Thread Eric
On May 7, 5:44 pm, Dianne Hackborn hack...@android.com wrote: I would suggest that you  don't do this.  Tasks are for things the user thinks of as applications -- things they launch from the home screen, see in the recent tasks list, etc.  If this is not what your application is, abusing the

[android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-05-07 Thread Kamil
I've noticed this issue not working with Android SDK but with J2EE project. In my case turning off autobuild option and cleaning whole project fixed problem. After this few steps automatic build can be switched to on again. I think this is IDE bug, so it should be reported to eclipse developers.

[android-developers] Re: Textview background with text inside background image

2011-05-07 Thread ArcDroid
Never mind, didn't realize that android:padding=10dp does this by applying this only to the text and not the background. On May 7, 2:35 pm, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I have a background image in my textview (like a chat bubble) and want to make the text inside the

[android-developers] Re: How to obtain dimensions of an Activity's top-level view.

2011-05-07 Thread burtoogle
Hi Dianne, On May 7, 10:48 pm, Dianne Hackborn hack...@android.com wrote: It doesn't have a size yet in onCreate().   You should make a subclass of the view and onSizeChanged() will be called when it gets its initial size or that size changes. Thanks for the quick response - I will do that.

[android-developers] Imageview doesn't increase size inside ScrollView

2011-05-07 Thread Joan Pujol
Hi, I've an ImageView inside a ScrollView that has the image and several other controls. The problem is that when I create the view I don't know the size of the image, and when I know it and I put the image inside the ImageView it doesn't scale. I've tried all the ScaleType modes and also

[android-developers] SearchView as part of the AlertDialog

2011-05-07 Thread droid-stricken
Hi All, I am trying to place the search widget [SearchView basically] in the title part of an AlertDialog. Is that allowed i.e will it work? The idea is to have the user enter a search word and when he/she presses the Enter key on the keyboard, to use the search word entered to search through an

Re: [android-developers] Re: Multiple Tasks within an Application Stack Overflow

2011-05-07 Thread Dianne Hackborn
Use the fragment support library mentioned by Xav in a recent blog post. Task == Application. Each has its own stack. Just look at how application switching works. That is tasks. Saying stack overflow exception doesn't make sense here, you will never get such an exception. You may run out of

[android-developers] Re: Multiple Tasks within an Application Stack Overflow

2011-05-07 Thread Eric
On May 7, 8:17 pm, Dianne Hackborn hack...@android.com wrote: Use the fragment support library mentioned by Xav in a recent blog post. Task == Application.  Each has its own stack.  Just look at how application switching works.  That is tasks.  Saying stack overflow exception doesn't make

[android-developers] how to draw a route and get the image of a map

2011-05-07 Thread Siva Kannabiran
In my app I am showing a map activity, with a marker marking the current location. I have placed two buttons Start and Stop. When the start button is clicked I want to start tracking the users location, drawing a line over streets that are travelled along. When the stop button is pressed, that

[android-developers] Multiple notification with a single icon

2011-05-07 Thread Salma hamed
How to create multiple notification in my statue bar, but with only one icon represented on the top. Thanks alot in advance -- 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] how to place a button inside the map view

2011-05-07 Thread Siva Kannabiran
in my app i am using the view flipper. One side of the flip i have placed some text and edit text view. In the other part of the flip i have the map view. To flip between these two views i am using the swipe concept. I am able to swipe from the text view to the map view. But to get back to the

[android-developers] Re: Sent/delivered SMS: how do you identify to which SMS the broadcast belongs?

2011-05-07 Thread Mathias Lin
Found the solution, using extras. When passing along extras to the pending intent, it's important to add the flag FLAG_UPDATE_CURRENT. Intent sendIntent = new Intent(SMS_SENT); sendIntent.putExtra(message, formattedMessage); sendIntent.putExtra(number, phone); PendingIntent