[android-developers] Re: JNI and caching jobject thiz?

2012-01-16 Thread FrankG
Hello !

It seems for me, that your question is not really  ndk and android
related,
instead more or less something related to Reflection and the Dynamic
Invocation API.

Good luck ! Frank




On 13 Jan., 11:11, M J fakeacc...@googlemail.com wrote:
 Hey guys,

 I nned your help. I am currently developing an application which uses
 JNI and native sockets. The problem is that I have to call Java code
 if some packages arrive on the native socket connection. Currently I
 am using CallVoidMethod to do that. The JNIEnv cannot be cached so I
 get it like this:

 inline JNIEnv *get_env()
 {
         JNIEnv *env;
         jvm-GetEnv((void **)env, JNI_VERSION_1_4);
         return env;

 }

 The jmethodID I is cached and initialized on startup. My only problem
 now is, how can I get the jobject? Currently I am making a global
 reference on the parameter jobject thiz, which is passed to my init
 function.

 Is this okay? I am asking because I am having some trouble with that,
 eg. the reference to the local and the global obj are exactly the
 same. And when I a call DeleteGlobalRef on the global reference there
 is a warning in the log cat output that this reference does not exist
 and the app crashes.

 I also tried using the local reference but then the CallVoidMethod
 crashes and the output says this reference does not exist, so I think
 I am on the right way.

 Thanks in advance!

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


[android-developers] Re: Access to USB Device

2012-01-16 Thread FrankG
Hello Nico,

you didn't said which device type your GPS receiver plays.

But from the dmesg output it seems that their might be a problem
with the power supply for your external device ??

6[ 2786.151489] msm_otg_suspend: usb in low power mode
6[ 2786.842376] cpufreq: cpu 1 is not active.
6[ 2789.192687] msm_otg_resume: usb exited from low power mode

Did you provide explicit power for your device ?

Good luck ! Frank


On 13 Jan., 08:58, Nico Guth nicolai.g...@googlemail.com wrote:
 Hi!

 I have a USB device (GPS receiver) which I want to connect to my
 Android 3.2 tablet.
 The device is somehow recognized by the system and a ttyACM0 node is
 created in /dev. But here my problem starts: how can I get access to /
 dev/ttyACM0 without root access rights? I also tried to use the
 UsbManager etc. from the API, but here the device is not listed.
 Another program from the market (USB Device Info) also couldn't find
 the device via API but only by parsing /sys/bus/usb/devices/.

 Is there a way to send/receive data to/from the device without rooting
 the tab?
 The tab is a Huawei MediaPad.

 Here is an excerpt from dmesg:
 6[ 2781.888427] msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip
 EHCI Host Controller
 6[ 2781.897521] msm_hsusb_host msm_hsusb_host.0: new USB bus
 registered, assigned bus number 1
 6[ 2781.905059] msm_hsusb_host msm_hsusb_host.0: irq 132, io base
 0x1250
 6[ 2781.911712] usb usb1: New USB device found, idVendor=1d6b,
 idProduct=0002
 6[ 2781.918243] usb usb1: New USB device strings: Mfr=3, Product=2,
 SerialNumber=1
 6[ 2781.928039] usb usb1: Product: Qualcomm On-Chip EHCI Host
 Controller
 6[ 2781.933380] usb usb1: Manufacturer: Linux 2.6.35.11 ehci_hcd
 6[ 2781.938995] usb usb1: SerialNumber: msm_hsusb_host.0
 6[ 2781.946319] hub 1-0:1.0: USB hub found
 6[ 2781.949035] hub 1-0:1.0: 1 port detected
 6[ 2786.151489] msm_otg_suspend: usb in low power mode
 6[ 2786.842376] cpufreq: cpu 1 is not active.
 6[ 2789.192687] msm_otg_resume: usb exited from low power mode
 6[ 2789.349945] usb 1-1: new full speed USB device using
 msm_hsusb_host and address 2
 6[ 2789.507843] usb 1-1: New USB device found, idVendor=152a,
 idProduct=8230
 6[ 2789.513580] usb 1-1: New USB device strings: Mfr=1, Product=2,
 SerialNumber=0
 6[ 2789.530883] usb 1-1: Product: Septentrio USB Device
 6[ 2789.534729] usb 1-1: Manufacturer: Septentrio
 6[ 2789.543395] cdc_acm 1-1:1.0: ttyACM0: USB ACM device

 I hope you can help me
 So long,
 Nico

-- 
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: Show settings to allow configuration of application development-related settings.

2012-01-05 Thread FrankG
So finally he must check the platform code
for the correct action name inside the settings app.

But I have my doubts, that this will work in compatible manner
as the different manufacturer will provide changed settings app,
means this action name can differ between the concrete devices.

Good luck ! Frank


On 3 Jan., 20:29, Michael Wellington lowpulse...@gmail.com wrote:
 You're right. I didn't see that. In any case the error message says it
 plainly, *the Activity is not found.*

-- 
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: ADB bringup on Android Kernel 3.0

2011-10-10 Thread FrankG

Hi Venumadhav,

this is out of scope of this group. I would suggest you go to
android-platform
or android-porting.

Good luck ! Frank


On 5 Okt., 21:02, gvlad...@gmail.com venumadhav...@gmail.com
wrote:
 Hi,
 I am new to USB device drivers, I have to bringup USB ADB with Android
 Kernel 3.0, When I try to enable ADB using
 echo 1  /sys/class/android_usb/android0/enable, Kernel Crashes
 Occurs. Can some one help me how do I debug this and what could be the
 reason for a Kernel Crash

 [  118.03] Unable to handle kernel NULL pointer dereference at
 virtual address 0018
 [  118.04] pgd = c7058000
 [  118.04] [0018] *pgd=2706c831, *pte=, *ppte=
 [  118.05] Internal error: Oops: 17 [#1] PREEMPT
 [  118.05] Modules linked in:
 [  118.05] CPU: 0    Tainted: G        W    (3.0.1-perf+ #7)
 [  118.05] PC is at enable_store+0x50/0x144
 [  118.05] LR is at enable_store+0x30/0x144
 [  118.05] pc : [c0239304]    lr : [c02392e4]    psr: 6013
 [  118.05] sp : c7041f18  ip : ffda  fp : be931e16
 [  118.05] r10: c798a908  r9 : 0002  r8 : c7b38220
 [  118.05] r7 : 0002  r6 : 0001  r5 : c794a1e0  r4 :
 
 [  118.05] r3 : c0532c20  r2 : c7054000  r1 : 0001  r0 :
 
 [  118.05] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM
 Segment user
 [  118.05] Control: 10c5787d  Table: 27058019  DAC: 0015
 [  118.05]
 [  118.05] PC: 0xc0239284:
 [  118.05] 9284  e3c3303f e5932004 e2422001 e5832004 e5933000
 e3130002 0a00 eb0637ab
 [  118.05] 92a4  e1a6 e1a01005 e8bd4070 eafffbb9 e92d40f7
 e1a04002 e1a07003 ebfe2bfd
 [  118.05] 92c4  e28d2008 e59f110c e3a06001 e1a05000 e1a4
 e595400c e5226004 ebfd30b9
 [  118.05] 92e4  e59d1004 e5d53014 e351 0a21 e353
 1a2d e59f30dc e1a4
 [  118.05] 9304  e594c018 e28310ec e59f20d0 e1d3e0b8 e7d7c41e
 e584c018 e5d3c00a e5c4c01b
 [  118.05] 9324  e5d3c00b e5c4c01c e1d3e0bc e594c01c e7d7c41e
 e584c01c e5d3c004 e5c4c015
 [  118.05] 9344  e5d3c005 e5c4c016 e5d33006 e5c43017 ebfffdec
 e594 e5903000 e5933014
 [  118.05] 9364  e353 0a01 e1a01006 e12fff33 e3a03001
 ea0b e353 0a0b
 [  118.05]
 [  118.05] LR: 0xc0239264:
 [  118.05] 9264  e5832004 e590300c e1530001 1a00 eba9
 e121f004 e1a0200d e3c23d7f
 [  118.05] 9284  e3c3303f e5932004 e2422001 e5832004 e5933000
 e3130002 0a00 eb0637ab
 [  118.05] 92a4  e1a6 e1a01005 e8bd4070 eafffbb9 e92d40f7
 e1a04002 e1a07003 ebfe2bfd
 [  118.05] 92c4  e28d2008 e59f110c e3a06001 e1a05000 e1a4
 e595400c e5226004 ebfd30b9
 [  118.05] 92e4  e59d1004 e5d53014 e351 0a21 e353
 1a2d e59f30dc e1a4
 [  118.05] 9304  e594c018 e28310ec e59f20d0 e1d3e0b8 e7d7c41e
 e584c018 e5d3c00a e5c4c01b
 [  118.05] 9324  e5d3c00b e5c4c01c e1d3e0bc e594c01c e7d7c41e
 e584c01c e5d3c004 e5c4c015
 [  118.05] 9344  e5d3c005 e5c4c016 e5d33006 e5c43017 ebfffdec
 e594 e5903000 e5933014
 [  118.05]
 [  118.05] SP: 0xc7041e98:
 [  118.05] 1e98  c7041ec4 80d0 c7041f14 c7054000 c7041f1c
 c7041ed4 c03e1234 c01849f4
 [  118.05] 1eb8  c7041f14 040f 0007 0001 0002
 c002ed90  0001
 [  118.05] 1ed8  c7054000 c0532c20  c794a1e0 0001
 0002 c7b38220 0002
 [  118.05] 1ef8  c798a908 be931e16 ffda c7041f18 c02392e4
 c0239304 6013 
 [  118.05] 1f18  c798a900 0001 c7054000 c79a6968 c7b38238
 c7041f80 c03e9a20 c01c0f94
 [  118.05] 1f38  c79a6968 c010b08c 0002 c7b88ac0 0001dee0
 c7041f80 0002 c704
 [  118.05] 1f58   c00be834 c7b88ac0 0001dee0 c7b88ac0
 0001dee0  
 [  118.05] 1f78  0002 c00be968   0002
  0002 0002
 [  118.05]
 [  118.05] R2: 0xc7053f80:
 [  118.05] 3f80      
   
 [  118.05] 3fa0      
   
 [  118.05] 3fc0      
   
 [  118.05] 3fe0      
   
 [  118.05] 4000  0a31    
   
 [  118.05] 4020      
   
 [  118.05] 4040      
   
 [  118.05] 4060      
   
 [  118.05]
 [  118.05] R3: 0xc0532ba0:
 [  118.05] 2ba0  0100 c0234314  c04a7036 0100
 c02342bc  c04a7040
 [  118.05] 2bc0  0100 c02341a4  c04a7049 0180
 c0234184 c0234808 
 [  118.05] 2be0      
   
 [  

[android-developers] Re: USB - IR drivers

2011-09-19 Thread FrankG
Hello Achim,

Yes, maybe .. I have  no experiences with
the new USB Accessory Development Kit, but
I assume that this requires the hardware and kernel support
means a 3.1 capable devise. Nevertheless it sounds very
promising to allow many different external devices.

Good luck ! Frank



On 17 Sep., 08:34, al achim.leub...@googlemail.com wrote:
 You are right, Frank, for android versions before 3.1. Using the USB
 framework introduced with android 3.1, it should be possible from
 within a java app.

 On 16 Sep., 13:58, FrankG frankgru...@googlemail.com wrote:







  Hello !

  IMHO to add a new usb mode, you need to change nearly
  all parts of the platform .. change the kernel ( new usb gadget)
  add some kernel to framework communication stuff and so on ..

  Without full platform access something like this is not possible.

  Good luck ! Frank

  On 16 Sep., 04:00, warriorinjapan chandanpratih...@gmail.com wrote:

   Dear All,

   Does any one of you have experience of writing the USB drivers on
   Android SDK for InfraRed transmitters.

   Thank you.

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


[android-developers] Re: UsbStorageConnector failing with IOException.

2011-09-19 Thread FrankG
Hmm, strange .. your UsbStorageConnector tries to communicate
with a native daemon using the NativeDaemonConnector.

But to investigate into this is out of scope of this particular group.

Which platform are you using ? Maybe the UsbStorageConnector is
a vendor extension  because this is normally handled by the mount
service ?
Good luck ! Frank


On 18 Sep., 23:59, Francisco Figueiredo Jr.
francisco.figueiredo...@gmail.com wrote:
 Hi all!

 I'm getting the following error in my logcat:

 E/UsbStorageConnector(  189): listenToSocket - Communications error
 E/UsbStorageConnector(  189): java.io.IOException: No such file or directory
 E/UsbStorageConnector(  189):   at
 android.net.LocalSocketImpl.connectLocal(Nati
 ve Method)
 E/UsbStorageConnector(  189):   at
 android.net.LocalSocketImpl.connect(LocalSock
 etImpl.java:238)
 E/UsbStorageConnector(  189):   at
 android.net.LocalSocket.connect(LocalSocket.j
 ava:98)
 E/UsbStorageConnector(  189):   at
 com.android.server.NativeDaemonConnector.list
 enToSocket(NativeDaemonConnector.java:102)
 E/UsbStorageConnector(  189):   at
 com.android.server.NativeDaemonConnector.run(
 NativeDaemonConnector.java:85)
 E/UsbStorageConnector(  189):   at java.lang.Thread.run(Thread.java:1019)

 I tried to find where is the file with a tag UsbStorageConnector and I
 couldn't find it.

 Do you know where is the class which has this tag? Or even better, would you
 have any clue about what file it is trying to listen to? This way I could
 check why it is missing or if it is something related to permissions.

 Thank you very much in advance.

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


[android-developers] Re: USB - IR drivers

2011-09-16 Thread FrankG
Hello !

IMHO to add a new usb mode, you need to change nearly
all parts of the platform .. change the kernel ( new usb gadget)
add some kernel to framework communication stuff and so on ..

Without full platform access something like this is not possible.

Good luck ! Frank

On 16 Sep., 04:00, warriorinjapan chandanpratih...@gmail.com wrote:
 Dear All,

 Does any one of you have experience of writing the USB drivers on
 Android SDK for InfraRed transmitters.

 Thank you.

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


[android-developers] Re: PC as USB Host for Android 2.3.4

2011-07-05 Thread FrankG
Hi Colin,

I would say, that your question is a little bit out of scope of this
particular group
and more related to android-platform.

You asked  I really just looking for the reason the bulk transfer
isn't working ..
did you check which usb mode your are using ? I assume, that the nexus
one supports
different ones with several endpoints. Maybe you need an usb analyzer
to find out what really happens.

Good luck and share afterwards what you find out.

Frank





On 1 Jul., 20:08, Colin M colinmad...@gmail.com wrote:
 First, hello all!

 Now my issue.  I'm trying to get basic comms over USB working between
 Android 2.3.4 devices (dev device is a Nexus One with 2.3.4 upgrade) and my
 PC has the USB Host (PC is an OSX box, but am also testing on an Ubuntu11
 box) using libusb-1.0.  I'm doing this in order to develop an communication
 API without needing actual accessories in hand, mostly.  I've detailed the
 issue in a StackOverflow post, no answers yet:

 Any hints would be greatly appreciated.  Thanks!

 http://stackoverflow.com/questions/6524891/android-adk-with-pc-as-usb...

 Colin

-- 
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: Honeycomb 3.1 USB Host support for pointing devices with absolute coordinates

2011-05-26 Thread FrankG
I would make this to a more general question : Has Honeycomb 3.1 at
all
usb host support.

My assumption : This is a vendor extension done by Motorola and all
details a unknown..

But maybe someone else has any insights ?

Thanks ! Frank


On 24 Mai, 18:36, balakrith 2kr...@gmail.com wrote:
 I got the Honeycomb 3.1 update on my Motorola Zoom and was happy to
 see the USB external mouse work well and I get a cursor as well.

 In general all mice and mice-like devices send relative coordinates
 for the cursor location. I am using this Zoom for another experimental
 project where another USB device enumerats like a mouse but sends
 absolute coordinates.

 Does anyone know if HoneyComb 3.1 has USB Host support for pointing
 devices with absolute coordinates?

 If not, how would I go about making this work? Is this a kernel level
 or app change. Any suggestions are helpful. And if there is anyone who
 has done this type of work that I could contract with.

 Thanks.

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


[android-developers] Re: How to unmount SD card with java code on android?

2011-05-24 Thread FrankG
Hi Vicky,

The i.e. teh Settings App uses an AIDL Interface ( IMountService )
to mount/unmount the sdcard finally via vold.

But I think only as part of the system build and signed with the
platform
key your are able to use it. But you can check this for your own.

Good luck ! Frank



On 23 Mai, 07:57, Vicky Wang kewy...@gmail.com wrote:
 Hi, guys
 There is a question about how to unmount SD card with java code on android.
 Right now, i found if want to unmount SD card with java, it need super
 permission. But i don't know the details how to do it.
 Who can help me ? Thanks a lot.

-- 
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: Developing image processing project ny interfacing matlab and android phone

2011-05-13 Thread FrankG

Hello,

in former time you could use a matlab tool like mcc to convert your
matlab
model to c .. or toolboxes like real time studio to provide the code
to be executable
on  dsp or something like this.

So I would suggest you should check the conversion to c and try to
compile them for ARM and
finally interfacing it via ndk.

Good luck !

  Frank




On 10 Mai, 18:23, Ajit basu...@gmail.com wrote:
 Hello,
 I am developing a project which takes a natural scene image as input
 and detects text,recogniss and converts it to speech. i have done it
 using matlab. now i want it to go real time
 i,e a mobile application, which shd be able to take images from camera
 of phone, and sent it to matlab, the matlab shd process the image,
 return back the text file containing recognised text, and the app shd
 convert the text present in received file to speech(text to speech).
 can it be done??? if yes. pls let me  know..:)
 thank you

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


[android-developers] Re: In a Native C program, how to call java API: ActivityManager::getMemoryInfo()

2011-05-11 Thread FrankG
IMHO instead of dealing via JNI with the ActivityManager I from you
native
code I would create a java wrapper and your native code only interacts
with this wrapper . This allows you to provide an easier interface.

Good luck ! Frank


BTW : I think this kind of question is out of scope of this particular
group.



On 10 Mai, 13:41, linlo...@gmail.com wrote:
 In Java program, we can use following codes to get the system memory info:
 ===
 ActivityManager activityManager = (ActivityManager)
 getSystemService(ACTIVITY_SERVICE);
 MemoryInfo info = new MemoryInfo();
 activityManager.*getMemoryInfo*(info);
 ===

 But now, we need to get system memory info from Native C program. So, I have
 to implement following codes to new MemoryInfo object:
 ===
     jclass cls = env-FindClass(android/app/ActivityManager$MemoryInfo);
     jmethodID ctor = env-GetMethodID(cls, init, ()V);
     jobject *objMemoryInfo* = env-NewObject(cls, ctor);
 ===

 Up to now, we have got the MemoryInfo's object objMemoryInfo.

 Then I need to input *objMemoryInfo* to *parcelMemoryInfo*, but don't
 how to convert from Parcelable to Parcel:
 ===
     int GET_MEMORY_INFO_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION+75;

     spIServiceManager sm = defaultServiceManager();
     spIBinder am = sm-getService(String16(activity));
     Parcel *parcelMemoryInfo* = *objMemoryInfo*; * //HERE: how to convert
 from Parcelable to Parcel
 *    Parcel reply;
     status_t ret = am-transact(GET_MEMORY_INFO_TRANSACTION, *
 parcelMemoryInfo*, reply);
 ===
 Thanks.

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


[android-developers] Re: adb devices returns an empty list

2011-04-04 Thread FrankG
Hello Argon,

IMHO you should switch to android-platform, as this kind of question
is out of scope of the android sdk.

And their you should provide by far more details. I.e. from where
comes
your platform, do you have the platform code, is the adbd started by
init.d,
can you see adbd using ps on the device and so on ?

Maybe your platform has no adb support ?

Good luck !  Frank





On 4 Apr., 07:08, argongold argongol...@gmail.com wrote:
 Hi,
 I've a mini MID device and I am trying to use it for development/
 debugging purpose. But after all the setting steps( see below) . I am
 still not able to get device listed when I issue  'adb devices'
 command.

 Things I have done as follows:
 1. enable USB debugging on the device under Settings-Applications-

 Development-USB debugging

 2. I have changed the following file on my computer .
 /etc/udev/rules.d/51-android.rules and added the following line.
 SUBSYSTEM==usb, SYSFS{idVendor}==18d1, ATTR{idProduct}==0001,
 SYMLINK+=android_adb, MODE=0666, OWNER=MYNAME

 (on Computer)
 Command Issued  lsusb
 Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 005 Device 002: ID 1690:0741 Askey Computer Corp. [hex]
 Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 004 Device 002: ID 062a:6301 Creative Labs
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 006: ID 18d1:0001
 Bus 001 Device 003: ID 0408:1fc3 Quanta Computer, Inc.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 Note: device is connect to usb bus at Line no. 9  above .

 (on Computer)
 Command Issued  adb devices
 * daemon not running. starting it now on port 5037 *
 * daemon started successfully *
 List of devices attached

 (on Device itself)
 Command Issued  adbd
 cannot bind 'tcp:5037'

 (on Device itself)
 Command Issued  netstat -a | grep  5037

 nothing returns from above command.

 If you have experienced such issue please let me know steps to resolve
 it.  It seems the problem is on device side for which adbd returns
 'cannot bind 'tcp:5037'

 Thanks for your strong support.

 regards,
 argon

-- 
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: Mount sdcard from code

2011-04-01 Thread FrankG
Hi Feng,

IMHO at the end it must be the vold, which does via Volume-Fat-
doMount the sys/mount call.

Good luck ! Frank



On 31 Mrz., 10:34, Feng Chris chris@gmail.com wrote:
 Hi FrankG,

 Do you know who the NativeDaemonConnector  communicate with via socket?

 Thanks,
 Chris

 2011/2/9 FrankG frankgru...@googlemail.com







  BTW .. the Settings app simply uses the AIDL Interface to the
  mount service via IMountService and calls mount.

  And com.android.server.MountService sends the notifications.

  The mountVolume call has this check inside :

  validatePermission(android.Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS);

  The MountService then communicates using the NativeDaemonConnector via
  sockets
  ( I assume with then native SystemServer  )

  Good luck ! Frank

  On 9 Feb., 06:32, maikelalonso maikelalonsob...@gmail.com wrote:
   Thanks for the reply. The solution might be to run a portion of code
   that makes the same as Menu- Settings- External Storage- Mount
   SDCARD. I understand you're telling me that's impossible.

   (Congratulations for your blog. Is very interesting).

   On 8 feb, 19:34, Kostya Vasilyev kmans...@gmail.com wrote:

How about checking the source yourself?

   http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;.
  ..

However, Settings might be using an internal API not available to
applications (most likely is), and, AFAIK, is signed with the platform
key, which you can't replicate in your code, root or not.

Your best bet might be to directly exec mount with appropriate
parameters. Also try asking on android-porting or onhttp://
 www.xda-developers.com/-programmersthere should be able to
tell you for sure.

-- Kostya

08.02.2011 20:04, maikelalonso пишет:

 Hi,  I've rooted my device and I've root privileges. All is Ok. The
 only one problem is the code to run in order to get mounted the sd
 card.
 What's the command running in Android when I make Menu-Settings-
 External storage-Mount SD CARD?
 On 8 feb, 17:45, Marcin Orlowskiwebnet.andr...@gmail.com  wrote:
 On 8 February 2011 16:41, maikelalonsomaikelalonsob...@gmail.com
   wrote:

 Hi:
 Anyone know how to mount the sdcard from code? I umount this
  storage
 from menu-settings-umount sd card and I want to mount it from an
 androd application.  I can get the state with
  getExternalStorageState
 and the path to the mounted sdcard folder but I dont know if it's
 possible to mount the device from java code.
 Mount requires certain privileges your app simply does not have
  unless
 you got rooted device (and grant yourself root rights)

--
Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com-Zitierten Text ausblenden -

   - Zitierten Text anzeigen -

  --
  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: Root status to application

2011-03-30 Thread FrankG
Hello !

IMHO A rooted device will not be enough for several
things, often you would also need to sign the app with the platform
key of the particular device. Means such an app can not be portable in
my
eyes.

Good luck ! Frank


On 29 Mrz., 21:19, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 29 March 2011 19:59, Pent supp...@apps.dinglisch.net wrote:

I am trying to build an application which can be much more useful if it
  can
be run as a root application. Is der a way to provide root status to an
application.

   Only on rooted devices.

  While we're on the subject, anyone know a good means to determine if
  root is possible without actually attempting to do something that
  needs root ?

 OSMonitor is open source and features extra actions on rooted devices. You
 may want simply to dig in sources:http://code.google.com/p/android-os-monitor/

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
 *Twitterhttp://webnetmobile.com/twitter/
 *

-- 
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: Writing a scripts for Android system

2011-03-29 Thread FrankG



On 28 Mrz., 11:41, libioz luboc...@gmail.com wrote:
 Hello!
 This is my first day using android.
 I have to write scripts for testing the following things:

 · Verifying some folders on the system
 · Verifying file versions on the system
 · Verifying any drivers presents on the system

Hello !

I think you are in the wrong group with this question as you seem to
work for a manufacturer.

Nevertheless : The frist three/four things can be done simply via adb
shell calls from a connected pc or out of the box
scripts. But I think the busybox will be helpful for you (
http://www.appbrain.com/app/busybox/stericson.busybox )

 · Performing sleep/ shut down/ wake up automatically

Maybe you can force a shudown, but I have no idea how to perform a
wake up. Maybe via a switchable usb hub, but you need
some soft controlled power button ? Depends from your hardware.

Good luck ! Frank


 · And more

 Which script language is the best to use?
 Which options I have?

 Thanks!

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


[android-developers] Re: IPC Mechanism in android

2011-03-29 Thread FrankG
I would suggest that you simply split you java part ..

into Part a) native part + JNI -Java-Part running with system
permissions

and  Part b) normal Java-App

Between b und a use intents. IMHO this is the easiest way. The others
used
by the platform are sockets and aidl ( and system variables ).
To use aidl for a native app will not be easiert, as how far as I know
their
is no aidl compiler for native apps.

Good luck ! Frank


On 27 Mrz., 02:43, arvind arv2...@gmail.com wrote:
 Hi All,

 I have an NDK application(written in C++) packaged as an executable
 and deployed in android. I also have a Java apk file in the
 application layer. Now my NDK app does some processing and outputs a
 string of data in the format name = value. Basically the output from
 NDK looks like this:
 name1 = value1
 name2 = value2... Now i want each of these name value pairs to be
 passed to java application one by one. Currently i am writing the
 output from NDK to a file in sdcard and the java app reads from the
 file. But i want to use an IPC mechanism which is devoid of explicit
 file writing and reading and instead use something like sending and
 listening to a socket. I am not sure what is the best way of passing
 message between native code and java. Also i am not using JNI
 interface as i have some issue with root permissions as the C++ Native
 code runs as root userid and Java apk runs in application level and i
 can't combine both of them. Please give me suggestions on how to
 perform IPC between native code and java apk. I am using android
 developer phone 1 as the device.

 Thanks,
 aravind

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


[android-developers] Re: detect usb connected/disconnected event

2011-03-28 Thread FrankG
Hi Karoly,

their is no real sdk support to detect usb connect/disconnect.
( btw ..UMS == usb mass storage ). So don't expect that this
will work reliably. I expect that this intent will not be sent, when
you change
to a  non mass storage usb mode ( like mtp, pictbridge or others) if
the
concrete device support them.

Good luck ! Frank


On 27 Mrz., 19:58, Károly Holczhauser holczhau...@gmail.com wrote:
 Hi all!

  I had read in a lot of forum it is a problem to developers to write a
 program witch can detect the connected / disconnected USB event. Here is my
 solution:

 Manifest.xml :

         receiver android:name=.MyReceiver
             intent-filter
                 action android:name=android.intent.action.ums_connected
 /
             /intent-filter
         /receiver

 Myreceiver:

 public class MyReceiver extends BroadcastReceiver{
 if (intent.getAction().equalsIgnoreCase(
         android.intent.action.UMS_CONNECTED)) {...}

 }

 bye:Károly Holczhauser from Hungary

-- 
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: USB Huawei E173

2011-03-26 Thread FrankG
Hello Bala,

strange .. you description is not clear for. Do you have full platform
access ? And is you platform usb host enabled ?

Good luck ! Frank


On 24 Mrz., 06:30, Bala balachandra...@gmail.com wrote:
 Dear all,

 I want to use Huawei E173 in my Mobile Interface Device(MID). I have
 already burned the drivers for Huawei E173 in my device. But my
 problem is : I brought Airtel (India) USB Dongle Huawei E1731, I dont
 know how to config in my MID. Need to set APN? What is the APN
 settings. Please help.
 Is Huawei E173 and Huawei E1731 are same. It says Modem Type is Huawei
 E173 only.

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


[android-developers] Re: INSTALL_FAILED_MISSING_SHARED_LIBRARY on Galaxy tab with SprintTwinCamDevice Library

2011-03-23 Thread FrankG
Hi john_rambo

I would suggest simply try any android ndk example,
where a method from a shared lib is called and you will
see where exactly you need to put the shared lib in your apk.

Or see this link i.e.

http://developer.android.com/sdk/ndk/index.html

Shared Libs must be under /libs/architecture i.e. yourproject/libs/
armebi/.

Good luck ! Frank


On 22 Mrz., 11:03, john_rambo serge...@msn.com wrote:
 Hi everybody,
 I'm new in Android development,
 And I have to develop a video tchat for The Galaxy Tab.
 So, I have to display the front facing camera.
 I develop with FlashBuilder 4, and I found on the internet that it was
 possible with the SprintAndroidForwardFacingCamera library.
 So I followed the tutoriel with adding my library to my IDE in
 Preferences/java/usesr libraries and adding it to my project in the
 Java build path/Librairies.
 After that I wrote uses-library
 android:name=com.sprint.hardware.twinCamDevice/uses-library
 in the Manifest file between the application tag.
 But when I launch my application on the device (samsung Galaxy Tab) or
 on the virtual avd Galaxy tab, I had the following message
 Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY.
 Is anybody had the same problem and found the solution.
 Thanks for your help.

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


[android-developers] Re: Stop USB Port programmatically

2011-03-21 Thread FrankG
Hi Luiz,

I think you must give some details concerning your aim.

But the sdk has no support for
lower level usb functionality.

Good luck ! Frank



On 21 Mrz., 07:29, Luiz Felipe Puccinelli Glingani
luizfelip...@gmail.com wrote:
 Is it possible to stop/disable the USB port programmatically ?

 Thanks,
 Luiz

-- 
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: property settings in Java and native C code

2011-03-18 Thread FrankG
Hello Ray,

this is the wrong group to ask this kind
of question. ( better android-platform )

But nevertheless: It depends from the name scheme of the system
property
which rights you need. But I assume that this property can only be set
by a system app
and theirfore your app must be signed with the platform key.

Good luck ! Frank


On 18 Mrz., 03:40, Sun Ray-B1 b17...@freescale.com wrote:
 Hi All,

 I want to set the property in Java code and get the property in C code. Is 
 this available?

 What I used is as below:

 1.       Set the  property to 0x2
                                   mPowerControl = getInt(POWER_CONFIG, 
 0x0);//get the configuration value of power
                                   System.setProperty(rw.power.config, 
 String.valueOf(mPowerControl));

 2.       Get the property, always  to be 1, as I set in the init.rc
 property_get(rw.power.config, propBuf, 0);)

 3.       Get the property through adb shell, it's same with the value by 
 property_get
 getprop rw.power.config

 Thanks,
 Ray

-- 
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: Should i use ndk or jni when i want to call C function in JAVA core libraries?

2011-03-14 Thread FrankG
IMHO this question is out of scope of the sdk and more appropriate for
android-platform.

On 14 Mrz., 01:06, ooowjc ee07b...@gmail.com wrote:
 Maybe NDK can only be used in calling C function in Android
 application files but i am not sure. If so, what should i do if i want
 to call C function in JAVA core libraries such as /android-x86/dalvik/
 libcore/luni/src/main/java/java/net/InetAddress.java?

 Thanks!

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


[android-developers] Re: ACR122 USB NFC Reader with Android Mobile

2011-03-10 Thread FrankG
IMHO this smard card reader uses usb Chip Card Interface Device class
and I'm in doubt that even if you find a device with usb host support,
that this devise can use this u ccid usb mode.  But maybe I'm wrong.

Good luck ! Frank

On 9 Mrz., 10:26, ramakrishna rkreddy@gmail.com wrote:
 Hi,

 My sincere apologies if i disturbed you.But have few doubts needs to
 be clarified.

 I am planning to develop an NFC app.I am from India in our market no
 NFC enabled Android mobile is available. I bought a USB based NFC
 Reader ACR122.My question is can i integrated that with Android Mobile
 LG Optimus One's or any(Android 2.3 O.S.) USB port ???.

 Is it possible to connect USB devices to Android Mobiles???.If yes is
 there is procedure ??

 Waiting for your reply.

 Thanks in advance.

 Ramakrishna

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


[android-developers] Re: How To Use MTP-connected Devices

2011-03-02 Thread FrankG
Hi Doug,

I can imagine that this will be more an more a problem for
applications
like yours : You cannot know in which usb mode the target device is
currently,
as this is highly vendor/manufacturer specific. You would also run
into trouble
if the user will use pictbridge. And you also not able to trigger a
mode change
because the interface to this is also specific for the manufacturer.

Would be interessted to know whether XOOM only supports MTP, but --
how far I understood Dianne in the past -- it must be at least MTP
+ADB,
otherwise Android Market will not work ?

Good luck !

   Frank


On 2 Mrz., 18:48, Doug Gordon gordo...@gmail.com wrote:
 My app currently requires the user to manually copy certain files from
 their PC to their USB-mounted Android device where my app can open them
 and do its thing. But I'm already running into issues with users'
 devices that want to mount in this MTP mode, and I hear that the Xoom
 *only* supports MTP, etc.

 So how can MTP be used to transfer files to the device that don't really
 fit into the Media files category, and how do I locate the directory
 from my app? What do getExternalStorageDirectory and getExternalFilesDir
 return for a device like the Xoom?

 Doug Gordon
 GHCS Software

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

2011-03-01 Thread FrankG
Hi Zsolt,

IMHO this is the wrong group, as you question
is related to the platform, not to the sdk.
( use android-platform instead)


Beside this I think you have to change the framework code
too otherwise you could break the whole security architecture
and incooperate your own things even without having the platform key.

Good luck ! Frank





On 1 Mrz., 06:38, Krt keerthira...@gmail.com wrote:
 Hi Zsolt,

 Thanks for the response.

 I am trying to alter something in android framework source , and this
 calls for an addition of a new class in framework source.
 But I did not want to add any new source under framework, instead
 planned to have it under vendor and load that new class dynamically in
 framework later.

 So I was thinking if reflection will come in handy.

 Regards,
 Krt

 On Mar 1, 9:47 am, Zsolt Vasvari zvasv...@gmail.com wrote:



  The answer is, of course, not.  They are probably using different
  class loaders.

  The better question is, why would you want to do this?

  On Mar 1, 12:09 pm, Krt keerthira...@gmail.com wrote:

   Hi All,

   I am trying reflection in android.

   It works fine for classes, say A and B, under same project(same
   process in other words).

   It does not work between two different processes.
   i.e. I have
   project A, package name com.ref.classA
   project B, package name com.ref.classB

   Can I call from project B, Class.forName(com.ref.classA);

   I get exception class not found when I do this.
   Please note I have not imported package of calssA in classB.

   Am I missing something? or it is just not possible to do it between
   different processes.

   Any input would be of great help.

   Regards,
   Krt- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: App with usb connectivity

2011-02-16 Thread FrankG
Most of the devices  support multiple usb modi and
you have no standard way to know which one is
currently used. IMHO many usb details are currently vendor specific.

Their is also no sdk support for your requirement.

To point you in a  possible direction could be  for standard usb mass
storage
to check the same sysfs file handle which is used in the new
vold. But to poll on a sysfs handle is not so easy.

Good luck ! Frank




On 13 Feb., 16:16, neohacker arunscari...@gmail.com wrote:
 Hi all,
                 I'm in the middle of an android app that need to check
 whether the device is connected to another system or pendrive through
 usb and if it is connected i need to send a copy of my database file
 through usb port. This sis for backing up my database. I have no idea
 how to prompt for usb connections. I searched the net. But no
 results!.Can anyone please help. Because i'm stuck here at my project.

 Thanks in advance.

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


[android-developers] Re: Mount sdcard from code

2011-02-09 Thread FrankG
BTW .. the Settings app simply uses the AIDL Interface to the
mount service via IMountService and calls mount.

And com.android.server.MountService sends the notifications.

The mountVolume call has this check inside :

validatePermission(android.Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS);

The MountService then communicates using the NativeDaemonConnector via
sockets
( I assume with then native SystemServer  )

Good luck ! Frank




On 9 Feb., 06:32, maikelalonso maikelalonsob...@gmail.com wrote:
 Thanks for the reply. The solution might be to run a portion of code
 that makes the same as Menu- Settings- External Storage- Mount
 SDCARD. I understand you're telling me that's impossible.

 (Congratulations for your blog. Is very interesting).

 On 8 feb, 19:34, Kostya Vasilyev kmans...@gmail.com wrote:



  How about checking the source yourself?

 http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;...

  However, Settings might be using an internal API not available to
  applications (most likely is), and, AFAIK, is signed with the platform
  key, which you can't replicate in your code, root or not.

  Your best bet might be to directly exec mount with appropriate
  parameters. Also try asking on android-porting or 
  onhttp://www.xda-developers.com/-programmers there should be able to
  tell you for sure.

  -- Kostya

  08.02.2011 20:04, maikelalonso пишет:

   Hi,  I've rooted my device and I've root privileges. All is Ok. The
   only one problem is the code to run in order to get mounted the sd
   card.
   What's the command running in Android when I make Menu-Settings-
   External storage-Mount SD CARD?
   On 8 feb, 17:45, Marcin Orlowskiwebnet.andr...@gmail.com  wrote:
   On 8 February 2011 16:41, maikelalonsomaikelalonsob...@gmail.com  
   wrote:

   Hi:
   Anyone know how to mount the sdcard from code? I umount this storage
   from menu-settings-umount sd card and I want to mount it from an
   androd application.  I can get the state with getExternalStorageState
   and the path to the mounted sdcard folder but I dont know if it's
   possible to mount the device from java code.
   Mount requires certain privileges your app simply does not have unless
   you got rooted device (and grant yourself root rights)

  --
  Kostya Vasilyev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: For those who are looking for testing their apps on multiple devices:

2011-01-31 Thread FrankG
Hello Stephan,

can you describe the kind of interface they provide
to the different devices ?

Or how the interaction during test should happen ?
Do they provide a  web cam view to the ui ?

Thanks ! Frank


On 30 Jan., 07:57, Stephan Wiesner testexpe...@googlemail.com wrote:
 For those who are looking for testing their apps on multiple devices:

 I had the chance to meet a guy from Device Anywhere last week. They wire
 mobile phones and put them into server racks. This allows remote control of
 them. No simulation, the real thing. Pretty cool…

 They offer a device pool that can be accessed remotely or one can buy the
 machines. This is useful for building an internal testlab in big companies.
 The test automation in the live demo looked pretty cool, too. Though I have
 seen too many “magic testing tools demos” In my live to believe it till I
 have tried it :-)

 Greetings from Berne,

 Stephan

 --
 Interessiert an Android?http://android-schweiz.blogspot.com/
 Whant to learn German?http://german-podcast.blogspot.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


[android-developers] Re: How can I control USB port on hardware level?

2011-01-27 Thread FrankG
IMHO your question is more appropriate for android-platform.

And you need a android platform which supports more then mass storage.

I think you could use android-x86.

Good luck ! Frank

On 25 Jan., 03:53, Jisung eternal9...@gmail.com wrote:
 Hi.
 I want to control USB serial port on hardware level.
 I'm working on a project about Android USB.
 Datas coming through USB port on real-time,
 and it needs to be processed to xml files.

 I found some old java API project JSR80 or jUSB, but it's working on
 Linux and i don't know it works on Android.

 Is there any source codes or APIs that i can use?
 Or, any way to use JSR80 project on Android?

 Thanks for reading  wait for your answer.
 Please, help me!

-- 
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: Shared preference from non activity class

2011-01-23 Thread FrankG
Hi Hari.
Just my two cents but if you mean
the Java Bean specification, then the spec is
a J2SE technology  ( 
http://www.oracle.com/technetwork/java/javase/documentation/spec-136004.html
)
and comes into world long before the people start to thinking in terms
of EJBs and so on. Good luck ! Frank

On 23 Jan., 02:24, Hari Edo hari@gmail.com wrote:
 On Jan 22, 7:50 pm, TreKing treking...@gmail.com wrote:

  I have no idea what a bean class is.

 It's one of those J2EE things that they shove at you in
 diploma-mill university IT classes.  Basically, an object
 with a hashmap of properties, so that it's trivial to make
 GUI front-ends that can manipulate the properties directly.

 While I haven't weaned myself off all of the Collections
 classes, I'd say heavy Beans and lightweight Android are
 at diametric odds with regard to garbage collection
 stressors.

-- 
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: Can I sign my app after it is built with platform

2011-01-23 Thread FrankG
IMHO this is out of scope for this group, go to android-platform.

On 24 Jan., 04:57, xeagle xeagle...@gmail.com wrote:
 Hi,

 I read in SDK doc, Note that you can sign an .apk multiple times with
 different keys.
 I build my app with Android platform (not using SDK), and then sign
 the result apk with my private certificate. I'd like know that whether
 my apk contains right certificate. Is there any problem with my apk?
 Thanks!

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


[android-developers] Re: adb devices command produced device serial number contains no consolePort field

2011-01-19 Thread FrankG
I think this is definitly out of scope of this group .. go to
android-.platform for
this.


On 15 Jan., 07:50, v4 v4ende...@gmail.com wrote:
 According to Dev Guide (http://developer.android.com/guide/developing/
 tools/adb.html#devicestatus):

 - adb devices command was expected to print out connected devices
 each identified by a unique serial number in format of type-
 consolePort, eg. emulator-5554

 In reality:

 1 - the serial numbers are not in that format
 2 - the serial numbers are identical to each other when I have more
 than one device of the same model connected, thus further adb commands
 to a specific device with -s serialNumber option are impossible

 My questions:

 1 - is there any solution to this problem, or did I miss anything?
 2 - is adb source code publicly available (so I could fix it myself)?

 -
  v4

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


[android-developers] Re: How to write a android keyboard preference and show in Android Setting Language Keyboard.

2011-01-19 Thread FrankG
Sorry, but why do you think the settings app should notice your
keyboard.



On 16 Jan., 12:34, Mathieu mathieu.debr...@gmail.com wrote:
 Yes, it does !
 Thank you, I have the same problem, and your answer helped me to add a
 preference view.
 But actually, it doesn't show in Android Setting  Language 
 Keyboard...
 (it shows only in the applications list)
 Do you know more about that ?

 On 3 jan, 23:47, AlanLawrence alan.unicycl...@googlemail.com wrote:



  My manifest looks essentially the same as yours, only my settings
  activity contains within it the extra tag:

  intent-filter
      action android:name=android.intent.action.MAIN /
      category android:name=android.intent.category.LAUNCHER /
  /intent-filter

  Does that help?

  --Alan

  On Dec 29 2010, 7:48 pm, Cloudyblood cloudybl...@gmail.com wrote:

   Hi

   I wrote the android keyboard , but I didn't have a preference.

   I tried to write a preference of my android keyboard , but it didn't
   show in Android Setting  Language  Keyboard.

   Here is my manifest:

   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=com.popj.popjkeyboard
   android:versionCode=1
   android:versionName=1.2
   application android:label=@string/ime_name
   service android:name=SoftKeyboard
   android:permission=android.permission.BIND_INPUT_METHOD
   intent-filter
   action android:name=android.view.InputMethod /
   /intent-filter
   meta-data android:name=android.view.im android:resource=@xml/
   method /
   /service
   activity android:name=SoftKeyboardSettings
   android:label=Settings
   /activity
   /application
   uses-sdk android:minSdkVersion=7 /

   /manifest

   Please give me any suggestion.

   Thank you.- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

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


[android-developers] Re: How to transfer real-time data to mobile by USB and how to get the transfered data

2011-01-19 Thread FrankG
usb host support in the kernel/HW
usb gadget extensions
android framework extensions
usb mode change support
in kernel and framework

.. and you must take care whether the certain device contains not
already platfrom extensions for
this



On 19 Jan., 08:30, yyzhang ynyozh...@gmail.com wrote:
 What should do to modify the firmware?
 How to determine the firmware modifications?

 Thanks!

 On 1月19日, 上午10时27分, Mark Murphy mmur...@commonsware.com wrote:



  On Tue, Jan 18, 2011 at 8:59 PM, yyzhang ynyozh...@gmail.com wrote:
   How to transfer real-time data from some data supported device(such as
   external usb camera) to mobile by USB?
   Where and how to read the transfered data, such as getting to display,
   based on android?

   Expecting the code, someone can give example?

  None of that is supported by Android without firmware modifications.

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

  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
  Available!- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

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


[android-developers] Re: About run app after installation using PACKAGE_ADDED or other mechanism

2011-01-18 Thread FrankG
Hi Marcin,

Seems I miss something in your concept, but if I understood it right.
when your app is updated, the fresh one is NOT launched ,  but this
was the orginal
question ?!

Frank

On 18 Jan., 09:51, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 18 January 2011 09:16, xeagle xeagle...@gmail.com wrote:

  Can current version of Android allow an app to be told when it is
  updated?

 Even if it would, older versions wouldn't so it'd better to cope with
 this yourself, which is quite trivial. When app is updated all user
 settings and data is preserved, so you can store versionCode in app's
 preferences and on each launch compare stored value with package
 versionCode. If package's is higher is higher, then you are updated.
 Update stored versionCode and repeat this each time. This is even
 better as you can detect downgrade as well and i.e. reject app launch.

-- 
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: C++ exception support confusion

2011-01-13 Thread FrankG
Good Question .. when you look at core services
like vold then they don't use Exceptions.

Maybe you should grep through the ASOP
to see whether RTTI and/or Exceptions are used.

Good luck ! Frank



On 13 Jan., 00:47, Allen Curtis ajcurti...@gmail.com wrote:
 Hello,

 I am in the process of porting C++ libraries to Android that use libsigc++. 
 However I am confused about the support provided in the NDK.

 The Stable APIs document states the following:
 C++ Library:
 
 ...
 They may not contain all definitions required by the standard. Notably,
 support for C++ exceptions and RTTI is not available with Android 1.5 system
 images.

 The Standalone Toolchain document states this:
 5.3     Exceptions, RTTI and STL:
 - - - - - - - - - - - - - - -
 The toolchain binaries *do* support C++ exceptions and RTTI by default.

 Can someone clarify?

 TIA

-- 
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: external or usb mic for audio recording?

2011-01-05 Thread FrankG
Hi Keith,

when you know such a device, then this contains vendors extensions in
my opinion.

You will find several usb related vendor extension like support for
mtp, pictbridge or others. But I assume you will not find any details
how is it done in detail.
Good luck ! Frank


On 4 Jan., 21:58, Keith Wiley kbwi...@gmail.com wrote:
 Except that we know cell phones (Android included) support headset
 devices which use a microphone plugged into the USB port, or perhaps a
 3.5mm audio jack.  I'm uncertain of the implications of that
 capability w.r.t. my original question.

 Thanks for the input.

 Cheers!

 On Jan 4, 12:00 pm, FrankG frankgru...@googlemail.com wrote:



  IMHO a usb microphone would require usb host functionality and support
  for
  human device interface ..

  Their is in my eyes no out of the box support for this.

  On 4 Jan., 09:03, Keith Wiley kbwi...@gmail.com wrote:

   I realize that MediaRecorder.AudioSource supports several input
   sources, although I think they all boil down to one of two physical
   sources: either a microphone on the bottom for phone-style-speaking
   and one on the back for camcorder recording (on phones that have such
   a secondary mic)...but do any Android devices physically support
   external mics, say through the USB port, and if so, what software
   hooks does the Android API offer for accessing those mics?  I haven't
   found anything like this yet.

   Thanks.- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: initialization of usb from android Application

2011-01-04 Thread FrankG
This relates to android-platform and beside
this, what do you mean with initialize USB ?

A fresh enumeration ?



On 3 Jan., 16:29, bharath dg.bhar...@gmail.com wrote:
 Hi,

    Is it possible to initialize USB from Android Application? if
 possible please post a sample code.

 Thanks,
 Bharath

-- 
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: external or usb mic for audio recording?

2011-01-04 Thread FrankG
IMHO a usb microphone would require usb host functionality and support
for
human device interface ..

Their is in my eyes no out of the box support for this.

On 4 Jan., 09:03, Keith Wiley kbwi...@gmail.com wrote:
 I realize that MediaRecorder.AudioSource supports several input
 sources, although I think they all boil down to one of two physical
 sources: either a microphone on the bottom for phone-style-speaking
 and one on the back for camcorder recording (on phones that have such
 a secondary mic)...but do any Android devices physically support
 external mics, say through the USB port, and if so, what software
 hooks does the Android API offer for accessing those mics?  I haven't
 found anything like this yet.

 Thanks.

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


[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-03 Thread FrankG

Seems that you are looking for a terminal emulator like this one ..

https://github.com/jackpal/Android-Terminal-Emulator/wiki

Good luck !

  Frank


On 31 Dez. 2010, 22:48, Jay j.gato...@gmail.com wrote:
 I started reading that, but it still doesn't complete sense. Are there
 any other more descriptive documents on this out there?

 On Dec 30, 7:33 pm, jotobjects jotobje...@gmail.com wrote:



  You get an InputStream from the Process returned by the exec call.
  Read and study the javadoc for java.lang.Runtime an java.lang.Process.

  On Dec 30, 3:14 pm, Jay j.gato...@gmail.com wrote:

   I also want to be able to run commands like 'ls' and 'cat'

   On Dec 30, 5:09 pm, Jay j.gato...@gmail.com wrote:

Hello,

Here's what I'm trying to accomplish: I want to be able to show dmesg
logs and logcat output in an app I'm writing. I know that I'm supposed
to use Runtime.getRuntime().exec(), however other than that, I'm
pretty lost. I tried to find some examples, but couldn't.

Can someone here give me some information on how to do this? Maybe
point me to some example code. Aside from doing the following in my
code:

Runtime.getRuntime().exec(dmesg);

or

Runtime.getRuntime().exec(logcat);

I'm not sure what else to do to be able to read dmesg and logcat
outputs.

Thanks,- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: /sys/devices/virtual/gpio access from Java?

2010-12-30 Thread FrankG
This is the wrong group  .. but beside this use the ndk .. and the
native
file command to interact with you sysfs entry.

Good luck ! Frank



On 28 Dez., 03:49, A Curtis ajcurti...@gmail.com wrote:
 Hello,

 I have enabled GPIO SYSFS access to export GPIOs to user space. From
 the command shell I have been able to configure outputs and change
 values. However I am not able to do this via Java.

 I am trying to open the sysfs value file as an OutputStream. Is this
 not correct?

 TIA

-- 
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: Can't debug/install applications into Tablet with Android 2.1 using ADB commands

2010-12-28 Thread FrankG
If you have a kind of console on the tablet you could look
into the kernel messages and use logcat to see something relevant.
You could also check, whether adbd is still running on the device.

To detect who is stopping ( device or pc ) I assume you would need a
usb analyzer,
nothing which is really cheap.

Theirfore I would suggest at first, that you ask then vendor of
the tablet for help.

BTW .. did you use the driver from then vendor of the tablet ?

Good luck ! Frank



On 28 Dez., 03:02, Gus gussab...@yahoo.com wrote:
 Hi:

 Actually, I figure it out that adb shell is working but once I try
 push, pull, or install commands, it seems like Android blocks
 and following shell commands are not working. However, the adb
 devices still responds as usual.

 I would appreciate any help.

 Thanks
 Gus

 On Dec 27, 10:29 pm, Gus gussab...@yahoo.com wrote:





-- 
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: ADB USB Driver for MyTouch 4g

2010-12-22 Thread FrankG

Hello Sarwar,

as this phone supports usb tethering I assume it supports
a composite usb mode or different ones and it will require
a spezialized driver for this.

BTW .. another way to install an app is to download them via
the browser from a provate webseite.

Good luck ! Frank




On 22 Dez., 05:06, Sarwar Erfan erfanonl...@gmail.com wrote:
 Follow Kostya's instructions to install without ADB.

 About connecting device to USB in PC, I have experience with Samsung Galaxy
 S (South Korean version). I could connect and access the internal memory of
 the device using Google's driver. But, I could not connect it via ADB. I
 downloaded usb driver from Samsung website and after installing Samsung's
 driver, I was able to connect with ADB.

 Regards
 Sarwar Erfan

-- 
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: What is the structure of the Android PackageManagerService?

2010-12-22 Thread FrankG


 But for that I need to understand how the installation happens, the
 sequence of steps being called.


What Mark and Dianne wanted to point out is that all questions related
to your solution are out of scope of this group.

And that If you are not able to change the firmware for you devise,
you are not able to try it.

Good luck ! Frank

-- 
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: Binder IPC ( native process - to - android service )

2010-12-16 Thread FrankG
IMHO the platform is the best example ( and android platform
is better group for this kind of questiions, as this is out of scope
of the sdk )

The android-platfrom uses AIDL or sockets to communicate between
native processes and i.e. java services.

Good luck ! Frank


On 15 Dez., 16:39, a11xc07bc a11xc0...@gmail.com wrote:
 Hi,

 Does anyone know if there are any good information/examples on how to
 bind to an Android service written in Java from a native process
 written in C/C++? and use that binding for further IPC.

 And, what steps needs to be done in the service? in order to be
 listable/bindable from the native process:

 i.e. something like:

 spIServiceManager servman = defaultServiceManager();
 servman-listServices();

 and

 spIBinder binder = servman-

 getService(String16(com.path.to.service));

 Please reassign this question to the right forum, if this forum is
 wrong.

 Regards,
 a11xc07bc

-- 
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: Enabling bluetooth to a System Service

2010-12-16 Thread FrankG
- android-platform

On 15 Dez., 13:15, Narseo Vallina nar...@gmail.com wrote:
 Hi all

 I'm working on a research project and I need to have a system service
 running as an android component and one of it's features is performing
 bluetooth scans in the environment.

 I have the following code to discover bluetooth devices (taken from
 BluetoothChat example). I tried it as an application and it worked but
 once I'm adding it as a feature of my system service it does not work.
 I'm not sure if I'm declaring the intents properly or if I need to set
 up the permissions for my system service somewhere. Does any of you
 tried to do something similar?

 The erros I get are:

 E/ErdMngr(   88): Error starting enable BT intent: No Activity found
 to handle Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE
 flg=0x1000 }

 E/ErdMngr(   88): Error starting enable BT intent: No Activity found
 to handle Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE
 flg=0x1000 }

 E/ErdMngr ( 88) Error ensuring BT device is discoverable: No Activity
 found to handle Intent
 { act=android.bluetooth.adapter.action.REQUEST_DISCOVERABLE
 flg=0x1000 (has extras) }

 D/ErdMngr(   88): Bluetooth discovering
 I/ActivityManager(   88): Starting activity: Intent
 { act=android.bluetooth.adapter.action.REQUEST_DISCOVERABLE
 flg=0x1000 (has extras) }

 And the code:

 //In run (for the thread), I define the intents:
         IntentFilter intentFilter = new IntentFilter();
         intentFilter.addAction(ALARM_WAKEUP);
         intentFilter.addAction(ALARM_TIMEOUT);
         intentFilter.addAction(BluetoothDevice.ACTION_FOUND);

 intentFilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
         mContext.registerReceiver(mBroadcastReciever, intentFilter);

 //And then it calls a method to start bluetooth
         private void loadInterfaces(){

                 Log.d(TAG, Loading interfaces);
                 //At this point, interfaces must be ready

                 mBtAdapter = BluetoothAdapter.getDefaultAdapter();
                 try{
                         //Enable interface
                         enableBluetooth();
                 }
                 catch(Exception e){
                         Log.e(TAG, Failed to enable interface);
                 }
                 try{
                         //Ensure interface is discoverable
                         ensureBluetoothDiscoverability();
                 }
                 catch(Exception e){
                         Log.e(TAG, Failed to set BT interface discoverable);
                 }

         }

         private void enableBluetooth(){
                 Log.d(TAG, enableBluetooth());
                 if(!mBtAdapter.isEnabled()){
                         Intent enableBtIntent = new Intent
 (BluetoothAdapter.ACTION_REQUEST_ENABLE);
                         
 enableBtIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                 try{
                         mContext.startActivity(enableBtIntent);
                 }
                 catch(Exception e){
                         Log.e(TAG, Error starting enable BT intent: 
 +e.getMessage());
                 }

                 }
                 else{
                         Log.e(TAG, BT Interface already enabled);
                 }
         }

         private void ensureBluetoothDiscoverability(){
                 Log.d(TAG, Ensuring bluetoot is discoverable);
                 if(mBtAdapter.getScanMode()!=
 BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE){
                         Log.e(TAG, Device was not in discoverable mode);
                         Intent discoverableIntent = new
 Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);

 discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
 300);

                         //Without specifying the flags, it returns the 
 exception: Calling
 startActivity() from outside of an Activity  context requires the
 FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
                         
 discoverableIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                         try{
                                 mContext.startActivity(discoverableIntent);
                                 Log.d(TAG, Device set up as discoverable);
                         }
                         catch(Exception e){
                                 Log.e(TAG, Error ensuring BT device is 
 discoverable:
 +e.getMessage());
                         }
                 }
                 else{
                         Log.e(TAG, Device already discoverable);
                 }
         }

         //TODO: It should specify which interface to use (argument)
         private void startDiscovery(){

                 if (mBtAdapter.isDiscovering()){
                         Log.e(TAG, BT Interface already discovering. 
 Cancelling);
                         mBtAdapter.cancelDiscovery();
                 }
                 

[android-developers] Re: about PackageManager.java

2010-12-15 Thread FrankG

I would say wrong group for this question ..


On 15 Dez., 08:29, tangke mumut...@gmail.com wrote:
 hi all,
 I read the PackageManager.java, this is only defined a abstract class,
 the derived class is defined in ContextImpl.java and use the
 ApplicationPackageManager.

 I wonder why not do in PackageManager.java?

 another pattern do it. such as PowerManager.

 thanks in advance.

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


[android-developers] Re: Fm Radio

2010-12-14 Thread FrankG
I'm in doubt that he will get an answer for this question,
even in more fiirmware related groups.


On 14 Dez., 11:56, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Dec 14, 2010 at 4:29 AM, wolf wolfy1...@gmail.com wrote:
  thanks mr. mark, but i don't want to use it via Android SDK but i want
  to know how it's works

 There is no FM radio in Android, period. Some Android devices may have
 FM radio capability, via firmware modifications made by those device
 manufacturers.

 Even if there were FM radio support in the Android firmware, this is
 the wrong list for it. Firmware questions belong on a list that
 pertains to the firmware:

 http://source.android.com/community/index.html

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

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


[android-developers] Re: init.d

2010-12-10 Thread FrankG
Out of the scope of this group. Go to android-platform with this type
of questions.



On 8 Dez., 22:54, dlocated dloca...@gmail.com wrote:
 I have created an update.zip to install my cpu overclock script. I
 would also like to start this as a service using the init dir. How
 would I do this? From what  I have read even if I change init.d
 RECOVERY from mtd1 will overwrite it on next boot.

-- 
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: Improvement of existing Android App - Setting

2010-12-08 Thread FrankG
He can of cousre extend or change the Settings App,
but he need to build them with the android build system like any
other core/framework app.

But the question is, which sense this will make ? To change
the app he must sign it with the platform key and flash his device.

Good luck ! Frank



On 8 Dez., 10:31, Kostya Vasilyev kmans...@gmail.com wrote:
 Some built-in applications use internal (private) APIs that are not part
 of the SDK.

 So if you're looking to modify some code and create an regular
 application, it may need code changes to replace those.

 -- Kostya

 08.12.2010 12:06, Kumar Bibek ?:





  You have to checkout the whole source code I guess, or atleast it's
  dependencies.
  Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com

  On Wed, Dec 8, 2010 at 5:51 AM, Yu ywu...@gmail.com
  mailto:ywu...@gmail.com wrote:

      Hi,

      I would like to improve exisiting functions of android - setting.
      I have checked out the 'Setting' application from repo, but how
      can I compile it ? There are missing classes - such as os.properties,
      etc.

      Thanks a lot.

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

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

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: ADB drivers for Windows XP available for Android devices

2010-12-08 Thread FrankG
Hi Gus,

seems that this tablet supports usb device and host ?!
Did you see only usb mass storage or something else ?

The question is, whether their usb mode supports adb ?
Can you open a console on the device ?  Maybe it supports
adb over wifi ?

Good luck ! Frank


 My question is, does the manufacturer (Viewsonic in this case) need to
 develop and provide an ADB driver for each device? Otherwise, how can
 we debug the device? Is there any other solution for this (like a
 generic driver)?

 Thanks;
 Gus

-- 
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: ACTION_POWER_CONNECTED not working

2010-12-07 Thread FrankG
Hi Douglas.

http://developer.android.com/guide/topics/manifest/receiver-element.html#nm

In the Manifest you write that your receiver class is called
Receiver .. and
later you call the class NoteReceiver ??

But nevertheless I have my doubts that you have your public class
NoteReceiver in
a file Receiver.

Good luck ! Frank



On 8 Dez., 03:33, Douglas Fonseca douglasinfo...@gmail.com wrote:
 Hi,
 I'm developing an app that needs to start when the phone is power plugged.
 To do so, I used this code in manifest file

 application android:icon=@drawable/icon android:label=@string/app_name
         activity android:name=.Activity
                   android:label=@string/app_name
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category android:name=android.intent.category.LAUNCHER /
             /intent-filter
         /activity
 activity android:name=.Activity2
  android:label=@string/app_name /
 reciever android:name=.Receiver
        intent-filter
                action
 android:name=android.intent.action.ACTION_POWER_CONNECTED /
        /intent-filter
 /reciever
     /application

 In Receiver file:

 public class NoteReceiver extends BroadcastReceiver
 {
 @Override
 public void onReceive(Context context, Intent intent)
 {
 context.startActivity(new Intent(context,Activity2.class));

 }
 }

 This code was suposed to start the Activity2 Activity, but it's not working!
 Does someone know that's wrong?
 Thanks,
 ---
 Douglas Fonseca
 Engenharia da Computação 2010
 Universidade Estadual de Campinas

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


[android-developers] Re: how to get root permissions to do a adb remount?

2010-12-07 Thread FrankG
Maybe this will help you :

http://groups.google.com/group/android-platform/msg/da581f1b398fdf8b

Good luck ! Frank



On 8 Dez., 02:25, gato chlr dany...@gmail.com wrote:
 Hi does anybody knows how to get root permissions to do adb remount?

 thanks

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


[android-developers] Re: NDK: result compiled and used on cygwin different from compiled and used on android

2010-12-06 Thread FrankG
Hi Gabriel, I'm confused by the content of your email.
But nevertheless  I would suggest that you write more
details what you did step by step in a more ndk specific group.

http://groups.google.com/group/android-ndk

Good luck ! Frank



On 5 Dez., 17:54, Gabriel Simões gsim...@gmail.com wrote:
 Hello guys,

 Since I work with DSP, the NDK is a dream come true for me. Right now I
 ´m trying to compile a LGPL lib for audio processing but unfortunately
 the results aren´t the ones I needed.
 I´m using windows 7 + cygwin for the NDK (and also for crystax). I
 have tried both (ndk and crystax) with the same results.
 The code compiles on cygwin for usage on the computer and also for
 android (generating the .so for armembi and armembi-v7) but the
 results they produce are different. While in the first the audio is
 perfect, on the second the audio gets a lot of artifacts and also the
 processment seems to have some miscalculations. The right result is
 the one that compiles and runs on cygwin.
 The code is just the same! It uses mostly integers but a little FP
 also.

 Am I missing something here? What should I care about so I get the
 results right? Does the SDK use the makefiles from the lib (so I
 should keep them)?

 Thanks,
 Gabriel Simões

-- 
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: Eml Parser

2010-12-06 Thread FrankG
You can handle EML-Files normaly with javax.mail.* and in particular
the MimeMessage class.

javax.mail is not part of the android sdk, but mayby you can use the
java sdk sources as
starting point for you own handlng ?

Good luck ! Frank




On 6 Dez., 10:15, Android Developer kavithasuni...@gmail.com wrote:
 Hi,

 How to parse .eml files in android?

-- 
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: setting property in init.rc for FROYO

2010-12-06 Thread FrankG
First I think this is the wrong group for such question
as this is out of scope of the normal android sdk.
Better would be android-platform for this.

Second : Did you check via getprop whether you property is
really set after the complete boot ?

Third : Maybe reading them via SystemProperties.get requires System as
sharedUserID
  but I'm not sure. I used System when I need to deal with
System Properties.

Good luck !

  Frank




On 3 Dez., 13:12, navs navaneethkadung...@gmail.com wrote:
 Hi

 I want to want set a property in init.rc(source/Android/System/Core/
 rootdir/init.rc) and want that variable accessed from eveywhere in the
 FROYO source.

 Iam using
 setprop ro.MY_TEST 1001  -- in init.rc for setting value and using
 String value= SystemProperties.get(ro.MY_TEST); to get the property
 value. But it is returning empty.

 Is their any other way to do so. Please help!

 Thanks  Regards
 Navs

-- 
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 any android expert from Google or any other company?

2010-12-06 Thread FrankG
IMHO move to android-platform ..



On 7 Dez., 06:25, Jerry chunlei@gmail.com wrote:
 Could you help to provide the link for your mentioned java os one?

 can not just use the library of new voice recognizer. Need to
 implement the recognitionservice interface somehow. So need to
 handle audio recording,etc in between. Google's
 RecognitionService.java is abstract class

 On Nov 30, 5:06 am, Droid rod...@gmail.com wrote:



  AFIK you can use the libraries from yournewvoicerecogniser and
  simply do not call the google one.
  You need to do something with the audio input too.

  I saw a simpler java OS one somewhere but did not bother to add it.

  On Nov 26, 9:45 am, Jerry chunlei@gmail.com wrote:

   My question on frameworktointegrateanewvoicerecognitionengine
   got no help :)

   Any one want to help out!

   TIA!- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: Simultaneously debugging multiple android applications and components

2010-11-29 Thread FrankG
Hello Elvis,

I think it will be easier for you if you use printf debugging,
as you can open several adb sessions .. and use logcat with
different filters.

Or write to your own file the content of the variables.

I have no idea whether you can debug multiple components
at once.

Good luck ! Frank



On 27 Nov., 16:43, Elvis Dowson elvis.dow...@gmail.com wrote:
 Hi,
        I need to be able to simultaneously debug multiple components
 from the android-2.2.1 repo, in order to troubleshoot a wifi restart
 issue that I'm facing that is being discussed on the following thread:

 http://groups.google.com/group/android-porting/browse_thread/thread/e...

 I have managed to setup and configure abd over ethernet and have
 documented the steps here:

 http://web.me.com/elvis.dowson/Technote/Android_Technotes/Entries/201...

 In order to troubleshoot the wifi restart issue, I need to debug and
 monitor the following applications and components simultaneously:

 1. external/wpa_supplicant_6

 2. frameworks/base  ... WifiService.java

 3. frameworks/base  ... WifiStateTracker.java

 4. frameworks/base  ... WifiManager.java

 I've created an Eclipse project for the entire android-2.2.1 repo, and
 I would like to know what I should do to simultaneously debug the
 above four applications and components, so that I can select a bunch
 of variables from them and monitor them as I perform steps on the
 target device.

 Is this possible?

 Elvis Dowson

-- 
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: Andriod apps connect to HID USB Device

2010-11-17 Thread FrankG
IMHO no  .. their is no out of the box support for this.

And you need a platform with usb host support for this
usb device class.



On 12 Nov., 20:42, dan daniel@gmail.com wrote:
 I need to design an andriod app to communicate with HID Custom USB
 Device.

 Are there any standard java library that I can use to implement 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


[android-developers] Re: usb camera interface

2010-11-17 Thread FrankG
IMHO Archos 43 supports usb ptp ..

But it can't be a out of the box froyo, as froyo has no usb ptp
support .. ( also no usb hub support )

IMHO some specialized usb sw vendor made the  -- I think - very vendor
specific extensions to the kernel,
the framework and to some apps.

Would be interessting to know whether the support ptp+adb ?


On 13 Nov., 22:20, Matthew Fleming mgf...@gmail.com wrote:
 Hi,

 I'm just wondering what would be involved in connecting to an external
 camera via usb from a device such as the Archos 43 which is capable of
 functioning as a usb host? Evidently it is possible, because the
 Archos 43 manual says it can download pictures from an external camera
 using an accessory cable, but how this works in s/w I don't know. A
 pointer in the right direction would be greatly appreciated.

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


[android-developers] Re: How to change network service permission without modifying init.rc file

2010-11-11 Thread FrankG
IMHO as you see to extend the platform for a certain hardware I would
suggest you
move to android-platform, as such questions are out of scope ( sdk)
for this group.



On 11 Nov., 05:55, chandra shekar chandu@gmail.com wrote:
 My application speaks to JNI interface which has some socket connection
 written in C to talk to the underlined Hardware. I am starting some network
 service in order to make my application work since its dependent on it. so
 in order to do that my application doesnt support talking to such services
 unless untill you explictly change the permission. Its working if i do it
 from init.rc. But I dont want to do that I want some way I can change the
 permission without modifying init.rc. Please let me know if der is any
 alternatives.

 Regards,
 chandrashekar



 On Wed, Nov 10, 2010 at 4:18 AM, FrankG frankgru...@googlemail.com wrote:
  This will not help, because it requires the platform key.
  And he said that he will not run his app as root.

  On 9 Nov., 04:13, gujian outspacem...@gmail.com wrote:
   You can try to add android:sharedUserId='android.uid.system' to
   AndroidManifest.xml.

   2010/11/8 chandu chandu@gmail.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.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Zitierten Text 
 ausblenden -

 - Zitierten Text anzeigen -

-- 
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 keep an Android microSD card interface awake while the rest of the device is asleep?

2010-11-11 Thread FrankG
IMHO not in a portable way .. and go to android-platform or android-
porting

On 10 Nov., 17:15, JackN jnadel...@gmail.com wrote:
 I am working with custom microSD cards. I'd like to be able to
 maintain power to the microSD card while the handset sleeps.

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


[android-developers] Re: How to change network service permission without modifying init.rc file

2010-11-09 Thread FrankG
This will not help, because it requires the platform key.
And he said that he will not run his app as root.


On 9 Nov., 04:13, gujian outspacem...@gmail.com wrote:
 You can try to add android:sharedUserId='android.uid.system' to
 AndroidManifest.xml.

 2010/11/8 chandu chandu@gmail.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


[android-developers] Re: USB Connection Check

2010-11-08 Thread FrankG
Hi Boardy,

I have my doubts that you will get it working in a portable way across
different mobiles.
The usb implementation will be to different. The newer phones will
provide additional
and complex usb mode ( multiple cdc+acm+ adb + ?, mtp , pictbridge ),
some will change
the usbmode on the fly ( load a driver from a automounted cdrom image
on the phone and switch
after installation in a complex usb mode ) .. and for this the
different manufacturers will adapt the kernel
to framework communication and add components to the framework.

In principle the new froyo vold listens  for a sysfs file /sys/
devices/virtual/switch/usb_mass_storage/state .
If their is the state online , then  the VolumeManager will send a
BroadCast-Message which is IMHO propagated
via the ServiceManager to the rest of the framework and the
MountService. The MountService will send a Notification which you
could catch .

Good luck !

  Frank

On 6 Nov., 21:30, Boardy board.christop...@gmail.com wrote:
 Hi all,

 I am currently looking into developing an application for the android
 platform. I was wondering if there was a way in order to perform an
 action when the phone is connected via usb. I want it to perform an
 action depending on the connection state, i.e. do action A if not
 connected to PC, do action B if connected to USB in charge mode, do
 action C if connected via USB Disk etc.

 Is this possible.

 Thank for your help

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


[android-developers] Re: How to change network service permission without modifying init.rc file

2010-11-08 Thread FrankG
Hello chandu,

a) I think this question is more appropriate to android-platform

b) And you must describe your intention in more detail in my eyes:

   What are trying to do with netd ?

Good luck !

  Frank


On 8 Nov., 08:25, chandu chandu@gmail.com wrote:
 Hi,

 I have a requirement to change network service permission(such as netd
 to 660 or something similar) for my application in order to access
 certain features. I dont want to edit init.rc file to make such
 changes. Since my application cannot be run in root mode, is there any
 alternative solution where i could do such modifications from my
 application point of view. Please help me !!!

-- 
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: Tomcat on Android

2010-11-05 Thread FrankG
Hello Marc and Bret

would be nice, if you could describe what you try to do  ?!

Currently the easiest thing for you would be  i-jetty,
the android port of jetty from WebTide

Look here : http://code.google.com/p/i-jetty/

And after that provide your impressions to the community.

Thanks !

  Frank



On 5 Nov., 09:17, Marc Fleury marcf...@gmail.com wrote:
  I guess if it's a wall
  mounted device, it might be ok.  But at that point why not just use a
  PC of sorts and use some linux distribution and use your app as is,
  why even use Android at all?

 You would be surprised how difficult it is to get a decent ARM based
 fanless PC with a stable linux and working JVM.  We have been working
 on it atwww.openremote.organd you can find it but it is hard to do
 and then distribution is a headache.  These are part of the reason why
 we are looking for an android based server (in the wall). Also I think
 the prices will be go down quickly due to economies of scale.  IT then
 may be a decent server platform.   But yeah, I got to weight the
 difficulty of porting against the joy of an in-wall android.  I got to
 admit that porting is complicated and was full of nasty surprises for
 me :(.  This is not java, the libraries, this is android-java,
 unfortunately a different beast.

-- 
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: 2.2.1 / N1 / USB Dropping

2010-11-01 Thread FrankG
Hi Pent,

what kind of usb connections you can see in the connection manager ?

Maybe it is adb + something different as mass storage ?

The new 2.2 vold implemention uses a sysfs state file to detect usb
connected or not.
Maybe the content of this state file is not written correctly or
something with the polling of this
sysfs file went wrong ?

But a discussion about this should go to android-platform.

Good luck !

  Frank


On 30 Okt., 10:34, Pent tas...@dinglisch.net wrote:
 Since I installed 2.2.1 (could be coincidence), I regularly find that
 the USB icons in the status bar disappear. Sometimes reinserting the
 plug helps, most often not. The device registers the incoming power
 (evinced by the LED) but not the data connection (no icons popup for
 mounting etc)

 Anyone else ?

 Pent

-- 
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: Finding a development phone - how is the LG Optimus GT540?

2010-10-25 Thread FrankG
Yes, I think for the price it offers many features .. and it is small.

Yes, you need a special drivers as this device comes with
a composit usb interface. But with the PC Suite driver download
it works out of the box.

But note that the the GT 540 I have uses a rather old android version,
so
you need to check whether the update is already available.

Good luck ! Frank


On 25 Okt., 16:11, A Curious Developer imdb...@yahoo.com wrote:
 The LG Optimus GT540 is fairly cheaply now, at about $200. Does anyone
 have any experience with it, as a development phone? I understand it
 requires a special USB driver to use for development.

 Is the one google offers still $400? I don't seem to be able to find a
 price on that one, at least not without paying $25 to find 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


[android-developers] Re: Google Android platform for robotics (serial connection support).

2010-10-25 Thread FrankG
Hello,

IMHO the beagle board will be the cheapest platform. The other
platform board i.e. from TI
will be more expensive.  To the serial communication on this boards I
have no clue.

Good luck ! Frank


On 22 Okt., 05:56, RoboHobby roboho...@gmail.com wrote:
 Hi,

 1) What Android-compatible hardware platforms (boards, like beagle
 board) can you recommend for hobby robotics?
 Where can I see a list of Android-friendly boards with support of
 serial (or parallel) connections?

 We are going to move our Java ME robotics project (http://www.RoboHobby.com) 
 to Android platform, but what hardware to choose?

 2) What can you say about support of serial connection on Android-
 based phones?
 Does it work in reality?
 As I remember, in the Java ME world not all cell phones manufacturers
 supported serial connections on their J2ME implementations.
 For example serial connections were supported on some models of
 Siemens and Sony-Ericson, but they were not supported on Nokia and
 Sumsung, etc.

 What is going on with serial connection support in the Android World?
 Is this supported in reality? On which cell phones?

 3) Is it possible to use on Android devices (boards) not BlueTooth/USB
 conection, but wired connection, like RS232 COM port on PC?

 PS: I see funny wordplay - Android as a Google project and Android as
 a human-like robot.
 :-)

 --http://www.RoboHobby.com- Java Robotics, Code Examples. PICkit2
 tutorials, J2ME mobile phone Java as a robot's brain, KAP (Kite Aerial
 Photography)

-- 
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: Mount as USB drive

2010-10-25 Thread FrankG
Sorry .. but did you mean with usb drive is mounted  ?

You mean when you mount the sdcard and make them available as mass
storage device via usb ?


On 25 Okt., 11:37, perumal316 perumal...@gmail.com wrote:
 Hi All,

 A general question. Is there any difference in the way the USB drive
 is mounted in Android as compared to other mobile operating systems?

 Regards,
 Perumal

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


[android-developers] Re: Android serial port

2010-10-22 Thread FrankG
a) wrong group : use android-platform

b) maybe you could change the usb gadget on your device and provide an
composite usb device
   with a serial communication port

   But to change the framework will be not so easy.

   IMHO you have to adapt the kernel, create your own kernel -
framework communication via
   your own sysfs entries and so on ...

   But all not the scope of this group as this outside of the sdk

   Good luck ! Frank

On 18 Okt., 19:34, Aravind aravindana...@gmail.com wrote:
 Hi Team,

 I am a beginner in Android and i want to establish a serial port
 communication(UART RS232) library in Android Framework Layer. My
 applications want to use that libary to send  messages to some serial
 port devices. here we wan to use android as a embeded device and not a
 mobile device. can you suggest me how to establish a seria
 communication and to add that library on android framework layer.

 Regards,
 Aravind.

-- 
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: Write data into SDCard while mounted

2010-10-13 Thread FrankG
Hi Perumal

more and more phone provide different usb modes .. and some
manufacturer make
an implicit usb mode switch, means they load at first a driver and
software ( from a cdrom image
on the phone) and then change to a complex usb mode. You will also
find
phones which make an automount of the sdcard during the mode switch,
but you cannot rely
on it. I think too you should better use wifi for your ideas, as the
different phones can behave very different
in relation to usb.

Good luck  !

  Frank




On 13 Okt., 03:06, perumal316 perumal...@gmail.com wrote:
 Hi Mark,

 Yes, wifi and Bluetooth can be used. But I am wondering if it is
 possible through USB as the phone will be connected to the PC. I
 method I thought is by writing to sdcard and the desktop application
 can copy from it. But it is not possible to write to sdcard while it
 is mounted. Is it possible to mount programmatically?

 Thanks and Regards,
 Perumal

 On Oct 13, 8:58 am, Mark Murphy mmur...@commonsware.com wrote:



  On Tue, Oct 12, 2010 at 8:56 PM, perumal316 perumal...@gmail.com wrote:
   Thanks for the reply. So is there any other method to pass some data
   into the Android phone from a desktop application which will be used
   by an Android application and at the same time copy some data from the
   phone into the desktop application?

  WiFi. Possibly Bluetooth.

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

  Android 2.2 Programming Books:http://commonsware.com/books- Zitierten Text 
  ausblenden -

 - Zitierten Text anzeigen -

-- 
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: Unable to open or create cache for system/app/test.apk

2010-10-12 Thread FrankG
a) I would go with this kind of questions to android-platform

b) I would not put my own apps under system/app
   instead provide them as a vendor extension ( look for the vendor
dir )

Good luck ! Frank


On 12 Okt., 08:23, Raj raaju.pra...@gmail.com wrote:
 Hi All,

 When I am trying to build my application as a part of image I am
 getting the following error :

 E/dalvikvm( 1334): Can't open dex cache '/data/dalvik-cache/
 sys...@a...@test@classes.dex': No such file or directory
 I/dalvikvm( 1334): Unable to open or create cache for /system/app/
 test.apk (/data/dalvik-cache/sys...@a...@test@classes.dex)
 E/Util    ( 1334): Class Not Found :
 java.lang.ClassNotFoundException:

 But when I push the apk manually to the device (into system/app), it
 works fine.

 I am wondering why is it so as both ways the apk is present at system/
 app only.

 Any ideas ??

 Thanx.

-- 
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: USB communication

2010-10-12 Thread FrankG
Hi Andrew,

You mean with the default mass storage usb implementation ? IMHO no .

Good luck ! Frank


On 12 Okt., 05:57, Andrew Whalen the.awh...@gmail.com wrote:
 Is there anyway to communicate with a PC application over the USB
 connection? (Without using adb, I would rather not have to rely on the
 user having USB debugging on)

 Thanks.

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


[android-developers] Re: FileObserver not returning file changes within subfolders?

2010-10-12 Thread FrankG
Hi Freddy,

strange .. I thought the FileObserver uses Linux native call
inotify ,
which is able to send events for directories too,

What definitly will not work is FileObserver for sysfs entries.

Good luck ! Frank



On 12 Okt., 00:41, Freddy f...@charter.net wrote:
 ok.  I found more info.  Apparently the docs are incorrect.
 FileObserver does not support recursive file watching.

 On Oct 11, 1:50 pm, Freddy f...@charter.net wrote:



  The FileObserver class doesn't appear to be working as advertised.

  I created a class extending the FileObserver class.  I initialize the
  class to watch the path of the sdcard as returned from the Android
  Environment.getExternalStorageDirectory function.  Everything seems to
  work perfectly as long as the files are in the ROOTof the sdcard.  Any
  files within SUB-FOLDERS of the sdcard are NOT returned to my public
  void onEvent(int event, String path) callback in my FileObserver
  class.

  Has anyone seen this issue?  The docs say files in subfolders should
  be returned to the onEvent() callback but it's not happening.  Note,
  I've only tested on the Android simulator (v2.2) since I do not yet
  have access to a device.  Maybe this is a bug specific to the
  simulator?

  Thanks!- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: Unable to open or create cache for system/app/test.apk

2010-10-12 Thread FrankG
Also vendor extensions will be part of the system image and
will be installed under system/app.

IMHO it is a better style in my eyes to seperate your own stuff from
the rest.


On 12 Okt., 11:48, Raj raaju.pra...@gmail.com wrote:
 Thanks Frank.

 But the app has to be made as part of image and while building it that
 way it gets installed in system/app. I am moving this query to android-
 platform.

 Thanks.
-

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


[android-developers] Re: Simulating USB connection

2010-10-11 Thread FrankG
IMHO you need a powered usb hub and a usb controled power supply for
this hub.
Then you can switch on and off the hub very fast.

Most devices react on VBUS detection, means they do no differ between
vbus connected
and usb enumerated.

Good luck ! Frank

On 8 Okt., 13:42, { Devdroid } webnet.andr...@gmail.com wrote:
 On 8 October 2010 13:31, DanH danhi...@ieee.org wrote:

  Maybe you can think of some other way to cause the equivalent juggling
  of the notification area.

 The problem is that anny other juggling just works. USB connection
 crashes each time, so that would be perfect to have this simulated.
 I may check android sources too, but it's not what I'd like to do now
 Will keep trying anyway

-- 
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: Simulating USB connection

2010-10-08 Thread FrankG


On 7 Okt., 15:06, { Devdroid } webnet.andr...@gmail.com wrote:
 On 7 October 2010 14:26, DanH danhi...@ieee.org wrote:

  You sure the problem doesn't only occur when the USB is attached in SD
  sharing mode?

 No. Plug the cable - boom :) That's why I wonder how can I debug this
 w/o doing extensive logging and hoping it got written to the log. 
 Unfortunately,
 for obvious reason I can't debug it on device ;)



IMHO you can't simulate this without modifiying the kernel ..
USB connected event has changed in froyo and is send via a  sysfs
state file
in my opinion.

And you can debug such usb connection problems  with adb over wlan.

Good luck ! Frank





-- 
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: System Settings.db corruption

2010-10-08 Thread FrankG
Sorry, but what do you mean with Settings.db ?



On 8 Okt., 00:54, cumhur cevik alice...@gmail.com wrote:
 Hi,
 When sqlite db corrupts it is creating a new one.
 But What happens when system Settings.db corruption?

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

2010-10-07 Thread FrankG
In this case better android-building .. as their is already a thread
related to clearsilver and
support from the build guru  Ying Wang


 Questions regarding building the source should go on the porting or platform
 group.

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


[android-developers] Re: USB and Android

2010-10-07 Thread FrankG
A great answer  (IMHO) can you find here  :

http://stackoverflow.com/questions/3434107/android-communicating-with-a-usb-device-which-acts-as-host

On 6 Okt., 19:08, Andrew Whalen the.awh...@gmail.com wrote:
 Is there any way to allow communication between a program on a PC and
 an app on the Android through USB? I've notied some apps can sync
 through USB so I figure there must be a way.

-- 
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: Print documents from an Android device

2010-10-07 Thread FrankG
IMHO your application only needs to send the right Action Intent ..

Look how this is done in the 3d gallery app i.e. in the share menu.

I think soon you will also find devices, which have usb pictbridge
support and
allow direct printing via usb.

Good luck !
   Frank



On 4 Okt., 12:49, Gober herrsky...@gmail.com wrote:
 I am developing an application for the Norwegian Food Control. They
 want to register a control using an Android device, and when they are
 done print out a certificate to give to the business directly.

 Is there any way to do this from Android?
 I have seen Bluetooth enabled printers, but is there a way for my
 application to use these? The only thing I could find on the web was
 an app called Print Share, but this only sent items to print to a
 network-connected stationary printer. Printers with built in support
 for Android also just prints photos. I want to print for instance a
 PDF directly from my phone.

-- 
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: Launching my application from the Settings menu

2010-10-07 Thread FrankG
IMHO it is not so complicated, as you only need to add a additional
menu
and send the right intent for your own app .

But the Settings-App is a core app signed with platform key, so you
have
to make at the end a system image and flush the device.


Good luck !

  Frank



On 7 Okt., 07:45, Kumar Bibek coomar@gmail.com wrote:
 Nope, you cannot do that. If you want this, you might have to change the
 SettingsActivity itself, which would require you to download the source code
 and work on that first.





 On Sun, Oct 3, 2010 at 7:10 PM, Boris Farber boris.far...@gmail.com wrote:
  Dear Sir/Madam

  I am looking for a way to launch my application(few Activities,
  Services, Receivers) from the Setting menu.

  In other words I am interested to know:

  1. I this a trivial task ?
  2. Did someone has done such task before ?
  3. What APIs and application's code should I learn

  Thank you

  Boris Farber

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com- Zitierten Text 
 ausblenden -

 - Zitierten Text anzeigen -

-- 
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: Mount sdcard USB Storage through adb.

2010-10-01 Thread FrankG
Your subject is strange .. as the sdcard has nothing to do with the
sdcard.

I assume you would like to know how to mount the sdcard via a command
from
a adb prompt .

You can do this  via a system call command.

I haven't the details by hand, but it is one of the system services
which allow you to do this.
You need to look into the aidl interface for them and then you can
call them via system call ..

As a joke try out : service call  phone 2 s16  a phone number of a
friend

Good luck !

  Frank



On 30 Sep., 20:28, Nathan critter...@crittermap.com wrote:
 I can't seem to find a command that will allow me to mount/unmount the
 sdcard from the adb prompt.

 From the documentation, it appears that this can't be done in an
 emulator, so I am trying with a Nexus One.

 I would like to simulate the card being mounted or unmounted while my
 Activity is active. I can't do this on the Nexus One through the
 notification menu, because this will pause and then resume and
 activity, during which time storage card broadcast notifications are
 not sent.

 I know other devices can and do mount the storage without leaving an
 Activity, in particular because they will automount the storage
 whenever the USB is plugged in (according to users, even if you tell
 it not to). For that reason, this is a case I want to test.

 Nathan

-- 
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: Help me: Build Android SDK for eclipse on win XP, and customize android source code!

2010-09-28 Thread FrankG


On 28 Sep., 05:51, Tuyen Hoang Long tuyen...@gmail.com wrote:
 Thanks for your rely,

  I still meet three proplems as below:

 1.      I build Android SDK in Linux, but when building was finished, I get
 SDK which only use in ubuntu. I use window XP so, I want to build a SDK for
 eclipse on Window XP, it make me esealy for developing! How can I buil a SDK
 for eclipse on Window XP?

Sounds for me, as you try to build you own , very private version of
android, which
you will deploy only on your phone ?

I wouldn't waste my time to switch between Ubuntu and Windows if you
are using
a modified android framework.

 2.      I will check license on the Email etc again. But, I have a question:
 How can I customine applications in Android 2.2 as Email, Phone, Music,
 SMS...? I want to build them for my own Android OS ( ex:  Android OS 2.1 on
 HTC Desire, some applications were customined). How can I do it?  

I would say such prebuild apps on the platform are not intended to be
modified.

Good luck !

   Frank

  Please help me!

  Thank you very much,

 Hoang Long Tuyen!

 On 28 September 2010 06:08, Indicator Veritatis mej1...@yahoo.com wrote:





  You say 2 problem, but what you describe as #1 does not sound like a
  problem. Of course a build for Ubuntu will be only for Ubuntu. What
  were you expecting?

  As for #2, double check the license on the Email etc. Android OS is
  open source, but not every application running under Android is also
  open source. If it is not, then of course you won't find the packages
  in the source for Android OS.

  Finally, questions about building Android OS really belong in one of
  the groups listed athttp://source.android.com/community/index.html.
  Read the list and decide for yourself which is really the best match
  for what you are trying to do.

  On Sep 24, 7:19 pm, Ngo Family tuyen...@gmail.com wrote:
   Hi you,

   I have 2 problem that I can't solute. Could you help me, please?

   1. I built SDK Android on Ubuntu OS completely. But this SDK only for
   eclipse on Ubuntu OS.

   I want to create SDK for Window XP. How can I do that? Does it like
   how to built SDK Android on Ubuntu OS?
   2. I download Apps in Android source code such as: Email, Calendar,
   Music, Setting,... but when I import them into eclipse, it have some
   errors: project Calendar requires import android.provider.Calendar;,
   import android.provider.Calendar.Events;,... So where can I download
   android.provider.calendar, android.provider.calendar.Events...
   from? Or how can I set up environment?

   Thank you very much!

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

 --
 Hoang Long Tuyen
 Mobile:  0986323119
 Email: tuyen...@gmail.com- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: USB driver not working on Windows 7 64 bits

2010-09-28 Thread FrankG


On 25 Sep., 14:23, Bob lordrobertsm...@googlemail.com wrote:
 I'm having trouble too.
 I'm using Windows 7 64 bit and have an LG GT540.
 I've written my app, and it works on the virtual phone, now I want to
 test it on my phone, but I can't get windows to connect to it.

Hello Bob,

you need a special USB driver from LG as the GT 540 comes with a
composite usb interface.

You didn't say whether you already installed the PC Sync App from LG
and before the driver from LG ?

http://tinyurl.com/2do4po5

Good luck !
   Frank

-- 
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: Question about NDK

2010-09-17 Thread FrankG
Hi Paolo,

IMHO port the source to android, build a shared lib and provide NDK-
JNI-Wrapper Classes
for your lib, so that any app developer has not to handle the JNI
Details.

And usage example are always a big help, i.e. a sample App, which uses
your lib.

Good luck !

  Frank



On 16 Sep., 18:10, Paolo brand...@gmail.com wrote:
 Hi there,
 I should port a framework written in C/C++ to Android, in order to
 allow developer to use it to implement application. Is the NDK the
 right way?

 and then... this framework won't open, so how can I distribute it
 ready to be used in every android app?

 Thanks to anyone helps me.

-- 
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: system_server debugging using eclipse.

2010-09-16 Thread FrankG
As non native speaker this means that this is the wrong group for such
a question :-)


On 15 Sep., 09:07, Dianne Hackborn hack...@android.com wrote:
 You wouldn't use the NDK or SDK for this.

 On Tue, Sep 14, 2010 at 10:43 PM, kiran kiranbhat2...@gmail.com wrote:
  Hi
  how can  i  debug the android telephony and radio service part  of android
  (system_server) using eclipse debugging tool.
  Regards
  Kiran

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

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

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

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


[android-developers] Re: Disabling the USB port?

2010-09-14 Thread FrankG
Yes .. but the question if, whether it is allowed for hiim, that the
mobile can still be seen in
the devise manager ? If not then he need a special usb gadget with
null mode, means, which does
not enumerate ..

And disable mass storage allone maybe will not help him, if his devise
supports other usb modi as well.

But seems this kind of questions are more  related to android
platform ?

Good luck ! Frank


On 13 Sep., 16:47, Chris Stratton cs07...@gmail.com wrote:
 Compile a kernel without usb drivers.  You will need root or an
 engineering bootloader to install it.

 Or you could just leave usb debugging off and decline to mount mass
 storage mode.



 Tez wrote:
  Is there any other way that can block the USB port so that no data is
  transferred?

  Where are the corresponding source files?

  Cheers,
  Earlence

  On Sep 13, 3:33 pm, Mark Murphy mmur...@commonsware.com wrote:
   On Mon, Sep 13, 2010 at 3:44 AM, Tez earlencefe...@gmail.com wrote:
Is it possible to disable the USB port?

   You could fill it with glue...

Even if the device is physically connected to a host computer via USB
cable, no logical connection should be established.
What are the sources/programmatic way of doing this?

   You would need to modify the firmware.

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

   Android Training...At Your Office:http://commonsware.com/training- 
   Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

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


[android-developers] Re: How do I write Android.mk for an application using com.google.android.maps.jar

2010-09-08 Thread FrankG
What is wrong?

IMHO first of all the group, as this is more related to android-
platform.

The strange thing for me is, why Google -Maps is not part of your
platform
as vendor extension under app\mydroid\vendor\google\frameworks ?

I have no idea whether your approach can work.

I think you need to create your own google maps extension dir and put
their
a Android.mk which will force to install the maps jar under /system/
framework

Somethink like this ..

LOCAL_MODULE := com.google.android.maps.jar

LOCAL_MODULE_CLASS := JAVA_LIBRARIES

LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

Take this as a starting point only as this is not complete.

Good luck ! Frank




On 27 Aug., 02:56, Binggrae bangg...@gmail.com wrote:
 Hi

 I am developing an application using com.google.android.maps.jar
 It is OK to develop it with Eclipse SDK.
 but an build-error happens when building system.img with GMS licence
 (com.google.android.maps.jar is already installed at out/target/common/
 obj/JAVA_LIBRARIES/com.google.android.maps.jar_intermediates/
 com.google.android.maps.jar)

 make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/
 com.google.android.maps.jar_intermediates/javalib.jar', needed by `out/
 target/common/obj/APPS/LifeStory_intermediates/classes-full-
 debug.jar'.  Stop.

 Here is my Android.mk

 #===
 LOCAL_PATH:= $(call my-dir)
 include $(CLEAR_VARS)

 LOCAL_MODULE_TAGS := user

 # List of static libraries to include in the package
 LOCAL_STATIC_JAVA_LIBRARIES := com.google.android.maps.jar

 LOCAL_SRC_FILES := $(call all-java-files-under, src)

 LOCAL_PACKAGE_NAME := Test

 include $(BUILD_PACKAGE)
 #===

 What is wrong?
 please help me..

-- 
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: Do someone know which application controls USB connected notification

2010-09-07 Thread FrankG

BTW .. what do you mean with USB connection notification ? I assume
you meant USB Debugging connected ?

This means that you have a running usb profile with adb support. But
you can also have a device with different profiles
without adb .. i.e mtp or pictbridge.

If want to learn more about the notification look into the new
redesigned vold, he listens for a sysfs entry and informs other parts
of the system.

Good luck ! Frank


On 7 Sep., 04:01, I-Sheng Lin ckjboy2...@gmail.com wrote:
 Hi all,

 i am not trying to disable the notification just want to know which
 application controls it.

 Does this application come with every android phone? i assume the answer is
 yes. correct me if i am wrong.

 Thanks

 Regards

 --
 I-Sheng Lin(Sam)
 +886-929-052-222

 For every action, there is an equal and opposite criticism. 

-- 
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 anyway to turn USB debuggin on/off

2010-08-31 Thread FrankG
Hi Arjun,

Are you working for a specific platform and provide a specific
platform extension ? If yes you can
use the platform class i.e. android.os.SystemProperties to  set the
persistent property which controls
adbd. Look in your init.rc and grep for adbd .. you will see the
property I mean.

Note your must sign your app with the platform key and use
SharedUserID of course.

If the answer for the initial question is no, then you have no chance.

Good luck ! Frank


On 27 Aug., 20:21, Arjun arjunf...@gmail.com wrote:
 Yes Chris, I want do it thru code. I need to completly disable usb and
 simply act as Power connector.

 On Aug 27, 10:57 am, Chris Stewart cstewart...@gmail.com wrote:



  Are you trying to do this from code, or through the UI?  There's the option
  for it under Settings - Applications - Development, but it sounds like
  you're asking about doing it through code and that I have no idea about.

  --
  Chris Stewarthttp://chriswstewart.com

  Fantasy 
  Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
  Android app for MFL fantasy football owners
  Fantasy Football
  Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
  Android app for all fantasy football fanatics
  Social 
  Updaterhttp://chriswstewart.com/android-applications/social-updater/-
  An easy way to send your status blast to multiple social networks

  On Fri, Aug 27, 2010 at 1:35 PM, Arjun arjunf...@gmail.com wrote:
   Greetings,

   Is there any class or managaer which allows me to turn USB debugging
   on/off  in android froyo 2.2.
   Please, let me know on how to acheive this.

   Thanks,
   Arjun.

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

 - Zitierten Text anzeigen -

-- 
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: Lg Ally USB Debugging Driver

2010-08-31 Thread FrankG
Strange .. the default mode LG driver will support adb in my opinion.

I have a GT 540 from LG and adb works without any problems under
Vista.

Search for the LG PC Suite Software .. their installer has an Option
install driver ..

Good luck !

  Frank



On 27 Aug., 15:14, spudnut spudn...@gmail.com wrote:
 hello i have searched the internet for the debugging driver but as yet
 i have not found it and lg will not help because i would be making
 third party software thus voiding waranties and so on. if you know
 where this driver is please tell me thank you in advance!

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


[android-developers] Re: USB ports on N1 - usable?

2010-08-25 Thread FrankG


On 24 Aug., 17:13, Chris Stratton cs07...@gmail.com wrote:
 Depending on how it was written, you tell the driver to switch roles
 or you unload the driver modules for one role and load those for the
 other.


I assume you mean  unload the used usb gadget, if your device
really supports this and switch to a new one .. nothing what out of
box will
work ...

Good luck ! Frank

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


[android-developers] Re: How to check the Foreground Process from a Service

2010-08-24 Thread FrankG
Yes, if you have both sides in your hand. But the basis of
my assumption was, that this is not the case.

Example Requirement : Don't pop up the triggered dialog,
   if a certain 3rd Party dialog is
already shown.


Good luck ! Frank


On 23 Aug., 14:10, nation-x shawn.payme...@gmail.com wrote:
 You can send a broadcast to your foreground process using a receiver
 that triggers the foreground process to call a method in the service
 from onReceive().

 Android Workz

 On Aug 20, 4:25 pm, Call_Waiting team.mu.capt...@gmail.com wrote:



  Does anyone know how to, or if it's even possible to check the
  (foreground process/top of the activity stack) from a service?- Zitierten 
  Text ausblenden -

 - Zitierten Text anzeigen -

-- 
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: USB ports on N1 - usable?

2010-08-24 Thread FrankG
And how will you switch back to the normal usb mode if this should
work ?



On 24 Aug., 10:00, Chris Miller chris_overs...@hotmail.com wrote:
 It's not straightforward, but it is possible with a custom kernel. See this
 thread for details:http://forum.xda-developers.com/showthread.php?t=694427



  Assuming I have a USB device I want to attach to a N1, would it be
  usable? Lets assume I have the drivers or can write them to interact
  with the device. Is the support for USB that extensive on Android
  devices?

  I can find information about making the phone a host, charging, ect,
  but I can't find information beyond that.

  Thanks- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

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


[android-developers] Re: How to check the Foreground Process from a Service

2010-08-23 Thread FrankG
Hello Frank,

one reason for this kind of question could be, that
his service get an hardware event and would like to start i.e. a
dialog.
But his service is not allowed to hide another Activity.
Such a scenario I could imagine.

Best regards. Frank



On 23 Aug., 06:38, Frank Weiss fewe...@gmail.com wrote:
 I'm curious what the OP was trying to accomplish. It seems to me that
 even if the informastion were available, it could be out of date in a
 very short matter of time.

-- 
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: Sending EMAIL

2010-08-20 Thread FrankG


 The email address that I pass via:
         sendIntent.putExtra(Intent.EXTRA_EMAIL, theem...@comcast.net);
 is always ignored and so it has to be manually entered on each email.

 Any solution? Thanks in advance.

Try this :

private static final String YOURTO = m...@medomain.com;
intent.putExtra(Intent.EXTRA_EMAIL, new String[] { YOURTO });


Good luck !

  Frank

-- 
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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-20 Thread FrankG
Hi Trevor,

This was my impression too on the 16th August

Try to set ro.serialno  with setprop .. 

But I assume that other vendors have also no clue about this property.

Good luck !

  Frank





On 20 Aug., 21:04, Trevor Johns trevorjo...@google.com wrote:
 Hi everyone,
 Just to follow up a bit here, the reason we believe this is happening is
 because ro.serialno isn't set on these devices. (Note that the ro.*
 properties currently aren't required by the CDD/CTS.) Unfortunately, it
 seems that we're using ro.serialno as the seed for the PRNG when generating
 ANDROID_ID.

 See: 
 frameworks/base/packages/SettingsProvider/src/com/android/providers/setting­s/SettingsProvider.java:416

 http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/packages/Setting...

 I've gone ahead and opened up a bug here for tracking purposes:

 http://code.google.com/p/android/issues/detail?id=10639

 (We suspect that the Droid 2 isn't the only phone affected by this, likely
 just the most noticeable instance.)

 We have a fix for this checked into our internal Git repo, so once that
 change propagates to vendors this shouldn't be an issue on future devices.
 For existing devices though, if you absolutely depend on the uniqueness of
 ANDROID_ID, you'll unfortunately need to rely on some other identifier
 (IMEI, WiFi MAC, etc.).

 --
 Trevor Johns

 On Fri, Aug 20, 2010 at 10:46 AM, suzanne.alexandra 



 suzanne.alexan...@motorola.com wrote:
  Andrew,
  I don't know that this is reported in any public bug system. I've
  reported it within a Motorola bug system.

  - Suzanne

  On Aug 20, 12:33 am, Maps.Huge.Info (Maps API Guru)
  cor...@gmail.com wrote:
John, have you had any complaints yet about conflicts from duplicate
unique ids?

   I handled it in code.

   -John Coryat

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

 - Zitierten Text anzeigen -

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


  1   2   >