[android-developers] Android tracing gives me errors: Please help.

2009-10-07 Thread Android Development
Hello, I created a SD card image and mounted it to the emulator. I could see it mounted on the emulator. Then, in my onCreate method, i made a call to Debug.startMethodTracing(myTrace); When i install the application on the emulator, i get an error as shown below Am i doing something wrong ?

[android-developers] Re: Android tracing gives me errors: Please help.

2009-10-07 Thread Romain Guy
If you are using 1.6 you need to ask for the permission to write on the sdcard. On Tue, Oct 6, 2009 at 11:15 PM, Android Development indodr...@gmail.com wrote: Hello, I created a SD card image and mounted it to the emulator. I could see it mounted on the emulator. Then, in my onCreate

[android-developers] Re: Clickable URLs in EditText when using ArrowKeyMovementMethod

2009-10-07 Thread Abhilash
Answering my own post. This can be done like: mText.setMovementMethod(new ArrowKeyMovementMethod() { public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { // Code in onTouchEvent() of LinkMovementMethod except code to change selection } }); ~Abhilash On

[android-developers] Re: ADC2 First Round Complete?

2009-10-07 Thread String
On Oct 6, 10:33 pm, CraigsRace craig...@gmail.com wrote: Allowing an app update would go against their own rules, so it would be very controversial.  Having said that, IMO, I wouldn't mind if they did allow it for broken apps only (which I imagine are only a select few). It could be argued

[android-developers] Re: Android tracing gives me errors: Please help.

2009-10-07 Thread Android Development
Thanks for replying so quickly Romain. I am using 1.6 indeed. uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/ did the trick. Thanks. On Wed, Oct 7, 2009 at 12:12 PM, Romain Guy romain...@google.com wrote: If you are using 1.6 you need to ask for the permission to

[android-developers] Re: Question about the appwidget update period

2009-10-07 Thread Ying Tang
Thanks very much! On 10月4日, 下午8时28分, Mark Murphy mmur...@commonsware.com wrote: I need to provider an access for the user to customize theupdate period. But the appwidgetpoviderinfo just can be defined in XML. How to implement this? Step #1: Set updatePeriodMillis to be 0 Step #2:

[android-developers] Re: What about examples and comments in the Android reference?

2009-10-07 Thread Marc Reichelt
Thanks for the tip, Yusuf! The examples are nice! But as I said - they aren't at the right place when one searches the reference. I have not found these examples until you sent me the link. And again, if one finds a specific method in the reference he is left alone with the API reference, and he

[android-developers] linearlayouts in a linearlayout and alignments

2009-10-07 Thread Guian
hi guys! seems like I'm gona ask a noob question :D I've some horizontal linearLayout in a vertical one: [syntax=xml] LinearLayout android:layout_width = fill_parent android:layout_height = fill_parent

[android-developers] Re: ADC2 Submission List

2009-10-07 Thread Michael
Hi Tom, i received the following error: There were problems with the following fields: * Url is too long (maximum is 75 characters) But there's no URL input field visible. (Using Firefox 3.5.3 on WinXP) On 6 Okt., 06:12, Tom tkhamil...@gmail.com wrote: Hello, Every since I submitted my

[android-developers] What about examples and comments in the Android reference?

2009-10-07 Thread Konrad Pietzka
Hello out there, I agree, the API samples are helful, however not complete. I struggeling right now with the basic function of a telephone, making calls. There is a Telephony API availiable since the very beginning however this API changes its contents from release to relaese with minimum

[android-developers] Re: allowTaskReparenting=true. Will there be a single instance of the activity ?

2009-10-07 Thread Amitkeerti
hi Dianne, Thanks for the reply. One small clarification. From your response I understand the following: If the activity instance was created in a task for which it did not have an affinity and lets assume that this task goes in the background. After some time when the task comes back in the

[android-developers] Drawing

2009-10-07 Thread Sonic
Hi, just a simple question which i'm unsure how would be implemented. Say you have an int called X which is constantly changing, X could equal 0, 10, 20, 30, 40, 50. Now when X is equal to 0, I want it to draw a circle at the bottom if the screen, when X is equal to 50 it will draw an circle at

[android-developers] Replace styles and themes

2009-10-07 Thread bestpriv...@googlemail.com
I would like to load new themes/styles from the web to replace the current ones. Is that possible? As far as I can see those resources are read-only. Maybe there is still a chance to achieve this? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Accessing assets that are larger than 1M?

2009-10-07 Thread mjc147
FWIW, I have a 5MB zip file in res/raw which I stream and uncompress to the SD card without any problems (at least on my Hero). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Any API to get the time elapsed since the system was started?

2009-10-07 Thread Latha Shivanna
Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed since the system was started.(soemthing like GetTickCount() in Windows mobile) Is there any API for the same ? Or can anybody share the code, if they have done it already? Please do share your thoughts.

[android-developers] Switching to Terrainview in Google Maps?

2009-10-07 Thread Harold
Hi, is it possible to use the terrainview in a MapActivity. The only way for now i could think to use the terrainview is using the browser- based version of Google Maps rather than using the native implementation, but that would not be my prefered way.

[android-developers] window.requestFeature(Window.FEATURE_RIGHT_ICON) does not work correctly

2009-10-07 Thread Asif k
Hi all, i want to keep cancel button in the title bar at the right side, for that I had used following code, window.requestFeature(Window.FEATURE_RIGHT_ICON); window.setFeatureDrawableResource(Window.FEATURE_RIGHT_ICON, R.drawable.cancel); but i am getting the icon at the left side of title

[android-developers] Re: Drawing

2009-10-07 Thread Nithin
Hi Sonic, you can use canvas.drawCircle() and can draw in onDraw() method. On Oct 7, 2:15 pm, Sonic nitroussi...@googlemail.com wrote: Hi, just a simple question which i'm unsure how would be implemented. Say you have an int called X which is constantly changing, X could equal 0, 10, 20,

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread bmcc
Hi, You can get the current system time like this: long startTime = ystem.currentTimeMillis(); long elapsedTime = System.currentTimeMillis() - startTime; B On Oct 7, 11:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of

[android-developers] Re: How to use motion events with multiple layouts

2009-10-07 Thread andr0id
Could you be a little more specific on how to register the motionListeners ? I declare the gesture detector at the top of my program like so: private GestureDetector gestureScanner; and just before loading the layout that uses motion detectors i have this: gestureScanner = new

[android-developers] AW: [android-developers]Re: Switching to Terrainview in Google Maps?

2009-10-07 Thread Konrad Pietzka
You can set: MapView.setSatellite(true) and as alternative MapView.setStreetView(true) Hope this helps Konrad -Ursprüngliche Nachricht- Von: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] Im Auftrag von Harold Gesendet: Mittwoch, 7. Oktober 2009

[android-developers] Re: Layout issues using Gallery

2009-10-07 Thread Jarcikon
Rory, I would use a RelativeLayout as the parent for the gallery, then set android:layout_alignParentBottom=true on the gallery. Mike On Oct 6, 2:42 pm, Rory metalhead1...@gmail.com wrote: How would I set up mygalleryto be on thebottomof the screen? Would I need to create a gridLayout and

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread String
How about System.elapsedRealtime() ? That looks like what you're after. String On Oct 7, 11:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed since the system was started.(soemthing like

[android-developers] Re: How to take snapshots (Screen shots) of a web page

2009-10-07 Thread Umesh
Hi Ajeet, A quick question, is it possible to accomplish this task in the background with without harming the present view (that is being displayed) ? and also sometimes I get illigalArgument Exception for the following statement. public void onPageFinished(WebView view, String url)

[android-developers] Re: HEADSET_PLUG not registering as receiver

2009-10-07 Thread skyman
I have solved the problem by starting service on boot which (service) is registering Receiver, but hope that there is a better solution... On 7 Paź, 00:54, skyman krzysiek.bieli...@gmail.com wrote: Hello, I'm trying to create application fixing problem with audio volume in headset/handset (I

[android-developers] Re: How to take snapshots (Screen shots) of a web page

2009-10-07 Thread AJ
Hi Umesh, A quick question, is it possible to accomplish this task in the background with without harming the present view (that is being displayed) ? I think this is possible. You can create one thread and do all thing in background. and also sometimes I get illigalArgument Exception for

[android-developers] call class

2009-10-07 Thread android
I am displaying a map with Mapview I recall a listview that is in a high class as I do ?? --~--~-~--~~~---~--~~ 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: ADC2 Submission List

2009-10-07 Thread Jason Van Anden
+1 On Wed, Oct 7, 2009 at 4:40 AM, Michael push0...@gmail.com wrote: Hi Tom, i received the following error: There were problems with the following fields:    * Url is too long (maximum is 75 characters) But there's no URL input field visible. (Using Firefox 3.5.3 on WinXP) On 6 Okt.,

[android-developers] how to give recipient number to send mms

2009-10-07 Thread Saikat
I am sending MMS with the existing mms client using this code - 1. Uri mmsUri = Uri.parse(content://media/external/images/media/ 1); 2. Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra (sms_body, Hi how are you); 3. intent.putExtra(Intent.EXTRA_STREAM, mmsUri); 4.

[android-developers] Re: Accessing assets that are larger than 1M?

2009-10-07 Thread Mark Murphy
FWIW, I have a 5MB zip file in res/raw which I stream and uncompress to the SD card without any problems (at least on my Hero). Since the APK file is a ZIP file, why put a ZIP in a ZIP? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] Re: suppress/mute all notifications

2009-10-07 Thread Mark Murphy
is it possible to suppress all notification messages e.g. incoming call or sms notification? Thanks No. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received

[android-developers] Re: How to take snapshots (Screen shots) of a web page

2009-10-07 Thread Umesh
Hi Ajeet, what I'm doing is, I have created a menu item called take screeshot, so when i create that menuItem, following code will be executed, and the code is exactly same as described by you. Exception is not thrown every time, but I face frequently (as i said 5-6 times of every 10

[android-developers] How to bring up the keyboard from WebViewClient

2009-10-07 Thread junker37
Here's my problem. I have a WebView, but I don't want a new Intent to be launched when the page is redirected, so I wrote my own WebViewClient to handle this. However, I can't figure out how to get the WebViewClient to allow keyboard input. Clicking on an input box does not bring up the soft

[android-developers] application in notification bar

2009-10-07 Thread Saikat
Can I put my application in the top notification bar so that it can be accessed from any application? --~--~-~--~~~---~--~~ 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: You must supply a resource ID for a TextView

2009-10-07 Thread purvi
Hi, I had the same problem, it was gone when i removed all the @override lines above the functions of the SeparateListAdapter. So try not overriding the functions. It worked for me. Regards, Purvi On Sep 27, 4:00 pm, Wouter wouterg...@gmail.com wrote: But I declare it there and then in my

[android-developers] Re: How to create button with icon and text

2009-10-07 Thread pro
I'm also looking for how to have buttons with text using drawable, instead of XML layout. Can someone point me to some snippet or docs how to do it? thanks -pro On Aug 27, 6:29 am, Mark Murphy mmur...@commonsware.com wrote: I have a additional question then. If I want to specify a

[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread Wouter
Could it be that simple? Gonna try it immediatelly! Thank you! On 7 okt, 16:18, purvi purvi.n...@gmail.com wrote: Hi, I had the same problem, it was gone when i removed all the @override lines above the functions of the SeparateListAdapter. So try not overriding the functions. It worked

[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread Wouter
Hmm all the @overrides were gone.. :s On 7 okt, 16:18, purvi purvi.n...@gmail.com wrote: Hi, I had the same problem, it was gone when i removed all the @override lines above the functions of the SeparateListAdapter. So try not overriding the functions. It worked for me. Regards, Purvi

[android-developers] Re: Accessing assets that are larger than 1M?

2009-10-07 Thread mjc147
1. Faster version control commit/update 2. Seems to take less time to initialise when debugging 3. I was getting some out of memory issues when storing it uncompressed (sorry, can't remember the exact problem) On Oct 7, 9:40 pm, Mark Murphy mmur...@commonsware.com wrote: FWIW, I have a 5MB zip

[android-developers] Re: ADC2 First Round Complete?

2009-10-07 Thread DKIT
Will there be published a list of apps that have continued to round 2 of ADC 2? Will the participants receive any kind of mail or notification? Or will everyone have to wait patiently until november? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Sharing code between activities

2009-10-07 Thread amiz
I have an app with two activities. Both activities among other functions have to perform the same calculation on data, so each activity include the same code to perform the calculation. Is it possible to only have the similar code in a separate activity and be accessed by the other two

[android-developers] Re: Sharing code between activities

2009-10-07 Thread Mark Murphy
I have an app with two activities. Both activities among other functions have to perform the same calculation on data, so each activity include the same code to perform the calculation. Is it possible to only have the similar code in a separate activity and be accessed by the other two

[android-developers] Re: Sharing code between activities

2009-10-07 Thread Agus
use asynctask. On Wed, Oct 7, 2009 at 7:36 AM, amiz aarn...@gmail.com wrote: I have an app with two activities. Both activities among other functions have to perform the same calculation on data, so each activity include the same code to perform the calculation. Is it possible to only

[android-developers] Re: Sharing code between activities

2009-10-07 Thread String
On Oct 7, 3:41 pm, Mark Murphy mmur...@commonsware.com wrote: Create a utility class that both activities can use that has your calculation code. Assuming the activities and the utility class are all in the same application, you should encounter no problems. Mark, do you know a good way to

[android-developers] Re: Sharing code between activities

2009-10-07 Thread Mark Murphy
Mark, do you know a good way to share a utility class between apps? I don't mind the code being duplicated in each app's APK, but I'm looking for a way to not have to maintain separate Java files for the same source. Package it as a JAR. Here's the recipe I use for the CWAC components

[android-developers] Need to make physical collaboration easier.

2009-10-07 Thread james pruett
IMHO, Android developers need more collaboration from local groups. This is a very important missing link to making Android a success. Some bugs can only be fixed with friends looking over your shoulder. This should be a priority for T-Mobile, Google, us. Does anyone have any thoughts on

[android-developers] Re: ADC2 Submission List

2009-10-07 Thread Jonas Alves
+1... but FireBug did the trick ;) On Oct 7, 10:06 am, Jason Van Anden jason.van.an...@gmail.com wrote: +1 On Wed, Oct 7, 2009 at 4:40 AM, Michael push0...@gmail.com wrote: Hi Tom, i received the following error: There were problems with the following fields:    * Url is too long

[android-developers] Re: Publish Apps for Other Developers

2009-10-07 Thread Steve
Is the limitation that the buyers need to be in the allowed countries? Or is the limitation the country where the publisher resides? On Oct 6, 6:18 pm, polyclefsoftware dja...@gmail.com wrote: In terms of publishing apps for developers that reside in countries where they are not currently able

[android-developers] Re: Multiple tables in one ContentProvider

2009-10-07 Thread Steve
Seems like you could do that. Have you tried setting up your content provider so that it does a query against multiple tables? The whole idea of content providers (other than exposing data across apps) is that the app requesting the data doesn't need to know anything about the complexity behind

[android-developers] Re: Accessing assets that are larger than 1M?

2009-10-07 Thread Dianne Hackborn
Yeah that would (usually) work because in that case the data you are putting into the .apk is already compressed, so it won't compress what you are putting in, so you don't go through the path of having to uncompress it when opening; instead the raw data can just be found at an offset in a .apk

[android-developers] Re: Replace styles and themes

2009-10-07 Thread Dianne Hackborn
Sorry, not currently possible. On Wed, Oct 7, 2009 at 2:55 AM, bestpriv...@googlemail.com bestpriv...@googlemail.com wrote: I would like to load new themes/styles from the web to replace the current ones. Is that possible? As far as I can see those resources are read-only. Maybe there is

[android-developers] Re: allowTaskReparenting=true. Will there be a single instance of the activity ?

2009-10-07 Thread Dianne Hackborn
On Wed, Oct 7, 2009 at 2:00 AM, Amitkeerti amitkee...@gmail.com wrote: From your response I understand the following: If the activity instance was created in a task for which it did not have an affinity and lets assume that this task goes in the background. After some time when the task comes

[android-developers] Re: Accessing assets that are larger than 1M?

2009-10-07 Thread mjc147
On Oct 7, 11:27 pm, Dianne Hackborn hack...@android.com wrote: Yeah that would (usually) work because in that case the data you are putting Hmm - why usually? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] undefined behavior with getResultExtras and setResultExtras

2009-10-07 Thread vol
I've created a test project with three identical classes that extend BroadcastReceiver, named TestReceiverOne TestReceiverTwo TestReceiverThree They each have the following function as their content: @Override public void onReceive(Context context, Intent intent) {

[android-developers] Re: undefined behavior with getResultExtras and setResultExtras

2009-10-07 Thread Adam Vollmer
Actually, it looks like when I run this without stopping at breakpoints, I'm getting the correct behavior. Would this possibly be related to timing out after waiting 10 seconds for onReceive to return? On Oct 7, 11:36 am, vol volmar...@gmail.com wrote: I've created a test project with three

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread Lance Nanek
The android.os.SystemClock class has some time methods that might be of interest. Actually String's reply might have meant that class too. On Oct 7, 6:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed

[android-developers] Re: Issue with allocation tracker: I cannot get it to work.

2009-10-07 Thread RichardC
In the AndroidManifest.xml have your marked your application as debuggable? e.g. application ... android:debuggable=true ... -- RichardC On Oct 7, 4:06 pm, Android Development indodr...@gmail.com wrote: Hello, I start my emulator and install my application on it. From the command

[android-developers] Re: Publish Apps for Other Developers

2009-10-07 Thread polyclefsoftware
The country where the developer resides. If a developer in Russia wanted to publish their paid apps, but could not currently do so, and a developer in the US published it for them for a percentage of the profits, is this kosher? On Oct 7, 10:09 am, Steve steveoliv...@gmail.com wrote: Is the

[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread Wouter
How can i solve this please? --~--~-~--~~~---~--~~ 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: ADC2 First Round Complete?

2009-10-07 Thread Lance Nanek
I recall an email sent during the first challenge where winners of the first round were being given a private SDK and chance to update. It was frustrating because I'd spent a long time working around bugs in the GTalk classes and would have loved to have an updated SDK to work with, even if I

[android-developers] Re: How to bring up the keyboard from WebViewClient

2009-10-07 Thread junker37
Anybody have a clue? I must be totally missing something here. I can find anything on google like this and it seems so simple. If I implement my own WebViewClient, even if I don't override any methods, the soft keyboard does not come up when an input box is touched. On Oct 7, 9:02 am,

[android-developers] How to create a Icon on Home screen through Activity

2009-10-07 Thread jeelani
Hi I would like to have icon created on home screen through an activity . All the icons of my activities are on main menu, once i click it my activity will be launched instead i need an icon on home screen which when clicked activity should be launched. Any inputs on above appreciated. Thanks,

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-10-07 Thread Jordan B.
I would also be interested to know if the thumbnail generation can be done programmatically? If it is not possible what do we need to do to generate them and store them in the Thumbnails ContentProvider so that the gallery app does not duplicate thumbnails? On Sep 30, 7:38 am, Nivek

[android-developers] memory leaks

2009-10-07 Thread android_guy
Any idea how to track memory leaks in android...I am looking for specific answers Thanks Android guy --~--~-~--~~~---~--~~ 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] repo: command not found

2009-10-07 Thread SagarH
Hi, I am using a Ubuntu x64 Linux sagar-laptop 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/Linux I followed the exact steps given here to build the code: http://source.android.com/download When I initialize the repository using this command: repo init -u

[android-developers] Re: Android emulator start up error ?

2009-10-07 Thread GK Gupta
I have added the /tools directory path to my PATH environmental variable, but even then I am facing this kind of problem frequently. Can anyone help me. On Oct 3, 2:38 am, David M. Lee mingxia...@gmail.com wrote: 我也有同樣的問題。有人建議以下的方法。我將自己試試。 You need to follow the instructions here:

[android-developers] Function inlining

2009-10-07 Thread Viktor Linder
Hi! I recently wrote a quick test that does this: private static int test_f(int i) { return i * 42; } ... int z = 41; for(int i = 0; i 1; ++i) { z = z*42; } // this loop runs in X seconds for(int i = 0; i 1; ++i) { z = test_f(z); }// this loop runs in 10*X seconds The

[android-developers] Re: Function inlining

2009-10-07 Thread Romain Guy
There's no inlining at the moment. On Wed, Oct 7, 2009 at 6:31 AM, Viktor Linder linder.vik...@gmail.com wrote: Hi! I recently wrote a quick test that does this: private static int test_f(int i) { return i * 42; } ... int z = 41; for(int i = 0; i 1; ++i) { z = z*42; }         //

[android-developers] Re: How to create a Icon on Home screen through Activity

2009-10-07 Thread Mark Murphy
I would like to have icon created on home screen through an activity . All the icons of my activities are on main menu, once i click it my activity will be launched instead i need an icon on home screen which when clicked activity should be launched. Any inputs on above appreciated. Users

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread String
On Oct 7, 4:52 pm, Lance Nanek lna...@gmail.com wrote: The android.os.SystemClock class has some time methods that might be of interest. Actually String's reply might have meant that class too. Uh, yes it did, sorry. Forgot the Clock. --~--~-~--~~~---~--~~ You

[android-developers] Re: Accessing assets that are larger than 1M?

2009-10-07 Thread Dianne Hackborn
On Wed, Oct 7, 2009 at 8:34 AM, mjc147 westmead...@yahoo.co.uk wrote: On Oct 7, 11:27 pm, Dianne Hackborn hack...@android.com wrote: Yeah that would (usually) work because in that case the data you are putting Hmm - why usually? It's possible during ziping it could fine some way to be

[android-developers] Should we still force our apps to API level 2?

2009-10-07 Thread gnugu
Hi, Google suggests in Dev Guide that we set the API level as low as possible to cover most of the devices. Somebody recently pointed out in my app that when they are typing in the password the automatic suggestions pop up making it annoying. I found out the solution, but is only available in

[android-developers] Re: Disabling Contact Sync

2009-10-07 Thread Jonathan Herriott
So, I figured out a way to do it. It's a way that things shouldn't be done since it requires using APIs that have @hide. On Oct 6, 4:18 pm, Jonathan Herriott herri...@gmail.com wrote: Hi, So, I'm trying to figure out a way to disable Auto-Sync of the Contacts database because there may be

[android-developers] Re: Where have all the Google employees gone?

2009-10-07 Thread bellapariah
My app broke as a result of an Android API throwing a proactive IllegalStateException in 1.6. While this is a good inclusion for those developing on 1.6, it was not documented or required in 1.5, and therefore may break 1.5 apps that have not been able to test in 1.6 and fix app for the new

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-07 Thread Dianne Hackborn
You can use any newer XML attributes, and they will be ignored on older platforms. So just specify the appropriate attributes for the IME for the newer platforms. (And also be sure to still test on older platforms, if you really care about that. I don't think there are a ton of devices left at

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-07 Thread gnugu
Just to make sure I understand you correctly, I set the API level in my app to 3 and when someone runs it on Android 1.1 the attributes will be ignored? Because when I keep the API level at 2 the project will not compile (at least in Eclipse). On Oct 7, 10:13 am, Dianne Hackborn

[android-developers] Re: Handling Network Unavailability

2009-10-07 Thread lilbyrdie
I think the question you're asking is simple: When network is lost, the SDK doesn't detect this and thinks it's valid still. Thus, it still tries to use it. But, since it's not there, nothing happens. How can this be resolved? If that's your question, I share that question. On Sep 16, 11:38 

[android-developers] Re: Keeping MediaController from timing out after a certain amount of time

2009-10-07 Thread Danny
Thanks for the insight, even calling MediaController.show() after the MediaController is attached to the VideoView yielded to the same result. Is there a way to override how the VideoView will hide/show the MediaController? On Oct 6, 4:23 pm, Marco Nelissen marc...@android.com wrote: VideoView

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-07 Thread Dianne Hackborn
If you set it to 3 it won't be installed on older devices. I don't know enough about the dev tools to help with compiling problems there (especially without even seeing the error message). On Wed, Oct 7, 2009 at 10:18 AM, gnugu rho...@gmail.com wrote: Just to make sure I understand you

[android-developers] i want to trace android kernel

2009-10-07 Thread raghda
hi all, I want to trace the source code of the android system from the begining of runing it till the emulator appear and also want to know the main function (which I think on the kernel ) that print the strings we saw on the emulator screen waiting for any help thanks

[android-developers] Re: Keeping MediaController from timing out after a certain amount of time

2009-10-07 Thread Marco Nelissen
You could create a derived version of MediaController whose hide() does nothing. On Wed, Oct 7, 2009 at 10:27 AM, Danny datts...@gmail.com wrote: Thanks for the insight, even calling MediaController.show() after the MediaController is attached to the VideoView yielded to the same result. Is

[android-developers] Re: Android as a Universal Remote for CE/HA?

2009-10-07 Thread jed
Guess not... :-( ... On Oct 7, 2:01 am, jed jedi.the...@gmail.com wrote: Any thoughts on this anyone? Much Appreciated, Jed                              --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Differences in building for target 2 and target 3 in 1.5 sdk

2009-10-07 Thread Raja Nagendra Kumar
Hi, What are the differences between building for target 2 (no gmaps add on) and target 3 (with gmaps addon). Could any one has the ant scripts to bulids for these targets. I see 1.5 SDK does these though custom ant tasks rather than 1.1 ant scripts (this was more clear and apperant on how

[android-developers] OOM error caught bei DefaultException handler ... but there is plenty of memory

2009-10-07 Thread Mariano Kamp
Hi, I very often get bug reports about out-of-memory errors. Those errors are caught bei the default exception handler where I then ask how much memory is left (see below). Very often, like in the case from below, there is plenty of memory left though. I am wondering why this is? Of

[android-developers] Re: OOM error caught bei DefaultException handler ... but there is plenty of memory

2009-10-07 Thread Mark Murphy
Those errors are caught bei the default exception handler where I then ask how much memory is left (see below). Very often, like in the case from below, there is plenty of memory left though. I am wondering why this is? AFAIK, Android's garbage collector is non-compacting. Hence, the

[android-developers] Re: Android emulator start up error ?

2009-10-07 Thread BWrightson
When I first set up the SDK I added the entire path, with \tools at the end, and I got the error message. Then I removed the \tools part from the end of the path I had entered and it worked. Hopefully that helps. -Brian On Oct 7, 5:29 am, GK Gupta gkumar.g...@gmail.com wrote: I have added

[android-developers] Can't find documentation on end-user FW upgrade process

2009-10-07 Thread Mr. INTJ
Hi, I'm trying to understand how end-users will upgrade their device firmware from Android ver. X to X+1. A new build of Android contains system.img and userdata.img (among others). system.img is read-only, so I don't see any problem with simply replacing the user's existing copy. However,

[android-developers] Anim folder not showing in eclipse

2009-10-07 Thread fordy
Hello, I cant see or reference the anim folder in the res folder. When I go in the res folder it is also not there, I need the anim folder for animation. Am I supposed to see it, or is it hidden? Thankyou for your time, Fordy --~--~-~--~~~---~--~~ You

[android-developers] Re: Publish Apps for Other Developers

2009-10-07 Thread Streets Of Boston
Why not. I don't think Google prohibits that. All the earnings (from Google Checkout) will go to the US publisher. It is up to him and his Russian counter-part to iron out all the copyright/legalities/payments/tax-issues between them. On Oct 7, 12:03 pm, polyclefsoftware dja...@gmail.com wrote:

[android-developers] Re: Can't find documentation on end-user FW upgrade process

2009-10-07 Thread Mark Murphy
I'm trying to understand how end-users will upgrade their device firmware from Android ver. X to X+1. For many, if not most, end users, that will happen automatically via over-the-air (OTA) updates from their carrier. I'm trying to understand how this process will work for our Android-

[android-developers] Re: Function inlining

2009-10-07 Thread Viktor Linder
Ok. On a related note, has anyone used a preprocessor of some sort and managed to integrate it with Eclipse? Best regards, Viktor Linder On 7 Okt, 18:32, Romain Guy romain...@google.com wrote: There's no inlining at the moment. On Wed, Oct 7, 2009 at 6:31 AM, Viktor Linder

[android-developers] can't get selector to work inside an app widget...

2009-10-07 Thread sdphil
i am having trouble getting a selector to work inside a button on an app widget. my app widget xml looks like this: ImageButton android:id=@+id/MyImageButton android:layout_width=wrap_content android:layout_height=fill_parent

[android-developers] is any one sucefully deployed gmaps application on target 2

2009-10-07 Thread Raja Nagendra Kumar
As in SDK 1.5, did any one was successful in deploying the gmap based application.Pl. give some hits on what to watch out for.. We tried to compile the application with gmaps libarary as class path instead of bootpath and put the minsdk as 3 and remove the uses-library

[android-developers] Re: OOM error caught bei DefaultException handler ... but there is plenty of memory

2009-10-07 Thread Tom Gibara
(Disclaimer: what follows is just my understanding of things and may be quite wrong) Bitmap memory management is complicated by the fact that the memory for bitmaps is allocated in a separate native heap. The amount of memory available in this native heap is the total memory allocation limit

[android-developers] Design Issues

2009-10-07 Thread pro
I've been trying to find a way to place some buttons on my custom view. I did not use ViewGroup, but the need is to place couple buttons at the high end of y coordinate. I sure don't know if I could use an XML layout for this. So imagine that 1/10 th or 1/15th of the Y axis on high end ( i.e. the

[android-developers] ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-07 Thread KhanAzul
I want to display a ListView with checkboxes, and I want some of the checkboxes pre-selected. The ListView has setAdapter called during onCreate, and the list information appears when the screen is drawn. However, when I attempt to set certain list items as checked, my ListView reports

[android-developers] Re: can't get selector to work inside an app widget...

2009-10-07 Thread sdphil
I cannot seem to get the selector to work - even inside a normal view. is there some trick to getting the selector to work? I have google'd for examples and tutorial and looked at -- http://dev.android.com/reference/android/widget/ImageButton.html, but I cannot get the view to change when I set

[android-developers] Re: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-07 Thread Streets Of Boston
Your activity (and your list-view) is not yet visible in the onStart. Don't use 'getChildCount' and 'getChildAt' method to check your preference-settings. BTW: If your activity is not yet visible, how can a user make a selection? Shouldn't you query in the onPause, for example. And also, the

[android-developers] Re: Anim folder not showing in eclipse

2009-10-07 Thread Fred Grott(Android Expert)
Fordy you have to create it.. On Oct 7, 11:55 am, fordy fcotteri...@gmail.com wrote: Hello, I cant see or reference the anim folder in the res folder. When I go in the res folder it is also not there, I need the anim folder for animation.  Am I supposed to see it, or is it hidden?

[android-developers] Re: Differences in building for target 2 and target 3 in 1.5 sdk

2009-10-07 Thread Fred Grott(Android Expert)
two files alias.xml and anddroid_rules.xml one is in the sdk_install/tools/templates other one is in the sdk_install/platform15/tools/lib or the sdk_install/platforms/16//tools/lib On Oct 7, 12:52 pm, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, What are the differences

  1   2   >