Re: [android-developers] Android c++ service at boot time

2013-02-17 Thread Anil Sasidharan
Hi,

You may want to write a JNI layer for this and have an activity to load the
JNI shared lib. You need to implement a broadcast receiver for
"BOOT_COMPLETED" intent to start this activity... Makes sense?

And regarding accessing libusb from JNI, I presume that the respective
device node is configured with necessary permissions.

Warm Regards,
Anil

On Thu, Feb 14, 2013 at 2:35 PM, Mr cool  wrote:

> I need to start a service at boot time in android i don't use broadcast
> receiver  , i wrote a service in c++ because i need access driver libusb
> layer to communicate with my extrernal device ,the service is working
> properly if i started manualy,if i want to start the service at boot time
> means i need to edit inir.rc file in android if i do that it also working
> good .but the problem is i cant edit the init.rc in all devices. i put my
> service in Sytem/bin location and edit the init.rc file as follow
>
> service sampleservice/system/bin/sampleservice
>   oneshot
>   disable
>
> for manualy i started the service from terminal like this
>
> #./system/bin/sampleservice
> but i cant start the service at each and every time when system restarts
> do have any idea to start the service at boot time with out edit init.rc
>
> --
> --
> 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: USB Host mode on galaxy tab 10.1 / android 3.1 - Device repeatedly re connecting in dmesg output

2011-09-27 Thread Anil Sasidharan
Hi Taylor,

Thanks a million. Awesome suggestions. I really appreciate if and definitely
give this a shot.

Have a great day 

Warm Regards,
Anil

On Wed, Sep 28, 2011 at 12:01 AM, Taylor Alexander wrote:

> Hey Anil,
>
> I did a bit of searching and found that there *is* an update (to 3.2) for
> your tablet, but it just may not have gotten it yet.
>
> Go to settings>about tablet>system updates and tell it to "check now"
>
> If it says you are up to date, but it still says you have 3.0, then your
> tablet hasn't been selected for the update yet. However, you can manually
> load your own version of 3.2 onto the tablet.
>
> Looking on XDA-Developers forum (the best place for this stuff), I found a
> ROM that you can install on your tablet for 3.2:
> http://forum.xda-developers.com/showthread.php?t=1138115
>
> Read this page for more information:
> http://forum.xda-developers.com/showthread.php?t=1209988
>
> And then if you have any questions (after you have done some reading) just
> ask the questions on there and people should be able to help.
>
> Just be careful - I don't know if the A501 supports all the same ROMs as
> the A500. The ROM I found above says A500/A501, but they might not all
> support that.
>
> Good luck!
> -Taylor
>
> On Tue, Sep 27, 2011 at 6:33 AM, Anil Sasidharan wrote:
>
>> Hi Taylor,
>>
>> Yes, mine is A501. Unfortunately I'm trying to experiment with my A501 in
>> India and the 3.1 update is not yet available here. Looks like I've to wait
>> for a long time before being able to check the USB Host APIs on A501.
>>
>> Thanks a lot Taylor and I sincerely appreciate your great enthusiasm and
>> willingness to share the knowledge. Have great time!!!
>>
>> Warm Regards,
>> Anil
>>
>> On Tue, Sep 27, 2011 at 12:17 PM, Taylor Alexander > > wrote:
>>
>>> Hey Anil,
>>> I connected my tablet to wifi and it immediately said there was an
>>> update.
>>>
>>> You have an A501 though? Mine is an A500. Perhaps the A501 does not have
>>> an update yet? I'm not familiar with that model. Mine is wifi only. Since
>>> you mention verizon I assume the A501 is the verizon model. It may have
>>> different updates due to the cell module.
>>>
>>> -Taylor
>>>
>>>
>>>
>>> On Mon, Sep 26, 2011 at 11:19 PM, Anil Sasidharan wrote:
>>>
>>>> Hi Taylor,
>>>>
>>>> Thank you so much. Where do we get the 3.1 update that was applied on
>>>> your tablet. Is it OTA (from Verizon??) or Is this available as a firmware
>>>> download somewhere in the Internet? I would really appreciate if you could
>>>> help us get this update for my Acer Tab A501.
>>>>
>>>> Thanks once again for the great support so far...
>>>>
>>>> Warm Regards,
>>>> Anil
>>>>
>>>> On Tue, Sep 27, 2011 at 4:15 AM, Taylor Alexander <
>>>> tlalexan...@gmail.com> wrote:
>>>>
>>>>> Yes, the tablet shipped with 3.0 but I immediately applied the 3.1
>>>>> update. And then another small update wanted to be applied, but I think 
>>>>> USB
>>>>> worked after the first one. I didn't try it before that.
>>>>>
>>>>> Under "About Tablet" in settings I have:
>>>>>
>>>>> Model: A500
>>>>> Android Version: 3.1
>>>>> Kernel Version: 3.6.36.3
>>>>> Build Number: Acer_A500_4.0.10.13_COM_GEN2
>>>>>
>>>>> Let me know if you have any other questions!
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Sep 24, 2011 at 8:20 PM, Anil Sasidharan wrote:
>>>>>
>>>>>> Hi Taylor,
>>>>>>
>>>>>> Thanks a lot. Based on what have experienced, I guess the Samsung Tab
>>>>>> 10.1 with Android-3.1 firmware does not yet support USB Host APIs whereas
>>>>>> Acer's Iconia A500 supports the same. Would you please let me know the 
>>>>>> exact
>>>>>> version of the Android firmware on A500 that worked for you. I've come
>>>>>> across an Acer Tab A501 with Android-3.0.1 version, however I'm not sure 
>>>>>> if
>>>>>> it supports USB Host API because Google says it is supported only from 
>>>>>> 3.1
>>>>>> (sdk-version 12 and above) onwards (even though there is an back

Re: [android-developers] Re: USB Host mode on galaxy tab 10.1 / android 3.1 - Device repeatedly re connecting in dmesg output

2011-09-27 Thread Anil Sasidharan
Hi Taylor,

Yes, mine is A501. Unfortunately I'm trying to experiment with my A501 in
India and the 3.1 update is not yet available here. Looks like I've to wait
for a long time before being able to check the USB Host APIs on A501.

Thanks a lot Taylor and I sincerely appreciate your great enthusiasm and
willingness to share the knowledge. Have great time!!!

Warm Regards,
Anil

On Tue, Sep 27, 2011 at 12:17 PM, Taylor Alexander wrote:

> Hey Anil,
> I connected my tablet to wifi and it immediately said there was an update.
>
> You have an A501 though? Mine is an A500. Perhaps the A501 does not have an
> update yet? I'm not familiar with that model. Mine is wifi only. Since you
> mention verizon I assume the A501 is the verizon model. It may have
> different updates due to the cell module.
>
> -Taylor
>
>
>
> On Mon, Sep 26, 2011 at 11:19 PM, Anil Sasidharan wrote:
>
>> Hi Taylor,
>>
>> Thank you so much. Where do we get the 3.1 update that was applied on your
>> tablet. Is it OTA (from Verizon??) or Is this available as a firmware
>> download somewhere in the Internet? I would really appreciate if you could
>> help us get this update for my Acer Tab A501.
>>
>> Thanks once again for the great support so far...
>>
>> Warm Regards,
>> Anil
>>
>> On Tue, Sep 27, 2011 at 4:15 AM, Taylor Alexander 
>> wrote:
>>
>>> Yes, the tablet shipped with 3.0 but I immediately applied the 3.1
>>> update. And then another small update wanted to be applied, but I think USB
>>> worked after the first one. I didn't try it before that.
>>>
>>> Under "About Tablet" in settings I have:
>>>
>>> Model: A500
>>> Android Version: 3.1
>>> Kernel Version: 3.6.36.3
>>> Build Number: Acer_A500_4.0.10.13_COM_GEN2
>>>
>>> Let me know if you have any other questions!
>>>
>>>
>>>
>>> On Sat, Sep 24, 2011 at 8:20 PM, Anil Sasidharan wrote:
>>>
>>>> Hi Taylor,
>>>>
>>>> Thanks a lot. Based on what have experienced, I guess the Samsung Tab
>>>> 10.1 with Android-3.1 firmware does not yet support USB Host APIs whereas
>>>> Acer's Iconia A500 supports the same. Would you please let me know the 
>>>> exact
>>>> version of the Android firmware on A500 that worked for you. I've come
>>>> across an Acer Tab A501 with Android-3.0.1 version, however I'm not sure if
>>>> it supports USB Host API because Google says it is supported only from 3.1
>>>> (sdk-version 12 and above) onwards (even though there is an back port of 
>>>> USB
>>>> Host library for Gingerbread out there).
>>>>
>>>> I would greatly appreciate your comments/suggestions on this.
>>>>
>>>> Warm Regards,
>>>> Anil
>>>>
>>>> On Sat, Sep 24, 2011 at 12:31 AM, Taylor Alexander <
>>>> tlalexan...@gmail.com> wrote:
>>>>
>>>>> Hi Anil,
>>>>>
>>>>> Yes, I did get it working with the Acer. I had replied off list to Will
>>>>> because my original reply to the list was taking too long to get approved
>>>>> (it was my first post to this list).
>>>>>
>>>>> Here is my first off-list message, where I gave some details:
>>>>>
>>>>> On Thu, Sep 22, 2011 at 1:43 AM, Taylor  wrote:
>>>>>
>>>>>> Hey,
>>>>>> I replied to the group, but I'm not seeing the message, so I don't
>>>>>> know if it failed to post, or if its in limbo since I'm a new user.
>>>>>> Anyway, I wanted to reply directly to you. I was having the EXACT same
>>>>>> problem as you. I had a USB device that I had compiled a kernel module
>>>>>> for. I loaded the module onto the tablet, and lsmod showed it running.
>>>>>> However, I couldn't get the device to work, and dmesg showed the same
>>>>>> problem - device not supported, over and over, even though the VID and
>>>>>> PID matched the source code for the driver. I was going crazy, but I
>>>>>> thought it was my kernel modules, so I tried a different approach at
>>>>>> someone's suggestion.
>>>>>>
>>>>>> I tried some of google's example code for USB, and when it runs
>>>>>> getDeviceList() I had it print how many USB devices were connected. It
>>>>>> always reads zero, ev

Re: [android-developers] Re: USB Host mode on galaxy tab 10.1 / android 3.1 - Device repeatedly re connecting in dmesg output

2011-09-26 Thread Anil Sasidharan
Hi Taylor,

Thank you so much. Where do we get the 3.1 update that was applied on your
tablet. Is it OTA (from Verizon??) or Is this available as a firmware
download somewhere in the Internet? I would really appreciate if you could
help us get this update for my Acer Tab A501.

Thanks once again for the great support so far...

Warm Regards,
Anil

On Tue, Sep 27, 2011 at 4:15 AM, Taylor Alexander wrote:

> Yes, the tablet shipped with 3.0 but I immediately applied the 3.1 update.
> And then another small update wanted to be applied, but I think USB worked
> after the first one. I didn't try it before that.
>
> Under "About Tablet" in settings I have:
>
> Model: A500
> Android Version: 3.1
> Kernel Version: 3.6.36.3
> Build Number: Acer_A500_4.0.10.13_COM_GEN2
>
> Let me know if you have any other questions!
>
>
>
> On Sat, Sep 24, 2011 at 8:20 PM, Anil Sasidharan wrote:
>
>> Hi Taylor,
>>
>> Thanks a lot. Based on what have experienced, I guess the Samsung Tab 10.1
>> with Android-3.1 firmware does not yet support USB Host APIs whereas Acer's
>> Iconia A500 supports the same. Would you please let me know the exact
>> version of the Android firmware on A500 that worked for you. I've come
>> across an Acer Tab A501 with Android-3.0.1 version, however I'm not sure if
>> it supports USB Host API because Google says it is supported only from 3.1
>> (sdk-version 12 and above) onwards (even though there is an back port of USB
>> Host library for Gingerbread out there).
>>
>> I would greatly appreciate your comments/suggestions on this.
>>
>> Warm Regards,
>> Anil
>>
>> On Sat, Sep 24, 2011 at 12:31 AM, Taylor Alexander > > wrote:
>>
>>> Hi Anil,
>>>
>>> Yes, I did get it working with the Acer. I had replied off list to Will
>>> because my original reply to the list was taking too long to get approved
>>> (it was my first post to this list).
>>>
>>> Here is my first off-list message, where I gave some details:
>>>
>>> On Thu, Sep 22, 2011 at 1:43 AM, Taylor  wrote:
>>>
>>>> Hey,
>>>> I replied to the group, but I'm not seeing the message, so I don't
>>>> know if it failed to post, or if its in limbo since I'm a new user.
>>>> Anyway, I wanted to reply directly to you. I was having the EXACT same
>>>> problem as you. I had a USB device that I had compiled a kernel module
>>>> for. I loaded the module onto the tablet, and lsmod showed it running.
>>>> However, I couldn't get the device to work, and dmesg showed the same
>>>> problem - device not supported, over and over, even though the VID and
>>>> PID matched the source code for the driver. I was going crazy, but I
>>>> thought it was my kernel modules, so I tried a different approach at
>>>> someone's suggestion.
>>>>
>>>> I tried some of google's example code for USB, and when it runs
>>>> getDeviceList() I had it print how many USB devices were connected. It
>>>> always reads zero, even when a functioning USB mouse is connected!
>>>> This was frustrating, so I googled for how to enumerate devices on a
>>>> galaxy tab, and found your post.
>>>>
>>>> After seeing your post, I realized this may be an issue with Samsung.
>>>> I bought an Acer Iconia Tab A500 today, as some users had reported
>>>> success with it - it works! The same code run on the galaxy tab still
>>>> fails.
>>>>
>>>> Both are running 3.1.
>>>>
>>>> So I'm inclined to believe this is an issue with Samsung. Did you ever
>>>> get this working?
>>>
>>>
>>>
>>> I have had continued success with the Acer, and none with the Samsung.
>>>
>>> Will - replying to your off-list message. I just checked again. The Acer
>>> enumerates a webcam and thumbdrive I've tried, but not a mouse or keyboard.
>>>
>>> This is with the following code, which logs values to logcat:
>>>
>>> UsbManager usbman = (UsbManager) getSystemService(USB_SERVICE);
>>>  HashMap devlist = usbman.getDeviceList();
>>> Iterator deviter = devlist.values().iterator();
>>>  PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(
>>> ACTION_USB_PERMISSION), 0);
>>>
>>> while (deviter.hasNext()) {
>>> UsbDevice d = deviter.next();
>>>  l("Found device: "
>>> + String.format("%04X:%04X", d.getVen

Re: [android-developers] Re: USB Host mode on galaxy tab 10.1 / android 3.1 - Device repeatedly re connecting in dmesg output

2011-09-24 Thread Anil Sasidharan
Hi Taylor,

Thanks a lot. Based on what have experienced, I guess the Samsung Tab 10.1
with Android-3.1 firmware does not yet support USB Host APIs whereas Acer's
Iconia A500 supports the same. Would you please let me know the exact
version of the Android firmware on A500 that worked for you. I've come
across an Acer Tab A501 with Android-3.0.1 version, however I'm not sure if
it supports USB Host API because Google says it is supported only from 3.1
(sdk-version 12 and above) onwards (even though there is an back port of USB
Host library for Gingerbread out there).

I would greatly appreciate your comments/suggestions on this.

Warm Regards,
Anil

On Sat, Sep 24, 2011 at 12:31 AM, Taylor Alexander wrote:

> Hi Anil,
>
> Yes, I did get it working with the Acer. I had replied off list to Will
> because my original reply to the list was taking too long to get approved
> (it was my first post to this list).
>
> Here is my first off-list message, where I gave some details:
>
> On Thu, Sep 22, 2011 at 1:43 AM, Taylor  wrote:
>
>> Hey,
>> I replied to the group, but I'm not seeing the message, so I don't
>> know if it failed to post, or if its in limbo since I'm a new user.
>> Anyway, I wanted to reply directly to you. I was having the EXACT same
>> problem as you. I had a USB device that I had compiled a kernel module
>> for. I loaded the module onto the tablet, and lsmod showed it running.
>> However, I couldn't get the device to work, and dmesg showed the same
>> problem - device not supported, over and over, even though the VID and
>> PID matched the source code for the driver. I was going crazy, but I
>> thought it was my kernel modules, so I tried a different approach at
>> someone's suggestion.
>>
>> I tried some of google's example code for USB, and when it runs
>> getDeviceList() I had it print how many USB devices were connected. It
>> always reads zero, even when a functioning USB mouse is connected!
>> This was frustrating, so I googled for how to enumerate devices on a
>> galaxy tab, and found your post.
>>
>> After seeing your post, I realized this may be an issue with Samsung.
>> I bought an Acer Iconia Tab A500 today, as some users had reported
>> success with it - it works! The same code run on the galaxy tab still
>> fails.
>>
>> Both are running 3.1.
>>
>> So I'm inclined to believe this is an issue with Samsung. Did you ever
>> get this working?
>
>
>
> I have had continued success with the Acer, and none with the Samsung.
>
> Will - replying to your off-list message. I just checked again. The Acer
> enumerates a webcam and thumbdrive I've tried, but not a mouse or keyboard.
>
> This is with the following code, which logs values to logcat:
>
> UsbManager usbman = (UsbManager) getSystemService(USB_SERVICE);
>  HashMap devlist = usbman.getDeviceList();
> Iterator deviter = devlist.values().iterator();
>  PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(
> ACTION_USB_PERMISSION), 0);
>
> while (deviter.hasNext()) {
> UsbDevice d = deviter.next();
>  l("Found device: "
> + String.format("%04X:%04X", d.getVendorId(),
>  d.getProductId())); }
>
> where l is a function that logs stuff to the debug window.
>
> That is a snippet from the source code found here:
> http://android.serverbox.ch/?p=370
>
> There is that USB missile launcher that the google demo supports. I have
> been considering getting one of those to do some more testing with the
> Samsung.
>
> -Taylor
>
>
> On Fri, Sep 23, 2011 at 7:34 AM, Anil Sasidharan wrote:
>
>> Hi,
>>
>> I'm curious to know if you were able to get this fixed using "Acer Iconia
>> A500". Are you able to use the android application to enumerate devices
>> using USB Host API?
>>
>> Warm Regards,
>> Anil
>>
>>
>> On Thu, Sep 22, 2011 at 1:05 AM, Taylor  wrote:
>>
>>> Hey!
>>>
>>> I've actually had the EXACT same problems and it was driving me nuts!
>>> I'm running a 16GB Wifi Galaxy tab with the 3.1 touchwiz update.
>>>
>>> I can connect a USB mouse and keyboard and hub all just fine, they
>>> work great. However, when I try to enumerate the devices, I get
>>> nothing.
>>>
>>> To compound the confusion, I was trying to build custom kernel drivers
>>> for an unsupported device (FTDI chips) and it was driving me crazy
>>> because I could install the module and verify it was running, but I
>>> had the same problem - the device is not supported message. I thought
>>

Re: [android-developers] How to read data from external device using android USB Host Api ?

2011-09-23 Thread Anil Sasidharan
Hi,

Would you please let me know which Android device that you are using and
what is the Android firmware version? Does USB Host APIs work fine on your
Android device? I'm trying out a similar app on Motorola XOOM, but
unfortunately that crappy device just does not seem to work for USB Host
APIs..

Warm Regards,
Anil

On Wed, Aug 31, 2011 at 9:06 PM, Sam  wrote:

> Hello ,
>
> I've written an app to connect an USB Device and read data from
> external usb device to my android USB Host 3.1 root tab device.
> i used http://developer.android.com/guide/topics/usb/host.html android
> USB Host Api. But every time read data value got
> zero value in every byte from external device.
>
> can anyone send me demo or proper documentation how to read data from
> external device ?
> any encoding require for reading data ?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: USB Host mode on galaxy tab 10.1 / android 3.1 - Device repeatedly re connecting in dmesg output

2011-09-23 Thread Anil Sasidharan
Hi,

I'm curious to know if you were able to get this fixed using "Acer Iconia
A500". Are you able to use the android application to enumerate devices
using USB Host API?

Warm Regards,
Anil

On Thu, Sep 22, 2011 at 1:05 AM, Taylor  wrote:

> Hey!
>
> I've actually had the EXACT same problems and it was driving me nuts!
> I'm running a 16GB Wifi Galaxy tab with the 3.1 touchwiz update.
>
> I can connect a USB mouse and keyboard and hub all just fine, they
> work great. However, when I try to enumerate the devices, I get
> nothing.
>
> To compound the confusion, I was trying to build custom kernel drivers
> for an unsupported device (FTDI chips) and it was driving me crazy
> because I could install the module and verify it was running, but I
> had the same problem - the device is not supported message. I thought
> it was me!
>
> Specifically, I was trying to do this:
> http://android.serverbox.ch/?p=285
>
> Then I tried this:
> http://android.serverbox.ch/?p=370
>
> and couldn't get it to indicate that ANY devices were enumerated, even
> when it was just a USB mouse that was working!
>
> So then I tried BOTH of google's example apps, modifying the code to
> print all enumerated devices. Nothing. It printed the count value for
> the number of devices enumerated. Zero. Again, this was with a
> functioning device plugged in (In this case a keyboard).
>
> Annoyingly, I couldn't even TRY the ADB example the way its intended,
> because my phone is apparently a "high power device" and the tablet
> straight up tells you it refuses to mount it. Grrr.
>
> But aside from the high power device issue, which is annoying but
> seems to be by design, I am starting to feel like there is some
> problem with the USB implementation on the Galaxy Tab 10.1, and I am
> going to go out and buy an Acer Iconia A500 since people have reported
> success with that, and I am doing this for work.
>
> I will let you know how that goes.
>
> -Taylor
>
>
>
>
> On Aug 5, 6:58 am, wl  wrote:
> > Hi,
> >
> > I'm trying to interface to a USB device from my googleIO galaxy tab 10.1.
> >  I've been through the documentation on developer.android.com and stack
> > overflow and I can't find anything on this.  Here's the problem:
> >
> > I connect the USB device:
> >
> > I've set up device filters as per the docs, and nothing happens.
> > If I look in logcat when I connect the device, nothing happens.
> > If getDeviceList() says there are 0 devices connected.
> >
> > But if I connect to my galaxy tab 10.1 using "adb shell" then run dmesg,
> I
> > discover the device is being detected after all:
> > <6>[ 1685.332067] usb 1-1: new low speed USB device using tegra-ehci and
> > address 45
> > <3>[ 1685.370073] usb 1-1: device v1267 p is not supported
> > <6>[ 1685.392656] host_notify: ndev name=tegra-ehci.0: from state=5 -> to
> > state=5
> > <3>[ 1685.392726] hub 1-0:1.0: unable to enumerate USB device on port 1
> > <6>[ 1685.551797] usb 1-1: new low speed USB device using tegra-ehci and
> > address 46
> > <3>[ 1685.881732] usb 1-1: device v1267 p is not supported
> > <6>[ 1685.903018] host_notify: ndev name=tegra-ehci.0: from state=5 -> to
> > state=5
> > <3>[ 1685.903089] hub 1-0:1.0: unable to enumerate USB device on port 1
> >
> > Not only is it being detected, but it seems to be repeatedly:
> > - detecing the device
> > - reading the vid and pid
> > - declaring that they are not supported
> > - giving up on enumerating the device
> >
> > and then starting all over again, about 5 times a second.  I tried this
> with
> > a different USB device (different VID/PID), and saw the same pattern. My
> > questions are:
> >
> > - Could this be because I've managed to cock up setting up the intent
> > filters, or is there some lower level problem stopping the device even
> > getting that far?
> > - What constraints are there on which usb devices are supported on
> android
> > (e.g. are there limits to which protocols are supported? Or which
> VIDs/PIDs
> > are supported? Or some other constraints?)
> > - Is there any detailed documentation on USB on android (besides the
> > hardware.usb. api reference)?
> > - Has anyone else had this problem?  Have they found a solution?
> >
> > Any help would be much appreciated
> >
> > W
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] USB Host API on XOOM tablet

2011-09-23 Thread Anil Sasidharan
Hi All,

I'm trying to get the USB Host API (introduced in sdk-version 12) working
with the Motorola XOOM tablet.

The details of the tablet are as follows:
Model:  MZ601
Android-version: 3.1
Firmware configuration version: GAS_ASIA_USAEVRSTURTIRD_P035
Build-number: H.6.3-25-5

We are using a custom USB cable (ref:
http://www.youtube.com/watch?v=COkLEJGo6vo ) to convert the micro-B port of
the tablet to work in USB host mode. This has been tested with USB mouse and
it gets detected (we are able to navigate through the screens using the
mouse). We have even connected an FTDI based device and that gets detected
by the kernel (from dmesg, we can see the device enumeration messages).

Now the next step was to implement a basic test application that uses "USB
Host mode APIs of Android" to enumerate the peripheral devices connected to
the host port. (Please scroll down to see the code snippet)

I'm able to build the code using Eclipse with latest android-sdk. However
when this application is executed, I do not see any of the USB devices
attached to the host port getting detected.

It would be great to know if anyone has tested Android's USB Host API on any
tablet device especially Motorola XOOM. I would really appreciate your
comments/suggestions.


Log.d("USB_TEST", "begin enumeration");
usbman = (UsbManager) getSystemService(USB_SERVICE);
HashMap deviceList = usbman.getDeviceList();
Iterator devIter = deviceList.values().iterator();

while(devIter.hasNext()) {
UsbDevice dev = devIter.next();
Log.d("USB_TEST", "dev-name: " + dev.getDeviceName());
Log.d("USB_TEST", "vendor-id: " + dev.getVendorId());
Log.d("USB_TEST", "product-id: " + dev.getProductId());
}
Log.d("USB_TEST", "enumeration complete");



Warm Regards,
Anil

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

Re: [android-developers] BlueTooth Serial Communication

2011-02-22 Thread Anil Sasidharan
Hi,

Look at RFCOMM sockets and BluetoothAdapter and related classes in Android.

Warm Regards,
Anil

On Wed, Feb 23, 2011 at 5:52 AM, Alex M  wrote:

> Hi! I’m new to android J for forgive me dumb question
>
> Is there a tutorial on how I can establish serial communication w/ device
> over Bluetooth?
>
>
>
> TNX!
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] How to redirect GPS nmea from /dev/ttymxc to somewhere

2010-12-12 Thread Anil Sasidharan
Hi,

You need to implement gps HAL to hook this data up into Android's
LocationService JNI.

Warm Regards,
Anil

On Mon, Dec 13, 2010 at 12:27 PM, nelsonchung wrote:

> I can read gps nmea from /dev/ttymxc1 under linux shell command mode
> like this - cat < /dev/ttymxc1.
> But, I want to know how/where to set in order to let AP level
> application - LocationManager can get gps nmea via JNI/Android.
> How/Where should I set?
> Should I implement some codes followed gps.h?
> Or Can I redirect the nmea from /dev/ttymxc1 to somewhere?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Can you code in Android? Could you spare some free time to help people with brain injury?

2010-10-24 Thread Anil Sasidharan
Hi Fred,

 Good initiative. If you could share the fundamental requirements of
this concept, I would love to contribute to this noble effort as I much as I
can.

Warm Regards,
Anil


On Mon, Oct 18, 2010 at 4:27 PM, FredDeer  wrote:

> Hi All,
>
> I have been asked by a UK charity to develop some software to support
> people with brain injury. I’m not being paid to do this as the charity
> has little or no funding, but if the resulting software has commercial
> applications we retain the rights to exploit it. I’ve managed to
> convince a few people and major mobile networks to help out for free
> to get this moving and we’re at a critical stage.
>
> I’ve scoped out the project and designed all the features. I’m skilled
> in C++ but not in Android and I really need someone who is to help us
> out.
>
> Though we can’t pay you, you will own a part of the resulting company
> and we hope to provide a commercial service by April next year and
> that will mean you will have a full time job and directorship when we
> do.
>
> If you have spare time, understand that money is not the only thing in
> life, want to help start up a company and are willing to support us in
> our efforts to help this charity please get in touch via my email or
> phone and I'll give you some more info.
>
> You can be based anywhere in the World as this can be done remotely.
>
> Thanks you so much for reading this and I look forward to hearing from
> you.
>
>
> Fred Deer
> [email]f...@freddeer.com[/email]
> +44 (0) 7971 834404
>
> PS If this isn't for you but you know anyone who might be interested
> please pass this message on to 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android VNC server

2010-08-02 Thread Anil Sasidharan
Hi Danke,

 Great job. I've pulled your sources and re-built with
Android-eclair. I'm able to deploy and run the vnc server on my target
board. However there is some incompatibility in terms of color/pixel depth
between my target and host-PC and because of which the vncviewer shows
garbled display. The configuration of the target platform's display is
"480x800" and 16bpp. Please provide some tips on what config options to be
passed to  vncviewer.

Warm Regards,
Anil

On Mon, Aug 2, 2010 at 12:49 AM, Danke Xie  wrote:

> I put together a vnc server for Android. It is based on some existing
> source scattered around like fbvncserver.c, but didn't really work. I
> have fixed up a few issues like missing frames, keyboard and mouse
> input support, and made it a bit faster.
>
> Can anyone try it and give me some feedback on any issues that you may
> find? The source/doc is hosted on http://code.google.com/p/fastdroid-vnc/
>
> Thanks
> Danke
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Porting Android to omap 3530

2010-07-14 Thread Anil Sasidharan
Hi,

  Android has been ported on multiple OMAP3530 devices like
Mistral's OMAP3EVM, TI's Beagle board, ZOOM, Labrador etc. Also there 2
dedicated development efforts towards porting Android on TI's SOCs called
"Rowboat" and "OMAPZOOM".

 If you are looking for professional service to port Android
onto an OMAP based system, please visit the URL
http://mistralsolutions.com/technology/android_omap.php

Warm Regards,
Anil

On Wed, Jul 14, 2010 at 2:08 AM, Mehrsa 
wrote:
> Hi All,
> Please if this not the right forum for this question let me know where
> to go.
>
> I am trying to port Android to omap 3530. The system is booting to
> Linux 2.6.20-rc3 plus some patches from TI. I am trying to find
> appropriate kenrel patches to patch the OS.
>
> Many thanks in advance,
>
> Mehrsa
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Omap 3530 evm

2010-06-03 Thread Anil Sasidharan
Hi Satish,

  You can download pre-built Android images from our
website for OMAP3EVM Rev-D and Rev-G boards. Please check the
following URL.

  http://www.mistralsolutions.com/assets/downloads/android.php

Try this image on your hardware and let me know if you still see
issues with USB cable.

Warm Regards,
Anil

On Thu, Jun 3, 2010 at 3:21 PM, PP  wrote:
> Hi Frank,
>
> Without the USB cable i am able to see the android home screen and
> play around like a normal android mobile, the kernel crashes only when
> i insert the usb cable.
> It is a Omap3530 EVM from Mistral solotions.
>
> Regards,
> Satish.
>
> On Jun 3, 12:38 pm, FrankG  wrote:
>> Hi Satish,
>>
>> an your hardware is from where ?
>>
>> What you see finally on the device without usb cable ?
>>
>> Good luck !
>>
>>   Frank
>>
>> On 3 Jun., 06:02, PP  wrote:
>>
>> > Hi Frank,
>>
>> > Thanks for the reply.
>>
>> > The build did not crash without the USB cable. Without the USB cable
>> > connected to the host, i was able to get the Android boot screen.
>> > I got the prebuilt images from the site,http://code.google.com/p/rowboat/.
>> > Could there be some problem with the kernel image of the build?
>> > Should i download the source and rebuild it ?
>>
>> > Regrads,,
>> > Satish.
>>
>> > On Jun 2, 1:30 pm, FrankG  wrote:
>>
>> > > Did it crash without the cable ?
>>
>> > > From someone you got the flash tool, the details how to flash the
>> > > devise and I assume
>> > > also a orginal complete working build for this device.
>>
>> > > I would suggest you to a) run the device with the orginal build and
>> > > save the kernel messages and then b) run your own build and save
>> > > them and after that compare them to see what can be the problem.
>>
>> > > You should also check with modinfo the Kernel Objects (*.ko), maybe
>> > > "vermagic"
>> > > is modified through your Source Control System ?
>>
>> > > Good luck ! Frank
>>
>> > > On 1 Jun., 12:54, PP  wrote:
>>
>> > > > Hi All,
>>
>> > > > I haveOmap3530evm running Android 2.1. I want to install application
>> > > > on the evm, so i connected the evm to the host through the USB OTG
>> > > > cable, but the kernel is crashing. Kindly help me out in sorting this
>> > > > issue. Find the log below:
>>
>> > > > OMAP3_EVM #
>> > > > OMAP3_EVM #
>> > > > OMAP3_EVM # setenv bootargs 'init=/init  console=ttyS0,115200n8 root=/
>> > > > dev/mmcblk
>> > > > 0p2 rw rootwait mem=256M noinitrd androidboot.console=ttyS0
>> > > > mpurate=720'
>> > > > OMAP3_EVM # setenv bootcmd 'mmcinit; fatload mmc 0 0x8010 uImage;
>> > > > bootm 0x80
>> > > > 10'
>> > > > OMAP3_EVM # boot
>> > > > reading uImage
>>
>> > > > 2489828 bytes read
>> > > > ## Booting kernel from Legacy Image at 8010 ...
>> > > >Image Name:   Linux-2.6.32
>> > > >Image Type:   ARM Linux Kernel Image (uncompressed)
>> > > >Data Size:2489764 Bytes =  2.4 MB
>> > > >Load Address: 80008000
>> > > >Entry Point:  80008000
>> > > >Verifying Checksum ... OK
>> > > >Loading Kernel Image ... OK
>> > > > OK
>>
>> > > > Starting kernel ...
>>
>> > > > Uncompressing
>> > > > Linux.
>> > > > ...­­.
>> > > > ... done, booting the kernel.
>> > > > Linux version 2.6.32 (r...@khasim-laptop) (gcc version 4.4.0 (GCC) )
>> > > > #2 Thu May
>> > > > 20 18:31:19 IST 2010
>> > > > CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
>> > > > CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
>> > > > Machine: OMAP3 EVM
>> > > > Memory policy: ECC disabled, Data cache writeback
>> > > > OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp 720m )
>> > > > SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x10
>> > > > Reserving 4194304 bytes SDRAM for VRAM
>> > > > Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
>> > > > 65024
>> > > > Kernel command line: init=/init console=ttyS0,115200n8 root=/dev/
>> > > > mmcblk0p2 rw ro
>> > > > otwait mem=256M noinitrd androidboot.console=ttyS0 mpurate=720
>> > > > PID hash table entries: 1024 (order: 0, 4096 bytes)
>> > > > Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
>> > > > Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
>> > > > Memory: 256MB = 256MB total
>> > > > Memory: 250112KB available (4292K code, 825K data, 176K init, 0K
>> > > > highmem)
>> > > > Hierarchical RCU implementation.
>> > > > NR_IRQS:402
>> > > > Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
>> > > > Reprogramming SDRC clock to 33200 Hz
>> > > > GPMC revision 5.0
>> > > > IRQ: Found an INTC at 0xfa20 (revision 4.0) with 96 interrupts
>> > > > Total of 96 interrupts on 1 active controller
>> > > > OMAP GPIO hardware version 2.5
>> > > > OMAP clockevent source: GPTIMER1 at 32768 Hz
>> > > > Console: colour dummy device 80x30
>> > > > Calibrating delay loop... 499

Re: [android-developers] DDMS not listing process -Any way via command line to attach the process to debug

2010-05-21 Thread Anil Sasidharan
Hi,

 Please try the following steps to run DDMS in standalone mode
(outside Eclipse)...
1.  Install Android SDK
2.  Add /tools to PATH environment variable
3.  Run "ddms" from Host PC's Linux shell
4.  If there is any exception message
"Assistive Technology not found: org.GNOME.Accessibility.JavaBridge",

comment out the line
"assistive_technologies=org.GNOME.Accessibility.JavaBridge"
in the file accessibility.properties
5.  Re-run "ddms"

Warm Regards,
Anil

On Fri, May 21, 2010 at 8:36 PM, GPU  wrote:
> Hi All ,
>
> Sometimes the DDMS in the Eclipse not listing the process.
>
> To do the debug in this condition,
>
> 1)  Is their any way force the DDMS to list the process?
>
> 2) Any command  to attach the process from the command line?
>
> Thanks & Regards
> Rajesh Gopu
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Video display not coming on Android1.6 SDK on OMAP3430 board

2010-01-04 Thread Anil Sasidharan
Hi,

Since your Android port uses overlays for video output, please
enable the overlay support in kernel and try.

Warm Regards,
Anil


On Thu, Dec 17, 2009 at 2:40 PM, Ashu wrote:

> Hi,
> In porting android SDK 1.6, we are facing an issue with video display.
> The board is unable to play any Video file, showing error on screen,
> like "Sorry,can't play this video".
>
> But it is playing audio well, We are using ALSA audio,
>
> We are using Meridian video player to play the video files & when we
> run the player, it is showing the error message as "Sorry,can't play
> this video".
>
>
> Below is the logcat output when we tried to play Meridian video
> player.
>
>
> VideoView( 1000): reset duration to -1 in openVideo
> I/ActivityManager(  827): Displayed activity
> org.iii.ro.iiivpa/.VideoPlay: 519 ms (total 519 ms)
> D/VideoMio34xx( 1017): Creating Vendor(34xx) Specific MIO component
> D/VideoMio34xx( 1017): Calling Vendor(34xx) Specific initCheck
> D/VideoMio34xx( 1017): Use Overlays
> V/VideoMio34xx( 1017): using Vendor Speicifc(34xx) codec
> D/VideoMio34xx( 1017): number of buffers = -19
> V/VideoMio34xx( 1017): sendEvent(MEDIA_SET_VIDEO_SIZE, 240, 210)
> <6>binder: release 1017:1028 transaction 5106 in, still active
> binder: release 1017:1028 transaction 5106 in, still active
> <6>binder: send failed reply for transaction 5106 to 1000:1000
> binder: send failed reply for transaction 5106 to 1000:1000
> I/ServiceManager(  802): service 'media.audio_flinger' died
> I/ServiceManager(  802): service 'media.player' died
> I/ServiceManager(  802): service 'media.camera' died
> W/AudioSystem(  827): AudioFlinger server died!
> W/MediaPlayer( 1000): MediaPlayer server died!
> E/MediaPlayer( 1000): error (100, 0)
> E/MediaPlayer( 1000): Error (100,0)
> D/VideoView( 1000): Error: 100,0
> I/( 1032): ServiceManager: 0xac38
> W/AudioHardwareInterface( 1032): Creating Vendor Specific
> AudioHardware
> E/ALSALib ( 1032): external/alsa-lib/src/control/control.c:909:
> (snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
> E/AudioHardwareALSA( 1032): Unable to attach mixer to device
> AndroidPlayback: No such file or directory
> E/ALSALib ( 1032): external/alsa-lib/src/control/control.c:909:
> (snd_ctl_open_noupdate) Invalid CTL AndroidRecord
> E/AudioHardwareALSA( 1032): Unable to attach mixer to device
> AndroidRecord: No such file or directory
> W/HAL ( 1032): load: module=/system/lib/hw/acoustics.omap3430.so
> error=Cannot load library: load_library[984]: Library '/syste
> m/lib/hw/acoustics.omap3430.so' not found
> W/HAL ( 1032): load: module=/system/lib/hw/acoustics.ldp1.so
> error=Cannot load library: load_library[984]: Library '/system/li
> b/hw/acoustics.ldp1.so' not found
> E/ALSALib ( 1032): external/alsa-lib/src/pcm/pcm.c:2201:
> (snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
> I/AudioHardwareALSA( 1032): Initialized ALSA PLAYBACK device default
> I/AudioFlinger( 1032): AudioFlinger's thread ready to run for output 0
> E/ALSALib ( 1032): external/alsa-lib/src/pcm/pcm.c:2201:
> (snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
> E/ALSALib ( 1032): external/alsa-lib/src/pcm/pcm.c:2201:
> (snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
> E/ALSALib ( 1032): external/alsa-lib/src/pcm/pcm.c:2201:
> (snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
> E/AudioService(  827): Media server died.
> I/ServiceManager(  827): Waiting for sevice media.audio_flinger...
> I/AudioHardwareALSA( 1032): Initialized ALSA PLAYBACK device default
> I/CameraService( 1032): CameraService started: pid=1032
> E/AudioService(  827): Media server started.
>
>  CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.3| VT102 |
> Offline
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-08-05 Thread Anil Sasidharan
Hi,

 Yes, this is possible. Android supports a bench tools for
testing the device from host-pc. Please check out the following:

1. adb am  - "am" is one such tool
2. service command
3. Instrumentation framework (InstrumentationTestCase,
InstrumentationTestRunner, InstrumentationTestSuite etc.)
3. Tool called "monkey"
4. sendevent command (in /system/bin) - most appropriate to generate keypad
and touch events (event emulation)

Warm Regards,
Anil

On Thu, Aug 6, 2009 at 9:06 AM, chicochen  wrote:

>
> Anyone can help us? thanks.
>
> On 7月30日, 下午2时09分, pinky  wrote:
> > even I am looking for a way to control the android phone through
> > computer for testing purpose.
> > I want to know how to do it could any one give a complete info on
> > it...
> >
> > On Jul 28, 11:04 am,chicochen wrote:
> >
> >
> >
> > > Thanks, I just read something about the instrumentation, and have the
> > > last question that is "can we use instrumentation to control the app
> > > ui, such as click a button, input into textbox and click the
> > > keybord?".
> >
> > > On 7月28日, 上午2时00分, Dianne Hackborn  wrote:
> >
> > > > You create an .apk with an Instrumentation class (implementation
> deriving
> > > > from that, with an  declaration for it on the
> manifest),
> > > > and use "adb shell am instrument" to run it.
> >
> > > > I think there are some examples of doing this around, but don't know
> them
> > > > off-hand.
> >
> > > > On Mon, Jul 27, 2009 at 8:51 AM,chicochen wrote:
> >
> > > > > Thanks for your feedback, so how can we comunicate with the APP UI
> > > > > like automated testing tool - qtp does
> > > > > If it is the way, maybe I will try  to write such a useful tool.
> >
> > > > > On 7月27日, 上午8时59分, James <030440...@163.com> wrote:
> > > > > > For a emulator,you can telnet localhost 5554 to send
> instructions.As
> > > > > > to a real device,I'm afraid you cann't do it this way;
> > > > > > Probably you'd have to run an agent written by yourself to
> acchive
> > > > > > this goal;Hope this helps!
> > > > > > BTW,I'm also working on android software testing.
> >
> > > > > > On Jul 26, 11:25 am,chicochen wrote:
> >
> > > > > > > I am a tester, is there a way to control the Android phone or
> do the
> > > > > > > automated testing using a remote PC?
> >
> > > > > > > Or how can I dev such a automted tools, Use which technology?
>  thanks.-
> > > > > 隐藏被引用文字 -
> >
> > > > > > - 显示引用的文字 -
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see and
> > > > answer them.- 隐藏被引用文字 -
> >
> > > > - 显示引用的文字 -- Hide quoted text -
> >
> > > - Show quoted text -- 隐藏被引用文字 -
> >
> > - 显示引用的文字 -
> >
>

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



[android-developers] Re: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-08-05 Thread Anil Sasidharan
Hi,



On Thu, Aug 6, 2009 at 9:06 AM, chicochen  wrote:

>
> Anyone can help us? thanks.
>
> On 7月30日, 下午2时09分, pinky  wrote:
> > even I am looking for a way to control the android phone through
> > computer for testing purpose.
> > I want to know how to do it could any one give a complete info on
> > it...
> >
> > On Jul 28, 11:04 am,chicochen wrote:
> >
> >
> >
> > > Thanks, I just read something about the instrumentation, and have the
> > > last question that is "can we use instrumentation to control the app
> > > ui, such as click a button, input into textbox and click the
> > > keybord?".
> >
> > > On 7月28日, 上午2时00分, Dianne Hackborn  wrote:
> >
> > > > You create an .apk with an Instrumentation class (implementation
> deriving
> > > > from that, with an  declaration for it on the
> manifest),
> > > > and use "adb shell am instrument" to run it.
> >
> > > > I think there are some examples of doing this around, but don't know
> them
> > > > off-hand.
> >
> > > > On Mon, Jul 27, 2009 at 8:51 AM,chicochen wrote:
> >
> > > > > Thanks for your feedback, so how can we comunicate with the APP UI
> > > > > like automated testing tool - qtp does
> > > > > If it is the way, maybe I will try  to write such a useful tool.
> >
> > > > > On 7月27日, 上午8时59分, James <030440...@163.com> wrote:
> > > > > > For a emulator,you can telnet localhost 5554 to send
> instructions.As
> > > > > > to a real device,I'm afraid you cann't do it this way;
> > > > > > Probably you'd have to run an agent written by yourself to
> acchive
> > > > > > this goal;Hope this helps!
> > > > > > BTW,I'm also working on android software testing.
> >
> > > > > > On Jul 26, 11:25 am,chicochen wrote:
> >
> > > > > > > I am a tester, is there a way to control the Android phone or
> do the
> > > > > > > automated testing using a remote PC?
> >
> > > > > > > Or how can I dev such a automted tools, Use which technology?
>  thanks.-
> > > > > 隐藏被引用文字 -
> >
> > > > > > - 显示引用的文字 -
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see and
> > > > answer them.- 隐藏被引用文字 -
> >
> > > > - 显示引用的文字 -- Hide quoted text -
> >
> > > - Show quoted text -- 隐藏被引用文字 -
> >
> > - 显示引用的文字 -
> >
>

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



[android-developers] Re: Airtell calling card - receipt

2009-05-23 Thread Anil Sasidharan
Hi,

 I'm extremely sorry for this. In fact the mail-id
"android-developers" had been added by accident (might be auto-fill in of
address fields). However I do apologize for the trouble.

Warm Regards,
Anil

On Sun, May 24, 2009 at 2:13 AM, Disconnect  wrote:

> You might want to change that.
>
> On Sat, May 23, 2009 at 12:10 PM, Anil Sasidharan wrote:
>
>> Airtel calling card
>>
>>
>>
>
> >
>

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



[android-developers] Re: Android embedded hardware

2008-10-31 Thread Anil Sasidharan
Hi Eric,

 We are not building any specific device rather trying to
prove Android on our OMAP3530 based hardware evaluation kit. However
we would like to hear from you if you have some requirements in the
Android-porting space.

Warm Regards,
Anil

2008/10/31 Eric <[EMAIL PROTECTED]>:
>
> Hi Anil,
>
> What hardware are you going to build with your OMAP3EVM (Mistral)?
> A mobile phone on Android?
>
> When and where would we see it?
>
> Cheers
> Eric
>
> On Oct 30, 11:57 pm, "Anil Sasidharan" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>>  The details are as follows:
>>
>> Board:OMAP3EVM (Mistral)
>> Processor:  OMAP3530 (ARM Cortex A8 core and C64+ DSP core)
>> RAM: 128MB
>> FLASH:  256MB
>> Android-support:  Android version 1.0 is up
>> Peripherals:
>> -
>> 1. LCD panel (VGA resolution)
>> 2. Touchscreen
>> 3. Keypad
>> 4. Ethernet
>> 5. UART
>> 6. USB
>> 7. SD/MMC - Android boot out of SD is functional
>> 8. Audio - not supported with Android
>>
>> For more info please 
>> visithttp://www.mistralsolutions.com/business_divisons/omap_3evm.php
>>
>> Warm Regards,
>> Anil
>>
>> 2008/10/30 heavyseatree <[EMAIL PROTECTED]>:
>>
>>
>>
>> > Hi, Anil,
>>
>> > I am very interested in your android runing based on the OMAP
>> > hardware.
>> > could you give me more details?
>>
>> > Regards,
>>
>> > seatree
>>
>> > On 10月30日, 下午5时20分, "Anil Sasidharan" <[EMAIL PROTECTED]> wrote:
>> >> Hi,
>>
>> >>   We have Android running on the Mistral's OMAP3530 based
>> >> hardware with display, touch, keypad, SD/MMC, Ethernet supported.
>> >> Would you like to get more details?
>>
>> >> Warm Regards,
>> >> Anil
>>
>> >> On Wed, Oct 29, 2008 at 12:07 PM, whitehexagon
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > I'm looking for some resouces/links for embedded hardware that runs
>> >> > Android.  I've found a couple of hardware development boards such as
>> >> > the dotphone offering and some custom projects across the web.  But
>> >> > these are more directed towards phone development.  I'm looking for
>> >> > something smaller/simpler that can be used in embeded systems.
>> >> > Possibly an 'out-of-the-box' kit form that runs core android but has
>> >> > axtra modules for optional touch display, optional digital/analogue
>> >> > inputs, wireless g support etc.  So are there any such offererings
>> >> > available now that we have real hardware out in the wild?
>>
>> >> > Cheers
>>
>> >> > Peter- 隐藏被引用文字 -
>>
>> >> - 显示引用的文字 -
> >
>

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



[android-developers] Re: Android embedded hardware

2008-10-30 Thread Anil Sasidharan
Hi,

 The details are as follows:

Board:OMAP3EVM (Mistral)
Processor:  OMAP3530 (ARM Cortex A8 core and C64+ DSP core)
RAM: 128MB
FLASH:  256MB
Android-support:  Android version 1.0 is up
Peripherals:
-
1. LCD panel (VGA resolution)
2. Touchscreen
3. Keypad
4. Ethernet
5. UART
6. USB
7. SD/MMC - Android boot out of SD is functional
8. Audio - not supported with Android


For more info please visit
http://www.mistralsolutions.com/business_divisons/omap_3evm.php

Warm Regards,
Anil

2008/10/30 heavyseatree <[EMAIL PROTECTED]>:
>
> Hi, Anil,
>
> I am very interested in your android runing based on the OMAP
> hardware.
> could you give me more details?
>
>
> Regards,
>
> seatree
>
> On 10月30日, 下午5时20分, "Anil Sasidharan" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>>   We have Android running on the Mistral's OMAP3530 based
>> hardware with display, touch, keypad, SD/MMC, Ethernet supported.
>> Would you like to get more details?
>>
>> Warm Regards,
>> Anil
>>
>> On Wed, Oct 29, 2008 at 12:07 PM, whitehexagon
>>
>>
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > I'm looking for some resouces/links for embedded hardware that runs
>> > Android.  I've found a couple of hardware development boards such as
>> > the dotphone offering and some custom projects across the web.  But
>> > these are more directed towards phone development.  I'm looking for
>> > something smaller/simpler that can be used in embeded systems.
>> > Possibly an 'out-of-the-box' kit form that runs core android but has
>> > axtra modules for optional touch display, optional digital/analogue
>> > inputs, wireless g support etc.  So are there any such offererings
>> > available now that we have real hardware out in the wild?
>>
>> > Cheers
>>
>> > Peter- 隐藏被引用文字 -
>>
>> - 显示引用的文字 -
>
> >
>

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



[android-developers] Re: Android embedded hardware

2008-10-30 Thread Anil Sasidharan

Hi,

  We have Android running on the Mistral's OMAP3530 based
hardware with display, touch, keypad, SD/MMC, Ethernet supported.
Would you like to get more details?

Warm Regards,
Anil

On Wed, Oct 29, 2008 at 12:07 PM, whitehexagon
<[EMAIL PROTECTED]> wrote:
>
> I'm looking for some resouces/links for embedded hardware that runs
> Android.  I've found a couple of hardware development boards such as
> the dotphone offering and some custom projects across the web.  But
> these are more directed towards phone development.  I'm looking for
> something smaller/simpler that can be used in embeded systems.
> Possibly an 'out-of-the-box' kit form that runs core android but has
> axtra modules for optional touch display, optional digital/analogue
> inputs, wireless g support etc.  So are there any such offererings
> available now that we have real hardware out in the wild?
>
> Cheers
>
> Peter
> >
>

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



[android-developers] Re: Video playback in Android emulator

2008-09-18 Thread Anil Sasidharan
Hi,

The issue is resolved now with a freshly generated 3gp video (I
may have to see what actually went wrong with the initial 3gp file)

Warm Regards,
Anil

On Wed, Sep 17, 2008 at 11:57 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:

>
> Could you send your 3gp file and the logcat output to debug this further?
>
> 2008/9/17 Anil Sasidharan <[EMAIL PROTECTED]>
>
> Hi,
>>I'm getting the following exception when a 3gp file playback is
>> attempted from /sdcard using the MediaPlayer sample application (part of
>> ApiDemos).
>>
>> error: Prepare failed.: status=0xFFFC
>> java.io.IOException: Prepare failed.: status=0xFFFC
>>
>>
>> Android emulator has been invoked using the following command:
>>
>> emulator -sdcard lib/images/sdcard.img -shell
>>
>> The image "sdcard.img" has been created using the mksdcard tool. The video
>> file "output.3gp" is placed under the /sdcard directory (adb-pushed to
>> /sdcard). The variable "path" in MediaPlayerdemo_Video.java is set as
>> "/sdcard/output.3gp" and the method "setDataSource" is invoked with this
>> parameter.
>>
>> However the application throws error while trying to palyback the video
>> file. Please share your thoughts on this.
>>
>> Warm Regards,
>> Anil
>>
>>
>>
>> On Wed, Sep 17, 2008 at 2:21 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
>>
>>>
>>>
>>> 2008/9/17 Megha Joshi <[EMAIL PROTECTED]>
>>>
>>>> Set the path to  /sdcard/
>>>>
>>>> 2008/9/17 Anil <[EMAIL PROTECTED]>
>>>>
>>>>
>>>>> I've done this, how about the path to be given to MediaPlayer's
>>>>> setMediaSource() method?
>>>>
>>>>
>>> Perhaps you meant setDataSource(path), not setMediaSource()...
>>>
>>>>
>>>>>
>>>>> On Sep 17, 10:36 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>>>>> > You should install a sdcard on the emulator and then push the file to
>>>>> > /sdcard dir.
>>>>> >
>>>>> > 2008/9/16 Anil <[EMAIL PROTECTED]>
>>>>> >
>>>>> >
>>>>> >
>>>>> > > Hi,
>>>>> >
>>>>> > > Can someone briefly explain the method to playback a 3GP
>>>>> > > video in the Android emulator. Where should I push this file using
>>>>> > > adb? What should be the path given in the VideoViewDemo.java file?
>>>>> >
>>>>> > > Warm Regards,
>>>>> > > Anil
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Video playback in Android emulator

2008-09-17 Thread Anil Sasidharan
Hi,
   I'm getting the following exception when a 3gp file playback is
attempted from /sdcard using the MediaPlayer sample application (part of
ApiDemos).

error: Prepare failed.: status=0xFFFC
java.io.IOException: Prepare failed.: status=0xFFFC


Android emulator has been invoked using the following command:

emulator -sdcard lib/images/sdcard.img -shell

The image "sdcard.img" has been created using the mksdcard tool. The video
file "output.3gp" is placed under the /sdcard directory (adb-pushed to
/sdcard). The variable "path" in MediaPlayerdemo_Video.java is set as
"/sdcard/output.3gp" and the method "setDataSource" is invoked with this
parameter.

However the application throws error while trying to palyback the video
file. Please share your thoughts on this.

Warm Regards,
Anil


On Wed, Sep 17, 2008 at 2:21 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:

>
>
> 2008/9/17 Megha Joshi <[EMAIL PROTECTED]>
>
>> Set the path to  /sdcard/
>>
>> 2008/9/17 Anil <[EMAIL PROTECTED]>
>>
>>
>>> I've done this, how about the path to be given to MediaPlayer's
>>> setMediaSource() method?
>>
>>
> Perhaps you meant setDataSource(path), not setMediaSource()...
>
>>
>>>
>>> On Sep 17, 10:36 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>>> > You should install a sdcard on the emulator and then push the file to
>>> > /sdcard dir.
>>> >
>>> > 2008/9/16 Anil <[EMAIL PROTECTED]>
>>> >
>>> >
>>> >
>>> > > Hi,
>>> >
>>> > > Can someone briefly explain the method to playback a 3GP
>>> > > video in the Android emulator. Where should I push this file using
>>> > > adb? What should be the path given in the VideoViewDemo.java file?
>>> >
>>> > > Warm Regards,
>>> > > Anil
>>>
>>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---