[android-developers] Error in code java.lang.NoClassDefFoundError: com.google.gdata.data.media.MediaSource.

2013-02-28 Thread Milind
Dear All,

I have following error while running my Android code to connect Picasa web 
album.

E/AndroidRuntime(4008): FATAL EXCEPTION: main
E/AndroidRuntime(4008): java.lang.ExceptionInInitializerError
.
.
.
E/AndroidRuntime(4008): Caused by: java.lang.NoClassDefFoundError: 
com.google.gdata.data.media.MediaSource
E/AndroidRuntime(4008): at 
com.google.gdata.wireformats.input.media.MediaParser.init(MediaParser.java:39)
E/AndroidRuntime(4008): at 
com.google.gdata.client.media.MediaService.clinit(MediaService.java:107)

I am just initializing instance of PicasawebService and above error is 
there.

I have following library added in libs directory along with default 
android-support-v4.jar:

   1. gdata-client-1.0.jar
   2. gdata-client-meta-1.0.jar
   3. gdata-core-1.0.jar
   4. gdata-media-1.0.jar
   5. gdata-photos-2.0.jar
   6. gdata-photos-meta-2.0.jar
   7. guava-14.0-rc3.jar
   8. jsr305.jar
   9. mail.jar
   10. servlet-api-2.3.jar
   
Thank you for reply.

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




[android-developers] Re: DatePicker

2013-02-28 Thread skink


Arun Kumar K wrote:
 Hi Guys,

 I want to show only year and month in datepicker how can i do that one


you can't do that unless you write your own picker

pskink

-- 
-- 
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] USB host

2013-02-28 Thread Marta Ribeiro
I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

Any help you can provide I would appreciate!

On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or plain 
 USB) is used?
 I played around with some RS232 devices. Perhaps I could find the example 
 again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com javascript:

 I have the cables needed. I even installed an usb host app and it worked 
 correctly. now i'm trying to make my own application and it's not working, 
 so it must be because of the code. Although i am writing it exactly as it 
 advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level you 
 are I would have checked first wether the Samsung Galaxy S3 has a USB OTG 
 sw support or not.You can try this by inserting a USB keyboard into it or a 
 Mouse and see whether it is working.
 I think it has : 
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is 

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro martacunh...@gmail.com*
 * wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using USB host 
 and a OTG cable. I'm at the beginning phase just trying to write code to 
 detect the sensor was attached  but it's not working. Can someone take a 
 look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**activity_microstrain);
  find_device = (EditText)findViewById(R.id.**find_device);
   UsbManager manager = (UsbManager)getSystemService(**
 Context.USB_SERVICE); 

 //connect(); 

 HashMapString, UsbDevice deviceList = manager.getDeviceList();
 IteratorUsbDevice deviceIterator = 
 deviceList.values().iterator()**;

  while(deviceIterator.hasNext()**){

 UsbDevice device = deviceIterator.next();
 Toast.makeText(this,Value of device : 
 +device.getDeviceName(), Toast.LENGTH_LONG).show();

 }


 %% manifest %%%

 ?xml version=1.0 encoding=utf-8?
 manifest 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
  
   package=com.example.**microstrain
 android:versionCode=1
 android:versionName=1.0 
 android:orientation=vertical**

 uses-feature android:name=android.**hardware.usb.host/
 
 uses-sdk
 android:minSdkVersion=16
 android:targetSdkVersion=16 /
 
 application
 android:allowBackup=true
 android:icon=@drawable/ic_**launcher
 android:label=@string/app_**name
 android:theme=@style/**AppTheme 
 activity
 android:name=com.example.**microstrain.MICROSTRAIN
 android:label=@string/app_**name 
 intent-filter
 action android:name=android.intent.**action.MAIN /
 category android:name=android.intent.**
 category.DEFAULT/
 category 
 android:name=android.intent.**category.LAUNCHER 
 /
 /intent-filter
 intent-filter
 action android:name=android.**hardware.usb.action.USB_**
 DEVICE_ATTACHED/
 /intent-filter
  meta-data android:name=android.**
 hardware.usb.action.USB_**DEVICE_ATTACHED  
 android:resource=@xml/**device_filter 
 /
 /activity
uses-library android:name=android.test.**runner /
 /application
 
 instrumentation android:name=android.test.**
 InstrumentationTestRunner
 android:targetPackage=com.**example.microstrain
  android:label=microstrain /

 /manifest

 %   xml/device_filter.xml %

 resources

 usb-device vendor-id=199b product-id=3d65/

 /resources

 %%

  I appreciate all the help. 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-d...@**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=enhttp://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_outhttps://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-d...@googlegroups.comjavascript:
 To 

[android-developers] Hearing Aid

2013-02-28 Thread Shaik Shabana
Hi,

I want to work on Smart Hearing aid, wherein I can use the mobile as my 
hearing aid.
Pls let me know how to start 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.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] USB host

2013-02-28 Thread al
I would first check the hardware/cable etc. e.g. with the app USB Device 
Info 
https://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

If you can see your device in the android tab, then you are right and it's 
a software issue. 

I'm not sure about the device_filter.xml. Do you have to specifiy the 
values in hex or decimal? The docu uses e.g. class=255 and does not use a 
hex-only digit. That looks to me like it could be decimal?


Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or plain 
 USB) is used?
 I played around with some RS232 devices. Perhaps I could find the example 
 again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it worked 
 correctly. now i'm trying to make my own application and it's not working, 
 so it must be because of the code. Although i am writing it exactly as it 
 advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level you 
 are I would have checked first wether the Samsung Galaxy S3 has a USB OTG 
 sw support or not.You can try this by inserting a USB keyboard into it or 
 a 
 Mouse and see whether it is working.
 I think it has : 
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is 

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro martacunh...@gmail.com
 ** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using USB 
 host and a OTG cable. I'm at the beginning phase just trying to write 
 code 
 to detect the sensor was attached  but it's not working. Can someone take 
 a 
 look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**activity_microstrain);
  find_device = (EditText)findViewById(R.id.**find_device);
   UsbManager manager = (UsbManager)getSystemService(**
 Context.USB_SERVICE); 

 //connect(); 

 HashMapString, UsbDevice deviceList = 
 manager.getDeviceList();
 IteratorUsbDevice deviceIterator = 
 deviceList.values().iterator()**;

  while(deviceIterator.hasNext()**){

 UsbDevice device = deviceIterator.next();
 Toast.makeText(this,Value of device : 
 +device.getDeviceName(), Toast.LENGTH_LONG).show();

 }


 %% manifest %%%

 ?xml version=1.0 encoding=utf-8?
 manifest 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
  
   package=com.example.**microstrain
 android:versionCode=1
 android:versionName=1.0 
 android:orientation=vertical**

 uses-feature android:name=android.**hardware.usb.host/
 
 uses-sdk
 android:minSdkVersion=16
 android:targetSdkVersion=16 /
 
 application
 android:allowBackup=true
 android:icon=@drawable/ic_**launcher
 android:label=@string/app_**name
 android:theme=@style/**AppTheme 
 activity
 android:name=com.example.**microstrain.MICROSTRAIN
 android:label=@string/app_**name 
 intent-filter
 action android:name=android.intent.**action.MAIN /
 category android:name=android.intent.**
 category.DEFAULT/
 category 
 android:name=android.intent.**category.LAUNCHER 
 /
 /intent-filter
 intent-filter
 action android:name=android.**hardware.usb.action.USB_**
 DEVICE_ATTACHED/
 /intent-filter
  meta-data android:name=android.**
 hardware.usb.action.USB_**DEVICE_ATTACHED  
 android:resource=@xml/**device_filter 
 /
 /activity
uses-library android:name=android.test.**runner /
 /application
 
 instrumentation android:name=android.test.**
 InstrumentationTestRunner
 android:targetPackage=com.**example.microstrain
  android:label=microstrain /

 /manifest

 %   xml/device_filter.xml %

 resources

 usb-device vendor-id=199b product-id=3d65/

 /resources

 %%

  I appreciate all the help. 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-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message 

[android-developers] Android security and file lock.

2013-02-28 Thread Numair Qadir


I want to create a application in android which can put a lock(password) on 
Home Screen, Application, Gallery and Files.

For home screen, I can make a home screen widget that will launch on device 
boot.

For Apps I can use following solution, Android Lock 
Appshttp://stackoverflow.com/questions/7248080/android-lock-apps

For Files I can do following things,
1 - Encrypt the files.
2 - Make use of FileObserver.
3 - Move files to application directory.(Which is not visible to other apps 
if device is not rooted)

Locking image files will left Gallery with no images to display. (Thus 
locked logically)

My question is:
What should I be doing exactly?

-- 
-- 
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] Detect activity was started by the Android launcher

2013-02-28 Thread dashman
Any system launcher is fine.

What I'm trying to solve is the piracy issue.

i.e. someone just wrapping my app and launching it.

i want to disable that.


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




[android-developers] Android Clickable Images inside TextView

2013-02-28 Thread Mustafa Musa ÜLKER


Hello,

How can I create clickable images inside TextView? I've searched 
ClickableSpan but how can I catch different images' click events?

(I need to show contents which contains images and texts in different 
position, the content doesn't have a template like structure, so I cannot 
design a layout for this purpose. So I need some kind of dynamic layout 
organization which can contain texts and images)

My layout will be like;

https://lh5.googleusercontent.com/-l58PKjZpN54/US9brOUZESI/CAk/9xcBVeXvqjQ/s1600/Screen+Shot+2013-02-28+at+2.32.17+PM.png

Possible solutions can be;


   1. Webview? But it will be heavy. Because there will be more than 100 
   content pages.
   2. Html.fromHtml() ? It supports images but it doesn't supports click 
   events for images.
   3. Anything else? Your advice?

Thanks,

Musa

P.S: I also asked the question in 
Stackoverflow: 
http://stackoverflow.com/questions/15136520/android-clickable-images-inside-textview

-- 
-- 
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] USB host

2013-02-28 Thread Marta Ribeiro
Yes I can see my device. 

regarding the device file, it is in decimal, which I've head is the correct 
way. I've check the values with the output of the application and after a 
conversion hexadecimal to decimal it's a match.

Right now,I'm starting to thing the issue may be the usb.host permission. 
Do you now if i'm missing something?
 
On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB Device 
 Info 
 https://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right and it's 
 a software issue. 

 I'm not sure about the device_filter.xml. Do you have to specifiy the 
 values in hex or decimal? The docu uses e.g. class=255 and does not use a 
 hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or plain 
 USB) is used?
 I played around with some RS232 devices. Perhaps I could find the 
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it 
 worked correctly. now i'm trying to make my own application and it's not 
 working, so it must be because of the code. Although i am writing it 
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level you 
 are I would have checked first wether the Samsung Galaxy S3 has a USB OTG 
 sw support or not.You can try this by inserting a USB keyboard into it or 
 a 
 Mouse and see whether it is working.
 I think it has : 
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is 

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using USB 
 host and a OTG cable. I'm at the beginning phase just trying to write 
 code 
 to detect the sensor was attached  but it's not working. Can someone 
 take a 
 look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**activity_microstrain);
  find_device = (EditText)findViewById(R.id.**find_device);
   UsbManager manager = (UsbManager)getSystemService(**
 Context.USB_SERVICE); 

 //connect(); 

 HashMapString, UsbDevice deviceList = 
 manager.getDeviceList();
 IteratorUsbDevice deviceIterator = 
 deviceList.values().iterator()**;

  while(deviceIterator.hasNext()**){

 UsbDevice device = deviceIterator.next();
 Toast.makeText(this,Value of device : 
 +device.getDeviceName(), Toast.LENGTH_LONG).show();

 }


 %% manifest %%%

 ?xml version=1.0 encoding=utf-8?
 manifest 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
  
   package=com.example.**microstrain
 android:versionCode=1
 android:versionName=1.0 
 android:orientation=vertical**

 uses-feature android:name=android.**hardware.usb.host/
 
 uses-sdk
 android:minSdkVersion=16
 android:targetSdkVersion=16 /
 
 application
 android:allowBackup=true
 android:icon=@drawable/ic_**launcher
 android:label=@string/app_**name
 android:theme=@style/**AppTheme 
 activity
 android:name=com.example.**microstrain.MICROSTRAIN
 android:label=@string/app_**name 
 intent-filter
 action android:name=android.intent.**action.MAIN 
 /
 category android:name=android.intent.**
 category.DEFAULT/
 category 
 android:name=android.intent.**category.LAUNCHER 
 /
 /intent-filter
 intent-filter
 action android:name=android.**hardware.usb.action.USB_**
 DEVICE_ATTACHED/
 /intent-filter
  meta-data android:name=android.**
 hardware.usb.action.USB_**DEVICE_ATTACHED  
 android:resource=@xml/**device_filter 
 /
 /activity
uses-library android:name=android.test.**runner /
 /application
 
 instrumentation android:name=android.test.**
 InstrumentationTestRunner
 android:targetPackage=com.**example.microstrain
  android:label=microstrain /

 /manifest

 %   xml/device_filter.xml %

 resources

 usb-device vendor-id=199b product-id=3d65/

 /resources

 %%

  I appreciate all the help. Thanks in advance! 

 -- 
 -- 
 You received this message because you are 

Re: [android-developers] USB host

2013-02-28 Thread Marta Ribeiro
Additionally, I just noticed something, the application presents two tabs: 
Android plus Linux. According to android i have no devices connected. 
Whereas in the linux tab i find my device. Is this indicative of something? 

On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device. 

 regarding the device file, it is in decimal, which I've head is the 
 correct way. I've check the values with the output of the application and 
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host permission. 
 Do you now if i'm missing something?
  
 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB Device 
 Info 
 https://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right and 
 it's a software issue. 

 I'm not sure about the device_filter.xml. Do you have to specifiy the 
 values in hex or decimal? The docu uses e.g. class=255 and does not use a 
 hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or 
 plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find the 
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it 
 worked correctly. now i'm trying to make my own application and it's not 
 working, so it must be because of the code. Although i am writing it 
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level you 
 are I would have checked first wether the Samsung Galaxy S3 has a USB 
 OTG 
 sw support or not.You can try this by inserting a USB keyboard into it 
 or a 
 Mouse and see whether it is working.
 I think it has : 
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is 

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using USB 
 host and a OTG cable. I'm at the beginning phase just trying to write 
 code 
 to detect the sensor was attached  but it's not working. Can someone 
 take a 
 look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**activity_microstrain);
  find_device = (EditText)findViewById(R.id.**find_device);
   UsbManager manager = (UsbManager)getSystemService(**
 Context.USB_SERVICE); 

 //connect(); 

 HashMapString, UsbDevice deviceList = 
 manager.getDeviceList();
 IteratorUsbDevice deviceIterator = 
 deviceList.values().iterator()**;

  while(deviceIterator.hasNext()**){

 UsbDevice device = deviceIterator.next();
 Toast.makeText(this,Value of device : 
 +device.getDeviceName(), Toast.LENGTH_LONG).show();

 }


 %% manifest %%%

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.**
 android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
  
   package=com.example.**microstrain
 android:versionCode=1
 android:versionName=1.0 
 android:orientation=vertical**

 uses-feature android:name=android.**hardware.usb.host/
 
 uses-sdk
 android:minSdkVersion=16
 android:targetSdkVersion=16 /
 
 application
 android:allowBackup=true
 android:icon=@drawable/ic_**launcher
 android:label=@string/app_**name
 android:theme=@style/**AppTheme 
 activity
 android:name=com.example.**microstrain.MICROSTRAIN
 android:label=@string/app_**name 
 intent-filter
 action android:name=android.intent.**action.MAIN 
 /
 category android:name=android.intent.**
 category.DEFAULT/
 category 
 android:name=android.intent.**category.LAUNCHER 
 /
 /intent-filter
 intent-filter
 action android:name=android.**hardware.usb.action.USB_**
 DEVICE_ATTACHED/
 /intent-filter
  meta-data android:name=android.**
 hardware.usb.action.USB_**DEVICE_ATTACHED  android:resource=@xml/*
 *device_filter /
 /activity
uses-library android:name=android.test.**runner /
 /application
 
 instrumentation android:name=android.test.**
 InstrumentationTestRunner
 

Re: [android-developers] Detect activity was started by the Android launcher

2013-02-28 Thread Mark Murphy
On Thu, Feb 28, 2013 at 7:46 AM, dashman erjdri...@gmail.com wrote:
 Any system launcher is fine.

What about users who download their own home screen app?

What about users who click on an entry in the recent-tasks list? Or
click on one of your notifications? Or click on one of your app
widgets?

 i.e. someone just wrapping my app and launching it.

 i want to disable that.

First, anyone who can wrap your app can disable your check.

Second, wrapping is sometimes done intentionally (e.g., by Amazon for
their AppStore DRM, IIRC).

Third, the way to check for wrappers is to confirm that your app's
package name is what you expect and that your app's signing key
matches what you expect. See http://stackoverflow.com/a/6203440/115145
for the latter. Again, all of these checks can be deactivated if
somebody puts their mind to them.

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

_The Busy Coder's Guide to Android Development_ Version 4.6 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
--- 
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.




[android-developers] Re: Android AutocompletTextview to have some prefix and then suggest

2013-02-28 Thread bob
It is done like this:

 public class CountriesActivity extends Activity {
 protected void onCreate(Bundle icicle) {
 super.onCreate(icicle);
 setContentView(R.layout.countries);

 ArrayAdapterString adapter = new ArrayAdapterString(this,
 android.R.layout.simple_dropdown_item_1line, COUNTRIES);
 AutoCompleteTextView textView = (AutoCompleteTextView)
 findViewById(R.id.countries_list);
 textView.setAdapter(adapter);
 }

 private static final String[] COUNTRIES = new String[] {
 Belgium, France, Italy, Germany, Spain
 };
 }

*[sic]*



On Wednesday, February 27, 2013 3:30:57 AM UTC-6, djhacktor wrote:

 How  to send specific value as filter form whole text enter ?

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




[android-developers] Re: DatePicker

2013-02-28 Thread bob
 

I would say there are two viable options:


1. Subclass DatePicker


2. Take the source of DatePicker and rename the class MyDatePicker and 
modify it as needed.



On Thursday, February 28, 2013 12:27:35 AM UTC-6, Arun Kumar K wrote:

 Hi Guys,

 I want to show only year and month in datepicker how can i do that one

 -- 
 *Thanks  Regards*
 *K.Arun Kumar*
  
  

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




[android-developers] Re: http in Android

2013-02-28 Thread bob
I like to use *java.net.Socket* (for http)

It might be too low-level for some folks though.




On Wednesday, February 27, 2013 8:17:50 PM UTC-6, dashman wrote:


 What's the recommended api for doing http/https in Android.

 I think there's 2-3 of 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 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.




[android-developers] two activities running at same time

2013-02-28 Thread g...@deanblakely.com
I have an app with a main activity that has no visible interface 
(android:theme=@android:style/Theme.NoDisplay).  The app is  started by 
receipt of an SMS message in a BroadCast activity which kicks off another 
activity (also no GUI) that does work and then sends an SMS message.  It 
works very well; actually better than I had expected because it runs even 
if other apps are running a foreground activity.
 
Now I'm familiar with the Android Activity Lifecycle but I guess this means 
that Android (I'm using 2.33) can run many activities at once.  Even 
when I'm running a very active GPS tracking application that is writing 
layers on a mapview, my no-display app starts does his work and sends the 
results out on an SMS message.  The tracking app that was running never 
even blinked.
 
I don't have any problem (at least not programming related), I'm just 
curious why this works.
Regards,
Gary
 
 

-- 
-- 
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] Detect activity was started by the Android launcher

2013-02-28 Thread Kristopher Micinski
Mark's right, this is a complete nonsolution to the piracy issue.

Kris

On Thu, Feb 28, 2013 at 7:46 AM, dashman erjdri...@gmail.com wrote:
 Any system launcher is fine.

 What I'm trying to solve is the piracy issue.

 i.e. someone just wrapping my app and launching it.

 i want to disable that.



 --
 --
 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: http in Android

2013-02-28 Thread Kristopher Micinski
That doesn't really make sense if you want to send well formed
requests to web services.  If you do choose to do this, you'll be
duplicating the effort of a well tested performance tuned http
clients...

Kris

On Thu, Feb 28, 2013 at 10:14 AM, bob b...@coolfone.comze.com wrote:
 I like to use java.net.Socket (for http)

 It might be too low-level for some folks though.




 On Wednesday, February 27, 2013 8:17:50 PM UTC-6, dashman wrote:


 What's the recommended api for doing http/https in Android.

 I think there's 2-3 of 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 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: http in Android

2013-02-28 Thread G. Blake Meike
oh bob.  how very butch.

The last para of the posting that TreKing cites gives the answer: in old 
versions of Android, the Apache libs worked better.  In post HC, the Java 
ones work better.  If you happen to be using Android Spring, it chooses the 
correct implementation based on runtime version.

-blake


On Thursday, February 28, 2013 9:17:25 AM UTC-8, Kristopher Micinski wrote:

 That doesn't really make sense if you want to send well formed 
 requests to web services.  If you do choose to do this, you'll be 
 duplicating the effort of a well tested performance tuned http 
 clients... 

 Kris 

 On Thu, Feb 28, 2013 at 10:14 AM, bob b...@coolfone.comze.comjavascript: 
 wrote: 
  I like to use java.net.Socket (for http) 
  
  It might be too low-level for some folks though. 
  
  
  
  
  On Wednesday, February 27, 2013 8:17:50 PM UTC-6, dashman wrote: 
  
  
  What's the recommended api for doing http/https in Android. 
  
  I think there's 2-3 of 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 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.




[android-developers] Cloning an AVD on the command line

2013-02-28 Thread Lindley
I want to create a new AVD on the command line based off of an existing 
AVD. It doesn't necessarily need the exactly same user data etc but at 
least the same target settings and display resolution etc.

Previously, I had just done a cp -r on the source AVD and this worked fine. 
After some recent updates, I have discovered that doing this now causes a 
NullPointerException in a lot of operations such as android list avds.

I see there is an android create avd command but it requires a target ID. 
I'm not sure how I can get that information out of the existing avd in 
order to format the command correctly. Any advice?

-- 
-- 
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] USB host

2013-02-28 Thread Tux Leonard
Could you tell us what sensor and what RS232-USB device you are using?
A scrennshot of the output of your app could also help.

Roy

2013/2/28 Marta Ribeiro martacunharibeir...@gmail.com

 Additionally, I just noticed something, the application presents two tabs:
 Android plus Linux. According to android i have no devices connected.
 Whereas in the linux tab i find my device. Is this indicative of something?


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device.

 regarding the device file, it is in decimal, which I've head is the
 correct way. I've check the values with the output of the application and
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host permission.
 Do you now if i'm missing something?

 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB
 Device Info https://play.google.com/store/**apps/details?id=aws.apps.**
 usbDeviceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right and
 it's a software issue.

 I'm not sure about the device_filter.xml. Do you have to specifiy the
 values in hex or decimal? The docu uses e.g. class=255 and does not use a
 hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or
 plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find the
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it
 worked correctly. now i'm trying to make my own application and it's not
 working, so it must be because of the code. Although i am writing it
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level
 you are I would have checked first wether the Samsung Galaxy S3 has a 
 USB
 OTG sw support or not.You can try this by inserting a USB keyboard into 
 it
 or a Mouse and see whether it is working.
 I think it has :
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using USB
 host and a OTG cable. I'm at the beginning phase just trying to write 
 code
 to detect the sensor was attached  but it's not working. Can someone 
 take a
 look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceSt**ate);
 setContentView(R.layout.**activi**ty_microstrain);
  find_device = (EditText)findViewById(R.id.**fi**nd_device);
   UsbManager manager = (UsbManager)getSystemService(**C**
 ontext.USB_SERVICE);

 //connect();

 HashMapString, UsbDevice deviceList =
 manager.getDeviceList();
 IteratorUsbDevice deviceIterator =
 deviceList.values().iterator();

  while(deviceIterator.hasNext()){

 UsbDevice device = deviceIterator.next();
 Toast.makeText(this,Value of device :
 +device.getDeviceName(), Toast.LENGTH_LONG).show();

 }


 %% manifest %%%

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.
 android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
   package=com.example.**microstra**in
 android:versionCode=1
 android:versionName=1.0
 android:orientation=vertical

 uses-feature android:name=android.**hardware**.usb.host/

 uses-sdk
 android:minSdkVersion=16
 android:targetSdkVersion=16 /

 application
 android:allowBackup=true
 android:icon=@drawable/ic_**lau**ncher
 android:label=@string/app_**nam**e
 android:theme=@style/**AppTheme** 
 activity
 android:name=com.example.**micr**ostrain.MICROSTRAIN
 android:label=@string/app_**nam**e 
 intent-filter
 action android:name=android.intent.**a**ction.MAIN
 /
 category android:name=android.intent.**c**
 ategory.DEFAULT/
 category 
 android:name=android.intent.**c**ategory.LAUNCHER
 /
 /intent-filter
 intent-filter
 action android:name=android.**hardware**.usb.action.USB_**DEVICE_
 **ATTACHED/
 /intent-filter
  meta-data android:name=android.**hardware**
 .usb.action.USB_**DEVICE_**ATTACHED  

Re: [android-developers] Detect activity was started by the Android launcher

2013-02-28 Thread dashman
ok - message received.

on to other things...

On Thursday, February 28, 2013 11:25:47 AM UTC-5, Kristopher Micinski wrote:

 Mark's right, this is a complete nonsolution to the piracy issue. 

 Kris 

 On Thu, Feb 28, 2013 at 7:46 AM, dashman erjd...@gmail.com javascript: 
 wrote: 
  Any system launcher is fine. 
  
  What I'm trying to solve is the piracy issue. 
  
  i.e. someone just wrapping my app and launching it. 
  
  i want to disable that. 
  
  
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 javascript:. 
  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.




[android-developers] Adopting Android 4.0+ ONLY app development policy with an app currently supporting 2.1+?

2013-02-28 Thread Darren McEntee
Hi everyone, I'll cut right to the chase...
I have an app live in the Google Play store that supports Android 2.1+
I'm seriously thinking about adopting an Android 4.0+ ONLY app development 
policy. Fragmentation is doing my head in trying to support legacy devices, 
i just don't think its worth the pain any more.

My question is: if my current live Google Play app currently supports 2.1+, 
and if i go and re-write it to support 4.0+ only policy. When i upload the 
APK, will (1) the current users of the app just not get the updates from 
that point until they update their Android OS version, and (2) will only 
4.0+ users have access to the app in Google play?

I'm not sure how this works with an app currently supporting 2.1+ wanting 
to move away 4.0+. I just cant find the information i need.
Any info appreciated.
Many thanks,
Darren.

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




[android-developers] Re: Adopting Android 4.0+ ONLY app development policy with an app currently supporting 2.1+?

2013-02-28 Thread Jonathan S
If this is for ActionBar, you could use Actionbarsherlock 
https://github.com/JakeWharton/ActionBarSherlock

On Thursday, February 28, 2013 3:11:05 PM UTC-5, Darren McEntee wrote:

 Hi everyone, I'll cut right to the chase...
 I have an app live in the Google Play store that supports Android 2.1+
 I'm seriously thinking about adopting an Android 4.0+ ONLY app development 
 policy. Fragmentation is doing my head in trying to support legacy devices, 
 i just don't think its worth the pain any more.

 My question is: if my current live Google Play app currently supports 
 2.1+, and if i go and re-write it to support 4.0+ only policy. When i 
 upload the APK, will (1) the current users of the app just not get the 
 updates from that point until they update their Android OS version, and (2) 
 will only 4.0+ users have access to the app in Google play?

 I'm not sure how this works with an app currently supporting 2.1+ wanting 
 to move away 4.0+. I just cant find the information i need.
 Any info appreciated.
 Many thanks,
 Darren.



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




[android-developers] ListView background

2013-02-28 Thread bob
 

When I'm scrolling my white ListView, for some reason, the background turns 
black.


Any ideas what could cause 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.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] ListView background

2013-02-28 Thread Romain Guy
Hey bob,

Here's a blog post I wrote on the topic a while back:
http://android-developers.blogspot.com/2009/01/why-is-my-list-black-android.html


On Thu, Feb 28, 2013 at 12:18 PM, bob b...@coolfone.comze.com wrote:

 When I'm scrolling my white ListView, for some reason, the background
 turns black.


 Any ideas what could cause 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.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.






-- 
Romain Guy
Android framework engineer
romain...@android.com

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




[android-developers] Re: Adopting Android 4.0+ ONLY app development policy with an app currently supporting 2.1+?

2013-02-28 Thread RichardC
See in-line:

On Thursday, February 28, 2013 8:11:05 PM UTC, Darren McEntee wrote:

 (1) will the current users of the app just not get the updates from that 
 point until they update their Android OS version

Current users will not receive any updates, and the play interface will 
warn you that your application supports fewer devices.
 

 (2) will only 4.0+ users have access to the app in Google play?

New users with 4.0+ yes.  If a current user buys a 4.0+ device (or 
upgrades) they will get the new version(s) from then on.





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




[android-developers] Google Maps Overlays

2013-02-28 Thread Rahul Shukla
Hi, 
I am about to develop an Android app in which requires the data and 
graphics of my app has to be layered on top of Google Maps.
Is it possible ? ( I don't know the what all is possible with Google maps)
What are the best sources from where i can see the best practices for using 
Google Maps for development.
 

-- 
-- 
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] Google Maps Overlays

2013-02-28 Thread TreKing
On Thu, Feb 28, 2013 at 3:16 PM, Rahul Shukla rahul12.shu...@gmail.comwrote:

 What are the best sources from where i can see the best practices for
 using Google Maps for development.


Have you considered reading the documentation for Google Maps?

-
TreKing http://sites.google.com/site/rezmobileapps/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.




Re: [android-developers] two activities running at same time

2013-02-28 Thread TreKing
On Thu, Feb 28, 2013 at 9:53 AM, g...@deanblakely.com
g...@deanblakely.comwrote:

 I'm just curious why this works.


I'm curious why you think it wouldn't.

-
TreKing http://sites.google.com/site/rezmobileapps/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.




Re: [android-developers] How to schedule a daily popup dialog box even when the app may not be running...?

2013-02-28 Thread don rhummy
Yes, the alarm manager will schedule it and then you can create an activity to 
be called with Theme.Dialog.






 From: TreKing treking...@gmail.com
To: android-developers@googlegroups.com 
Sent: Wednesday, February 27, 2013 11:29 PM
Subject: Re: [android-developers] How to schedule a daily popup dialog box even 
when the app may not be running...?
 



On Wed, Feb 27, 2013 at 5:42 PM, Boyd Speer bsp...@shaw.ca wrote:

How can I schedule a daily popup dialog box (that appears to remind the user to 
do something) that remains visible until it is manually closed by the user?


Would a service be utilized? If so how? Or would an alarm be the best 
solution. If the app is killed or restarted can the popup still be scheduled 
to happen?


Thanks for your suggestions.

Use AlarmManager to schedule a PendingIntent that starts an Activity that has a 
dialog theme.

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




Re: [android-developers] Hearing Aid

2013-02-28 Thread TreKing
On Thu, Feb 28, 2013 at 4:17 AM, Shaik Shabana shabana.sh...@gmail.comwrote:

 I want to work on Smart Hearing aid, wherein I can use the mobile as my
 hearing aid.
 Pls let me know how to start this.


http://www.catb.org/esr/faqs/smart-questions.html

-
TreKing http://sites.google.com/site/rezmobileapps/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.




Re: [android-developers] Google Maps Overlays

2013-02-28 Thread Rahul Shukla
yes I know about the documentation but the practices while implementing
keep changing over time so i wanted to know the latest stuff that is being
followed or is apt.


On Fri, Mar 1, 2013 at 3:06 AM, TreKing treking...@gmail.com wrote:


 On Thu, Feb 28, 2013 at 3:16 PM, Rahul Shukla rahul12.shu...@gmail.comwrote:

 What are the best sources from where i can see the best practices for
 using Google Maps for development.


 Have you considered reading the documentation for Google Maps?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/LKEsS1lr7o8/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Rahul Shukla
Jaypee Institute of Information Technology
B.Tech. Computer Science and Engineering '13

-- 
-- 
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] Google Maps Overlays

2013-02-28 Thread TreKing
On Thu, Feb 28, 2013 at 3:45 PM, Rahul Shukla rahul12.shu...@gmail.comwrote:

 yes I know about the documentation but the practices while implementing
 keep changing over time


There was the old Google Maps API and (about 3 or 4 years later) there is
the latest one. It's not really changing over time.


  so i wanted to know the latest stuff that is being followed or is apt.


I don't know what is apt. means, but unless you have a more specific
question, the documentation and Google should suffice to get you
information on how to use the APIs.

-
TreKing http://sites.google.com/site/rezmobileapps/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.




[android-developers] Re: New SDK release for Egnos

2013-02-28 Thread Leonardo Costa
Hello,
I'm back as promised with some additional info.

The EGNOS SDK allows you as a developer to use EGNOS in smartphones without 
needing an extensive knowledge of GPS positioning. The position obtained by 
the GPS receiver in the smartphone is enhanced thanks to EGNOS satellites, 
or alternatively, from the internet thanks to the satellite data made 
available by the European Commission (for free!).

The SDK enables to do much more than improving the positioning thanks to 
EGNOS. The new Demo App showcases a series of possible new applications, 
including:
•Receiving EGNOS information through the internet thanks to SISNeT and 
EDAS support;
•Use the smartphone to broadcast ‘live’ EGNOS positioning enhancement 
to nearby devices through Bluetooth, Wi-Fi and file logging;
•Detecting and eliminating faulty satellites or measurements involved 
in the position calculation to obtain a better positioning accuracy;
•Customizing the algorithms to obtain the position to improve the 
accuracy for specific environments. 

Discover all possibilities by downloading the SDK Source Code, the Demo App 
and following the How to Install guide:
http://egnos-portal.gsa.europa.eu/developer-platform/egnos-toolkits/egnos-sdk/download-egnos-sdk

More info next week, cheers.
Leonardo

On Wednesday, 20 February 2013 17:48:31 UTC+1, Leonardo Costa wrote:

 Hello everybody again, I've interesting news from the European Commission 
 about Egnos, which is the launch of the third version of the EGNOS SDK 
 for app developers! 

 The EGNOS SDK enables to improve the GPS positioning performance of 
 smartphones by providing enhanced positioning accuracy and other features 
 (e.g. information on the reliability of the position calculated by the 
 smartphone).

 This is possible by enabling the smartphone to receive data from EGNOS, 
 the first European venture in the area of satellite navigation. Thanks to 
 EGNOS, smartphone apps can benefit from high quality and reliable 
 positioning information.

 The EGNOS SDK v3 is completely open source and available for free on the 
 EGNOS Portal 
 http://egnos-portal.gsa.europa.eu/developer-platform/egnos-toolkits/egnos-sdk.
  


 Updates on the new features will be presented in this thread in the next 
 weeks. If you don’t want to wait that long, find out more 
 herehttp://www.egnos-portal.eu/developer-platform/egnos-toolkits/egnos-sdk/functionalities-egnos-sdk
 !
 Thanks a lot and cheers,
 Leonardo

 On Tuesday, 31 July 2012 23:20:39 UTC+2, Leonardo Costa wrote:

 Hello,
 I'm posting this info on behalf of the European Commission, the new 
 release of the EGNOS SDK for app developers is now available.

 This EGNOS SDK allows taking advantage of the European system that 
 provides enhanced positioning accuracy and other features (e.g. information 
 on the reliability of the position itself) directly towards the 
 smartphones. It is available for free on the EGNOS Portal at 
 http://egnos-portal.gsa.europa.eu/developer-platform/egnos-toolkits/egnos-sdk

 I am available for any further info, request, questions, you may have on 
 this topic and will post reply here. I will also post further details in 
 the next weeks, following up directly  at this thread.
 Thanks and regards,
 Leonardo



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




[android-developers] Re: Google Maps Overlays

2013-02-28 Thread bob
 

I think you can create a MapView.  Then maybe you can layer a View on top 
of that?



On Thursday, February 28, 2013 3:16:25 PM UTC-6, Rahul Shukla wrote:

 Hi, 
 I am about to develop an Android app in which requires the data and 
 graphics of my app has to be layered on top of Google Maps.
 Is it possible ? ( I don't know the what all is possible with Google maps)
 What are the best sources from where i can see the best practices for 
 using Google Maps for development.
  


-- 
-- 
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] USB host

2013-02-28 Thread Tux Leonard
I am a little confused that you can see your sensor device in the device
info.
When I look at the data sheet I see that your sensor has a RS232 interface.

In the device info you should see something about the USB-RS232 converter
(for example FTDIxxx) and not the sensor info.

In my case I get the following output (USB-RS232 converter):
[image: Screenshot_2013-02-28-22-51-33.png]

Not all USB-RS232 are supported out of the box by android. If I remember
right the FTDIxxx devices are supported well.
A good app to get started is Sick USB 2 Serial Terminal. Try to open a
serial connection with this app first.


[image: Screenshot_2013-02-28-22-53-21.png]


2013/2/28 Marta Ribeiro martacunharibeir...@gmail.com

 I added the screenshots. As you can see, there is nothing on the android
 tab, mas it detects the device on the Linux tab. The sensor is the one
 described in one of the screenshots, is a microstrain 3DM-GX3-36. I connect
 a RS232-USB A cable to the microstrain RS232 interface, and connect the
 cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.

 Do you have any idea what the issue might be? I appreciate all the help.


 On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:

 Could you tell us what sensor and what RS232-USB device you are using?
 A scrennshot of the output of your app could also help.

 Roy

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 Additionally, I just noticed something, the application presents two
 tabs: Android plus Linux. According to android i have no devices connected.
 Whereas in the linux tab i find my device. Is this indicative of something?


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device.

 regarding the device file, it is in decimal, which I've head is the
 correct way. I've check the values with the output of the application and
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host
 permission. Do you now if i'm missing something?

 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB
 Device Info https://play.google.com/store/
 apps/details?id=aws.apps.**usbDe**viceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right and
 it's a software issue.

 I'm not sure about the device_filter.xml. Do you have to specifiy the
 values in hex or decimal? The docu uses e.g. class=255 and does not use 
 a
 hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or
 plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find the
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it
 worked correctly. now i'm trying to make my own application and it's 
 not
 working, so it must be because of the code. Although i am writing it
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level
 you are I would have checked first wether the Samsung Galaxy S3 has a 
 USB
 OTG sw support or not.You can try this by inserting a USB keyboard 
 into it
 or a Mouse and see whether it is working.
 I think it has :
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using
 USB host and a OTG cable. I'm at the beginning phase just trying to 
 write
 code to detect the sensor was attached  but it's not working. Can 
 someone
 take a look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**activity_microstrain);
  find_device = (EditText)findViewById(R.id.**find_device);
   UsbManager manager = (UsbManager)getSystemService(**C
 ontext.USB_SERVICE);

 //connect();

 HashMapString, UsbDevice deviceList =
 manager.getDeviceList();
 IteratorUsbDevice deviceIterator =
 deviceList.values().iterator()**;

  while(deviceIterator.hasNext()**){

 UsbDevice device = deviceIterator.next();
 Toast.makeText(this,Value of device :
 +device.getDeviceName(), Toast.LENGTH_LONG).show();

 }


 %% manifest %%%

 ?xml version=1.0 

Re: [android-developers] USB host

2013-02-28 Thread Marta Ribeiro
I can´t, with this app i get no device is connected. What would be the 
difference between this app and the last one?

On Thursday, February 28, 2013 10:02:41 PM UTC, Tux wrote:

 I am a little confused that you can see your sensor device in the device 
 info.
 When I look at the data sheet I see that your sensor has a RS232 
 interface. 

 In the device info you should see something about the USB-RS232 converter 
 (for example FTDIxxx) and not the sensor info.

 In my case I get the following output (USB-RS232 converter):
 [image: Screenshot_2013-02-28-22-51-33.png]

 Not all USB-RS232 are supported out of the box by android. If I remember 
 right the FTDIxxx devices are supported well.
 A good app to get started is Sick USB 2 Serial Terminal. Try to open a 
 serial connection with this app first.


 [image: Screenshot_2013-02-28-22-53-21.png]


 2013/2/28 Marta Ribeiro martacunh...@gmail.com javascript:

 I added the screenshots. As you can see, there is nothing on the android 
 tab, mas it detects the device on the Linux tab. The sensor is the one 
 described in one of the screenshots, is a microstrain 3DM-GX3-36. I connect 
 a RS232-USB A cable to the microstrain RS232 interface, and connect the 
 cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.

 Do you have any idea what the issue might be? I appreciate all the help.


 On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:

 Could you tell us what sensor and what RS232-USB device you are using?
 A scrennshot of the output of your app could also help.

 Roy

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 Additionally, I just noticed something, the application presents two 
 tabs: Android plus Linux. According to android i have no devices 
 connected. 
 Whereas in the linux tab i find my device. Is this indicative of 
 something? 


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device. 

 regarding the device file, it is in decimal, which I've head is the 
 correct way. I've check the values with the output of the application and 
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host 
 permission. Do you now if i'm missing something?
  
 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB 
 Device Info https://play.google.com/store/
 apps/details?id=aws.apps.**usbDe**viceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right and 
 it's a software issue. 

 I'm not sure about the device_filter.xml. Do you have to specifiy the 
 values in hex or decimal? The docu uses e.g. class=255 and does not 
 use a 
 hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or 
 plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find the 
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it 
 worked correctly. now i'm trying to make my own application and it's 
 not 
 working, so it must be because of the code. Although i am writing it 
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same level 
 you are I would have checked first wether the Samsung Galaxy S3 has 
 a USB 
 OTG sw support or not.You can try this by inserting a USB keyboard 
 into it 
 or a Mouse and see whether it is working.
 I think it has : 
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is 

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using 
 USB host and a OTG cable. I'm at the beginning phase just trying to 
 write 
 code to detect the sensor was attached  but it's not working. Can 
 someone 
 take a look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**activity_microstrain);
  find_device = (EditText)findViewById(R.id.**find_device);
   UsbManager manager = (UsbManager)getSystemService(**C
 ontext.USB_SERVICE); 

 //connect(); 

 HashMapString, UsbDevice deviceList = 
 manager.getDeviceList();
 IteratorUsbDevice deviceIterator = 
 deviceList.values().iterator()**;

  

Re: [android-developers] USB host

2013-02-28 Thread Tux Leonard
This app can open a serial connection if a working USB-RS232 device is
detected. The other app only shows the infos.

Do you have an other USB-RS232 converter? This one is not supported by
android/Linux.
Just to make shure that your OTG cable is ok. Can you connect a USB mouse
or keyboard to your S3?

2013/2/28 Marta Ribeiro martacunharibeir...@gmail.com

 I can´t, with this app i get no device is connected. What would be the
 difference between this app and the last one?


 On Thursday, February 28, 2013 10:02:41 PM UTC, Tux wrote:

 I am a little confused that you can see your sensor device in the device
 info.
 When I look at the data sheet I see that your sensor has a RS232
 interface.

 In the device info you should see something about the USB-RS232 converter
 (for example FTDIxxx) and not the sensor info.

 In my case I get the following output (USB-RS232 converter):
 [image: Screenshot_2013-02-28-22-51-33.png]

 Not all USB-RS232 are supported out of the box by android. If I remember
 right the FTDIxxx devices are supported well.
 A good app to get started is Sick USB 2 Serial Terminal. Try to open a
 serial connection with this app first.


 [image: Screenshot_2013-02-28-22-53-21.png]


 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 I added the screenshots. As you can see, there is nothing on the android
 tab, mas it detects the device on the Linux tab. The sensor is the one
 described in one of the screenshots, is a microstrain 3DM-GX3-36. I connect
 a RS232-USB A cable to the microstrain RS232 interface, and connect the
 cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.

 Do you have any idea what the issue might be? I appreciate all the help.


 On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:

 Could you tell us what sensor and what RS232-USB device you are using?
 A scrennshot of the output of your app could also help.

 Roy

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 Additionally, I just noticed something, the application presents two
 tabs: Android plus Linux. According to android i have no devices 
 connected.
 Whereas in the linux tab i find my device. Is this indicative of 
 something?


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device.

 regarding the device file, it is in decimal, which I've head is the
 correct way. I've check the values with the output of the application and
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host
 permission. Do you now if i'm missing something?

 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB
 Device Info https://play.google.com/store/**
 apps/details?id=aws.apps.**usbDeviceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right
 and it's a software issue.

 I'm not sure about the device_filter.xml. Do you have to specifiy
 the values in hex or decimal? The docu uses e.g. class=255 and does 
 not
 use a hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID or
 plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find the
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and it
 worked correctly. now i'm trying to make my own application and it's 
 not
 working, so it must be because of the code. Although i am writing it
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same
 level you are I would have checked first wether the Samsung Galaxy 
 S3 has a
 USB OTG sw support or not.You can try this by inserting a USB 
 keyboard into
 it or a Mouse and see whether it is working.
 I think it has :
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor using
 USB host and a OTG cable. I'm at the beginning phase just trying 
 to write
 code to detect the sensor was attached  but it's not working. Can 
 someone
 take a look and tell me what they think:


 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceSt**ate);
 setContentView(R.layout.**activi**ty_microstrain);
  find_device = 

Re: [android-developers] USB host

2013-02-28 Thread Marta Ribeiro
Yes I have tried and it works perfectly. The mouse and keyboard are 
instantaneously operational.

I'll try to find another USB-RS232 converter. But apart from experimenting 
with them, which other way can I know if a cable is supported 
by android/Linux?

Thank you for your help!

On Thursday, February 28, 2013 10:46:14 PM UTC, Tux wrote:

 This app can open a serial connection if a working USB-RS232 device is 
 detected. The other app only shows the infos.

 Do you have an other USB-RS232 converter? This one is not supported by 
 android/Linux.
 Just to make shure that your OTG cable is ok. Can you connect a USB mouse 
 or keyboard to your S3?

 2013/2/28 Marta Ribeiro martacunh...@gmail.com javascript:

 I can´t, with this app i get no device is connected. What would be the 
 difference between this app and the last one?


 On Thursday, February 28, 2013 10:02:41 PM UTC, Tux wrote:

 I am a little confused that you can see your sensor device in the device 
 info.
 When I look at the data sheet I see that your sensor has a RS232 
 interface. 

 In the device info you should see something about the USB-RS232 
 converter (for example FTDIxxx) and not the sensor info.

 In my case I get the following output (USB-RS232 converter):
 [image: Screenshot_2013-02-28-22-51-33.png]

 Not all USB-RS232 are supported out of the box by android. If I remember 
 right the FTDIxxx devices are supported well.
 A good app to get started is Sick USB 2 Serial Terminal. Try to open a 
 serial connection with this app first.


 [image: Screenshot_2013-02-28-22-53-21.png]


 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 I added the screenshots. As you can see, there is nothing on the android 
 tab, mas it detects the device on the Linux tab. The sensor is the one 
 described in one of the screenshots, is a microstrain 3DM-GX3-36. I 
 connect 
 a RS232-USB A cable to the microstrain RS232 interface, and connect the 
 cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.

 Do you have any idea what the issue might be? I appreciate all the help.


 On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:

 Could you tell us what sensor and what RS232-USB device you are using?
 A scrennshot of the output of your app could also help.

 Roy

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 Additionally, I just noticed something, the application presents two 
 tabs: Android plus Linux. According to android i have no devices 
 connected. 
 Whereas in the linux tab i find my device. Is this indicative of 
 something? 


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device. 

 regarding the device file, it is in decimal, which I've head is the 
 correct way. I've check the values with the output of the application 
 and 
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host 
 permission. Do you now if i'm missing something?
  
 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB 
 Device Info https://play.google.com/store/**
 apps/details?id=aws.apps.**usbDeviceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right 
 and it's a software issue. 

 I'm not sure about the device_filter.xml. Do you have to specifiy 
 the values in hex or decimal? The docu uses e.g. class=255 and does 
 not 
 use a hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta 
 Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232 
 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID 
 or plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find the 
 example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and 
 it worked correctly. now i'm trying to make my own application and 
 it's not 
 working, so it must be because of the code. Although i am writing 
 it 
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same 
 level you are I would have checked first wether the Samsung Galaxy 
 S3 has a 
 USB OTG sw support or not.You can try this by inserting a USB 
 keyboard into 
 it or a Mouse and see whether it is working.
 I think it has : 
 *USB:*USB 2.0 client, 480Mbit/s
 micro-USB

 What you need is 

 *USB:*USB 2.0 host/client, 480Mbit/s
 USB A


 Rgds,
 -s


 On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro 
 martacunh...@gmail.com** wrote:

 I'm using a Samsung Galaxy S3,and connecting to a sensor 

Re: [android-developers] USB host

2013-02-28 Thread Tux Leonard
Look for a device with a FTDI chip.
You also could write your own Linux driver that supports your USB-RS232
chip and then get it working in your phone. So a little try and error is
much faster.
When you've done this, you need to implement the serial protocol of your
sensor.

Is this sensor expensive?

Roy

2013/2/28 Marta Ribeiro martacunharibeir...@gmail.com

 Yes I have tried and it works perfectly. The mouse and keyboard are
 instantaneously operational.

 I'll try to find another USB-RS232 converter. But apart from experimenting
 with them, which other way can I know if a cable is supported
 by android/Linux?

 Thank you for your help!


 On Thursday, February 28, 2013 10:46:14 PM UTC, Tux wrote:

 This app can open a serial connection if a working USB-RS232 device is
 detected. The other app only shows the infos.

 Do you have an other USB-RS232 converter? This one is not supported by
 android/Linux.
 Just to make shure that your OTG cable is ok. Can you connect a USB mouse
 or keyboard to your S3?

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 I can´t, with this app i get no device is connected. What would be the
 difference between this app and the last one?


 On Thursday, February 28, 2013 10:02:41 PM UTC, Tux wrote:

 I am a little confused that you can see your sensor device in the
 device info.
 When I look at the data sheet I see that your sensor has a RS232
 interface.

 In the device info you should see something about the USB-RS232
 converter (for example FTDIxxx) and not the sensor info.

 In my case I get the following output (USB-RS232 converter):
 [image: Screenshot_2013-02-28-22-51-33.png]

 Not all USB-RS232 are supported out of the box by android. If I
 remember right the FTDIxxx devices are supported well.
 A good app to get started is Sick USB 2 Serial Terminal. Try to open
 a serial connection with this app first.


 [image: Screenshot_2013-02-28-22-53-21.png]


 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 I added the screenshots. As you can see, there is nothing on the
 android tab, mas it detects the device on the Linux tab. The sensor is the
 one described in one of the screenshots, is a microstrain 3DM-GX3-36. I
 connect a RS232-USB A cable to the microstrain RS232 interface, and 
 connect
 the cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.

 Do you have any idea what the issue might be? I appreciate all the
 help.


 On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:

 Could you tell us what sensor and what RS232-USB device you are using?
 A scrennshot of the output of your app could also help.

 Roy

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 Additionally, I just noticed something, the application presents two
 tabs: Android plus Linux. According to android i have no devices 
 connected.
 Whereas in the linux tab i find my device. Is this indicative of 
 something?


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device.

 regarding the device file, it is in decimal, which I've head is the
 correct way. I've check the values with the output of the application 
 and
 after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host
 permission. Do you now if i'm missing something?

 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app USB
 Device Info https://play.google.com/store/
 apps/details?id=aws.apps.**usbDe**viceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right
 and it's a software issue.

 I'm not sure about the device_filter.xml. Do you have to specifiy
 the values in hex or decimal? The docu uses e.g. class=255 and does 
 not
 use a hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta
 Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232
 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID
 or plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find
 the example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and
 it worked correctly. now i'm trying to make my own application and 
 it's not
 working, so it must be because of the code. Although i am writing 
 it
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but as at the same
 level you are I would have checked first wether the Samsung 
 Galaxy S3 has a
 USB OTG sw support or not.You can try this by inserting a USB 
 keyboard into
 it or a 

Re: [android-developers] USB host

2013-02-28 Thread Tux Leonard
The IOIO device works in any case. And you can connect it via Bluetooth
(with a little try and error for the right BT dongle :-))

2013/3/1 Tux Leonard tuxl...@gmail.com

 Look for a device with a FTDI chip.
 You also could write your own Linux driver that supports your USB-RS232
 chip and then get it working in your phone. So a little try and error is
 much faster.
 When you've done this, you need to implement the serial protocol of your
 sensor.

 Is this sensor expensive?

 Roy


 2013/2/28 Marta Ribeiro martacunharibeir...@gmail.com

 Yes I have tried and it works perfectly. The mouse and keyboard are
 instantaneously operational.

 I'll try to find another USB-RS232 converter. But apart from
 experimenting with them, which other way can I know if a cable is supported
 by android/Linux?

 Thank you for your help!


 On Thursday, February 28, 2013 10:46:14 PM UTC, Tux wrote:

 This app can open a serial connection if a working USB-RS232 device is
 detected. The other app only shows the infos.

 Do you have an other USB-RS232 converter? This one is not supported by
 android/Linux.
 Just to make shure that your OTG cable is ok. Can you connect a USB
 mouse or keyboard to your S3?

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 I can´t, with this app i get no device is connected. What would be the
 difference between this app and the last one?


 On Thursday, February 28, 2013 10:02:41 PM UTC, Tux wrote:

 I am a little confused that you can see your sensor device in the
 device info.
 When I look at the data sheet I see that your sensor has a RS232
 interface.

 In the device info you should see something about the USB-RS232
 converter (for example FTDIxxx) and not the sensor info.

 In my case I get the following output (USB-RS232 converter):
 [image: Screenshot_2013-02-28-22-51-33.png]

 Not all USB-RS232 are supported out of the box by android. If I
 remember right the FTDIxxx devices are supported well.
 A good app to get started is Sick USB 2 Serial Terminal. Try to open
 a serial connection with this app first.


 [image: Screenshot_2013-02-28-22-53-21.png]


 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 I added the screenshots. As you can see, there is nothing on the
 android tab, mas it detects the device on the Linux tab. The sensor is 
 the
 one described in one of the screenshots, is a microstrain 3DM-GX3-36. I
 connect a RS232-USB A cable to the microstrain RS232 interface, and 
 connect
 the cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.

 Do you have any idea what the issue might be? I appreciate all the
 help.


 On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:

 Could you tell us what sensor and what RS232-USB device you are
 using?
 A scrennshot of the output of your app could also help.

 Roy

 2013/2/28 Marta Ribeiro martacunh...@gmail.com**

 Additionally, I just noticed something, the application presents two
 tabs: Android plus Linux. According to android i have no devices 
 connected.
 Whereas in the linux tab i find my device. Is this indicative of 
 something?


 On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:

 Yes I can see my device.

 regarding the device file, it is in decimal, which I've head is
 the correct way. I've check the values with the output of the 
 application
 and after a conversion hexadecimal to decimal it's a match.

 Right now,I'm starting to thing the issue may be the usb.host
 permission. Do you now if i'm missing something?

 On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:

 I would first check the hardware/cable etc. e.g. with the app
 USB Device Info https://play.google.com/store/
 apps/details?id=aws.apps.**usbDe**viceEnumeratorhttps://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator

 If you can see your device in the android tab, then you are right
 and it's a software issue.

 I'm not sure about the device_filter.xml. Do you have to specifiy
 the values in hex or decimal? The docu uses e.g. class=255 and 
 does not
 use a hex-only digit. That looks to me like it could be decimal?


 Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta
 Ribeiro:

 I am connecting the OTG micro B/USB B cable to an USB A/RS232
 cable.

 Any help you can provide I would appreciate!

 On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:

 Hi,

 what kind of sensor are you using and what protocol (RS232, HID
 or plain USB) is used?
 I played around with some RS232 devices. Perhaps I could find
 the example again.
 Later I switched to a IOIO divice.

 Roy

 2013/2/27 Marta Ribeiro martacunh...@gmail.com

 I have the cables needed. I even installed an usb host app and
 it worked correctly. now i'm trying to make my own application 
 and it's not
 working, so it must be because of the code. Although i am writing 
 it
 exactly as it advised in tutorials.


 On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

 Interesting.I don't know much about this but 

Re: [android-developers] Hearing Aid

2013-02-28 Thread Lew
TreKing wrote:

 Shaik Shabana wrote:

 I want to work on Smart Hearing aid, wherein I can use the mobile as my 
 hearing aid.
 Pls let me know how to start this.


 http://www.catb.org/esr/faqs/smart-questions.html


http://www.patriciashanahan.com/beginner.html

-- 
Lew
 

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




[android-developers] Might locationManager requestLocationUpdates / removeUpdates for dynamic config cause the GPS to completely stop working?

2013-02-28 Thread Lindsey Simon
I've got an app where we want to have dynamic values for minTime and 
minDistance depending on someone's proximity to their destination.

To accomplish this I'm just calling removeUpdates and then 
requestLocationUpdates after a period with different values. We pause 
anywhere from 15seconds to 3 minutes between these start/stops.

The problem is that on some devices we're seeing a situation where we just 
stop getting location updates. On a Galaxy S3 for instance, the GPS 
completely stops working - no app can get a location in fact. Only 
rebooting the phone seems to fix the problem.

Maybe I'm start/stopping the watches too aggressively and hitting some sort 
of bug?

Any insights would be extremely helpful.

I've found a few similar reports of this situation:
http://stackoverflow.com/questions/13594932/network-provider-not-providing-updated-locations
http://stackoverflow.com/questions/12630413/has-network-provider-behavior-changed-in-android-4-1-1

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




[android-developers] Re: Might locationManager requestLocationUpdates / removeUpdates for dynamic config cause the GPS to completely stop working?

2013-02-28 Thread Lindsey Simon
I should add that while no other app can get a location, it seems like 
Google Maps is working aok.

On Thursday, February 28, 2013 6:14:33 PM UTC-8, Lindsey Simon wrote:

 I've got an app where we want to have dynamic values for minTime and 
 minDistance depending on someone's proximity to their destination.

 To accomplish this I'm just calling removeUpdates and then 
 requestLocationUpdates after a period with different values. We pause 
 anywhere from 15seconds to 3 minutes between these start/stops.

 The problem is that on some devices we're seeing a situation where we just 
 stop getting location updates. On a Galaxy S3 for instance, the GPS 
 completely stops working - no app can get a location in fact. Only 
 rebooting the phone seems to fix the problem.

 Maybe I'm start/stopping the watches too aggressively and hitting some 
 sort of bug?

 Any insights would be extremely helpful.

 I've found a few similar reports of this situation:

 http://stackoverflow.com/questions/13594932/network-provider-not-providing-updated-locations

 http://stackoverflow.com/questions/12630413/has-network-provider-behavior-changed-in-android-4-1-1


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




[android-developers] binding AppWidget on system lockscreen with android.permission.BIND_APPWIDGET

2013-02-28 Thread futurexiong
I develope a lockscreen app which installed in system/app,the app has 
permission:android.permission.BIND_APPWIDGET and android:sharedUserId = 
android.uid.system. In my app I would bind system music appwidget as 
default.And if I run it just as a system app,it runs properly and binds 
widget successfully.But I want to use reflection to reflec the lockscreen 
view when lockscreen should be actived(this is what I exactly want to 
do).So I just modified createLockScreen method in LockPatternKeyguardView 
as before.But when it runs to bind appwidget code, error happens with no 
android.permission.BIND_APPWIDGET permission,says uid of my app  1000 or 
something like that. And I also notice that AppWidgetPickerActivity in 
system Settings app use bindAppWidgetId() either and it even doesn't 
declare android.permission.BIND_APPWIDGET and it still works properly. I 
wonder why my app runs properly as a normal system app and it can bind 
widget successfully but when it ran by reflection in system_server 
process,things goes wrong,and why AppWidgetPickerActivity does not declare 
the permission it still binds widgets successfully with no security 
exception?

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




[android-developers] Re: Hearing Aid

2013-02-28 Thread John Coryat
Just from a technical standpoint, a smartphone held in your hand, is never 
going to be a satisfactory hearing aid. The original hearing aids were 
pretty much exactly what you're describing. A box, usually held in one's 
shirt pocket, that transmitted sound through a wire to a small speaker in 
the user's ear. Those things were terrible for many reasons.

The simplest form of hearing aid, an amp that boosts across all frequencies 
evenly, at least takes the sound as it would be heard at the ear. A 
regular, prescribed hearing instrument uses the loss curve from the patient 
to customize the responses of and boost each frequency band differently.

In order to make a reasonable hearing aid out of a smart phone, it would 
require stereo mikes at each ear, transmitting the sound levels to the 
Android device, which would boost each band according to the loss of the 
user and transmit it back to be broadcast to the user.

For this complexity, you might as well take a look at the modern, digital 
hearing instrument. They are a marvel of technology and would be far 
superior to anything that can be cobbled together out of a smart phone, 
regardless of which one.

You should have looked at the wiki:

http://en.wikipedia.org/wiki/History_of_hearing_aids

-John Coryat, USNaviguide LLC

p.s. I've been working in and for the hearing instrument community for over 
25 years.


On Thursday, February 28, 2013 4:17:47 AM UTC-6, Shaik Shabana wrote:

 Hi,

 I want to work on Smart Hearing aid, wherein I can use the mobile as my 
 hearing aid.
 Pls let me know how to start 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.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.




[android-developers] Reading User Account From Settings

2013-02-28 Thread Milind
Hello,

I am creating application which uses users credential to communicate with 
web servers. What I want to do is retrieve logged in users username and 
password from accounts settings or use authority of this account to 
communicate with my server. How can I take such authorization or it will 
also good if I get username and password.

Thanks you.

--
Milind

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




[android-developers] Hearing Aid

2013-02-28 Thread Shaik Shabana
Thanks John for your reply.
Can you pls let me know how can I proceed now?

Thanks!
Shabana
9701055536

-- 
-- 
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] Hearing Aid

2013-02-28 Thread Parthi K
Wt hearing Aid?
Thanks  Regards,
Parthiban.k
Software Engineer
Mode FinServer Pvt. Ltd.
Cell: +7204205850
Email: parthisof...@gmail.com shoaibj...@gmail.com |parthiban.k
@modefinserver.com shoai...@modefinserver.com


On Fri, Mar 1, 2013 at 10:53 AM, Shaik Shabana shabana.sh...@gmail.comwrote:

 Thanks John for your reply.
 Can you pls let me know how can I proceed now?

 Thanks!
 Shabana
 9701055536

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




[android-developers] ArrayAdapter Vs BaseAdapter.

2013-02-28 Thread Seshu
Hi All,
I want to show some students information i.e. id, name,
address and contact number in listview. Which Adapter should i use
here i.e, ArrayAdapter or BaseAdapter. What's the major difference
between them.

Thanks and Regards,
S.Seshu.

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




[android-developers] Re: Hearing Aid

2013-02-28 Thread Lew
Shaik Shabana wrote:

 Thanks John for your reply.
 Can you pls let me know how can I proceed now?


Didn't he just?

He described the shortcomings of the smartphone as a hearing aid and 
suggested that you proceed 
to investigate the history and state of the art of hearing aids.

If I read his advice correctly, he advised you not to make a hearing aid 
out of a smartphone.

-- 
Lew
 

-- 
-- 
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] ArrayAdapter Vs BaseAdapter.

2013-02-28 Thread Parthi K
http://www.catb.org/esr/faqs/smart-questions.html#before


 should know this .
Thanks  Regards,
Parthiban.k
Software Engineer
Mode FinServer Pvt. Ltd.
Cell: +7204205850
Email: parthisof...@gmail.com shoaibj...@gmail.com |parthiban.k
@modefinserver.com shoai...@modefinserver.com


On Fri, Mar 1, 2013 at 11:20 AM, Seshu s.seshu...@gmail.com wrote:

 Hi All,
 I want to show some students information i.e. id, name,
 address and contact number in listview. Which Adapter should i use
 here i.e, ArrayAdapter or BaseAdapter. What's the major difference
 between them.

 Thanks and Regards,
 S.Seshu.

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




[android-developers] Re: ArrayAdapter Vs BaseAdapter.

2013-02-28 Thread skink


Seshu wrote:
 Hi All,
 I want to show some students information i.e. id, name,
 address and contact number in listview. Which Adapter should i use
 here i.e, ArrayAdapter or BaseAdapter. What's the major difference
 between them.

 Thanks and Regards,
 S.Seshu.

for such data I would use of of 
http://developer.android.com/reference/android/widget/CursorAdapter.html
adapters

pskink

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




[android-developers] How to hide my widget from the Widgets list.....?

2013-02-28 Thread abhay_401
Hi,

When the user long press on Homescreen, he will get some options, Widgets 
is one of them. If the user selects Widgets, he will get the list of 
widgets in which he can launch on home.

Based on some conditions I don't want to show him my widget on the list. 
For ex: I am having boolean value, if it's true then only show my widget in 
the list, so that user can launch it otherwise I dont want to show my 
widget is Widgets list.

How can we do this. Can anybody is having idea on this?

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




[android-developers] Re: two activities running at same time

2013-02-28 Thread Tamilarasi Sivaraj
This is not possible.
You cannot have multiple activities running at the same time.
And you refer this 
http://stackoverflow.com/questions/6692552/running-two-activities-at-the-same-time-on-the-screen
http://stackoverflow.com/questions/11102337/can-you-have-two-activities-running-at-the-same-time

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Thursday, February 28, 2013 9:23:21 PM UTC+5:30, ga...@deanblakely.com 
wrote:

 I have an app with a main activity that has no visible interface 
 (android:theme=@android:style/Theme.NoDisplay).  The app is  started by 
 receipt of an SMS message in a BroadCast activity which kicks off another 
 activity (also no GUI) that does work and then sends an SMS message.  It 
 works very well; actually better than I had expected because it runs even 
 if other apps are running a foreground activity.
  
 Now I'm familiar with the Android Activity Lifecycle but I guess this 
 means that Android (I'm using 2.33) can run many activities at once.  
 Even when I'm running a very active GPS tracking application that is 
 writing layers on a mapview, my no-display app starts does his work and 
 sends the results out on an SMS message.  The tracking app that was running 
 never even blinked.
  
 I don't have any problem (at least not programming related), I'm just 
 curious why this works.
 Regards,
 Gary
  
  


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