[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
 applications written in Java. What i wanted to do is to write some encrypted
 data directly to the memory space occupied by the data(media files, databses
 etc) before. As there are no pointers in Java, i dont whether this is
 possible.

 Please suggest.
 Regards,
 saj

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 simply creating an Android Project and then doing
 Export Jar.

 I'm able to do Add External Jar and I can compile fine.  When I run,
 the classes are unresolved so I crash. (null exception...)

 I tried exporting as a Runnable Jar, but the Finish button is
 greyed out.  Perhaps I need to create a different project to use a
 runnable jar?

 Thanks in advance!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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:

 http://www.anddev.org/novice-tutorials-f8/doing-http-post-with-androi...

 But it will only work for SDK 1.0 (why? Not Sure?).

 Can this be done for Android 2.1? Or is there any other method to load
 a file from Android to a webserver?

 Thanks In Advance,
 Perumal

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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?

 Thanks !

 Cindy

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 am not aware of the other event.


On Aug 29, 5:18 am, Greg Siano gregmsi...@gmail.com wrote:
 I'm making a game, but the game lags a bit every time
 onCellLocationChanged or updateNetworkNameExtension shows up in my Log
 file.  What is making these two run? Is there a way to make them not
 run?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 == signalDbm) signalDbm = 0;
   int signalAsu = mPhoneStateReceiver.getSignalStrength();
   if (-1 == signalAsu) signalAsu = 0;

 2010/8/26 Mohammad Siddiqui siddiqui.m...@gmail.com:

  Hi everyone

  I want to find the signal strength of GSM network. but not found any
  method in 1.5 sdk version

  is there is any alternative available to find the signal strength.

  Thanks

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 wrote:

  Look up WifiManager and its broadcast action definitions.

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

  13.08.2010 2:10 пользователь KG kevinconca...@gmail.com написал:

  Hi Everyone,

  This seems like a common issue developers have yet I couldn't find
  anything on it (searched through the archives in this mailing list and
  Google searches).  Maybe I just fail at research, but anyway..

  My app requires a network connection.  If it is disabled I'd like to
  notify users that it is required and then possibly open the network
  settings box so they can enable it.  Anyone know how to do this?

  Thanks

  --
  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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 code is below.

Code
TelephonyManager tMgr = (TelephonyManager)
getSystemService(TELEPHONY_SERVICE) ;
outputView = (TextView) findViewById(R.id.output) ;

outputView.append(Device type:+tMgr.getPhoneType()+\n) ;

   GsmCellLocation gsmCellLocation = (GsmCellLocation)
tMgr.getCellLocation() ;
   if (gsmCellLocation != null) {
  String mCellId =  + gsmCellLocation.getCid() ;
  String mLAC =  + gsmCellLocation.getLac() ;
  Log.d(SDKService , Cell Id: +mCellId+ LAC: +mLAC) ;
  outputView.append(Cell Id: +mCellId+ LAC: +mLAC+ MCC: +mMCC+
MNC: +mMNC+\n) ;
   }
/Code

Also, I have added the following permissions :

ACCESS_FINE_LOCATION,
ACCESS_COARSE_LOCATION,
CONTROL_LOCATION_UPDATES.

Do I need to add any other permissions?

Kindly let me know where I have gone wrong.

Thanks in advance,
Regards,
Vinay

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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
 MultiPartEntity) and add it to your project as a library. Then you can
 add all the byte[] that you want, but remember to add these libraries
 to your server as well or you won't be able to recover your data.

 Thanks for reminding me about FileEntity, by the way.

 On Jul 14, 9:15 am, Serdel adam.lichwierow...@gmail.com wrote:

  Hello,

  I am dealing with http post method on Android. I have successfully
  send simple string pairs using HttpClient and HttpPost class with the
  NameValuePair as entity. However now I want to send a simple array of
  bytes[]. Unfortunately the only entities I have found for the HttpPost
  class are the NameValuePair and FileEntity. However my byte[] is not
  from a file. Wirting it to a file and then sending by the FileEntity
  seems to be pointless and stupid. How can I send this array using
  default HttpClient and HttpPost class??



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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)
 getSystemService(Context.LOCATION_SERVICE);
 Location location =
 locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
 if (location != null){
    System.out.println(not null);} else {

     System.out.println(null);
    }

 If I try to access the GPS provider I receive null unless I start a
 MapActvity before. After using a MapActivity the GPS provider is
 running in the emulator and I can use it.

  My App used the following three permissions:

 uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/uses-
 permission
 uses-permission android:name=android.permission.INTERNET/uses-
 permission
 uses-permission
 android:name=android.permission.ACCESS_MOCK_LOCATION/uses-
 permission

 I'm also sending geo data to the emulator:

 geo fix 13.24 52.31

 On the emulated device GPS is also activated.

 Am I'm missing something?

 Best regards, Lars

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 hours now.

 On Windows XP.

 Installed the Samsung drivers + Kie stuff.

 Adb just lists 'no devices'

 Lots of the tutorials say to disable mass storage, but I can't find
 the option, maybe 2.1 doesn't have it ?

 I tried installing the android sdk usb drivers, but when I plug in the
 phone it instantly finds the samsung ones.

 Kie just keeps trying to connect (says connecting) but doesn't.

 Also tried USBDeView... the SAMSUNG USB Composite device toggles
 between connected and disconnected when running Kie.

 Can I use wifi or bluetooth instead for ADB ?   Really at a loss...
 anybody got a clue on how to make this work ?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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
 http server in Android? I want to call the API in my website and get
 the JSON response to be displayed in the Android apps.

 I am still new to Android so please bear with me.

 Thanks for the assistance.

 Kind regards,
 Joshua.

 --http://twitter.com/scrum8

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 url.

 The above structure is sent to Server in a variable named “json”. The
 server reads the data and sends back the user information in a json
 object if the login is successful or {error,-1} if the
 authentication fails.

 try
 {
 JSONObject json=new JSONObject();
 json.put(email, xrslanasi...@gmail.com);
 json.put(password, arslan);
 HttpParams p=new BasicHttpParams();
 p.setParameter(json, json.toString());
 HttpClient client = new DefaultHttpClient(p);
 HttpResponse response=client.execute(new HttpGet(http://www.abc/
 getuserdetails));
 InputStream is=response.getEntity().getContent();
 String a=convertStreamToString(is);
 Log.i(Read from the server, a);}

 catch(Exception e)
 {}

 But this isnt worrking. What am i doing wrong ? If anybody has some
 working code that they could share with me i would be very grateful. I
 have been stuck with this for the past 24 hours and tried everything
 under the sun. At the last line the string a should contain a jason
 string contain the user attributes for xrslanasi...@gmail.com.

 Could any one help me ?

 Kind Regards,

 Mateen

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 some open
space and walk around for about 100 m.. then you will get available
event.

Regards,
Vinay

On Jun 6, 10:05 pm, Charly carlos.per...@gmail.com wrote:
 Still haven't found a way to make it work. If someone has a clue
 please let me know.

 Thank you!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 file in my
 sdcard.
 Is there a way i do not need to restart my phone and the view the text
 file when i mount it?
 i've tried SDRescan.apk but it wont work.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 LISTEN_CALL_STATE *using the same
 listener* ... do I need to:

 (1) unregister listener A with LISTEN_NONE and re-register with both
 LISTEN_ flags:

 TelephonyManager t = ...;
 PhoneStateListener l = ...;

 t.listen( l, LISTEN_SERVICESTATE);
 ...
 time goes by
 ...
 t.listen( l, LIST_NONE);
 t.listen( l, LISTEN_SERVICE_STATE | LISTEN_CALL_STATE)

 (2) simply call listen again with listener A, and the new flag.
 t.listen( l, LISTEN_SERVICESTATE);
 t.listen( l, LISTEN_CALL_STATE);

 In other words, is listen() additive if you pass in the same listener
 with different LISTEN_ flags? The documentation is not clear.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 once the scan has
 finished. However I'm having problems when trying to figure out how to
 scan periodically. It's more like a design problem.

 My solution so far has been to create a Service which takes care of
 the scanning, besides the main Activity. I think this is correct. So
 how could I tell this Service to scan every X seconds? I've thought it
 may have a Thread object, call its Scan method during tart_services()
 and then take it to sleep. Also I thought I could just get rid of the
 Service and run the Thread from the main Activity, but then I guess it
 would die whenever the Activity is not visible. None of then seem like
 a really good solution to me, and I think there must be an easier way
 to do this.

 Could anyone help me please?

 Thanks in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 this issue of not being able write
 text file into the SDCard.
 I'm running the program through eclipse on a HTC magic version 2.1.
 i had the USB cable unplugged before i run the program.
 It says that the parent directory of file does not exist: data2/
 abc.text

 Can any1 help me on this, thanks in advance

 The button that trigger the saving

 btnSave.setOnClickListener(new View.OnClickListener() {

                 public void onClick(View v) {
                         try {

                                    boolean success = (new
 File(data2)).mkdir();
                                     if (success) {

                                         Toast.makeText(Test.this,
 Success, Toast.LENGTH_SHORT).show();

                                     }

                                 File gpxfile = new File(data2/
 abc.txt);

                                 if(!gpxfile.exists()){
                                         gpxfile.createNewFile();

                                 FileWriter gpxwriter = new
 FileWriter(gpxfile);
                                 BufferedWriter out = new
 BufferedWriter(gpxwriter);
                                 out.write(b);
                                 out.close();
                                 Toast.makeText(Test.this, Success2,
 Toast.LENGTH_SHORT).show();
                                 }
                         }
                         catch (IOException e) {
                                 Toast.makeText(Test.this, e+,
 Toast.LENGTH_SHORT).show();
                                 }
                 }

         });
         }

 i did add this permission in the manifest file

  uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE /

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 soumyakanti...@gmail.com wrote:
 Hi,

 I have written a class which extends the Service class of android and
 would like to launch the service during device boot-up. From the
 service I would like to receive the intents such as boot completed and
 screen off and on.

 Currently I am using a BroadcastReceiver to get the boot completed
 intent and then on starting a service to receive screen on and off
 intents. But I would like to remove either the broadcast receiver or
 the service. Any inputs.

 Thank you,
 Soumya

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 create a an android application that works like a remote
 control for a multimedia system. This client server dialog is done on
 the json class api. The class that I use for establishing the
 communication is the HttpURLConnection. I used the following example
 for writing my 
 programm(http://www.anddev.org/getting_data_from_the_web_urlconnection_via_htt...
 ).
 I ran wireshark to monitor the communication, and i see the data that
 is being sent from the server, but sending orders back to the server
 from my milestone doesn't happen at all.
 I turned off all my firewalls that could interfere with the
 communication.

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-05-12 Thread Vinay S
Hi Kelly,

How about the case, there are multiple operators using the same tower?

Will I be able to get the info from them?

Regards,
vinay

On May 12, 9:26 pm, Kelly senor...@gmail.com wrote:
 LAC (Local Area Code) is specific to area, like mine is 415 (San
 Francisco).
 The Cell ID is the ID 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 of values.

  I would like to know, if the Cell Id and the LAC given by this
  function is belonging to the same operator? Does the phone has the
  capability 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 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 [2] :   Cell Id :22058  RSSI :-69  LAC :6012]
Cell Info [3] :   Cell Id :22567  RSSI :-69  LAC :6010]
Cell Info [4] :   Cell Id :22259  RSSI :-69  LAC :6012]
Cell Info [5] :   Cell Id :22428  RSSI :-67  LAC :6012]
Cell Info [6] :   Cell Id :7  RSSI :85  LAC :0]

My Question is, where these Cell Id and LAC given are specific to the
SIM operator or is it from all providers in this area?
If it is from multiple operators.., how can I distinguish them?

Any kind of info regarding this will be useful.

Thanks and Regards,
Vinay

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   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+unsubscr...@googlegroups.com
   For more options, visit this group 
   athttp://groups.google.com/group/android-developers?hl=en

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 kartee...@gmail.com wrote:
  Sorry I said Java files means it is also using android packages.
  As you said uses-library is for only  sdk add-ons.
  Can't we generate add ons to include in my applications

 No, this is only for things built in to the system image.  Third party
 shared libraries are not supported.

  My overall idea is to make use some repeated functionality as an
  library.
  If i want to generate jar file i need to write it as pure Java
  application but here it is also using some android api's.
  what is the way to achieve this.

 You don't need to write it as pure Java.  You can have whatever Java code
 you want in a .jar and include it as a static library.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 manifest file
 uses-library android:name=com.my.lib /
 Now it is compiled successfully.
 But if i want to launch to emulator it is throwing the following error
 [2010-05-10 10:38:18 - MyMusicPlayer] Installing MyMusicPlayer.apk...
 [2010-05-10 10:38:20 - MyMusicPlayer] Installation error:
 INSTALL_FAILED_MISSING_SHARED_LIBRARY
 [2010-05-10 10:38:20 - MyMusicPlayer] Please check logcat output for more
 details.
 [2010-05-10 10:38:20 - MyMusicPlayer] Launch canceled!
 And application is not running on emulator.
 Any help please

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-05-09 Thread Vinay S
Hi,

 Thanks for the reply.

Actually, I am looking for a different information.

When I request for getNeighbouringCellInfo() it gives a set of values.

I would like to know, if the Cell Id and the LAC given by this
function is belonging to the same operator? Does the phone has the
capability 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 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 [2] :   Cell Id :22058  RSSI :-69  LAC :6012]
  Cell Info [3] :   Cell Id :22567  RSSI :-69  LAC :6010]
  Cell Info [4] :   Cell Id :22259  RSSI :-69  LAC :6012]
  Cell Info [5] :   Cell Id :22428  RSSI :-67  LAC :6012]
  Cell Info [6] :   Cell Id :7  RSSI :85  LAC :0]

  My Question is, where these Cell Id and LAC given are specific to the
  SIM operator or is it from all providers in this area?
  If it is from multiple operators.., how can I distinguish them?

  Any kind of info regarding this will be useful.

  Thanks and Regards,
  Vinay

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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.telephony.gsm.GsmCellLocation which does not have this value.
 For Android 2.1 its avaible     android.telephony.SignalStrength, but I
 cannot find anything equivalent for API 4. Is there any other way or
 class avaiable??
 Thanks

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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.telephony.gsm.GsmCellLocation which does not have this value.
 For Android 2.1 its avaible     android.telephony.SignalStrength, but I
 cannot find anything equivalent for API 4. Is there any other way or
 class avaiable??
 Thanks

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 [2] :   Cell Id :22058  RSSI :-69  LAC :6012]
Cell Info [3] :   Cell Id :22567  RSSI :-69  LAC :6010]
Cell Info [4] :   Cell Id :22259  RSSI :-69  LAC :6012]
Cell Info [5] :   Cell Id :22428  RSSI :-67  LAC :6012]
Cell Info [6] :   Cell Id :7  RSSI :85  LAC :0]

My Question is, where these Cell Id and LAC given are specific to the
SIM operator or is it from all providers in this area?
If it is from multiple operators.., how can I distinguish them?

Any kind of info regarding this will be useful.

Thanks and Regards,
Vinay

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 Info :
Cell Info [1] : Cell Id :-1  RSSI :-1  LAC :-1  Nw Type:8]
Cell Info [2] : Cell Id :-1  RSSI :-7  LAC :-1  Nw Type:8]
Cell Info [3] : Cell Id :-1  RSSI :-9  LAC :-1  Nw Type:8]
Cell Info [4] : Cell Id :-1  RSSI :-41  LAC :-1  Nw Type:8]
Cell Info [5] : Cell Id :-1  RSSI :-41  LAC :-1  Nw Type:8]

Thanks in Advance,
Regards,
Vinay

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 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 Info :
 Cell Info [1] : Cell Id :-1  RSSI :-1  LAC :-1  Nw Type:8]
 Cell Info [2] : Cell Id :-1  RSSI :-7  LAC :-1  Nw Type:8]
 Cell Info [3] : Cell Id :-1  RSSI :-9  LAC :-1  Nw Type:8]
 Cell Info [4] : Cell Id :-1  RSSI :-41  LAC :-1  Nw Type:8]
 Cell Info [5] : Cell Id :-1  RSSI :-41  LAC :-1  Nw Type:8]

 Thanks in Advance,
 Regards,
 Vinay

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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, David Given wrote:
 [...]

  I'm trying to fetch the telephone number of the device. I'm calling
  TelephonyManager.getLine1Number(), and it's returning null.

  A trawl of the intertubes shows that there's a potential problem with
  some SIMs not containing this information; however, Settings-About
  Phone-Status *does* show the correct phone number, so this isn't it.

  Looking at the code, it appears that Settings isn't using
  TelephonyManager to retrieve the phone number. Instead it's using
  com.android.internal.telephony.Phone, an internal API, to do this; so
  obviously this is working, where TelephonyManager is not.

  Can anyone shed any light on this, and hopefully suggest how I can
  correctly fetch the phone number?

 Does anyone know anything about this?

 - --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
 │ --- Conway's Game Of Life, in one line of APL
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkvhTh0ACgkQf9E0noFvlzjo4ACfTvvkmZS+bx4qbSGdhFXe/Odw
 UAcAoL/HYT59nnVL86s6sNymD6wlklEs
 =MTvd
 -END PGP SIGNATURE-

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-05-05 Thread Vinay S
Hi David,

Pl. try this code..

TelephonyManager tMgr = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE) ;
Log.d(+tMgr.getLine1Number() ) ;

-Vinay

On May 5, 9:32 pm, David Given d...@cowlark.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 05/05/10 12:48, Mark Ellul wrote:

  I was informed that its a SIM issue, and that some SIM cards do not
  store the telephone number in the appropriate way to retrieve the
  number

 That's what I originally thought, but as I said, Settings-About Phone
 *is* returning the correct phone number. Something on the phone must 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:

    TelephonyManagertm = (TelephonyManager)
         _context.getSystemService(Context.TELEPHONY_SERVICE);
     return despace(tm.getLine1Number());

 (_context is our activity, despace() is a function that removes spaces
 from a string.)

 As I said in my original message, the code *works*. It just always
 returns null. So it's not a compilation problem.

 - --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
 │ --- Conway's Game Of Life, in one line of APL
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkvhnagACgkQf9E0noFvlzg47ACeK9J4jSzgraXTWAAtD+M7BjEi
 2zgAoLlHl3NRP1MdLFdCCrDtQeE9i6dh
 =pS74
 -END PGP SIGNATURE-

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-05-05 Thread Vinay S
Hi,

Are you sure, you are getting the context correctly..?
Are you able to get other deatils, like Network type phone type, sim
status etc?

-Vinay

On May 5, 9:32 pm, David Given d...@cowlark.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 05/05/10 12:48, Mark Ellul wrote:

  I was informed that its a SIM issue, and that some SIM cards do not
  store the telephone number in the appropriate way to retrieve the
  number

 That's what I originally thought, but as I said, Settings-About Phone
 *is* returning the correct phone number. Something on the phone must 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:

    TelephonyManagertm = (TelephonyManager)
         _context.getSystemService(Context.TELEPHONY_SERVICE);
     return despace(tm.getLine1Number());

 (_context is our activity, despace() is a function that removes spaces
 from a string.)

 As I said in my original message, the code *works*. It just always
 returns null. So it's not a compilation problem.

 - --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
 │ --- Conway's Game Of Life, in one line of APL
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkvhnagACgkQf9E0noFvlzg47ACeK9J4jSzgraXTWAAtD+M7BjEi
 2zgAoLlHl3NRP1MdLFdCCrDtQeE9i6dh
 =pS74
 -END PGP SIGNATURE-

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 and just using 3G.
 When enabling WiFi, I always get an IOException with message 'Socket
 is not connected'.

 Using the standard port 80 (or opening raw sockets to other ports)
 works just fine, but the combination (http + 8080 + WiFi) seems to
 fail.

 I've been looking for hints in the android.net package, but
 unsuccessfully. Any hints are welcome..

 /Per

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 = mgr.getGpsStatus(null);
IterableGpsSatellite sats = status.getSatellites();
output[0].append(+status.getMaxSatellites()) ;
IteratorGpsSatellite it = sats.iterator() ;
while ( it.hasNext() )
{
GpsSatellite oSat = (GpsSatellite) it.next() ;
Log.d(TEST,LocationActivity - onGpsStatusChange:
Satellites: +
oSat.getSnr() ) ;
}

// Check number of satellites in list to determine fix
state
} break ;
case GpsStatus.GPS_EVENT_FIRST_FIX : {
log( First Fix received ) ;
}
break ;
case GpsStatus.GPS_EVENT_STARTED : {
GpsStatus status = mgr.getGpsStatus(null);
log( Time to fix:+status.getTimeToFirstFix() );
}
break ;
}
}

Is there anything which I have missed out..?

Thanks in advance.
Regards,
Vinay

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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: aimery@gmail.com
 msn: xmmarmy...@hotmail.com
 qq: 182378175

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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, still brings the full keypad and the
  buttons are small.

  Input type of Phone does the trick, but not all phones have a comma or
  a dot to enter the decimal point.

  What is the best way around?

  Thanks in advance.

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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:



  I want to have input type for the text boxes that only takes numbers
  and decimal point.

  Input type of Number or Decimal, still brings the full keypad and the
  buttons are small.

  Input type of Phone does the trick, but not all phones have a comma or
  a dot to enter the decimal point.

  What is the best way around?

  Thanks in advance.

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 using the
 TelephonyManager class, but I couldn't find any specific method to get
 its country and area code, and also if the user is on roaming the area
 code would probably change to the location he currently is.

 Any help would be appreciated.

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 chui.hin...@gmail.com wrote:
  Hi! I've searched for long-long time and I can't find the answer.

  EditText android:id=@+id/age
                android:inputType=number|phone/

  This will pop-up a soft keyboard with big buttons and some signs(- .
  N , * # / ), right?

  But the propose for this EditText is entering an age number.

  Can I restrict the inputType to number AND use a phone keyboard
  WITHOUT entering these signs?

  Thank you for guiding a newcomer.

  --
  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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 working fine..
 But I want to remove/invisible the scrollbar, instead of scroll bar i want
 to use greater than 
 and less than  images of both sides of scrollView, on clicking on that
 greater_than image i want to scroll it to right side..
 how can i do that..

 Thanks  Regards
 Vijay

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[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 min Distance.

This may help..

Regards,
Vinay

On Apr 6, 10:46 pm, fabien fabien.sangl...@gmail.com wrote:
 Guys,

 Anyone reported a bug with Samsung Galaxy (Android 1.5) ? It seems the
 onLocationChanged  method never get called.

 All my listener receive is call to
 onStatusChanged(gps,LocationProvider.TEMPORARILY_UNAVAILABLE,null).

 I tested it on HTC magic, I can see a few called to onStatusChanged
 with TEMPORARILY_UNAVAILABLE but eventually the GPS retrieves a
 location and calls onLocationChanged but I doesn't seem to happen on
 Galaxy, even after waiting a few minutes.

 Google Maps is able to retrieve the position and display it on the
 Samsung Galaxy but I am unsure it is using the same method I do.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[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
 the buttons is in a column like:
 Button1
 Button2
 Button3
 But I want to the three buttons align in a row in order to save space.
 The align of the three buttons I need is :
 Button1  Botton2  Botton3

 Would you please tell me how to do that? Thank you very much!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[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 html file. When the html file
 is too large the user has to scroll down all the time. I want to
 implement it similar to a e-book reader ie.. as pages, by placing a
 button so that when clicked it shows the next page. But i am unable to
 remove the scroll bar of the webview.  When i reduce the width, the
 webview width decreases but the scroll bar still remains. How can i
 disable the scrollbar. Can i control the number of lines to be
 displayed in a webview.

 Please help its very urgent

 Thanks in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[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. But I get the error message Unable to start service Intent
.

I have enclosed the Manifest XML and outline of my project.

My Questions are:

1. Have I exported the right files to JAR?
2. Any other information needs to be added in my AndroidManifest.XML
(in App, not in Service) to reuse the service provided by the JAR.

Can someone help me to point out where have I gone wrong?

Thanks in Advance,
Vinay


- Service manifest.xml  -

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.ere.SDKUtil  android:versionCode=1
android:versionName=1.0
application android:debuggable=true
service android:name=SDKUtil/service
receiver android:name=BootUpReceiver
android:permission=android.permission.RECEIVE_BOOT_COMPLETED
android:enabled=true/receiver
/application
uses-sdk android:minSdkVersion=3 /
uses-permission android:name=... /uses-permission
/manifest

- SDKUtil.java  -
package com.ere.SDKUtil;

All imports are here
public class SDKUtil extends Service {
public IBinder onBind(Intent intent) {
return null;
}

public void onCreate() {
  super.onCreate();
  // init the service here
  try {
 _startService();
  } catch (Exception e) {
  Log.d(Service, Start Service Failed : +e.toString() );
}
}

public void onDestroy() {
super.onDestroy();
_shutdownService();
}
}

/*--- Second App, which uses the Jar file created as
mentioned above -*/


AndroidManifest.xml-
 ?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.ere.SDKSampleApp
 android:versionCode=1 android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name android:debuggable=true
activity android:name=.SDKSampleApp android:label=@string/
app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=3 /
/manifest

--- SDKSampleApp.java
-
package com.ere.SDKSampleApp;

import com.ere.SDKUtil.SDKUtil;

public class SDKSampleApp extends Activity {
TextView outputView ;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

outputView = (TextView) findViewById(R.id.output) ;
try {
   Intent intent = new Intent (this, SDKUtil.class) ;
   startService(intent) ;
   outputView.setText(R.string.header +\n\n Please
Wait...! \n\n Getting info... ) ;
} catch (Exception e) {
outputView.setText(R.string.header + \n\nError : +
e.toString()) ;
}
}
}

--

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en