[android-developers] Re: Accessing Disk memroy from Application

2011-01-13 Thread Vinay S
You can use the SD Card to store your data. Use File Stream to write the data to the files.. You need to have Read and write permission added to your application. -Vinay On Jan 14, 11:05 am, Saj TK saj.dr...@gmail.com wrote: Hi, is it possible to access the disk memroy directly from the

[android-developers] Re: Creating a .jar Library

2010-10-10 Thread Vinay S
--When I run, the classes are unresolved so I crash. (null exception...) Did you add the jar into your library? and in your build path? -vinay On Oct 9, 5:39 am, JoeSchmoe rthompson.dtisoft@gmail.com wrote: Do I have to do anything special to create a .jar library with Android?  I'm

[android-developers] Re: Uploading file through HTTP Post

2010-09-16 Thread Vinay S
Hi, See this page.. http://rapidandroid.org/wiki/HttpUpload -vinay On Sep 16, 8:55 am, perumal316 perumal...@gmail.com wrote: Hi All, I am writing an application to upload a file from Android phone to a web server. I have tried the example from:

[android-developers] Re: how to list files on SD card

2010-09-16 Thread Vinay S
Pl. look at http://developer.android.com/reference/java/io/FilenameFilter.html On Sep 16, 8:40 am, cindy ypu01...@yahoo.com wrote: Hi all,  My application needs to do some clean up. I need to list the files such as   ls voice*.amr, and then delete those files. How could I do it in Android?

[android-developers] Re: onCellLocationChanged and updateNetworkNameExtension showing up in Log files. Where do these come from? and can I make them stop?

2010-08-30 Thread Vinay S
hi, As I know you get the event onCellLocationChanged when there is change in Cell Tower connectivity.. To stop this event you need to stop listing to this update. Look for listen method in Telephonymanager (URL: http://developer.android.com/reference/android/telephony/TelephonyManager.html). I

[android-developers] Re: How to the GSM signal strength

2010-08-26 Thread Vinay S
Hi XC He, Can you please suggest what should be imported to get mPhoneStateReceiver..? Regards, Vinay On Aug 26, 1:38 pm, XC He schosnab...@gmail.com wrote: You can check package/apps/Settings code, RadioInfo.java   int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm();   if (-1 ==

[android-developers] Re: Detect Wifi Enabled/Disabled

2010-08-12 Thread Vinay S
If you need network information, then try NetworkInfo. if you have 3G or GPRS or Wifi network connectivity it can give that state. -Vinay On Aug 13, 3:35 am, KG kevinconca...@gmail.com wrote: Thank you very much, this is what I needed. On Aug 12, 3:20 pm, Kostya Vasilyev kmans...@gmail.com

[android-developers] getCellLocation() returns null

2010-07-26 Thread Vinay S
Hi, I am trying to access the current cell location information. When I try to call getCellLocation() it returns null. I am unable to reason out this.. the same code works on 1.5 but fails on 1.6 or 2.1.(Tested on G1 with 1.6 and HTC legend 2.1). Can some one help me in correcting this bug? My

[android-developers] Re: HttpPost and byte[] on Android?

2010-07-15 Thread Vinay S
try HttpPost.setEntity (ByteArrayEntity); On Jul 14, 5:11 pm, Dinesh Harjani goldrunner192...@gmail.com wrote: I believe this will be very helpful:http://evgeny-goldin.com/blog/2010/05/01/uploading-files-multipart-po... Download the source for the FileUpload (it should contain the

[android-developers] Re: GPS Provider not available

2010-06-15 Thread Vinay S
Try, registering the service and listing for onLocationChange event.. -Vinay On Jun 14, 9:14 pm, vogella lars.vo...@googlemail.com wrote: Hi, I'm trying to use directly the GPS Location Manager (without a MapActivtiy) in the emulator. LocationManager locationManager = (LocationManager)

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2010-06-15 Thread Vinay S
Check for the driver.. I had the same problem with Galaxy. I found in one of the forums the link for custom driver and installed it.. That worked for me.. -Vinay On Jun 11, 2:16 am, Stu.Axon stu.a...@gmail.com wrote: This is driving me up the wall... I've been trying to get it working for 6

[android-developers] Re: How to get and post JSON with Android?

2010-06-15 Thread Vinay S
1. Look for DefaultHttpClient for sending and receiving data from server using GET / POST. 2. Look at org.json api's available in Android. -Vinay On Jun 12, 6:16 pm, Joshua Partogi joshua.part...@gmail.com wrote: Hi all, Is there any code snippet for getting and postiing JSON object to a

[android-developers] Re: How to send a json object to a server via android

2010-06-15 Thread Vinay S
what is the error / exception you are getting? Look at logcat / console for info.. -Vinay On Jun 12, 9:04 pm, Muhamamd Mateen matee...@gmail.com wrote: Hi, I know that this is not really an android question but i am new to both android and JSON. {Email:g...@tkxel.com,Password:123456} to a

[android-developers] Re: GPS/LocationManager does not give a fix in my app

2010-06-07 Thread Vinay S
Hi, Why don't you log this info and see.. On Status changed, it gives 3 values 1. Out of service 2. Temp not available 3. Available.. Just see what is the response it is giving.. If it is out of service, then you will not get the fix.. If it is Temp not avail - then try moving your phone to

[android-developers] Re: Cannot Write file into SDCard

2010-05-31 Thread Vinay S
Hi, Did you try DDMS to copy the file to your PC and open it? -Vinay On May 31, 8:57 am, jp backstabber...@hotmail.com wrote: Thanks all, it finally work However i was not able to view the text file when i mount the phone to the pc It requires me to restart my phone inorder to get the text

[android-developers] Re: TelephonyManager.listen() additive? API docs unclear.

2010-05-27 Thread Vinay S
Hi, Both the ways what have listed are right.. You get the same output.. :) -vinay On May 28, 1:02 am, goosedroid alexrhel...@gmail.com wrote: If I register LISTEN_SERVICESTATE with listener A using TelephonyManager.listen(), and then later I need to additionally listen another event like

[android-developers] Re: Scan wireless networks periodically

2010-05-27 Thread Vinay S
Hi, Look at timers... -Vinay On May 26, 10:06 pm, Charly carlos.per...@gmail.com wrote: Hi, I'm developing sort of a wireless scanner, so I need to scan every X seconds. I know I should use WifiManager and startScan() to get the networks and then register a receiver to receive the event

[android-developers] Re: Cannot Write file into SDCard

2010-05-27 Thread Vinay S
Hi, Try adding this code before you open the file File root = Environment.getExternalStorageDirectory(); if (root.canWrite()){ gpxFilePath = new File(root, abcd.txt); } -Vinay On May 27, 1:29 pm, jp backstabber...@hotmail.com wrote: Hi fellow developers, i'm having

[android-developers] Re: Start a service during device boot-up

2010-05-26 Thread Vinay S
HI, If i understand your problem correctly, the compiler is asking to remove either Broadcast receiver or service. If so, then what I suggest you is, have a different class which extends BroadcastReceiver and start the service from that. -Vinay On May 24, 12:28 pm, Soumya

[android-developers] Re: Getting and Sending Data From the Web (URLConnection via http)

2010-05-12 Thread Vinay S
Hi, Did you try sending the data back using the same HTTP connection? Try opening a new HTTP connection and send the data back.. This might give you some clue, is this the problem of HTTP.. Regards, Vinay On May 10, 10:27 pm, strog droid.j...@googlemail.com wrote: Hi Guys, I wanted to

[android-developers] Re: Neighbouring Cell info - Clarification needed

2010-05-12 Thread Vinay S
of the cell tower. If only one network uses this tower, it's specific to that network. On May 9, 10:06 pm, Vinay S s.vinay@gmail.com wrote: Hi,  Thanks for the reply. Actually, I am looking for a different information. When I request for getNeighbouringCellInfo() it gives a set

[android-developers] Re: How to create uses-library

2010-05-11 Thread Vinay S
Hi Karteek, As Mr. Mark Murphy has suggested create a new project for your reusable set of code. Export the same as Jar and include where ever you need them. Regards, Vinay On May 11, 10:53 am, Dianne Hackborn hack...@android.com wrote: On Mon, May 10, 2010 at 10:29 PM, karteek

[android-developers] Re: How to create uses-library

2010-05-10 Thread Vinay S
Can post the LogCat Output.. -Vinay On May 10, 12:21 pm, Karteek N kartee...@gmail.com wrote: Hi, In android manifest file there is a tag to include libraries called uses-library. Suppose if i have some java files in the package hierarchy called com.my.lib i used the following tag in my

[android-developers] Re: Neighbouring Cell info - Clarification needed

2010-05-09 Thread Vinay S
to return the Cell Id of different operators around the place..? Regards, VInay On May 8, 7:36 am, Renam seure...@gmail.com wrote: take a look at:http://en.wikipedia.org/wiki/Mobile_Network_Code I think that what you need. Vinay S wrote: Hi, I need one clarification regarding

[android-developers] Re: Obtain RSSI in GSM cells

2010-05-09 Thread Vinay S
You need to implement a method onSignalStrengthChanged(int asu) in phone state listener.. -Vinay On May 7, 3:56 pm, Miguel Ruiz miguel.s...@gmail.com wrote: Hi, I´m trying to get the rssi value from the main cell i´m currently connected to in an application for Android 1.6. I´m using

[android-developers] Re: Obtain RSSI in GSM cells

2010-05-09 Thread Vinay S
You need to implement a method onSignalStrengthChanged(int asu) in phone state listener.. -Vinay On May 7, 3:56 pm, Miguel Ruiz miguel.s...@gmail.com wrote: Hi, I´m trying to get the rssi value from the main cell i´m currently connected to in an application for Android 1.6. I´m using

[android-developers] Neighbouring Cell info - Clarification needed

2010-05-07 Thread Vinay S
Hi, I need one clarification regarding the NeighbouringCellInfo. When i query for the getNeighbouringCellInfo() method, it returns me with 5-6 values. Sample response is below: 06 05 2010 23:59:19.643 Neighbouring Cell Info : Cell Info [1] : Cell Id :20438 RSSI :-67 LAC :6012] Cell Info

[android-developers] NeighboringCellInfo returns CID as -1

2010-05-06 Thread Vinay S
Hi, On Nexus One, when I try to get the NeighboringCellInfo, it returns me with 5 nodes. When I try to display the CID and LAC info, it is showing -1. Does any one have any idea about his.? Any kind of info will be helpful. Sample output received: 05 05 2010 23:06:32.739 Neighbouring Cell

[android-developers] Re: NeighboringCellInfo returns CID as -1

2010-05-06 Thread Vinay S
Hi All, Sorry about it.. It is returning -1 because it on UMTS. I was thinking it was on GSM. Thhanks Regards, Vinay -- On May 6, 12:16 pm, Vinay S s.vinay@gmail.com wrote: Hi, On Nexus One, when I try to get the NeighboringCellInfo, it returns me with 5 nodes. When I try

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
Hi David, I think you are trying to use TelephonyManager.getLine1Number(); Instead create an object of the TelephonyManager and then call the getLine1Number(); -Vinay On May 5, 3:53 pm, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/04/10 14:27,

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
be able to determine it. On May 5, 1:32 pm, Vinay S s.vinay@gmail.com wrote: Hi David, I think you are trying to useTelephonyManager.getLine1Number(); Instead create an object of theTelephonyManagerand then call the getLine1Number(); We're already doing that --- here's the code

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
to determine it. On May 5, 1:32 pm, Vinay S s.vinay@gmail.com wrote: Hi David, I think you are trying to useTelephonyManager.getLine1Number(); Instead create an object of theTelephonyManagerand then call the getLine1Number(); We're already doing that --- here's the code

[android-developers] Re: HTTP post to non-standard port over Wifi?

2010-05-03 Thread Vinay S
Hi, Did you look at the router does it allow outgoing TCP traffic to flow through for port 8080? -Vinay On May 3, 3:48 pm, Per p...@care2wear.com wrote: Hi, I have trouble getting http post to work over WiFi. The server listens at port 8080, and posting works just fine when disabling WiFi

[android-developers] getMaxSatellites returns 255

2010-04-28 Thread Vinay S
Hi All, When I try to get the number of satellites used for getting the fix. I get the response as 255. Is this value correct? My code is below: public void onGpsStatusChanged(int event) { switch (event ) { case GpsStatus.GPS_EVENT_SATELLITE_STATUS : { GpsStatus status =

[android-developers] Re: about get cid

2010-04-28 Thread Vinay S
Hi, If you look at TelephonyManager, you have the needed functionality.. One of them is getCellLocation which has the CID info. On Apr 28, 12:36 pm, xmmarmy007 xmmarmy...@gmail.com wrote: hi all!     Please tell me how to obtain cell id. -- ==天道酬勤== xiemingming mail:

[android-developers] Re: Decimal only keypad

2010-04-27 Thread Vinay S
Try this thread.. This might help.. On Apr 28, 8:23 am, Latha subbas...@gmail.com wrote: Any help here? On Apr 27, 1:48 pm, Siva G sivarama...@gmail.com wrote: I want to have input type for the text boxes that only takes numbers and decimal point. Input type of Number or Decimal,

[android-developers] Re: Decimal only keypad

2010-04-27 Thread Vinay S
Oops.. missed the link : http://groups.google.com/group/android-developers/browse_thread/thread/a326d87057f89ca6/f32bac433dd64a46?lnk=gstq=EditText#f32bac433dd64a46 On Apr 28, 8:23 am, Latha subbas...@gmail.com wrote: Any help here? On Apr 27, 1:48 pm, Siva G sivarama...@gmail.com wrote:

[android-developers] Re: Get phone country/area code, anyone?

2010-04-27 Thread Vinay S
Hi, Did you try this in telephony manager.. getNetworkCountryIso() - for country code. (if you are in roaming it changes..) I am not sure about area code.. regards, vinay On Apr 27, 11:28 pm, Gustavo gumat...@gmail.com wrote: Hi, I know that I can get some informations from the Sim card by

[android-developers] Re: About EditText inputType

2010-04-26 Thread Vinay S
Is there anything similar for EditTextPreference ? I am trying to validate an input in Settings.xml file. Regards, Vinay On Apr 26, 4:02 pm, Anurag Singh anusingh...@gmail.com wrote: Use android:digits android:numeric - Anurag Singh On Fri, Apr 23, 2010 at 8:48 AM, E

[android-developers] Re: how to remove/invisible the scroll bar

2010-04-14 Thread Vinay S
Hi, Try using Linear layout with orientation horizontal. Add button, followed by Image, then another button. Add your code for button click to change the image. Regards, Vinay On Apr 9, 11:16 am, Vijay S vijay...@gmail.com wrote: Hi i added some buttons in HorizontalScrollView and its

[android-developers] Re: Samsung Galaxy, GPS onLocationChanged never called.

2010-04-14 Thread Vinay S
Hi, I faced the same issues.. Even if I an standing in open space, it does not get onLocationChange. I tried the same app by traveling in bike and putting the phone in my pocket. I was able to get the event. May be just look at the code requestLocationUpdates with 0 as min timeout and 0 as the

[android-developers] Re: About how to make new buttons in a row?

2010-04-12 Thread Vinay S
Hi, I hope you are using LinearLayout as your base Layout.. If so, look for orientation in the properties of this obj and change it to horizontal. Vinay On Apr 12, 10:47 am, xlshe dianyuangua...@gmail.com wrote: Hi all, I want to create three button on the layout. But the default align of

[android-developers] Re: number of lines in a webview Urgent

2010-04-12 Thread Vinay S
Did you try using setBuiltInZoomControls(boolean)... http://developer.android.com/reference/android/webkit/WebSettings.html#setBuiltInZoomControls(boolean) May be this is the one you need.. On Apr 12, 5:26 pm, mmkr manutd...@gmail.com wrote: Hi all,          I'm using webview which loads a

[android-developers] Unable to start service Intent

2010-03-08 Thread Vinay S
Hello Everyone, I have created a small util which is a service, I would like to reuse this util in my future projects. I have exported /src /gen folders to jar. I have skipped, /res folder and AndroidManifest.xml files. I have tried including this in my new app activity and reuse the service.