[android-developers] Connect Device to PC through USB

2009-08-14 Thread Zeeshan Khan
Hi,
   Is it possible to connect to PC through USB from android application.

   Or is it possible by any other way.
   I want to connect to it to transfer data(video)

Regards,
Zeeshan

--~--~-~--~~~---~--~~
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: Connect Device to PC through USB

2009-08-14 Thread Zeeshan Khan
Thanks for reply,

Ok so i think there is no way to develop an application with feature which
can connect to PC(without any individual configuration with PC as it would
not be feasible) .

On 8/15/09, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote:


 If you want to use the USB as a ethernet network interface then it is
 not supported.

 You have to port the USB network support.

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 14, 10:05 am, Chris Stratton cs07...@gmail.com wrote:
  On Aug 14, 8:23 am, Zeeshan Khan zeeshanno...@gmail.com wrote:
 
   Hi,
  Is it possible to connect to PC through USB from android
 application.
 
  Or is it possible by any other way.
  I want to connect to it to transfer data(video)
 
  If you have USB debugging turned on, you can use the ADB program on
  the PC to push or pull files, install applications... and you can also
  forward a tcp port from the pc to the device, and send arbitrary data
  between applications over that.  Look in the SDK docs about ADB.
  Presumably the relevant functionality from the ADB tool could be
  duplicated in some other PC application.
 
  I don't know if android supports means of using the USB when debugging
  is not enabled, other than enabling USB mass storage which is find for
  dumping files onto the device but not really usable by applications
  themselves.
 


--~--~-~--~~~---~--~~
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] Read Https page

2009-05-18 Thread Zeeshan Khan
HI,

I wanna to read a web page in android, my server is tomcat where I am using
.keystore to run tomcat on HTTPS. When I tried to read page using: *new
BufferedReader(new InputStreamReader(new URL(
https://192.168.1.6:8443/TestSSL.xml;).openStream()))* got following
exception:
*javax.net.ssl.SSLException: Not trusted server certificate*.


Any help will be appreciated.
Is it possible to add server .keystore file in android app?
Or any other method to read https web page? *:(*

--~--~-~--~~~---~--~~
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] use long field in sqlite

2009-05-06 Thread Zeeshan Khan

Hi,

I want to store long value in database ( current time millis) ,
how to store it

Please reply soon. Thank you

Regards
zeeshan
--~--~-~--~~~---~--~~
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: use long field in sqlite

2009-05-06 Thread Zeeshan Khan
Thanks Mark  for your reply,
 i will try what you told,
 For the timing i have stored it in Text field . but will change if
above works
Regards,
Zeeshan

On Wed, May 6, 2009 at 6:41 PM, Mark Murphy mmur...@commonsware.com wrote:


 Zeeshan Khan wrote:
  Hi,
 
  I want to store long value in database ( current time millis) ,
  how to store it
 
  Please reply soon. Thank you

 Use an INTEGER column, which will handle long values.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

 


--~--~-~--~~~---~--~~
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] Old value in bundle in BroadcastReceiver

2009-05-05 Thread Zeeshan Khan

Hello ,
  I have used AlarmManager to schedule my sms . and in the intent i
add value of destination and message content in the bundle and put the
bundle in the intent


Bundle bundle = new Bundle();
bundle.putString(DESTINATION, destination);
bundle.putString(CONTENT,content);

intent.putExtras(bundle);

PendingIntent sender = PendingIntent.getBroadcast(SmsClass.this,
0, intent, 0);
But problem arises when i use teh broadcast receiver second time and
this time it shows the old bundle values

I use the value in Broadcast receiver but after first use it always
shows old values, Can anybody help , can i clear the old bundle or new
instance...
public class OneShotAlarm extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{

 Bundle bundle = intent.getExtras();

String destination = bundle.getString(SMSproject.DESTINATION);

String content = bundle.getString(SMSproject.CONTENT);
}
--~--~-~--~~~---~--~~
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: Problem with Camera and layout orientation

2009-04-16 Thread Zeeshan Khan
Hi ,
  I am facing the same problem of 90 degree rotation
  can any one tell how to force the activity so that it will be displayed in
landscape view

On Sun, Apr 12, 2009 at 2:55 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:


 Put the other views in another (sub)activity. I don't know your
 application and can't judge if this is possible for your app, but this
 would save you a lot of hassle.

 On Apr 11, 3:49 pm, mobilekid mobilek...@googlemail.com wrote:
  Yes, saddly that's the reality at the moment.
 
  Yet I can't afford declaring my camera activity in 'landscape' from
  the manifest as I need to display other views in the same activity in
  portait. I guess the only hack here is to extend the views and rotate
  them -90 degrees... but I don't think I will go that far. It's funny
  how they haven't taken care of that with the first release...
 
 
 
   The camera(-surface) only supports landscape view. As Mark said, i too
   believe they're working on this in the new release.
 
   But you can set your camera-activity to 'landscape' in your manifest
   file, and set all other activities in your app to any other
   orientation (or the same orientation).- 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] Re: How to create a file on Android System?

2009-03-20 Thread Zeeshan Khan
You can create on data/data/app - package/






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