[android-developers] Re: New ADT and SDK breaks Eclipse (Again!)

2010-12-06 Thread Chander Pechetty
No workspace log generated. AVD manager stopped working, no adb as well. I am on ganymade, and it doesn't allow me to install DDMS, and development tools. Installed hierarchy viewer. After restart, the AVD is no longer accessible from eclipse. Looks like all platform tools have been moved to

[android-developers] Re: New ADT and SDK breaks Eclipse (Again!)

2010-12-06 Thread Chander Pechetty
, or can you select them but it fails to install? If you don't install the new ADT, then you won't be able to use the new SDK since a few tools moved around and you really need 8.0.0 to use them. On Mon, Dec 6, 2010 at 8:41 PM, Chander Pechetty cspeche...@gmail.com wrote: No workspace log

[android-developers] Re: New ADT and SDK breaks Eclipse (Again!)

2010-12-06 Thread Chander Pechetty
I will just install on a fresh instance, should most likely fix the problem... no big deal !!! must be some dependency. cannot wait to try all the cool stuff. Cheers, Chander On Dec 7, 9:58 am, Chander Pechetty cspeche...@gmail.com wrote: I can select all of them. On pressing Next I get

[android-developers] Re: New ADT and SDK breaks Eclipse (Again!)

2010-12-06 Thread Chander Pechetty
Following steps solved the issue: 1. Uninstalled the 0.9.x plugin 2. Removed the Maven plugin for Android which was still pointing to 0.9.x plugin. 3. Install the latest. Works fine !!! Cheers, Chander On Dec 7, 10:04 am, Chander Pechetty cspeche...@gmail.com wrote: I will just install

[android-developers] Re: How to lanuch test application from phone

2010-06-09 Thread Chander Pechetty
Use adb shell am instrument Check out the platform documentation at http://pdk.android.com/online-pdk/guide/instrumentation_testing.html for an example. On Jun 9, 8:57 am, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Nope.. Sachin, sorry for being less clear on my need. I was

[android-developers] Re: Random complete loss of database on Droid only

2010-04-22 Thread Chander Pechetty
Interesting, I had filed an issue earlier with my G1 crashing occasionally when playing bebbled; wonder if they are related ( to cosmic rays :-) http://code.google.com/p/android/issues/detail?id=6478 There is a lengthy discussion on loss of database at

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-12 Thread Chander Pechetty
they also mysteriously disappear and appear in groups such as world_wide_with_god_minstry and AA_CNA_XX wonder what goes on underneath ..:-) On Feb 13, 9:24 am, ian stilbit...@gmail.com wrote: Sometimes my posts don't seem to stay posted or do not appear at all. . Maybe I complained too much

[android-developers] Re: build.properties being ignored?

2010-02-08 Thread Chander Pechetty
It works for me , but then again I have a customized build. May be the default rules (android_rules.xml) override the property. Import the rules as documented in build.xml and give it a try On Feb 9, 9:20 am, Bob Kerns r...@acm.org wrote: It doesn't work for me, either, but I've got to get

[android-developers] Re: build.properties being ignored?

2010-02-08 Thread Chander Pechetty
It works for me , but then again I have a customized build. May be the default rules (android_rules.xml) override the property. Import the rules as documented in build.xml and give it a try On Feb 9, 9:20 am, Bob Kerns r...@acm.org wrote: It doesn't work for me, either, but I've got to get

[android-developers] Re: Preventing WakeLock Under-Locked exception

2010-02-05 Thread Chander Pechetty
release your lock in onPause and not in onDestroy as the activity won't be destroyed. On Feb 4, 10:42 pm, lipinski stevelipin...@gmail.com wrote: Thanks, but my intent is to prevent the system from dimming/locking the screen for a configurable amount of time - since there will likely be no

[android-developers] Re: Basic Emma code coverage tutorial needed

2010-02-04 Thread Chander Pechetty
I just replied a gentleman on this forum at http://bit.ly/cikIiz. Basically you go the command line to your tests folder and run ant coverage On Feb 4, 4:20 am, Mapara,Harshit hnmap...@gmail.com wrote: Hi All, I am looking a way to use Emma on Android project. I have an application

[android-developers] Re: Emma Code Coverage

2010-02-04 Thread Chander Pechetty
, the documentation is in the build.xml file and not in the template files ). Cheers, Chander On Feb 4, 11:13 am, Chander Pechetty cspeche...@gmail.com wrote: Hi Matthias, SDK_PATH/platforms/android-2.0.1/templates/android_test_rules.xml contains the rules for your test project just as android_rules.xml

[android-developers] Re: Emma Code Coverage

2010-02-03 Thread Chander Pechetty
Hi Matthias, SDK_PATH/platforms/android-2.0.1/templates/android_test_rules.xml contains the rules for your test project just as android_rules.xml contains the rules for a regular android project. When you create a project using android create project , the build.xml generated uses the rules from

[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-01-31 Thread Chander Pechetty
make sure your list item does not contains focusable children (like buttons, imageviews) setting android:focusable=false usually works for buttons and so on... On Jan 30, 2:42 pm, qmwestview qmwestv...@googlemail.com wrote: Hi, I have a working ListActivity class. Each of the list item

[android-developers] Re: Map Application

2010-01-29 Thread Chander Pechetty
You can also load your custom kml, gpx or plain lat/long from the android eclipse plugin. Just open Android View/Emulator control and look for location controls. On Jan 30, 5:47 am, Anthoni anthoni.gard...@gmail.com wrote: Ho Sourabh, I think this should do what you want

[android-developers] Re: Internet Connection

2010-01-28 Thread Chander Pechetty
use ConnectivityManager and probably add the permission - ACCESS_NETWORK_STATE to manifest file On Jan 28, 12:31 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank You for ur reply Jian, I will check it and tell to you. On Thu, Jan 28, 2010 at 12:55 PM, Jian Chen

[android-developers] Re: emulator not getting launched with 2.1 platform

2010-01-25 Thread Chander Pechetty
increase your devices's hardware configuration, something of the order greater than system image, try 512MB (when you create the emulator instance using AVD) On Jan 25, 9:27 am, prachi prachi.tya...@wipro.com wrote: Hi all I have updated my android sdk to 2.1 version and was trying to build

[android-developers] Re: Can someone explain the correct way to use android:layout_toRightOf?

2009-12-31 Thread Chander Pechetty
Here's a partial layout for your case. Use the layout_below along with RightOf and the text for the minus button was +. If you don't use that, then all of them are to the right of the specified layout id , but not below the same parent as the id's parent. Button android:id =

[android-developers] Re: ProgressDialog during location tasks either won't show or force closes - I have tried everything!

2009-12-28 Thread Chander Pechetty
not active, ignoring DDM send (t=0x41504e4d l=38) On Dec 26, 12:58 am, Chander Pechetty cspeche...@gmail.com wrote: post your stack trace on force close ... On Dec 25, 11:41 pm, Wayne Wenthin wa...@fuligin.com wrote: When you find out let me know.   I've had no luck either. On Fri, Dec 25

[android-developers] Re: Tomcat httppost bufferedreader problem

2009-12-28 Thread Chander Pechetty
Use org.apache.http.impl.client.BasicResponseHandler if you just need a String. Also, you can use org.apache.http.util.EntityUtils class to retrieve the response in different forms or write your own ResponseHandler. -Chander On Dec 28, 10:33 pm, Maurice maurice.gland...@gmail.com wrote: Hi

[android-developers] Re: ProgressDialog during location tasks either won't show or force closes - I have tried everything!

2009-12-25 Thread Chander Pechetty
post your stack trace on force close ... On Dec 25, 11:41 pm, Wayne Wenthin wa...@fuligin.com wrote: When you find out let me know.   I've had no luck either. On Fri, Dec 25, 2009 at 6:50 AM, andrew android andygoldm...@gmail.comwrote: ProgressDialog during location tasks either won't

[android-developers] Re: How to debug BadTokenException?

2009-12-20 Thread Chander Pechetty
somehow find out beforehand if I will run in this error and then use some other mean, say a toast, to at least notify the user that not all is good? On Mon, Nov 23, 2009 at 8:01 AM, Chander Pechetty cspeche...@gmail.comwrote: There are currently few issues logged around this bug: http

[android-developers] Re: Using Adapters

2009-12-16 Thread Chander Pechetty
This hopefully should work, LayoutInflater layoutInflater = LayoutInflater.from(getBaseContext()); (or get it as a Service) View childView = layoutInflater.inflate(R.layout.child_item, null); group.addView(childView); ( // add it to any ViewGroup) -Chander On Dec 16, 11:09 pm, Ben Griffiths

[android-developers] Re: Help! No files return from apache commons net FTPClient

2009-12-07 Thread Chander Pechetty
As far as I can tell, there is no compatibility problem. Enable server logging and see if you get a 250 or [some number] directory OK, and hopefully its the same code you are running with the same account; it could be a minor bug somewhere else:-) -Chander www.unisaran.com On Dec 6, 8:26 

[android-developers] Re: KML and Google Map Application

2009-11-30 Thread Chander Pechetty
1. Check the KML namespace...http://www.opengis.net/kml/2.2; 2. Is your URL - urlencoded ? You have to encode your url it has ?... On Nov 30, 11:43 pm, furby wookie...@gmail.com wrote: I have a KML file that is being generated on the server side and loaded into the google maps application on

[android-developers] Re: How to debug BadTokenException?

2009-11-22 Thread Chander Pechetty
There are currently few issues logged around this bug: http://code.google.com/p/android/issues/detail?id=3953 I don't know your specific case, but was easy to fix in my case, when I made sure that the dialogs/views/adapters that were being created are with the right context/activity. Pressing a

[android-developers] Null Pointer Exception with Gestures

2009-10-15 Thread Chander Pechetty
I am getting the following NPE with Gestures (20 % of the time). Anyone encountering the same issue ? I am using the code similar to GestureActivityList sample provided at http://android-developers.blogspot.com/2009/10/gestures-on-android-16.html E/AndroidRuntime( 919):

[android-developers] Re: Andriod applications and obfuscation

2009-07-24 Thread Chander Pechetty
Yes... You should avoid obfuscating everything obviously,as you may end up getting verify errors. Runs fine on both 1.1 and 1.5; I don't think obfuscated code has any dependency on SDK versions On Jul 23, 9:56 am, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Thank you Rao for the

[android-developers] Re: Help- Video Recording - Camcorder

2009-07-04 Thread Chander Pechetty
The camera application doubles up as Camcorder app. See... http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/VideoCamera.java;h=186d8276bf312b466179cad939c7b375a761f736;hb=HEAD On Jul 3, 1:19 pm, loril...@gmail.com loril...@gmail.com wrote: Can

[android-developers] Re: OutOfMemoryError, but there's lots of memory?!

2009-06-07 Thread Chander Pechetty
You may want to read the issue at http://code.google.com/p/android/issues/detail?id=2822. Fadden has also provided a wonderful python script gclog.py which gives you more insight into the workings of GC. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Android Icon Templates Pack doesn't download fully

2009-05-28 Thread Chander Pechetty
Has anyone download the template pack zip file from http://android-developers.blogspot.com/2009/05/android-icon-guidelines.html I get the following error as the download never goes through--- signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part

[android-developers] Re: Android Icon Templates Pack doesn't download fully

2009-05-28 Thread Chander Pechetty
never mind. finally got it on the 5 attempt ... --~--~-~--~~~---~--~~ 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

[android-developers] PDF version of Android Icon Templates Guidelines

2009-05-28 Thread Chander Pechetty
Is there a PDF version of icon template guidelines available? The README.txt suggests so, but the link is broken. http://developer.android.com/guide/practices/ui_guidelines/icon_guidelines-v1.pdf Thanks Chander --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-05-08 Thread Chander Pechetty
Just on a hunch as I have not tried it, can you remove the content URL's from your preference file and try it again (form the url inside your code, and store the variable number in prefs) Again, I have not received any lost shared prefs complaints from anyone and I did not lose any in the last

[android-developers] Control F11 doesn't revert the orientation on emulator on SDK 1.5 Target

2009-04-28 Thread Chander Pechetty
I have an activity defined in the manifest with the attribute android:configChanges=orientation|keyboardHidden When I run the app on SDK 1.5, pressing Ctrl + F11 and change the orientation to landscape and then again press Ctrl+F11, the orientation of the emulator changes, but not the screen

[android-developers] Re: sdk 1.5 digital keyboard

2009-04-28 Thread Chander Pechetty
Read the blog post at http://android-developers.blogspot.com/search/label/Input%20methods and then API documentation --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Updated to Android SDK 1.5 r1 - adb connectivity problems

2009-04-28 Thread Chander Pechetty
Describe your platform, did you flash the 1.5 images onto your device ? http://www.htc.com/www/support/android/adp.html Unless enough details are provided, there is very little help one can give --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-22 Thread Chander Pechetty
Sorry, I was referring to the settings created using PreferenceActivity screen using xml. Your actual preference values do not help much in diagnosing the issue. Example snippet from loading preferences from xml: CheckBoxPreference android:key=pref1

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-21 Thread Chander Pechetty
Are these settings part of your preferences xml file? use android:persistent=true or set it and you most likely won't have this issue. Check if your case falls under the issue : http://code.google.com/p/android/issues/detail?id=1707 --~--~-~--~~~---~--~~ You

[android-developers] Re: WebView and https post problem

2009-04-20 Thread Chander Pechetty
you need to scroll horizontally to see the entire page, or add zoom controls to your webview. I don't know whats missing from your page, I can see the same page loaded in firefox and emulator. Here's a quick test you can run, while the code may look different, it uses WebView internally and

[android-developers] Re: WebView and https post problem

2009-04-20 Thread Chander Pechetty
You also need the following to start the activity startActivityForResult(Intent.createChooser(sendIntent, title), 0); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: WebView and https post problem

2009-04-20 Thread Chander Pechetty
The observations I made earlier are from running your code, and the not the above code. --~--~-~--~~~---~--~~ 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: WebView and https post problem

2009-04-18 Thread Chander Pechetty
Not sure why you are initializing one time settings of WebView in a while loop. (and also the StringBuffer.toString inside a loop fed to WebView) It doesn't look right to me. Use i org.apache.http.impl.client.BasicResponseHandler /i for getting the string from the http response to feed it.

[android-developers] Re: ListView not touchable in my Activity - A clue...not the solution though..

2009-04-11 Thread Chander Pechetty
As you mentioned, you are not posting the details for anyone to answer your question? You have not pasted the layout; so again no one can answer, but have a look at the API doc...

[android-developers] Re: ListView not touchable in my Activity

2009-04-09 Thread Chander Pechetty
I don't see any itemClickListener registered ? --~--~-~--~~~---~--~~ 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

[android-developers] Re: Dialog

2009-04-06 Thread Chander Pechetty
You can have a look at the following post. You can create your own theme and apply it to all your dialogs. http://groups.google.com/group/android-developers/browse_thread/thread/fae3c97036856c6e/ea539482ee379373?hl=en#ea539482ee379373 Cheers Chander

[android-developers] Re: Can Dev Phone bought in US be used in India?

2009-03-15 Thread Chander Pechetty
Hi, Which service provider are you using ? and how did you activate it ? Does anyone have an unlimited data plan currently? Thanks On Feb 18, 10:48 am, dillirao malipeddi dillir...@arijasoft.com wrote: Sure you can use the Dev phone 1 (Google) in india Currently i am using Dev phone1 in INDIA

[android-developers] Re: What kind of device should Linux udev set up for G1 linked via USB

2009-03-15 Thread Chander Pechetty
Thanks for all the tips guys... I used the following on Ubuntu 8.10 and got it working. SUBSYSTEM==usb, ATTR{idVendor}==0bb4, SYMLINK+=android_adb, MODE=0666 But I couldn't get the udevcontrol command to work as suggested on the link above. well, just used the oldest trick in the book - REBOOT

[android-developers] Re: Leaked window in PreferenceActivity

2009-02-18 Thread Chander Pechetty
Are you getting this exception after you add android:configChanges=orientation to your manifest file : activity android:name=.ShowSettings android:configChanges=orientation On Feb 18, 2:15 pm, AusR austinjr...@gmail.com wrote: Hi, can anyone shed any further light on this? Please? And

[android-developers] API Diff Report Link returns 404 for Upgrading to SDK 1.1

2009-02-11 Thread Chander Pechetty
The Link on APIDiff Report on upgrading to SDK 1.1 returns 404 http://developer.android.com/sdk/1.1_r1/upgrading.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: KML Support in Maps Application

2009-02-10 Thread Chander Pechetty
Ok posting my own answer: Sending an Intent with data URI set as below seems to work fine. Intent mapIntent = new Intent(Intent.ACTION_VIEW, uri); Uri uri1 = Uri.parse(geo:0,0?q=http://code.google.com/apis/kml/ documentation/KML_Samples.kml); mapIntent.setData(uri1);

[android-developers] Re: Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?

2009-02-10 Thread Chander Pechetty
addPreferencesFromResource(R.layout.settings); settings = getSharedPreferences(PREFS_NAME, 0); settings.registerOnSharedPreferenceChangeListener(this); Be sure to unregister it on onPause() --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: I want to emulate the simple listview's rows

2009-02-09 Thread Chander Pechetty
Looking closer at your layout, the textview's layout_width is set to wrap_content, it should be android:layout_width=fill_parent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Changing foreground or background color of title text of a Dialog

2009-02-09 Thread Chander Pechetty
The Dialog inherits the Theme that you set for the Activity. usually it shows up white text on black for Theme.Light. Changeitem name=android:textColor@drawable/solid_black/item to someting lighter. maybe- @android:color/white Cheers Chander

[android-developers] Re: Changing foreground or background color of title text of a Dialog

2009-02-09 Thread Chander Pechetty
You can also set the theme, in your style.xml style name=myCoolDialog parent=android:Theme.Dialog item name=android:windowBackground@drawable/blue/item item name=android:colorForeground#f0f0/item /style Then in your Dialog subclass use the constructor which takes a theme..

[android-developers] Re: Problem with sound on Notifications on Emulator

2009-02-08 Thread Chander Pechetty
The API Demos has examples. Checkout StatusBarNotifications and NotifyingService. For your example Vibrating: // if vibrate on- after a 100ms delay, vibrate for 200ms, pause for 150 // ms and then vibrate for 500ms. notification.vibrate = new long[] { 100,200,150, 500 }; if you are not

[android-developers] Re: Application storage data growing

2009-02-05 Thread Chander Pechetty
Not sure if you can do this, but check out http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware to understand the tools and limitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: String Enter problem

2009-02-05 Thread Chander Pechetty
1. Save as unix file/format 2. use dos2unix trick is to remove the carriage return character. On Feb 5, 7:44 am, Neo mobi.liub...@gmail.com wrote: i had a problem about read the file, in the inputstream, the string have a lot or Enter but the Enter display like this 口 i tried used the

[android-developers] Re: Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?

2009-02-05 Thread Chander Pechetty
DialogPreference android:key=yourdialogkey . .../DialogPreference In your PreferenceActivity class, just call Preference dialogPref = findPreference(yourdialogkey); Get the dialog Layout if you are using a custom View or call one of the SetMessage methods.

[android-developers] Re: ImageButton resizes within TableLayout -- How do i fix?

2009-02-05 Thread Chander Pechetty
yeah, its a hack, the other options don't seem to work. its really the job of the parent layout to take care of laying the children, so there must be some option in TableRow/TableLayout. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: LocationManager causes application to crash

2009-02-04 Thread Chander Pechetty
Put the permissions outside the application tag. and try --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] KML Support in Maps Application

2009-02-04 Thread Chander Pechetty
Hi All, Is there a way to send an intent to the Maps application to load a KML file(URL) and display the contents, or use the internal KML parser. The internal Maps Application's intent/components are out of bounds for normal users. Intent { action=android.intent.action.SEARCH comp=

[android-developers] Re: ImageButton resizes within TableLayout -- How do i fix?

2009-02-01 Thread Chander Pechetty
TextView android:text=please send this android:maxWidth=10dip / If your text requirements are complex, you can use other views below the image. You can also set the number of lines of text etc. On Feb 2, 7:54 am, Pete pcnof...@gmail.com wrote: *Scenario* I'm

[android-developers] Re: button text change

2009-01-31 Thread Chander Pechetty
Have you done setContentView(R.layout.yourLayout) before calling this. Looks ok to me, it certainly works for me. if you are doing this on a certain click , then make sure its clickable... button1.setClickable(true); -Chander On Jan 31, 10:37 am, Bob bshumsk...@yahoo.com wrote: Hi, How do I

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-31 Thread Chander Pechetty
Did anyone taste success? I am facing the same issue with SD card settings/Image application settings crashing with the same exception reported above.. Here's what i did: 1. emulator -sdcard ./sdcard1.iso (sdcard image in my current directory) 2. adb push PaymentError.png /sdcard/ Steps 1 and 2

[android-developers] Re: Leaked window in PreferenceActivity

2009-01-31 Thread Chander Pechetty
Search the forum before posting: :-) http://groups.google.com/group/android-developers/browse_thread/thread/4ffea4cb05b51efe?hl=enq=#1d190c624e30eeaa Mark Murphy's Blog - http://androidguys.com/?s=rotational+forces android:configChanges=orientation

[android-developers] Re: Location is null

2009-01-30 Thread Chander Pechetty
Use the geo command: http://code.google.com/android/reference/emulator.html#geo If you are using eclipse plugin for development, you can use the the Emulator Location Controls. In Eclipse Go to : Windows/Show View/Others/Android/Emulator -Chander On Jan 31, 6:13 am, zeeshan genx...@gmail.com

[android-developers] Re: Finding the data directory of an application

2009-01-29 Thread Chander Pechetty
you can use the second one in your activity. 1. getFilesDir().getAbsolutePath() 2. getFilesDir().getParentFile() Check the javadocs for ContextWrapper On Jan 29, 2:13 pm, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: Is there a preferred way to find the data directory of an

[android-developers] Re: orange in R.color ?

2009-01-29 Thread Chander Pechetty
android:background=@android:drawable/list_selector_background and use it as indicated by Dianne above... Cheers Chander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this