[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-08 Thread Dexter#39;s Brain
Why would you want to do it? But there are, according to me, 2 ways. 1. Home Button 2. Power Off Actually, if you really want to kill your process, you can use any other Task Manager kind of application. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 1:15 pm, Jack

[android-developers] Re: Exception in com.google.android.location.ConfirmAlertActivity

2009-12-08 Thread Dexter#39;s Brain
Hi, There is an error in your XML file, at line no 54. Check it out. Or paste that part of your xml. Also, mention the API version you are using. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 1:43 am, Vijay vijay.meenakshisunda...@gmail.com wrote: I get a

[android-developers] Re: How to show menu item automatically?

2009-12-08 Thread Dexter#39;s Brain
openOptionsMenu() Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 8, 3:40 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to show menu items automatically (without clicking menu button) when the layout is viewed?.. -- Thanks Regards Sasikumar.S -- You

[android-developers] Re: How can I get the video file properties (codec, resolution...etc)

2009-12-07 Thread Dexter#39;s Brain
Hi, Please refer to the MediaStore Content Provider in Android docs. Thanks, Kumar Bibek. http://tech-droid.blogspot.com On Dec 7, 10:43 am, manoj manojkumar.m...@gmail.com wrote: Hi, I would like to know how can we get the video file resolution (width and height), and its codec. Is there

[android-developers] Re: ERROR: Application requires API version 6. Device API version is 5 (Android 2.0)

2009-12-07 Thread Dexter#39;s Brain
Hi, Your project should be compiled(API Version) with atleast equal to the Device API version. Else, you will not be able to install it. Suppose you have a device with version 4, then an apk to run on this device, it can be 1,2,3,4 but not greater than 4. Just go to your project properties, and

[android-developers] Re: How to change developer account associated with app

2009-12-07 Thread Dexter#39;s Brain
I guess, Android Market forum will be better equipped to address this issue. But again, they don't seem to be active enough. :) As far as I can think, the thing you want to achieve is not possible without loss of those comments and ratings. Thanks and Regards, Kumar Bibek.

[android-developers] Re: add item to hyperlink context menu

2009-12-07 Thread Dexter#39;s Brain
Hi Duarte, Can you please explain your requirement more clearly? Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 4, 11:42 pm, Duarte Aragão dara...@gmail.com wrote: Hi,  Does any one know how to add item to hyperlink context menu?  This is a question that as already been posted

[android-developers] Re: unavailable shared library

2009-12-07 Thread Dexter#39;s Brain
Hi, I suppose you are working on 2.0. Please create a proper AVD and then try. Create an AVD with Google APIs (API level 5) Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 7, 10:36 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, when i tried to execute my project. It is

[android-developers] Re: RadioButton

2009-12-07 Thread Dexter#39;s Brain
Not directly, But you can create your Custom Radio button by extending the RadioButton class, and using your own layout. Thanks Kumar Bibek http://tech-droid.blogspot.com On Dec 6, 7:35 pm, Business Talk roman.businesst...@gmail.com wrote: Is There any way to possition a text of a RadioButton

[android-developers] Re: Inconsistent results from date additions loop

2009-12-07 Thread Dexter#39;s Brain
Doing it the millisecond way might be more confortable. Convert both the dates to milliseconds, and then subtract one from the other, and then calculate the no of days. Thanks Kumar Bibek http://tech-droid.blogspot.co On Dec 7, 4:52 am, andrew android andygoldm...@gmail.com wrote: I am running

[android-developers] Re: Display a route between 2 points on a map

2009-12-07 Thread Dexter#39;s Brain
I dont think it is currently possible to achieve until Google Maps support such feature. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 6, 7:55 pm, stournie sttour...@gmail.com wrote: Hello guys I'm trying to develop an application which display the locations of contacts on a map

[android-developers] Re: SMS Interception

2009-12-07 Thread Dexter#39;s Brain
Hi Raj, This is not possible, since this SMS broadcast is an unordered broadcast. So you can't intercept it, and prevent the broadcast to reach the default SMS application. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 3, 9:03 pm, Raj rajesh.kamin...@gmail.com wrote: Hi My app

[android-developers] Re: Inflator

2009-12-07 Thread Dexter#39;s Brain
Just check if convertView is null. If it is null, you have to inflate, else use the convertView directly. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 7, 10:30 pm, Business Talk roman.businesst...@gmail.com wrote: In my custom adapter, that implements the BaseAdapter and its

[android-developers] Re: Reproducable FC - bug in textview?

2009-12-07 Thread Dexter#39;s Brain
I think the problem is like this. In the portrait orientation, if there is a spannable object, it might be keeping indexes for displaying some styling. So, say, you have bold style for chars from 4 to 39. No when the orientation changes, this range now changes to 39 to 4. And now if you are

[android-developers] Re: Custom Adapter

2009-12-07 Thread Dexter#39;s Brain
Yes of course, you can re-use it. If it is null, you have to inflate your layout if you have one, else you can re-use the same convertView. On Dec 7, 8:48 pm, Business Talk roman.businesst...@gmail.com wrote: I have implemented a custom adapter the extends from the BaseAdapter and implements

[android-developers] Re: Display a route between 2 points on a map

2009-12-07 Thread Dexter#39;s Brain
do supply this function There should be some tricks to do this On Dec 7, 4:49 am, Dexter#39;s Brain coomar@gmail.com wrote: I dont think it is currently possible to achieve until Google Maps support such feature. Thanks, Kumar Bibekhttp://tech-droid.blogspot.com On Dec 6, 7:55

[android-developers] Re: Inflator

2009-12-07 Thread Dexter#39;s Brain
, the inflate step is very expensive. It would be nice if I could inflate once in the constructor and then clone the inflated view in the getView as needed (when the convertView  is null). Wouldn't it be nice? On Dec 7, 12:33 pm, Dexter#39;s Brain coomar@gmail.com wrote: Just check

[android-developers] Re: Reproducable FC - bug in textview?

2009-12-07 Thread Dexter#39;s Brain
no control over what range it's called with. Dexter#39;s Brain wrote: I think the problem is like this. In the portrait orientation, if there is a spannable object, it might be keeping indexes for displaying some styling. So, say, you have bold style for chars from 4 to 39. No when

[android-developers] Re: Is it possible to start activity when received a broadcast?

2009-12-07 Thread Dexter#39;s Brain
I don't exactly know the reason why you cannot do that, but you can definitely start an Activity from within a service. So, if the Receiver doesn't allow you to start it, write a service, start that service, which in turn will launch your activity. Thanks, Kumar Bibek

[android-developers] Re: Send zip file as mail attachment

2009-12-05 Thread Dexter#39;s Brain
I guess, gmail doesn't support zip files. You can try sending the zip with any other mail client (of course with some other provider as well) and check. GMail doesn't allow you to send zip files from the browser too.. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 4,

[android-developers] Re: Problem with new ADT Plugin

2009-12-05 Thread Dexter#39;s Brain
I think this should be put a bug, since I have seen it happen quite a few times, whenever I upgrade the ADT. Weird though. Try uninstalling and re-installing the plugin. Thanks and regards, Kumar Bibek. http://tech-droid.blogspot.com -- You received this message because you are subscribed to

[android-developers] Re: Need help with part of an app.. countdown

2009-12-05 Thread Dexter#39;s Brain
This is fairly simple I guess... You have a textview with the time displayed. Run an thread that sleeps for a second and then increments this time. And from a callback from the thread, on the UI update the value of the text view -- You received this message because you are subscribed to the

[android-developers] Re: Unable to download images from HTC site

2009-12-05 Thread Dexter#39;s Brain
http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com -- 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] Just a though about Android Market

2009-12-05 Thread Dexter#39;s Brain
Hi all, As we all know, Motorola has launched it's App Accelerator now. It's still in a nascent state, but I guess, when Motorola rolls out its market-like application, how will it compete with Android market. I was just curious about this whether Google makes it mandatory for all the device

[android-developers] Re: ProgressDialog from within ContentProvider class!

2009-12-05 Thread Dexter#39;s Brain
Hi, You should not be doing this. You would probably want to handle everything related to UI from the Activity class itself. You start a background activity in a thread, and show the progress dialog. Then when the background thread exits, you dismis the progress dialog from the activity class

[android-developers] Re: HTML sanitization

2009-12-04 Thread Dexter#39;s Brain
True, May be you could use only one WebView, get all the 20 strings, add some html formatting yourself, and display. But, if really really want to display it on a ListView, then, it's difficult. You have to change/replace those HTML tags manually to something else. Isn't there any way, where you

[android-developers] Re: Call Webservice From Android

2009-12-03 Thread Dexter#39;s Brain
You cannot use rmi package in Android since they are not available. You would perhaps try using kSoap or some other third party tools which you should ensure that they are compatible with Android. Or, may be a simple HTTP post or GET, but for this of course, you need to change your server code.

[android-developers] Re: Accents in strings

2009-12-03 Thread Dexter#39;s Brain
To handle such things, I guess, the best thing is the common-io from apache. They have a class called IOUtils, which is used to convert a stream to a string and vice-versa, according the the encoding you mention. Try using it. Thanks, Kumar Bibek http://tech-droid.blogspot.com -- You received

[android-developers] Re: Is there any posibility to know the size of the video file?

2009-12-03 Thread Dexter#39;s Brain
If you are picking your video files, and creating File objects, then, you would defintely get the size from the file object. Thanks, Kumar Bibek http://tech-droid.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
Hi Archana, This does work. Specify gravity as whatever, but If you don't specify the width of the text-view as fill_parent instead of wrap_content, the gravity property is meaningless. So, first set the width as fill_parent, for horizontal gravity props, and height as fill_parent for vertical

[android-developers] Re: Advice for uploading my apps

2009-12-03 Thread Dexter#39;s Brain
Well, when you upload it to the market, you get a field called Title which will actually appear on the market. This need not be the same as your app name. You can have separate names. apk file name can be anything, it doesn't matter. Thanks, Kumar Bibek http://tech-droid.blogspot.com -- You

[android-developers] Re: Advice for uploading my apps

2009-12-03 Thread Dexter#39;s Brain
I don't think so. I think they have to be same. Thanks, Kumar Bibek http://tech-droid.blogspot.com -- 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: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
If you can paste your code, I might be able to point out the error. RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=fill_parent xmlns:android=http:// schemas.android.com/apk/res/android android:layout_height=wrap_content TextView

[android-developers] Re: Is there any posibility to know the size of the video file?

2009-12-03 Thread Dexter#39;s Brain
You have to query the MediaStore and get the value of the resolution from it. http://developer.android.com/reference/android/provider/MediaStore.Video.VideoColumns.html Have you tried this? I don't know if it works, but i think this is the right way. Thanks, Kumar Bibek.

[android-developers] Re: How to layout 3 ImageButton evenly distributed on a row

2009-12-03 Thread Dexter#39;s Brain
Another solution that I can think of is with the same layout that you have, add some padding to the ImageViews. ImageButton android:id=@+id/one android:layout_width=wrap_content android:layout_height=wrap_content android:padding=5sp / This will give some space between your Image Views. Thanks,

[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
I guess, you haven't set the Gravity text1.setGravity(Gravity.RIGHT) This should work. Btw, any specific reason of not using xml? AFAIK they are a lot better to manage, and after you get a hand, easier to implement also. You can also get nice previews for your layout, before even running your

[android-developers] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
Sorry, but I don't get what you want to achieve GRAVITY.CENTER ? -- 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] Re: How can we do TextView Justification

2009-12-03 Thread Dexter#39;s Brain
Hmm...I got it now. I am not sure if you can do it. Sorry. -- 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] Problem with new ADT Plugin

2009-12-03 Thread Dexter#39;s Brain
Hi, I just upgraded my plugin from 0.9.4 to 0.9.5 and restarted eclipse, and none of the plugin views/icons or perspective are now here. It seems, everything has been deleted. There's not even an option to create a new Android Project. In the preferences, there's nothing called Android. I need

[android-developers] Re: Accessing videos uploaded to YouTube

2009-12-03 Thread Dexter#39;s Brain
How are you uploading the video to youtube? If you are using the GData APIs, then you already have the video id in the VideoEntry object after the upload is successful.. Thanks, Kumar Bibek. http://tech-droid.blogspot.com On Dec 3, 2:18 pm, Hunter Peress hunt...@gmail.com wrote: Hi, thanks

[android-developers] Re: HTML sanitization

2009-12-03 Thread Dexter#39;s Brain
There is one HTML class with some statis methods. I am not sure how they work, but I have seen it. This might not work in all the scenarios. The best way I can think of getting around this problem would be showing your HTML content inside a WebView. :) Thanks, Kumar Bibek

[android-developers] Re: Problem with new ADT Plugin

2009-12-03 Thread Dexter#39;s Brain
Never mind, A system re-start made my day ... On Dec 4, 10:18 am, Dexter#39;s Brain coomar@gmail.com wrote: Hi, I just upgraded my plugin from 0.9.4 to 0.9.5 and restarted eclipse, and none of the plugin views/icons or perspective are now here. It seems, everything has been deleted

[android-developers] Re: start activity without mention in androidmanifestfile

2009-12-02 Thread Dexter#39;s Brain
Hi Dianne, I was asking Why would anyone have a requirement of having and Activity without putting it in the manifest file. Sorry. :) -- 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: how do you specify the name of the .apk file....

2009-12-02 Thread Dexter#39;s Brain
You can just rename the apk file as any other file. :) Kumar Bibek. On Dec 3, 4:23 am, sdphil phil.pellouch...@gmail.com wrote: well i want it to do it every time, not just on demand. I am generating my apk by right click on project, build -- which then generates a .apk file in my bin

[android-developers] Re: Upgrading database for an app

2009-11-30 Thread Dexter#39;s Brain
Thanks Jeff, Now it's clear to me. -- 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] Re: Upgrading database for an app

2009-11-29 Thread Dexter#39;s Brain
Is it sufficient if I change the database version? Or, first I will have to back up the db programatically and then restore all the tables with contents? -- 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: start activity without mention in androidmanifestfile

2009-11-28 Thread Dexter#39;s Brain
Well, Mark is right, but I was wondering why would you have such a requirement. I cannot think of such a situation. Thanks, Kumar Bibek. http://tech-droid.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: one linearlayout bottom aligned.

2009-11-28 Thread Dexter#39;s Brain
Put the last LinearLayout in another LinearLayout and set it's Gravity to bottom and height as fill_parent. Btw, You can use relative layouts instead of so many Linear Layouts. Thanks, Kumar Bibek http://tech-droid.blogspot.com -- You received this message because you are subscribed to the

[android-developers] Re: How to fill paricular portion of text content with chosen color

2009-11-26 Thread Dexter#39;s Brain
Well, for a textview, you cannot fetch the characters on which the mouse is residing. I would recommend to use an uun-editable EditText and the ask the user to first select some text from the Edit Text. Now, EditText have methods, to let you know what is the start of selection , and the end of

[android-developers] Re: Problem in retrieving EditText field from alertdialog

2009-11-22 Thread Dexter#39;s Brain
view.findViewById . This would solve your problem -- 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] Re: eclipse problem in AndroidManifest.xml file

2009-11-13 Thread Dexter#39;s Brain
I think, a clean re-build will solve the problem. :) On Nov 13, 1:50 pm, Android Helebek bilge.tu...@gmail.com wrote: Hi All, I was using Netbeans to write my Android applications for a few weeks now (i was used to NB). Then I decided to give a chance to Eclipse, since its the official

[android-developers] Re: When I scroll a list I get the force close message

2009-11-01 Thread Dexter#39;s Brain
A small code snippet or the stack trace would help us figure out the problem Dexter http://tech-droid.blogspot.com On Nov 1, 12:46 pm, jax jackma...@gmail.com wrote: I have an ArrayList connected to a ListView with an onclick event that loads some extra info about each list item. When the

[android-developers] Re: When I scroll a list I get the force close message

2009-11-01 Thread Dexter#39;s Brain
I think. In your getView() method, don't cast it to ListView, remove that and I guess, I will work. Dexter. http://tech-droid.blogspot.com -- 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: MultiAutoCompleteTextView with simpler completion and without comma

2009-11-01 Thread Dexter#39;s Brain
The best way to do it will be to subclass the MultiAutoCompleteTextView and override it's methods. It has 3-4 methods which need to be over-ridden. Dexter http://tech-droid.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: idiot's guide to using layout:gravity?

2009-11-01 Thread Dexter#39;s Brain
RelativeLayouts are easy to use once you are comfortable with them. If you still want to use LinearLayout, this will solve your problem. LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout

[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread Dexter#39;s Brain
Hi, I am all excited with the new release. I can't wait for the documentation to be released. I am having problems with the Maps API. Thanks and Regards, Dexter http://tech-droid.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Can't query contacts in Android 2.0 emulator?

2009-10-28 Thread Dexter#39;s Brain
Hi, In the emulator, When I open the Contact application and click on Accounts, it Force Closes, I dont know why. The LogCat says, Activity not found android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.SYNC_SETTINGS (has extras) I guess, this

[android-developers] Re: ADC2.0

2009-10-28 Thread Dexter#39;s Brain
Hey, I guess there is no need to panic. Though the SDK is released, I don't think they would be testing your apps on SKD 2.0 devices. And also, the 2nd phase of judging will be getting over soon. But, yes, it's extra work for the developers, for we have to maintain different versions of our

[android-developers] Default behaviour of the Back button

2009-09-17 Thread Dexter#39;s Brain
Hi, I am confused, as to what the default behaviour of the back button is, as far as the Android platform is concerned. For example, in the Contacts Application, if I am creating a contact, I just key in a name, and the press back button, the contact is saved with only the name. Fair enough.

[android-developers] Multiple data for an intent

2009-09-09 Thread Dexter#39;s Brain
Hi All, I was just wondering if it is possible to give the intent a set of data, instead of just one. A particular scenario where this could be applicable would be a music application. You select a list of songs, and pass all these data (file path) to the Music Player's application. Another

[android-developers] Calendar View

2009-07-26 Thread Dexter#39;s Brain
Hi, I just wanted to know if there is a default Calendar View that I can use to choose a date instead of the DatePicker. Has anybody developed such a widget that you can share? Thanks, Dexter. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] StackOverflow Exception while using TabActivity

2009-07-20 Thread Dexter#39;s Brain
Hi, I have a TabActivity, there are 4 tabs. In each tab I have put a single Activity. One of the activities contains a Custom List View which uses a CustomAdapter which extends the BaseAdapter. I get this excpetion, when I try to open the tab containing this activity. It seems to be thrown at a

[android-developers] ListView Doubt : Listen to clicks inside a ListView Item

2009-06-18 Thread Dexter#39;s Brain
Hi, I want to have the following functionality. I need to have a list view which should have two fields. I need to listen to clicks on these two fields(TextViews). Based on which text view was clicked, I need to start different activities. Is this possible in a ListView? I have my custom

[android-developers] ListView Query

2009-06-10 Thread Dexter#39;s Brain
Hi All, I have a ListView whose layout contains several TextViews. When an item is clicked on the ListView, is it possible to capture on which TextView he has clicked? Thanks, Dexter --~--~-~--~~~---~--~~ You received this message because you are subscribed to