[android-developers] how to block the dropdown list in autocompletetextview?

2009-09-02 Thread Saurav Mukherjee
hi all... i have done the blocking of the drop down list with dismissDropDown() but wen ever i do a settext on the autocompletetextview, the list drops down with the matched texts... i dont want that. i have set the input type of the autocompletetextview to TYPE_NULL, but still no result... plz

[android-developers] Re: how to block the dropdown list in autocompletetextview?

2009-09-02 Thread Saurav Mukherjee
Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 2, 9:10 am, Saurav

[android-developers] Re: how can change controll to main thread from new other thread?

2009-08-20 Thread Saurav Mukherjee
use a Handler object... Handler uiHandler=new Handler(); then inside ur funcion: uiHandler.post(new Runnable(){ void run(){ here u can change components in the ui thread. } }); On Thu, Aug 20, 2009 at 1:12 PM, tstanly tsai.sta...@gmail.com wrote: hi all, I was define a new thread for a

[android-developers] Re: how can change controll to main thread from new other thread?

2009-08-20 Thread Saurav Mukherjee
with progressdialog?? thanks! On 8月20日, 下午4時35分, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: use a Handler object... Handler uiHandler=new Handler(); then inside ur funcion: uiHandler.post(new Runnable(){ void run(){ here u can change components in the ui thread

[android-developers] scale animaions goes behinde the screen.

2009-08-13 Thread Saurav Mukherjee
this is my scale animaation code. inAnimation = new ScaleAnimation(0.5f, 1f, 0.5f, 1f, Animation.RELATIVE_TO_SELF, -20f, Animation.RELATIVE_TO_SELF, -50f); outAnimation = new ScaleAnimation(1f, 0.5f, 1f, 0.5f, Animation.ABSOLUTE, (screenWidth), Animation.ABSOLUTE,

[android-developers] help with scale animation

2009-08-13 Thread Saurav Mukherjee
hi all, can anyone please tell how can i make my animation visible above other views on the layout. i tried with the zorder adjustment but it didnot work out. please help. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: rotation of phone

2009-08-11 Thread Saurav Mukherjee
override onConfigurationChanged() in the activity... read the docs for more help. u need to set the configs in the manifest first. On Tue, Aug 11, 2009 at 5:11 PM, engin enginarsla...@gmail.com wrote: Hi, do you know that can we control phone rotation. I mean that when i rotate phone from

[android-developers] Re: read csv file

2009-08-08 Thread Saurav Mukherjee
a csv file is treated as a normal text file by a linux system. so jus read it as u read a text file in android. On Sat, Aug 8, 2009 at 10:16 PM, Honest honestsucc...@gmail.com wrote: Hello, I want to read csv file from res. Can some one tell me how can i read it ?

[android-developers] ImageView setImageResource

2009-08-06 Thread Saurav Mukherjee
can anyone please tell me that does setImageResource() in ImageView also draws the image instantly on the screen or does it require any other function call? i need to display the image as soon as i set the resource. please help. thanks in advance.

[android-developers] Re: ImageView setImageResource

2009-08-06 Thread Saurav Mukherjee
: Saurav Mukherjee wrote: can anyone please tell me that does setImageResource() in ImageView also draws the image instantly on the screen or does it require any other function call? i need to display the image as soon as i set the resource. The change will take effect as soon as you give

[android-developers] Re: how can close other activity?

2009-08-05 Thread Saurav Mukherjee
i really do not understand wat u intend to say, all i can help is if u use the Activity public function finish(), the activity closes. use it when u need to close the activity, wisely. hope it helps. On Wed, Aug 5, 2009 at 9:09 AM, tstanly tsai.sta...@gmail.com wrote: hi all, for example,I

[android-developers] Re: Sqlite data base problem , method getWritableDatabase() is not working

2009-08-05 Thread Saurav Mukherjee
i dont know how far i am right, but doesn't the context change when u instantiate a new activity object? myact maobj=new myact(); hence the exception. jus move the code in open() to the line after dbhelper instatiation. it should work fine. there is no need to create a new activity object. On

[android-developers] the center item in gallery

2009-08-05 Thread Saurav Mukherjee
hi all, i need help with the gallery widget. could anyone please tell me how do i find out the centre item (item at which the gallery halts) when onFling or onClick happens? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Dialog

2009-08-04 Thread Saurav Mukherjee
make use of message for updating the progress dialogbox from the http thread. i think it'll b better if u use progress dialog with setIndeterminate(true). this wud make it simpler and u dont have to keep note of the progress... hope this helps. cheers! On Tue, Aug 4, 2009 at 2:58 PM, Rahul

[android-developers] Re: Intercept home button?

2009-07-31 Thread Saurav Mukherjee
u can try it this way... wen home is pressed, onPause and then onStop are called. wen resumed on long press of home button, the following functions gets called in order: onRestart onStart onResume onPostResume try n override these functions to do ur work... hope this helps... cheers! On

[android-developers] Re: Suggestion for placing buttons

2009-07-29 Thread Saurav Mukherjee
the best substitute for absolute layout is relative layout... try that... hope it helps. cheers! On Wed, Jul 29, 2009 at 3:37 PM, Vignesh vignesh.kart...@gmail.com wrote: Hi, I am not able to find out the perfect layout(viewgroup) to place four buttons as shown in the attached image.

[android-developers] Re: Press Back key programmatically

2009-07-28 Thread Saurav Mukherjee
use this.dispatchKeyEvent(new Keyevent(..)..); hope this helps... cheers! On Wed, Jul 29, 2009 at 1:21 AM, Peacemoon tran.bin...@gmail.com wrote: i want to trigger the onKeyDown listener programmatically but don't know which method i should call? Does anyone know? Thanks

[android-developers] Re: How can I create this type of Rectangle??

2009-07-25 Thread Saurav Mukherjee
by a diagonal rectangle, do u mean a parallelogram? On Sat, Jul 25, 2009 at 12:40 PM, sagar.indianic sagar.india...@gmail.comwrote: Hi all, I have got a problem. How can i create the following rectangle by using Rect class?? __ __ __ __ I mean Diagonal Rectangle. Is it

[android-developers] Re: what coomand can go back to home screen or destop

2009-07-24 Thread Saurav Mukherjee
the android develops an activity stack as u keep calling activities. wen finish() is called, the activity is not stored in the stack... so u need to call both: a.this.finish() after u start b.java and then to go bach to the home screen, call b.this.finish(). hope this helps. cheers! On Fri, Jul

[android-developers] Re: Age of GPS data (continued)

2009-07-21 Thread Saurav Mukherjee
try usin the time tick event instead of systime... u cud keep track of the time ticks elapsed... since u said couple of minutes: I'm trying to check the age of a GPS fix, so that I can discard location fixes that are more than, say, a couple of minutes old - I need my fix to be very accurate.

[android-developers] Re: TableRow

2009-07-21 Thread Saurav Mukherjee
AFAIK, u cannot use rowidwat u can do is, remove the row from the tablelayout using the function tablelayout obj.removeViewAt(int position), and then tableLayout obj.addview(View view, int position)... hope this helps. cheers! On Wed, Jul 22, 2009 at 10:17 AM, Rahul nakate.ra...@gmail.com

[android-developers] Re: how to run the focus item on the view without using onclick

2009-07-20 Thread Saurav Mukherjee
AFAIK, u need some or the other event to trigger the execution on the UI. now, wat u cud do is in a function, u cud have the requestFocus function so that the component u want to execute comes to focus. before this, u shud have the setOnFocusListener() defined for the component. so wen the

[android-developers] Re: open context menu for a specific item of the list

2009-07-18 Thread Saurav Mukherjee
sry i made a mistake in my P.S. @Override public boolean onContextItemSelected(MenuItem item) { return true; } onContextItemSelected() can be overriden in an activity only. On Sat, Jul 18, 2009 at 4:55 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: let me c if i can

[android-developers] Re: TextView

2009-07-16 Thread Saurav Mukherjee
use this: tv.setEllipsize(TruncateAt.END); hope this helps u... cheers! On Thu, Jul 16, 2009 at 6:31 PM, Mr.No f.hi...@arcor.de wrote: Hello, how can i make the text in a textview wrap the tail into ... if the textviews width is not enough for the text? Like this: Text: Hello World.

[android-developers] Re: plz help me for this question

2009-07-16 Thread Saurav Mukherjee
u can try this: add a table layout to ur web view and then add a row with the width u want. put the button into the row. try this only if the normal setLayoutParams of the button does not work. hope this selps u. cheers! 2009/7/17 tstanly tsai.sta...@gmail.com thanks for your reply, this

[android-developers] autocompletetextview: get Cursor

2009-07-15 Thread Saurav Mukherjee
hi, i m using an auto complete text view with a cursor adapter. can anyone tell me how i can get the reference to the cursor of the record that is selected from the auto complete list??? thanks in advance. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Saurav Mukherjee
if have rights to the shell, then u can jus try this: rm database name On Wed, Jul 15, 2009 at 2:44 AM, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: How to drop a database in Android SDK? Did not see any methods in android.database.sqlite.SQLiteOpenHelper or

[android-developers] Re: how can i check left and right motion in onTouchEvent?

2009-07-07 Thread Saurav Mukherjee
try using GestureDetector... u get functions like onScroll which shud make ur work easier. On Tue, Jul 7, 2009 at 3:57 PM, Suhas suhas.ga...@gmail.com wrote: Hi I think u should return true and not false in ontouchevent On Tue, Jul 7, 2009 at 3:51 PM, zeeshan genx...@gmail.com wrote:

[android-developers] Re: Blur an image

2009-07-07 Thread Saurav Mukherjee
here are two links, these might help u: http://www.java2s.com/Code/Java/2D-Graphics-GUI/ImageEffectSharpenblur.htm http://www.jhlabs.com/ip/blurring.html hope this helps. cheers! On Mon, Jul 6, 2009 at 10:37 PM, Sharmila sharmcg...@gmail.com wrote: Hi, I have a camera application that

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Saurav Mukherjee
well i have not tried capturing the keys from the soft keyboard, but u cud try out a round abt method for checking the number of chars exceeded. u cud run a thread tht keeps track of the text entered in the edit text box. wen it exceeds, delete from the edit text box. if u have a better sol

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Saurav Mukherjee
able to detect computer's keys, emulator's home,power,call,call_end,volume_up/down etc. keys. But im not able to detect the alphabet keys of softkeyboard.I need a way to capture those clicks.Anyways, thanx for ur prompt response. On Jul 2, 3:16 pm, Saurav Mukherjee to.saurav.mukher

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Saurav Mukherjee
for ur prompt response. On Jul 2, 3:16 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: well i have not tried capturing the keys from the soft keyboard, but u cud try out a round abt method for checking the number of chars exceeded. u cud run a thread tht keeps track

[android-developers] help with font size

2009-07-01 Thread Saurav Mukherjee
hi all, i have to get the height of the text for i have specified the text size. is this possible? i need to get the width using the Paint object and without. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: data between activities

2009-06-30 Thread Saurav Mukherjee
if both the activities are in the same app, yes, its possible. On Tue, Jun 30, 2009 at 12:47 PM, Sukitha Udugamasooriya suk...@gmail.comwrote: Is it possible to transfer data between activities without using extars?? I need to access MyOwnObject in Atctivity 1 from Activity2 Possible with

[android-developers] Re: Update widget from code

2009-06-29 Thread Saurav Mukherjee
a simple solution is to have a local sqlite db to access from both the apps... if u r using intents to start 1 app from another, then u can bundle the data via intents! hope this helps. cheers! On Mon, Jun 29, 2009 at 1:57 PM, Aaron arro...@gmail.com wrote: anyone? On Jun 28, 6:05 pm,

[android-developers] Re: Virtual Keyboard - Action based on values entered

2009-06-28 Thread Saurav Mukherjee
u cud use intents, based on the keypress call the appropriate intents and the corresponding finish() for the activities. On Sun, Jun 28, 2009 at 10:10 PM, ozzoozzo j2metes...@yahoo.com wrote: I have a virtual keyboard and EditText on the screen and want to do the following : 1) If the user

[android-developers] Re: How to display Japanese character on TextView

2009-06-25 Thread Saurav Mukherjee
well its not location, its locale. go to settings--locale and text--change the locale. On Thu, Jun 25, 2009 at 11:24 AM, Hiro hiroy...@hotmail.com wrote: it's just a suggestion, u can change the locale, that wud print everything in japanese... Would you tell me how to change the location

[android-developers] Re: How to display Japanese character on TextView

2009-06-25 Thread Saurav Mukherjee
well, i dont know where the locale settings r in 1.1. it is better to upgrade, i mean there is no harm. but u cud try spending some more time to find out how u change the locale settings in 1.1. On Thu, Jun 25, 2009 at 12:01 PM, Hiro hiroy...@hotmail.com wrote: I mistook the word of locale...

[android-developers] list of fonts installed

2009-06-25 Thread Saurav Mukherjee
is there any way to find out all the fonts available in the phone... is there a contentprovider for trhe same? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: list of fonts installed

2009-06-25 Thread Saurav Mukherjee
thanks... On Thu, Jun 25, 2009 at 4:31 PM, Mark Murphy mmur...@commonsware.comwrote: Saurav Mukherjee wrote: is there any way to find out all the fonts available in the phone... http://developer.android.com/reference/android/graphics/Typeface.html There are only three fonts: normal

[android-developers] Re: How to display Japanese character on TextView

2009-06-24 Thread Saurav Mukherjee
it's just a suggestion, u can change the locale, that wud print everything in japanese... On Thu, Jun 25, 2009 at 10:49 AM, Hiro hiroy...@hotmail.com wrote: Hi, I'm tring to create SMTP-POP3 mailer application on Android. Then I came across a problem when I display e-mail written in

[android-developers] Re: Drawing custom images in a ListView

2009-06-23 Thread Saurav Mukherjee
try this: override the onDraw method of the View... for this u need to extend a View. add the object of this view to ur List... hope this helps u. cheers. On Tue, Jun 23, 2009 at 4:20 PM, Tez earlencefe...@gmail.com wrote: Hi, I would like to draw custom images within a ListView, for this I

[android-developers] Re: Wi Fi connection

2009-06-21 Thread Saurav Mukherjee
try this: Intent i = new Intent(Settings.ACTION_WIFI_SETTINGS); startActivity(i); On Mon, Jun 22, 2009 at 10:39 AM, kalyan simhan kalyansim...@gmail.comwrote: hi all.. can anyone please tell me as how to connect to a secured wireless network programmatically.. im able to detect and

[android-developers] Re: com.android.settings.SecuritySettings - Activity not found exception

2009-06-20 Thread Saurav Mukherjee
try this... if u want to open Location and security page: Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS); startActivity(intent); hope this helps. On Sat, Jun 20, 2009 at 2:23 PM, Android Users androidmai...@gmail.comwrote: Hi all, I tried to display the settings page

[android-developers] help with intents

2009-06-19 Thread Saurav Mukherjee
hi all, is there any way to pass values(strings or bundles) to another application while calling it via intents, and also return some information (mostly string)??? thanx in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: help with intents

2009-06-19 Thread Saurav Mukherjee
thanx... On Fri, Jun 19, 2009 at 7:12 PM, Mark Murphy mmur...@commonsware.comwrote: is there any way to pass values(strings or bundles) to another application while calling it via intents, and also return some information (mostly string)??? To send data, use the putExtra() set of

[android-developers] help with GMaps

2009-06-18 Thread Saurav Mukherjee
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): requestFailed() 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): com.google.common.async.WatchdogException 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at

[android-developers] Re: About Context Menu

2009-06-17 Thread Saurav Mukherjee
caontext menus cannot be customized as much as options menus. so if u really want to decorate the context menu, its better to use dialog! cheers. On Wed, Jun 17, 2009 at 1:10 PM, Adem KARAKOLLU karako...@gmail.com wrote: Hi all. Is it possible to change background (image/color) of the

[android-developers] Re: Ok button on AlertDialog should work as back button

2009-06-16 Thread Saurav Mukherjee
try the neutral button in the alert dialog box... n then in the onclick event, do message.cancel(); refer my code: AlertDialog.Builder adb = new AlertDialog.Builder(context); adb.setTitle(Error); adb.setIcon(com.interchain.timekeeper.ui.R.drawable.alert);

[android-developers] Re: Getting Pixel color values of the canvas

2009-06-16 Thread Saurav Mukherjee
try gettin the paint obj, then u cud get the color... On Tue, Jun 16, 2009 at 12:19 PM, sagar.indianic sagar.india...@gmail.comwrote: Hello, How can I get Pixel color of a coordinate??? There is no method like canvas.getColor(x,y). Actually, I am new to game developement. I am developing

[android-developers] Re: how to switch windows like browsers?

2009-06-16 Thread Saurav Mukherjee
heres wat u can do, try settin up a tablelayout and paste ur views as cells in the table, dynamic rows but jus two cols... there might be some Animations that can do the zoom in and out effects... cheers. On Tue, Jun 16, 2009 at 12:53 PM, Dianne Hackborn hack...@android.comwrote: You could

[android-developers] Re: about android map application,anyboy who can help me

2009-06-16 Thread Saurav Mukherjee
i know this can sound a little stupid but did u check ur wifi and gprs connectivity, i mean from the real handset??? On Tue, Jun 16, 2009 at 9:51 AM, 鹏 zhangpeng.priv...@gmail.com wrote: I signed my map application which developed in eclipse and sdk and then installl it in the real handset.

[android-developers] Re: Get current locale

2009-06-15 Thread Saurav Mukherjee
LocationListener loclis = new LocationListener() { @Override public void onLocationChanged(Location location) { alt = location.getAltitude(); lat = location.getLatitude(); lon = location.getLongitude(); }

[android-developers] help with MultiAutoCompleteTextView.

2009-06-15 Thread Saurav Mukherjee
hi all, this is my second issue regarding the same problem. i dont know y, but my auto complete does not work wen there is a single letter in the MultiAutoCompleteTextView. if there r more than 1 char in the MultiAutoCompleteTextView, then the list drops down, shows the items correctly... any

[android-developers] Re: help with MultiAutoCompleteTextView.

2009-06-15 Thread Saurav Mukherjee
this is in reply to my onw question and if anyone else ever has the same doubt, on cud set the number of characters needed for thr drop down to work by the setThreshold(int noOfChars) method in the MultiAutoCompleteTextView class. On Mon, Jun 15, 2009 at 5:10 PM, Saurav Mukherjee

[android-developers] Re: How to draw text on a bitmap

2009-06-14 Thread Saurav Mukherjee
implement a view, draw the bitmap in the view and draw ur text, both in the onDraw method. On Mon, Jun 15, 2009 at 7:10 AM, 楊健 y...@cycomtech.co.jp wrote: Hi,everybody! Can i draw text on a bitmap? I cannot find any API support this. --~--~-~--~~~---~--~~

[android-developers] Re: How to tell when application exits?

2009-06-13 Thread Saurav Mukherjee
i have a round about solution: if u need the application to exit, call system.exit.. so now u know wen its gonna exits and hence now u can write the program accordingly... (wat u wanna do wen the system exits) but please do tell me if there is a straight forward way! cheers. On Sat, Jun 13,

[android-developers] Re: Importing Data from Excel

2009-06-12 Thread Saurav Mukherjee
i ve 2 questions, r u gonna read and write?? is the excel file in android locale (local memory)?? On Fri, Jun 12, 2009 at 10:50 PM, Georgy georgearna...@gmail.com wrote: Greetings, anyone know how I could import existing data from an excel file into android? Is there anyway to import it

[android-developers] Re: DDMS - lost the tag column?

2009-06-11 Thread Saurav Mukherjee
i cudnt find out a way to da, also... but i did try hidin my tag by draggin one of the end of the tag col to the message col, so my suggestion to u is to try separate all the cols to the extreme and u might jus end up looking at ur tag col... if u do find a concrete sol, please do reply. cheers.

[android-developers] Re: DDMS - lost the tag column?

2009-06-11 Thread Saurav Mukherjee
pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: i cudnt find out a way to da, also... but i did try hidin my tag by draggin one of the end of the tag col to the message col, so my suggestion to u is to try separate all the cols to the extreme and u might jus end up looking at ur

[android-developers] help with MultiAutoCompleteTextView.

2009-06-10 Thread Saurav Mukherjee
hi all, i have programmed for MultiAutoCompleteTextView. but the only problem i have is that the constraint in my CursorAdapter is not recognizing single characters, wen i enter more than 1 character of the word, i get the auto complete list. any suggestions. tell me if i need to elaborate.

[android-developers] Re: Looking for Android Developers

2009-06-09 Thread Saurav Mukherjee
i am very much interested. only thing i want to know before i send u my profile, is whether it is an online job? On Tue, Jun 9, 2009 at 12:29 PM, Nithin nithin.war...@gmail.com wrote: Hi, Developers who are looking for android jobs in India can send their profile to

[android-developers] help with openContextmenu()

2009-06-08 Thread Saurav Mukherjee
hi all, i have an app with a linear layout and a list view embedded over it. i have programmed it such that when i click over one of the list items a context menu opens. now the problem is that when i do click over an item, 2, sometimes 3, context menus flashes on the screen. any suggestions?

[android-developers] Re: Maps with custom tiles

2009-06-08 Thread Saurav Mukherjee
do u already have map tiles of ur own?? On Mon, Jun 8, 2009 at 7:59 PM, CF chrisfurt...@gmail.com wrote: I'm struggling with the same problem. Any pointers or ideas? On May 20, 5:20 am, khose marcos.hdez@gmail.com wrote: C'mon there must be a solution:) On 14 mayo, 09:52, khose

[android-developers] Re: Maps with custom tiles

2009-06-08 Thread Saurav Mukherjee
). tell me if this wud help u, then i 'll elaborate cheers! On Mon, Jun 8, 2009 at 8:51 PM, CF chrisfurt...@gmail.com wrote: I have a custom map created using Google My Maps, but am not able to replicate the same on Android. Any suggestions? On Jun 8, 10:35 am, Saurav Mukherjee

[android-developers] Re: Window is not always shown with Transparency Theme

2009-06-07 Thread Saurav Mukherjee
i tried out the program n i get SecurityException... i m using sdk 1.5... 06-08 04:47:58.545: ERROR/AndroidRuntime(775): Uncaught handler: thread main exiting due to uncaught exception 06-08 04:47:58.565: ERROR/AndroidRuntime(775): java.lang.RuntimeException: Unable to start activity

[android-developers] Re: Window is not always shown with Transparency Theme

2009-06-07 Thread Saurav Mukherjee
thanks... i made a stupid mistake. On Mon, Jun 8, 2009 at 10:21 AM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: i tried out the program n i get SecurityException... i m using sdk 1.5... 06-08 04:47:58.545: ERROR/AndroidRuntime(775): Uncaught handler: thread main exiting due

[android-developers] Re: Get latitude longitude of center of MapView

2009-06-05 Thread Saurav Mukherjee
if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths... ;) On Fri, Jun 5, 2009 at 5:21 PM, mscwd01 mscw...@gmail.com wrote: Hi How would one get the

[android-developers] Re: Get latitude longitude of center of MapView

2009-06-05 Thread Saurav Mukherjee
projection functions do you speak of? On Jun 5, 1:00 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Saurav Mukherjee
hi, try to get the instance of AudioManager by using the code: Context.getSystemService(Context.AUDIO_SERVICE) n then try and use the methods given... i guess that'll work... provide appropriate control buttons/graphical interfaces for the same... visit:

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread Saurav Mukherjee
acc to me its a very simple linear layout with orientation set as vertical, the first child is a bitmap, the next is a list view or a table layout for the menu and the last child is another bitmap... thats the easiest way to implement the view shown in the pic! On Thu, Jun 4, 2009 at 12:20 PM,

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Saurav Mukherjee
try PictureDrawable class.. PictureDrawable pd=new PictureDrawable(String source); since this is a drwable, typecasting to Drawable, and getBitmap()... jus a suggestion... c if it works cheers! On Thu, Jun 4, 2009 at 12:45 PM, jerryfan2000 jerryfan1...@gmail.comwrote: Hi , I am trying to

[android-developers] Notification doubt

2009-06-04 Thread Saurav Mukherjee
is there a way to read a Notification in the program (via 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@googlegroups.com To

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-04 Thread Saurav Mukherjee
u call that spooky... try subtracting two dates and display them using the getter functions in Date for hours, minutes, seconds... i did that for my app, n got some really weird results... got no answers man! On Thu, Jun 4, 2009 at 5:04 PM, twan twa...@gmail.com wrote: Good morning, I'm a

[android-developers] Re: launching other apps

2009-06-04 Thread Saurav Mukherjee
are from different developers etc for the specific cases I had asked. If it works on the emulator should it be able to launch other apps on the phone too? On Jun 4, 2:32 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: intents On Thu, Jun 4, 2009 at 6:55 PM, RS rajeshs

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
u dont need to call on pause... if u ve overridden the function in ur activity, it'll b executed... u can use persistence (db or preferences) to save stuffs On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur method by considering keyevent...but i want the activity

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
@sujay dude, try Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent... jus tell me if it works out for u. cheer! On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
dude, try this: Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent tha'll b called. cheers! On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: u dont need

[android-developers] is upgrade to 1.5 safe???

2009-06-03 Thread Saurav Mukherjee
hi, i am saurav mukherjee n i am working on a g1 mobile on android. there is a dialog box appearing for upgrading the os to 1.5. i jus wanted to know if anybody has done the same and is it safe (ie if the 1.5 os version is stable)? --~--~-~--~~~---~--~~ You

[android-developers] Re: Is it possible to start my service automaticaly after phone boots up.

2009-06-03 Thread Saurav Mukherjee
change in the manifest file: insert the category of the activity as android : name=android.intent.category.HOME visit : http://developer.android.com/reference/android/content/Intent.html#CATEGORY_HOMEfor more information! On Thu, Jun 4, 2009 at 9:03 AM, Gavin fjm...@gmail.com wrote: hello,

[android-developers] openGL library doc

2009-06-02 Thread Saurav Mukherjee
i am using eclipse 3.4.2 but the OpenGL javadocs r not visible. does anyone where i can find the same? thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Sending messages to Subactivity( currently running) from the parentActivity

2009-06-01 Thread Saurav Mukherjee
use intent broadcast... On Mon, Jun 1, 2009 at 12:37 PM, Asif k asifk1...@gmail.com wrote: Hi, Is there any way to send String messages from the parent Activity (running on B/g) to the subActivity (currently running) ?? SubActivity is invoked using intent and startActivity(intent); I

[android-developers] Re: Sending messages to Subactivity( currently running) from the parentActivity

2009-06-01 Thread Saurav Mukherjee
implement an intent broadcast... On Mon, Jun 1, 2009 at 12:37 PM, Asif k asifk1...@gmail.com wrote: Hi, Is there any way to send String messages from the parent Activity (running on B/g) to the subActivity (currently running) ?? SubActivity is invoked using intent and

[android-developers] device not detected in eclipse

2009-06-01 Thread Saurav Mukherjee
hi all, i have a very simple but vital problem. the android device is not detected in my eclipse. is there any way to rectify the same. i am usin ubuntu 8.04, Eclipse Platform Version: 3.4.2, adp 1, android sdk 1.5... --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to change direction of playback video

2009-06-01 Thread Saurav Mukherjee
see if there is a setOrientation function in the surface that u r displayin the video? On Mon, Jun 1, 2009 at 2:01 PM, Aahna chiragpa...@gmail.com wrote: Hi, I am using Tablet skin for running emulator output. All the menu and list items are displayed properly e.g. Horizontally whereas

[android-developers] Re: Append TextViews

2009-06-01 Thread Saurav Mukherjee
use new operator and add to the view without removing the earlier ones... On Mon, Jun 1, 2009 at 5:18 PM, Sukitha Udugamasooriya suk...@gmail.comwrote: Hi, I need to append a new TextView s to the current View whenever a user hits on a button. ie: 5 clicks -- the display should have 5 text

[android-developers] Re: how make the ListView be above the button

2009-06-01 Thread Saurav Mukherjee
use linear layout and add list view and button to the linear layout after setting the orientation of the linear layout to vertical On Sun, May 31, 2009 at 8:18 PM, Mike Lanin mike.la...@gmail.com wrote: I want to create layout like: __ | | |

[android-developers] Re: layout_gravity does not center the control

2009-06-01 Thread Saurav Mukherjee
try changing the layout to table layout and use gravity arrtibute for the view in each row... it worked for me On Mon, Jun 1, 2009 at 5:39 PM, iDeveloper ideveloper...@gmail.com wrote: Hi I have a list, a web view and certain buttons on my activity's layout. I am trying to center the web

[android-developers] Re: Resume my activity from thread

2009-05-30 Thread Saurav Mukherjee
what i have understood from your query is that u have implemented the Runnable interface. if u have done so, u have to use an Handler object to get hold of the ui elements... if this does not help u, please explain your problem properly. On Sat, May 30, 2009 at 5:13 PM, fala70 fal...@gmail.com

[android-developers] how to make a view drawable

2009-05-29 Thread Saurav Mukherjee
i have a custom view on which i have drawn some lines(to represent a grid) i want to use it as a background to another view!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: getLastKnownLocation() always returns null. What am I doing wrong?

2009-05-28 Thread Saurav Mukherjee
as far as i know u cannot connect to gps usin the emulator... On Thu, May 28, 2009 at 12:39 PM, chen hence hencechen...@gmail.com wrote: can you send me your full codes? im on a project on gps. Thanks for your help. Hence Chen 2009/5/22 pawpaw17 georgefraz...@yahoo.com I'm having no

[android-developers] installing android os

2009-05-28 Thread Saurav Mukherjee
has any1 tried inostallin the android on a pda? is it always from the source code, or is there any other way??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] how to have icons in buttons?

2009-05-28 Thread Saurav Mukherjee
can anyone tell me how to have buttons in a button? --~--~-~--~~~---~--~~ 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

[android-developers] Re: how to have icons in buttons?

2009-05-28 Thread Saurav Mukherjee
thanks dude... i used the 2nd option n it worked wonderfully... On Thu, May 28, 2009 at 5:50 PM, Mark Murphy mmur...@commonsware.comwrote: can anyone tell me how to have buttons in a button? Option #1: Use ImageButton Option #2: Use Button and android:drawableTop (or related properties)

[android-developers] have a look!!!

2009-05-28 Thread Saurav Mukherjee
http://www.bramanga.com/wordpress/wp-content/uploads/2008/03/calendar_browser_android.jpg please have a look at the pic posted at the above link can anyone please tell me wats the view in blue color!!! or atleast an idea to implement the same!!!

[android-developers] Re: image not appearing in the sd card

2009-05-26 Thread Saurav Mukherjee
make sure that the emulator is loaded with the sdcard emulator -sdcard name of the card On Tue, May 26, 2009 at 1:31 PM, Sukitha Udugamasooriya suk...@gmail.comwrote: Hi all, Sorry if this is a re-post. I tried to find the solution here but failed. I made a small app which downloads an

[android-developers] how do i kill an android application

2009-05-26 Thread Saurav Mukherjee
how do i kill an android 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@googlegroups.com To unsubscribe from this group,

[android-developers] Re: database table design problem

2009-05-25 Thread Saurav Mukherjee
the only fast sol that i can think of is to group the types together n store in another table... like 1,2 as A 1,2,3 as B etc... then refer rge table for usage! On Fri, May 22, 2009 at 11:14 AM, quill quill...@163.com wrote: Hi guys, I have a column which describes note type, the value of the

[android-developers] database sqlite doubt

2009-05-25 Thread Saurav Mukherjee
db = dbHelper.getWritableDatabase(); table = db.rawQuery(select * from PROJECTS, null); boolean f = false; taskList = new ArrayListString(); while (table.moveToNext()) { if (table.getString(1).equals(selectedProject)) { f = true;

[android-developers] Re: How should I call an application from another application?

2009-05-25 Thread Saurav Mukherjee
use intents... before usin modify ur manifest file On Sat, May 23, 2009 at 10:00 AM, iou200...@gmail.com iou200...@gmail.comwrote: As the subject ,I want to know How should I call an application from another application?Thanks --~--~-~--~~~---~--~~ You

  1   2   >