[android-developers] Re: can one cmulator control controls two emulators in the same computor at the same time ?

2009-08-31 Thread Roman ( T-Mobile USA)
Make sure to use two different AVD images to start up two different emulator instances. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-developers] Re: Stream Video to Android over RTP

2009-08-31 Thread Roman ( T-Mobile USA)
Sipdroid also supports Video. When you download the latest version you will find how they are using Video over RTP. Check the UI package and search for RTP in the VideoCamera.class -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in

[android-developers] Re: Null Pointer Exception

2009-08-30 Thread Roman ( T-Mobile USA)
My first guess is that your variable is not instantiated that's why you cannot call the method. but let's look at your code first -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread Roman ( T-Mobile USA)
Could you send a complete trace of your logcat. It might be from importance when exactly you are getting this error message. Furthermore you can check in the project folder of your application whether the APK was correctly created (look in the bin folder). Sometimes the emulator behaves weird, a

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Roman ( T-Mobile USA)
Any ideas what is the size of your input stream? I assume that when you call the method with passing the input stream, your stack is too small that's why you get the segmentation fault. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements

[android-developers] Re: How to call another class method.

2009-08-28 Thread Roman ( T-Mobile USA)
I am assuming that you want to get the activity eSkyGuide in the foreground, correct? In this case as ragavendran suggested, call an Intent to start up the new activity. Something like Intent eSkyGuideIntent = new Intent() ; eSkyGuideIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

[android-developers] Re: Can not access my own service

2009-08-28 Thread Roman ( T-Mobile USA)
Only for testing purpose, instead of using your own created permission, use an already defined system permission and check whether your code works fine. If yes, you know that there are some problems with how you define and expose your own permission. -- Roman Baumgaertner Sr. SW Engineer-OSDC

[android-developers] Re: some way to check available activities

2009-08-28 Thread Roman ( T-Mobile USA)
You might want to look in the PackageManager class with which you can retrieve installed packages/applications information. Look at http://developer.android.com/reference/android/content/pm/PackageInfo.html#activities (flag GET_ACTIVITIES). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· ·

[android-developers] Re: how to use shell command in Android app

2009-08-28 Thread Roman ( T-Mobile USA)
Try to use the Java class File for operations on the file system. Some of the system commands are not executable using exec if you are not root. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author

[android-developers] Re: How can I sort items in the ListView?

2009-08-27 Thread Roman ( T-Mobile USA)
I am assuming that you are able to successfully query your data. To sort your result is independent from using the ListView. After sorting your query result with for example Collections.sort() you can create a ListAdapter instance and call listView.setAdapter(your adapter). -- Roman

[android-developers] Re: How to Access SharedPreferences created file?

2009-08-27 Thread Roman ( T-Mobile USA)
You cannot access the shared preference folder on the real device if you don't have the correct permission. One possibility would be to extend the framework/platform code by running an app/daemon process on system level. My main concern on enabling something like this would be security. You

[android-developers] Re: Communication between Android devices over 3G

2009-08-26 Thread Roman ( T-Mobile USA)
With external server I refer to a server which is public reachable somewhere in the internet. For example for doing some Voip stuff you would place a public reachable PBx in the internet. This server would know how to translate addresses correctly (see Asterisk PBx which has built in

[android-developers] Re: Patching synthesized voice in ongoing call

2009-08-26 Thread Roman ( T-Mobile USA)
During an active phone call you have no control on SDK level of the audio channel. In Android this is controlled from lower level. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-developers] Re: Connecting multiple phones

2009-08-26 Thread Roman ( T-Mobile USA)
The current Android SDK does not offer any ad-hoc functionality, which means no p2p support. Also having root access does not change anything on what is supported on SDK level. In general Wifi drivers are coming with both infrastructure and ad-hoc support. It might be possible to extend the

[android-developers] Re: how can close other activity?

2009-08-25 Thread Roman ( T-Mobile USA)
It is a conceptual problem which you are trying to solve with controling an activity from another activity. The Android platform tries to simplify UI development in a way that it defined a life cycle for activities. If you try to control an activity from another activity you change the current

[android-developers] Re: Connection refused

2009-08-25 Thread Roman ( T-Mobile USA)
You are trying to connect on your Android device to a local server listening on port 8080. Of course there is no server listening on this port because the server runs on a different machine. Try to make sure that you use the correct server IP address instead the loopback address. Are you

[android-developers] Re: Android IMS support

2009-08-25 Thread Roman ( T-Mobile USA)
The IMS code which you find on sourceforge is far from being completed. Based on the latest changes I doubt that the project is still active. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely

[android-developers] Re: Running Android in the virtualization layer (e.g. VMware) possible?

2009-08-25 Thread Roman ( T-Mobile USA)
You can download the ISO images from http://code.google.com/p/live-android/. Now you can download a complete ISO image for the version 0.3. VMWare setup or Parallels setup (on Mac) is pretty straight forward. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views,

[android-developers] Re: Running Android in the virtualization layer (e.g. VMware) possible?

2009-08-25 Thread Roman ( T-Mobile USA)
distribution including the Android Runtime? On Aug 25, 8:59 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: You can download the ISO images fromhttp://code.google.com/p/live-android/. Now you can download a complete ISO image for the version 0.3. VMWaresetup or Parallels setup

[android-developers] Re: Communication between Android devices over 3G

2009-08-25 Thread Roman ( T-Mobile USA)
You can use 3G for communication to another device on 3G. You have only to know that the IP address on 3G is NAT'd. You have to make sure that you tell the other device how to deal with the NAT traversal. One way to solve this is having an external server which is able to translate the IP

[android-developers] Re: Connecting multiple phones

2009-08-24 Thread Roman ( T-Mobile USA)
Without any framework/platform changes you cannot do this right now. - Bluetooth is right now not supported on SDK level - Wifi only has infrastructure support (no ad-hoc support) on SDK level If you want to connect over an AP, this works fine but I assume that you try to setup up a P2P

[android-developers] Re: WifiInfo object contains out of date info

2009-08-24 Thread Roman ( T-Mobile USA)
Dave, I noticed the same that the wifi connection manager returns wifi connection information also if you are not registered on wifi anymore. It might be that the API description is not correct (or the implementation ). If you use the API

[android-developers] Re: server over 3g

2009-08-24 Thread Roman ( T-Mobile USA)
As add to Dan's post To resolve the NAT issue you could implement some hacks on the phone. These hacks would be only from temporary nature because when you disconnect and reconnect from 3G, the probability is high that you get another IP address assigned. Of course the difficult part here is

[android-developers] Re: Fake call into real device

2009-08-23 Thread Roman ( T-Mobile USA)
I could think of to extend the framework code for doing this. If you are only interested in receiving the call related intents on SDK level you could modify the framework in a way that you could trigger these events manually. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick

[android-developers] Re: adb

2009-08-22 Thread Roman ( T-Mobile USA)
Everything is possible ... But in the case to use adb over Wifi you have change both the adb toolkit and also the framework code. If you try to work on such complex changes make sure that you think about how to distinguish adb connections and eth1. I assume that you still want that Wifi works

[android-developers] Re: wifi vs. ota...

2009-08-22 Thread Roman ( T-Mobile USA)
What do you mean exactly with OTA? Current Android devices are supporting Wifi and 2G/3G data connections. When you are in a Wifi connection but lose the connection, your data connectivity is automatically switched to cellular data. When you entering a building with a know Wifi network, your

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-08-21 Thread Roman ( T-Mobile USA)
android:name=android.permission.ACCESS_NETWORK_STATE/uses-permission     uses-permission android:name=android.permission.CHANGE_NETWORK_STATE/uses-permission On Thu, Aug 20, 2009 at 4:10 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Ravi, I would first try to check out

[android-developers] Re: Network connection from my development machine to the emulator - How To?

2009-08-20 Thread Roman ( T-Mobile USA)
Your service won't be reachable using the loopback address from a client on your desktop. Get familiar with port forwarding/ redirecting. http://developer.android.com/guide/developing/tools/emulator.html#portredirection -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together

[android-developers] Re: Handling phone ringing

2009-08-20 Thread Roman ( T-Mobile USA)
( T-Mobile USA) roman.baumgaert...@t-  mobile.com wrote: Do the following: 1. In your manifest you should have     uses-permission android:name=android.permission.CALL_PHONE /     uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS/     uses-permission

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-08-20 Thread Roman ( T-Mobile USA)
, Aug 19, 2009 at 4:18 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Are you using the following permissions?    uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/    uses-permission android:name=android.permission.CHANGE_NETWORK_STATE/    uses

[android-developers] Re: Check for internet connection

2009-08-20 Thread Roman ( T-Mobile USA)
A very fast check is whether you have a valid IP address assigned. Another more complicated way is to use the network manager and listen for connection state changes. In case of you get disconnected you could keep this information in a persistent storage. Check this persistent information before

[android-developers] Re: how to build adb.exe for windows.

2009-08-19 Thread Roman ( T-Mobile USA)
. On Aug 18, 9:38 pm, Kyo Yin kyo@gmail.com wrote: hi roman    1.How do you try to compile?     i just use make HOST_OS=windows in ubuntu.     2.Are you doing this on Cygwin?     no.i use ubuntu.     do you mean i should use cygwin to build adb.exe for windows? kyo 3273 2009/8/19 Roman ( T

[android-developers] Re: Problem with emulator

2009-08-19 Thread Roman ( T-Mobile USA)
It might be that you are running on a verrry slow system. Emulator should start up within a minute ... How fast is your processor and how much memory do you have? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-08-19 Thread Roman ( T-Mobile USA)
Are you using the following permissions? uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/ uses-permission android:name=android.permission.CHANGE_NETWORK_STATE/ uses-permission android:name=android.permission.ACCESS_WIFI_STATE/ uses-permission

[android-developers] Re: redirect call to voice mail

2009-08-19 Thread Roman ( T-Mobile USA)
The only way I am aware of intercepting the incoming call is on platform level. I haven't found a way to do this on SDK level. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-developers] Re: how to build adb.exe for windows.

2009-08-18 Thread Roman ( T-Mobile USA)
How do you try to compile? Are you doing this on Cygwin? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA,

[android-developers] Re: can andriod be in pda area?

2009-08-17 Thread Roman ( T-Mobile USA)
You have not to use the telephony support of Android. Questions is whether is is worth to strip of the Android telephony support. Of course it is possible to do this but you might end up with a lot of work. I could think of to get rid of system applications which are related to the phone

[android-developers] Re: Understanding the BroadcastReceiver

2009-08-17 Thread Roman ( T-Mobile USA)
How do you run your application? It seems like you are running always through the onCreate method which creates a new broadcast receiver instance. If you want to avoid this don't send an intent in the onCreate. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views,

[android-developers] Re: Handling phone ringing

2009-08-17 Thread Roman ( T-Mobile USA)
Do the following: 1. In your manifest you should have uses-permission android:name=android.permission.CALL_PHONE / uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS/ uses-permission android:name=android.permission.READ_PHONE_STATE/ intent-filter

[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link

2009-08-16 Thread Roman ( T-Mobile USA)
For being able to switch radio interfaces you have to make sure what a platform can support. These are the following possibilities 1. only one radio at the same time. Browsing, instant messaging type of data connection can be supported. User is not necessarily impacted by switching the radio

[android-developers] Re: Doing something every second

2009-08-16 Thread Roman ( T-Mobile USA)
I assume that you have all the needed information about the streams which you are going to play which means you have also the length information of the stream. When you start the stream start also a timer on your mobile device and run it down. If you pause the stream, try to retrieve the actual

[android-developers] Re: Connect Device to PC through USB

2009-08-15 Thread Roman ( T-Mobile USA)
for reply, Ok so i think there is no way to develop an application with feature which can connect to PC(without any individual configuration with PC as it would not be feasible) . On 8/15/09, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: If you want to use the USB

[android-developers] Re: Connect Device to PC through USB

2009-08-15 Thread Roman ( T-Mobile USA)
for reply, Ok so i think there is no way to develop an application with feature which can connect to PC(without any individual configuration with PC as it would not be feasible) . On 8/15/09, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: If you want to use the USB

[android-developers] Re: Connect Device to PC through USB

2009-08-15 Thread Roman ( T-Mobile USA)
, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: If you want to use the USB as a ethernet network interface then it is not supported. You have to port the USB network support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views

[android-developers] Re: Is it possible to connect to a local dev server using Phone connected to debugger?

2009-08-14 Thread Roman ( T-Mobile USA)
Yep, you do. Also if you are connected via USB to your PC, the USB interface does not show up at a ethernet interface. Of course you might be able to tweak the platform code to use the USB interface as an ethernet interface. Find some information about USB networking at

[android-developers] Re: GPRS attach and detach/Wifi connection

2009-08-14 Thread Roman ( T-Mobile USA)
I am assuming that your device detaches from the network. When you are attached the following is possible - the network is capable of tracking the MS (via subsequent location updates) - network is aware of the services and networks that the user may have access to. Location updates are

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Roman ( T-Mobile USA)
http://www.amazon.com/Android-Programming-Books/lm/R3IDV45VDVAY3M One beginner book is sufficient, because most of the books are covering the same topics over and over -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link

2009-08-14 Thread Roman ( T-Mobile USA)
This is not yet supported. You would need to change the platform code to support this correctly. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: Connect Device to PC through USB

2009-08-14 Thread Roman ( T-Mobile USA)
If you want to use the USB as a ethernet network interface then it is not supported. You have to port the USB network support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-developers] Re: Regarding the Java Version

2009-08-14 Thread Roman ( T-Mobile USA)
You can install java 1.5 and java 1.6 on your system. Setup an environment variable which supports the selection of the Java version which you want to use. If you do development on the SDK/platform switch to 1.5, for app development switch to 1.6. For example on my MAC I find the 1.6 bin in

[android-developers] Re: How can I know the calling time of an active call?

2009-08-14 Thread Roman ( T-Mobile USA)
I agree that the telephony support in Android is very limited. I also noticed that it is not trivial to extend the platform code, because also the rild is very limited. As long as needed state information are not exposed from the baseband level it is very difficult to implement more complex TAPI

[android-developers] Re: create service only

2009-08-13 Thread Roman ( T-Mobile USA)
The answer to both of your questions is yes. Find information on this topic at http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-iii-android-services/ http://developerlife.com/tutorials/?p=356 http://developer.android.com/reference/android/app/Service.html -- Roman

[android-developers] Re: curious

2009-08-13 Thread Roman ( T-Mobile USA)
What exactly is info? Do you have multiple threads running which access info? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent

[android-developers] Re: how to get notified(or Listen) for the changes in SD card

2009-08-13 Thread Roman ( T-Mobile USA)
You might want to look at the following java libraries and see whether you can port one of them to Android. http://www.rgagnon.com/javadetails/java-0617.html Another way might be to execute system commands like stat (for which you have to be root which makes it more complicated to use it from

[android-developers] Re: Emulator gsm call

2009-08-13 Thread Roman ( T-Mobile USA)
You can change the phone application to be able to handle incoming calls on the emulator. See code at Phone/src/com/android/phone/CallNotifier.java and set boolean provisioned = true; (in method onNewRingingConnection) -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together

[android-developers] Re: Connection status

2009-08-12 Thread Roman ( T-Mobile USA)
You want to use a WifiManager instead the TelephonyManager to find out about the WifiConnection state. Use the following APIs below private WifiManager mWifiMgr; mWifiMgr = (WifiManager)mContext.getSystemService(mWifiService); mWifiMgr.getConnectionInfo(); If you are interested to find out in

[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)
Runtime.getRuntime().exec(ls -a); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 8:26 

[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)
Runtime.getRuntime().exec(ls -a); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 8:26 

[android-developers] Re: Can an end user disable 2G data, or GSM function?

2009-08-12 Thread Roman ( T-Mobile USA)
Airplane mode does switch of all radios also GPS. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: Connection status

2009-08-12 Thread Roman ( T-Mobile USA)
, SkySte ste.is@gmail.com wrote: Thanks :) I'll give it a try tomorrow, just a question, what is mContext and mWifiService? A little confused, Cheers Steve On Aug 12, 4:52 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: You want to use a WifiManager instead

<    1   2