[android-developers] Version problem for camera application

2012-04-20 Thread Sumedh
hi,

I have created a camera application which will capture the image and
store it on SD card as well as on external server.
This application works fine on android 2.1 version but when i try to
execute same application on gteater than 2.2 versions it wont work and
gives exception
"fail to connect camera service"

I have given permissions like











the last 3 permissions for the other task which application performs.

but the application wont work on 2.2 and greater versions

-- 
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] How to check for GPS

2012-01-16 Thread Sumedh
hello,

i have android device zinglife e-pad.
want to run my application which require GPS enabled

i have enabled the GPS from the settings, but it doesnt show any
indication for GPS enabled,
(as we can see in other devices that a disk at the top)
neither my application is executing.

is there any way to test for GPS connection

plz help me

Sumedh

-- 
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 check for GPS

2012-01-17 Thread Sumedh
Thnx for reply Kris

my apllication does contain the method LoactionListener of
LocationManager

I want to check that if the device itself is GPS enabled or not

is it possible ?

Sumedh

On Jan 17, 12:51 pm, Kristopher Micinski 
wrote:
> Try to listen for a gps update and see if you get one?
>
> You can also register a passive provider and listen for updates, you
> can also do a LocationManager.getGpsStatus to find out what the state
> of the provider is at a given time (this is probably what you want).
>
> Or are you wondering how to detect if the device even *has* gps?  (Is
> this in the requirements?  Perhaps, but otherwise I would assume that
> the getSystemService call would simply return null...)
>
> kris
>
> On Tue, Jan 17, 2012 at 2:44 AM, Sumedh  wrote:
> > hello,
>
> > i have android device zinglife e-pad.
> > want to run my application which require GPS enabled
>
> > i have enabled the GPS from the settings, but it doesnt show any
> > indication for GPS enabled,
> > (as we can see in other devices that a disk at the top)
> > neither my application is executing.
>
> > is there any way to test for GPS connection
>
> > plz help me
>
> > Sumedh
>
> > --
> > 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] Getting GPS values without LocationManager's onLocationChanged

2012-06-03 Thread Sumedh
Hi,

I developed a code in which i want to access GPS values like
lattitude, longitude, speed and date-time for every fixed interval.
Currently I am using LocationManager's onLocationChanged() method to
get those values. but I want those GPS values for fixed interval
irrespective of any event.
Is there any way to do it, or any other method in LocationManager I
can use

thanks and regards,

-- 
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] How to handle GPRS disconnection

2012-07-03 Thread Sumedh
Hi,

I have developed an application in which 
1. I am getting latitude-longitude values by using LocationListener. 
calling requestLocationUpdates() method for every 1 min
2. Storing the string got from above method into SQLite database
3. For every 5 min accessing those records from database and sending mail 
by using Java mail API

But if there is no GPRS connection my program works for 5 min (i.e. part 
where no GPRS required) and then stops (at point where GPRS required to 
send mail)

I have given internet, coarse and fine location, in my manifest file.

Program works fine when there is GPRS connection.

So, please tell me how should i handle GPRS disconnection in my application

Regards,
Sumedh

-- 
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: install android sdk tools on windows 7

2011-06-17 Thread sumedh
this really works!

On Apr 29, 3:20 pm, rajul jain  wrote:
> hey great works for me tooo
>
> On Thu, Apr 28, 2011 at 10:28 PM, Steve Graham <
>
>
>
> solitary.wandere...@gmail.com> wrote:
> > I had the same problem and in the archives I found a fellow saying to
> > hit the back key and then the next key (or something like that) and
> > then it would find it.  Worked for me.
>
> > Steve
>
> > ---
>
> > On Apr 27, 12:21 pm, freecoder  wrote:
> > > hello everyone
> > > when i try to install android sdk tools it says java se devolopment
> > > kit(JDK) not found
> > >  so i insall jdk-6u25-windows-i586.exe(I have 32 bit windows) from
> > > locationhttp://
> >www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-down...
> > > and still it say  java se devolopment kit(JDK) not found
> > > what can ido now
> > > please help me out..
> > > please check have i insall right jdk or not for 32 bti windows
>
> > --
> > 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- Hide quoted text -
>
> - Show quoted text -

-- 
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] running an application at background

2011-11-18 Thread Sumedh
Hi,
 I have developed an application which will get the lat-long and
store these lat-long values in database server.
But, the problem is application executes on front screen.
Want to execute application as back ground application.
please tell me the way to do this.
thnx

-- 
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] getting parse error

2011-11-22 Thread Sumedh
Hi,

I have developed an application in eclipse. And created its apk file
by using key.
For creating an application I have used the API level 7 and also tried
with API level 3.
When I try to download the apk on my phone (Micromax A60) with android
version Eclair 2.1
it gives me 'Parse Error' with note 'there is problem parsing the
package'

plz help to understand the issue,
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


[android-developers] rooting android phone

2011-11-29 Thread Sumedh
hi,
I want to execute an application which is having root permission, is
it necessary to root my phone to run this application.
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


[android-developers] getting lattitude and longitude using GPS

2011-12-03 Thread Sumedh
Hi,

Working on application in which I try to get current lat-long and send
it to server on which a listener is executing which will listen the
data comning on port.

I have used location listener for this. And in onLocationChanged I
have written the methods getLattitude(), getLongitude().

I have used the method
LocationManager myManager =
(LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 1000, 5,
locationListener);

i want lat-long values for every 10 sec

but aftr executing this code i get lat-long values without any fixed
interval, and aftr some time programs stops, means the code executes
but wont transmit the lat-long values

plz help me to understand the issue.
thanks in advance
Sumedh

-- 
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 lattitude and longitude using GPS

2011-12-03 Thread Sumedh
sorry i have put wrong milisecond values

corrected to,
myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 1,
5,locationListener);

but, the problem remains same, not getting values at fixed interval

i want continious lat-long values irrespective of location change
what should i do?

plz help me to understand the issue.
thanks in advance
Sumedh

On Dec 4, 10:01 am, Sumedh  wrote:
> Hi,
>
> Working on application in which I try to get current lat-long and send
> it to server on which a listener is executing which will listen the
> data comning on port.
>
> I have used location listener for this. And in onLocationChanged I
> have written the methods getLattitude(), getLongitude().
>
> I have used the method
> LocationManager myManager =
> (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
> myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 1000, 5,
> locationListener);
>
> i want lat-long values for every 10 sec
>
> but aftr executing this code i get lat-long values without any fixed
> interval, and aftr some time programs stops, means the code executes
> but wont transmit the lat-long values
>
> plz help me to understand the issue.
> thanks in advance
> Sumedh

-- 
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] android rooting

2011-12-03 Thread Sumedh
Hi,

i have gone through how to root mobile.
but is it possible to have 2level login for phone i.e
one with normal access and other with root access.

can i put some username and password for root login ?

thanks in advance
Sumedh

-- 
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] Access External Database

2011-08-01 Thread Sumedh
I want to access data which is stored on external database server.
is it possible?
if yes please tell me how
thanx 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] connecting to tcp/ip server using gprs

2011-08-01 Thread Sumedh
Hi,
How to setup connection to TCP/IP server using GPRS, in emulator,
please help
thanx 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] Executing .apk file through emulator on pc

2011-08-08 Thread Sumedh
Hi,
I am trying to execute the .apk file through emulator, but it is
giving an exception.
This .apk file is an autogenerated file in eclipse.
Is it possible to run this autogenerated .apk file through emulator?
if yes, please tell me the procedure.

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] Using socket programing to communicate between two emulators in eclipse

2011-08-21 Thread Sumedh
Hi,
 I am working on an application in which trying to make connection
between two emulators through socket programing. But getting an
exception

Code for Server:
public class TCPserverActivity extends Activity
{
private TextView serverStatus;
// default ip
public static String SERVERIP = "192.168.1.13";
// designate a port
public static final int SERVERPORT = 4048;
private Handler handler = new Handler();
private ServerSocket serverSocket;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
serverStatus = (TextView) 
findViewById(R.id.serverStatus);
//SERVERIP = getLocalIpAddress();
Thread fst = new Thread(new ServerThread());
fst.start();
}
public class ServerThread implements Runnable
{
public void run()
{
try
{
if (SERVERIP != null)
{
handler.post(new Runnable()
{
public void run()
{
 serverStatus.setText("Listening on IP: "
+ SERVERIP);
}
});
serverSocket = new ServerSocket(SERVERPORT);
while (true)
{
// listen for incoming clients
Socket client = serverSocket.accept();
handler.post(new Runnable()
{
public void run()
{

serverStatus.setText("Connected.");
}
});

try
{
BufferedReader in = new
BufferedReader(new InputStreamReader(client.getInputStream()));
String line = null;
while ((line = in.readLine()) != 
null)
{

System.out.println("ServerActivity--->>"+ line);
handler.post(new Runnable()
{
public void run()
{
// do whatever you want 
to
the front end
// this is where you 
can be
creative
}
});
}
break;
}
catch (Exception e)
{
handler.post(new Runnable()
{
public void run()
{
serverStatus.setText("Oops.
Connection interrupted. Please reconnect your phones.");
}
});
e.printStackTrace();
}
}
}
else
{
handler.post(new Runnable()
{
public void run()
{
serverStatus.setText("Couldn't 
detect
internet connection.");
}
});
}
}
catch (Exception e)
{
  

[android-developers] Error for getActivity() in alarm manager

2011-08-26 Thread Sumedh
Hi ,
trying to develope an application for scheduling the task using the
AlarmManager.
but getting an error "The method getActivity() is undefined for the
type TestBroadcastActivity"
My class is:-

public class TestBroadcastActivity extends BroadcastReceiver
{
@Override
 public void onReceive(Context context, Intent intent)
 {
   try
   {
 Bundle bundle = intent.getExtras();
 String message = bundle.getString("alarm_message");
 Intent newIntent = new Intent(context,
TestBroadcastActivity.class);
 newIntent.putExtra("alarm_message", message);
 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 context.startActivity(newIntent);
}
   catch (Exception e)
   {
  e.printStackTrace();
   }
 }
 private void setRecurringAlarm(Context context)
 {
try
{
Calendar updateTime = Calendar.getInstance();
updateTime.setTimeZone(TimeZone.getTimeZone("GMT"));
updateTime.set(Calendar.HOUR_OF_DAY, 11);
updateTime.set(Calendar.MINUTE, 45);
Intent downloader = new Intent(context,
TestBroadcastActivity.class);
PendingIntent recurringDownload =
PendingIntent.getBroadcast(context,0, downloader,
PendingIntent.FLAG_CANCEL_CURRENT);
AlarmManager alarms =
(AlarmManager)getActivity().getSystemService(context.ALARM_SERVICE);
alarms.setInexactRepeating(AlarmManager.RTC_WAKEUP,updateTime.getTimeInMillis(),AlarmManager.INTERVAL_DAY,
recurringDownload);
}
catch (Exception e)
{
System.out.println("Exception-->>"+e);
}
}
}

I have imported all the related packages, but unable to fix the error.
Please help me,
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


[android-developers] Re: Error for getActivity() in alarm manager

2011-08-26 Thread Sumedh

I have resolved the error by

AlarmManager alarms =
(AlarmManager)context.getSystemService(Context.ALARM_SERVICE);

but now at the time of execution getting exception---

08-26 16:29:52.850: ERROR/AndroidRuntime(382): Uncaught handler:
thread main exiting due to uncaught exception
08-26 16:29:53.030: ERROR/AndroidRuntime(382):
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.example.test/
com.example.test.TestBroadcastActivity}: java.lang.ClassCastException:
com.example.test.TestBroadcastActivity
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2417)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.os.Looper.loop(Looper.java:123)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
java.lang.reflect.Method.invokeNative(Native Method)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
java.lang.reflect.Method.invoke(Method.java:521)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
dalvik.system.NativeStart.main(Native Method)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): Caused by:
java.lang.ClassCastException: com.example.test.TestBroadcastActivity
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2409)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): ... 11 more
08-26 16:29:53.250: INFO/Process(66): Sending signal. PID: 382 SIG: 3
08-26 16:29:53.250: INFO/dalvikvm(382): threadid=7: reacting to signal
3
08-26 16:29:53.250: ERROR/dalvikvm(382): Unable to open stack trace
file '/data/anr/traces.txt': Permission denied

what is the exact way to schedule an activity in android?
please help

-- 
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: onLocationChange never get called

2011-08-28 Thread Sumedh
Hi,
I m also trying to do the same application.
And managed to get lat-lon,date ,time. But this code works on
emulator(eclipse)
when i install the same apk on android phone it doesn,t work

my code is:
public class TestBroadcastActivity extends Activity implements
LocationListener
{
private LocationManager myManager;
private LocationListener loc;
private TextView tv;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

tv = (TextView) findViewById(R.id.TextView01);

   myManager =
(LocationManager)this.getSystemService(Context.LOCATION_SERVICE);

myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 3000,
0, locationListener);
}
 LocationListener locationListener = new LocationListener()
{
public void onLocationChanged(Location location)
{
try
{
String s = "";
s += "\tTime: "+location.getTime() + "\n";
s += "\tLatitude:  " + location.getLatitude()  + "\n";
s += "\tLongitude: " + location.getLongitude() + "\n";
s += "\tAccuracy:  " + location.getAccuracy()  + "\n";
tv.setText(s);
}
catch (Exception e)
{
System.out.println("Exception-->"+e);
}
}

public void onStatusChanged(String provider, int status, Bundle
extras) {}
public void onProviderEnabled(String provider) {}
public void onProviderDisabled(String provider) {}

};

public void onLocationChanged(Location location) {}
public void onProviderDisabled(String provider) {}
public void onProviderEnabled(String provider) {}
public void onStatusChanged(String provider, int status, Bundle
extras) {}

}

On Aug 28, 1:38 pm, Bipin Sutariya  wrote:
> OK one change Toast.makeText requires show() method to show toast. I
> added it and still onLocationChange not called.
>
> On Aug 28, 1:32 pm, Bipin Sutariya  wrote:
>
> > Hi,
>
> > I am trying to develop application in which i need current lat/lang.
> > However onLocationChange method never get called.
>
> > Following is my code, and note that i have given all required
> > permission like android.permission.ACCESS_COARSE_LOCATION,
> > android.permission.ACCESS_FINE_LOCATION, android.permission.INTERNET
> > in manifest file. I can see gps icon on status bar that keep blinking
> > to find location, but never get success.
>
> > Can any one please help me on this.
>
> > public class LocationServiceActivity extends Activity implements
> > LocationListener{
> >     /** Called when the activity is first created. */
> >     @Override
> >     public void onCreate(Bundle savedInstanceState) {
> >         super.onCreate(savedInstanceState);
> >         setContentView(R.layout.main);
>
> >         LocationManager lm =
> > (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
>
> >         Boolean isGPSEnabled =
> > lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
> >         Boolean isNetworkEnabled =
> > lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
>
> >         if(isGPSEnabled)
> >         {
> >                 lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 
> > 0,
> > this);
> >         }
> >         else if(isNetworkEnabled)
> >         {
> >                 lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
> > 0, 0, this);
> >         }
> >         else
> >         {
> >                 Toast.makeText(this, "NO SERVICE ENABLED", 5000);
> >         }
>
> >     }
>
> >     public void onLocationChanged(Location location) {
> >         Toast.makeText(this, location.getLatitude()+"---
>
> > >"+location.getLongitude(), 5000);
>
> >     }
> >     public void onProviderDisabled(String provider) {
> >         // TODO Auto-generated method stub
>
> >     }
> >     public void onProviderEnabled(String provider) {
> >         // TODO Auto-generated method stub
>
> >     }
> >     public void onStatusChanged(String provider, int status, Bundle
> > extras) {
> >         // TODO Auto-generated method stub
>
> >     }
>
> > }

-- 
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: onLocationChange never get called

2011-08-28 Thread Sumedh
Hi,
I m also trying to do the same application.
And managed to get lat-lon,date ,time. But this code works on
emulator(eclipse)
when i install the same apk on android phone it doesn,t work

my code is:
public class TestBroadcastActivity extends Activity implements
LocationListener
{
private LocationManager myManager;
private LocationListener loc;
private TextView tv;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

tv = (TextView) findViewById(R.id.TextView01);

   myManager =
(LocationManager)this.getSystemService(Context.LOCATION_SERVICE);

myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 3000,
0, locationListener);
}
 LocationListener locationListener = new LocationListener()
{
public void onLocationChanged(Location location)
{
try
{
String s = "";
s += "\tTime: "+location.getTime() + "\n";
s += "\tLatitude:  " + location.getLatitude()  + "\n";
s += "\tLongitude: " + location.getLongitude() + "\n";
s += "\tAccuracy:  " + location.getAccuracy()  + "\n";
tv.setText(s);
}
catch (Exception e)
{
System.out.println("Exception-->"+e);
}
}

public void onStatusChanged(String provider, int status, Bundle
extras) {}
public void onProviderEnabled(String provider) {}
public void onProviderDisabled(String provider) {}

};

public void onLocationChanged(Location location) {}
public void onProviderDisabled(String provider) {}
public void onProviderEnabled(String provider) {}
public void onStatusChanged(String provider, int status, Bundle
extras) {}

}

On Aug 28, 1:38 pm, Bipin Sutariya  wrote:
> OK one change Toast.makeText requires show() method to show toast. I
> added it and still onLocationChange not called.
>
> On Aug 28, 1:32 pm, Bipin Sutariya  wrote:
>
> > Hi,
>
> > I am trying to develop application in which i need current lat/lang.
> > However onLocationChange method never get called.
>
> > Following is my code, and note that i have given all required
> > permission like android.permission.ACCESS_COARSE_LOCATION,
> > android.permission.ACCESS_FINE_LOCATION, android.permission.INTERNET
> > in manifest file. I can see gps icon on status bar that keep blinking
> > to find location, but never get success.
>
> > Can any one please help me on this.
>
> > public class LocationServiceActivity extends Activity implements
> > LocationListener{
> >     /** Called when the activity is first created. */
> >     @Override
> >     public void onCreate(Bundle savedInstanceState) {
> >         super.onCreate(savedInstanceState);
> >         setContentView(R.layout.main);
>
> >         LocationManager lm =
> > (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
>
> >         Boolean isGPSEnabled =
> > lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
> >         Boolean isNetworkEnabled =
> > lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
>
> >         if(isGPSEnabled)
> >         {
> >                 lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 
> > 0,
> > this);
> >         }
> >         else if(isNetworkEnabled)
> >         {
> >                 lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
> > 0, 0, this);
> >         }
> >         else
> >         {
> >                 Toast.makeText(this, "NO SERVICE ENABLED", 5000);
> >         }
>
> >     }
>
> >     public void onLocationChanged(Location location) {
> >         Toast.makeText(this, location.getLatitude()+"---
>
> > >"+location.getLongitude(), 5000);
>
> >     }
> >     public void onProviderDisabled(String provider) {
> >         // TODO Auto-generated method stub
>
> >     }
> >     public void onProviderEnabled(String provider) {
> >         // TODO Auto-generated method stub
>
> >     }
> >     public void onStatusChanged(String provider, int status, Bundle
> > extras) {
> >         // TODO Auto-generated method stub
>
> >     }
>
> > }

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


Re: [android-developers] how to load correct images i have all size images ldpi hdpi xhdpi xxhdpi

2013-08-27 Thread Sumedh Jiwane
Try refreshing the folders, clean and rebuild.



On Tue, Aug 27, 2013 at 12:24 PM, Amit Mangal
wrote:

> any idea guys ?
>
>
> On Tue, Aug 27, 2013 at 10:50 AM, Amit Mangal  > wrote:
>
>> drawable-hdpi
>> drawable-ldpi
>> drawable-mdpi
>> drawable-xhdpi
>> drawable-xxhdpi
>>
>> All images kept in proper folders but still it is not picking proper
>> images as per screen resolution
>>
>> thanks
>>
>>
>>
>>
>> On Tue, Aug 27, 2013 at 10:42 AM, TreKing  wrote:
>>
>>>
>>> On Mon, Aug 26, 2013 at 11:34 PM, Amit Mangal <
>>> forum.amit.man...@gmail.com> wrote:
>>>
 i create drawable folders for all images and kept all images in folders
>>>
>>>
>>> What folders?
>>>
>>>
>>> -
>>> TreKing  - Chicago
>>> transit tracking app for Android-powered devices
>>>
>>> --
>>> 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 unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-developers+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>  --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Fwd: Android doubt

2013-08-28 Thread Sumedh Jiwane
Nothing is much clear from the description of your problem. I am suspecting
that you are facing the UI issue.
Are you calling logout function in main thread/ui thread? If so replace it
with worker thread. Alternatively you can start a service using
AlarmManager.



On Fri, Aug 23, 2013 at 4:37 PM, Siva Kumar wrote:

>
> Dear All,
>
>
> Im developing android application.The following are the settings details
> android:minSdkVersion="8" & android:targetSdkVersion="17"
> In my application im implement the auto logout after some specific time.
> For eg:Assume auto logout time as 2minutes.IF the application in from or
> background ,If it is idle then after 2 minutes it will successfully logout
> But the problem is if any call is comes means in the middle of my
> application (my application's any screen or any activity is running or is
> in front).At that time if i attend or cut the call means then auto logout
> works fine.
> But if i not do anything (not attend the call nor cut the call) after some
> time call automatically cuts but here my auto logout not works fine.
> All are welcome to give their ideas
>
>
>
>
> --
> *Thanks & Regards,
> SIVAKUMAR.J 
> *
>
>
>
> --
> *Thanks & Regards,
> SIVAKUMAR.J 
> *
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: multicasting in android

2012-02-12 Thread Sumedh Jiwane
Hi Sangram,
It seems from the log that handleDataSource is trying to find some
extension in the URL, like .sdp or .m3u8. Since it is missing it is not
able to play. I suggest you to specify RTSP url with .sdp as extension and
then specify your multicast ports in sdp file. I am just guessing. Let me
know whether it works.

Regards,

Sumedh

On Mon, Feb 13, 2012 at 10:50 AM, sangram  wrote:

> Can someone help with the above query?
>
> regards,
> sangram
>
> On Feb 9, 5:06 pm, sangram  wrote:
> > Hi,
> > We have enabled multicast streaming in one of our machines using VLC
> > server. We use the following URL for streaming the multicast data.
> > rtp://239.1.2.11:5004 & udp://239.1.2.11:1234
> >
> > But when we pass these links to the VideoView or mediaplayer inandroid,
> we get the message as "Sorry, the video can not be played".
> >
> > Is it the case that multicast streaming is not supported inandroid?
> > (Though multicastsocket class is present in library) or are we missing
> > anything?
> > The links play well on the VLC client so we don't think there is any
> > issue in VLC server. We are usingandroidv2.3 for development.
> > We used the "androidsupported Video/audio formats" for encoding.
> > Here is the brief log output:
> >
> > V/PlayerDriver(   95): Completed command PLAYER_SETUP
> > status=PVMFSuccess
> > V/PVPlayer(   95): setDataSource(rtp://239.1.2.11:5004)
> > V/PVPlayer(   95): setVideoSurface(0x55be8)
> > V/PVPlayer(   95): setVideoSurface(0x55b90)
> > V/PVPlayer(   95): prepareAsync
> > V/PVPlayer(   95):   data source = rtp://239.1.2.11:5004
> > V/PlayerDriver(   95): Send player code: 3
> > V/PlayerDriver(   95): handleSetDataSource
> > V/PlayerDriver(   95): handleSetDataSource- scanning for extension
> > V/PlayerDriver(   95): HandleInformationalEvent:
> > PVMFInfoErrorHandlingStart
> > V/PlayerDriver(   95): HandleInformationalEvent: type=26 UNHANDLED
> > W/MediaPlayer( 5687): info/warning (1, 26)
> > V/PlayerDriver(   95): CommandCompleted
> > V/PlayerDriver(   95): Completed command PLAYER_SET_DATA_SOURCE
> > status=PVMFErrNotSupported
> > E/PlayerDriver(   95): Command PLAYER_SET_DATA_SOURCE completed with
> > an error or info PVMFErrNotSupported
> > E/MediaPlayer( 5687): error (1, -4)
> > V/PVPlayer(   95): run_init s=-2147483648, cancelled=0
> > V/PlayerDriver(   95): HandleInformationalEvent:
> > PVMFInfoErrorHandlingComplete
> > W/PlayerDriver(   95): PVMFInfoErrorHandlingComplete
> > I/ActivityManager(  171): Displayed activity
> > com.Videostreamingdemo/.VideoViewDemo: 164 ms (total 164 ms)
> > I/MediaPlayer( 5687): Info (1,26)
> > E/MediaPlayer( 5687): Error (1,-4)
> > D/VideoView( 5687): Error: 1,-4
> >
> > Regards,
> > Sangram
>
> --
> 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

Re: [android-developers] installing APK without eclipse/android SDK

2012-02-13 Thread Sumedh Jiwane
You might have not done the release build.

On Mon, Feb 13, 2012 at 3:23 PM, fei ji  wrote:

> Store this apk to sd card. Then using some apps like EsExplore to open it
> then android will install it automatically.
>
> On Mon, Feb 13, 2012 at 2:30 AM, John Goche wrote:
>
>> Hello,
>>
>> I would like to send my APK to someone by email so that they
>> may install it using WIndows Vista. I have searched for info on
>> how they can install the .apk but only found a pointer to downloading
>> the Astro file manager and installing from there after copying the apk
>> to the phone's file system eg. via usb. But when the application is
>> clicked on the message is: "the application is not installed". The
>> phone is a Samsung Galaxy S Plus. Any ideas? (I have already enabled
>> USB debugging and installation of non market apps in the settings).
>> Installing to the phone via eclipse works, but I want to be able to do
>> this from the phone's PC which does not have eclipse.
>>
>> I would like to be able to just compile the Dalvik APK in eclipse and
>> send it via email for the user to install it from windows vista.
>>
>> Any ideas?
>>
>> Thanks,
>>
>> JG
>>
>> --
>> 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
>

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

Re: [android-developers] Extracting AMR data from RTP payload

2012-02-13 Thread Sumedh Jiwane
RTP describes different payload format for different codecs. You can study
the RTP payload format for AMR codec and retrieve the data. You can use
available RTP de-packetizer if you are using any multimedia framework.

Regards,
Sumedh

On Mon, Feb 13, 2012 at 8:34 PM, NITIN  wrote:

> Hi
>
> I ave captured a pcap form my android device on Wireshark. Now, I have
> the RTP payload having the AMR content.
>
> I have extracted the raw RTP packets and now I want to convert that
> raw data into the AMR file which can be played on any player.
>
> Just by adding the Header and magic number is not enough to do that.
>
> Do anybody have idea what is the procedure to do it or is there any
> library or tool which is capable of doing it.
>
> Thanks
> Nitin
>
> --
> 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

Re: [android-developers] Which OS is more preferable for Android apps, middleware,source/OEM level development.

2011-06-24 Thread Sumedh Jiwane
I would suggest to use Linux (Ubuntu) in your case. On windows if you want
to deploy/test application on different devices you need to download
different OEM USB drivers which is painful.

P.S. I am developing on windows XP.

On Fri, Jun 24, 2011 at 6:34 AM, Nainala Shrinivas wrote:

> Hi,
>
> Could you any one give some clarity for Android development on which
> OS is more preferable?
>
> I am planning to buy new PC for android development for all the
> levels, like Apps, Middle level source modifications, Even we want to
> create own image.
>
> Can we do all the development on MacOS and Ubuntu. Which one more
> suggestible and compatible. Please suggest me :)
>
> Thanks for you help in advance.
>
> BR
> Srinivas
>
> --
> 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

Re: [android-developers] Http Live Streaming

2011-10-12 Thread Sumedh Jiwane
Simple way to test HLS is to type the HLS link on web-browser and check
whether it plays. Normally HLS link ends with .m3u8 extension.
Also you can check whether link is up or not by running it on VLC or
Quicktime player.

Regards,

Sumedh

On Wed, Oct 12, 2011 at 5:29 PM, bhargavi  wrote:

> HI, i have found in net that Honey comb supports Http Live
> Streaming.Has any one tried on this, how to test the HLS on Honey
> Comb,Please Help me out how to test the HLS,
>
> Thanks in Advance,
> Bhargavi.
>
> --
> 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

Re: [android-developers] Re: HTTP Live Streaming for MP4, 3gp video files in Android

2011-10-19 Thread Sumedh Jiwane
Hinting MP4 simply adds the Hinting track to MP4 files for progressive
download. This is helpful if you want to stream file. Hinting tracks are
additional tracks for quick access to data. Check the android document for
audio/video codec supported and match them against the file that you are
playing.

On Wed, Oct 19, 2011 at 4:49 PM, Mark Murphy wrote:

> On Wed, Oct 19, 2011 at 4:15 AM, Shajahan  wrote:
> > So, my question is there any limit on the size/length of the video
> > file like say it works for length 1min or 2mins tracks and those of
> > greater than this length doesn't work.
>
> Not usually.
>
> > what is the MOOV and mdat atoms ?? what is the difference ?? how to
> > recognize it ?? If someone has some good site links please share.
>
> This is part of MP4 and has nothing to do with Android.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android 3.1 Programming Books: http://commonsware.com/books
>
> --
> 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

Re: [android-developers] Re: Force Close Issue

2011-08-11 Thread Sumedh Jiwane
The log is generally what you what you seen in logcat console while
debugging. But here is the catch since it happens when you are moving and
you can't debug at that time, you can you Logger application available from
market. It requires SD/micro SD card to save the logs. You can also choose
to email if you have synched the account.

On Fri, Aug 12, 2011 at 10:10 AM, Spica  wrote:

> This my first android application so i am not sure what log i need to
> attach...
>
> On Aug 12, 12:21 am, Nick Risaro  wrote:
> > That's so sad :(
> >
> > Maybe if you attach some logs we can help you and stop being sad.
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Aug 12, 2011 at 1:15 AM, Spica  wrote:
> > > I am developing location based application which uses phone's gps. It
> > > works fine on my android device when i am not moving but as soon as i
> > > start moving my application either freezes or error out with option of
> > > "Force close". This application is also consuming web service to send
> > > location to the server.
> >
> > > --
> > > 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
>

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

Re: [android-developers] Need ideas on encrypting h.264 videos on Android

2011-08-12 Thread Sumedh Jiwane
actually not sure what do you want to do. can you be elaborate more. Do you
want to play local file or remote file. Do you want to stream or download
and play?


On Fri, Aug 12, 2011 at 8:28 AM, Peter Taps  wrote:

> Folks,
>
> Our application requires that a H.264 video be kept on the disk in an
> encrypted format. One should be able to play this video only through our
> application.
>
> I am seeking ideas on the best way to achieve this.
>
> I looked at VideoView class. Looks like it can only take a file, HTTP or
> RTSP uri. One thought I had was to implement a RTSP server on the device as
> part of our application but that may be an overkill.
>
> I would appreciate your thought..
>
> Thank you in advance for your help.
>
> Best regards,
> Peter
>
> --
> 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