[android-developers] Re: Installing APK from Internet?

2009-11-19 Thread Roman ( T-Mobile USA)
You want to make sure that you use a public reachable URL. The href in your post for example won't work to download the APK. Setup Apache-Tomcat for testing web access and place your apk somewhere in the webapps folder of your Tomcat setup. You should be able to download the apk using the followi

[android-developers] Re: Download Android source code failed

2009-11-18 Thread Roman ( T-Mobile USA)
I noticed that I got this error when I used a much slower internet connection. -- 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 tho

[android-developers] Re: media recorder error on start

2009-11-18 Thread Roman ( T-Mobile USA)
It might be helpful to attach your code. Have you called the prepare() method before starting the recording? -- 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 d

[android-developers] Re: outgoing call data stream / channel

2009-11-11 Thread Roman ( T-Mobile USA)
the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 11, 12:06 pm, "Roman ( T-Mobile USA)" wrote: > Hi Joachim, > > That's kind of correct. The so called baseband processor (which runs > the cellular

[android-developers] Re: outgoing call data stream / channel

2009-11-11 Thread Roman ( T-Mobile USA)
Hi Joachim, That's kind of correct. The so called baseband processor (which runs the cellular low level stuff, RF, modem functionality, ...), has to expose whatever would be needed from higher level. You might be able to get some additional radio property information using AT commands but getting

[android-developers] Re: Transfer file between phone

2009-11-09 Thread Roman ( T-Mobile USA)
> > >On Nov 9, 1:59 pm, Abhi > ><<mailto:abhishek.r.sha...@gmail.com>abhishek.r.sha...@gmail.com> > >wrote: > >>  Hi, > > >>  I am trying to do a similar thing but not between two phones. I am > >>  trying to accomplish wireless printing to my h

[android-developers] Re: motorola cliq sdk 2.0

2009-11-09 Thread Roman ( T-Mobile USA)
Hey, the page www.androidhallofshame.com is still not up -- 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 US

[android-developers] Re: Transfer file between phone

2009-11-09 Thread Roman ( T-Mobile USA)
You can write a ftp like client/server application. Use TCP socket communication for the file transfer application. If you are in the same network you have not to worry about too much. If you try to do a file transfer on cellular things get more complicated. Let me know what you exactly are trying

[android-developers] Re: Managing receiving/making calls with MediaPlayer

2009-11-05 Thread Roman ( T-Mobile USA)
Listen to the phone state changes using the PhoneStateListener. You want to act on the following states * CALL_STATE_IDLE * CALL_STATE_RINGING * CALL_STATE_OFFHOOK and stop your stream in case of an incoming call. When the call state switches back to call state idle, continue with yo

[android-developers] Re: Calling a URL from Android phone

2009-11-05 Thread Roman ( T-Mobile USA)
In general I would first check whether you can connect to a server which is on your local LAN. For example setup Apache and see whether you can programmatically connect. If this works fine, then you camera should be also reachable. My next question would be, what happens if you try to connect fro

[android-developers] Re: Problem with playing media through http/rtsp

2009-11-04 Thread Roman ( T-Mobile USA)
You have to concert your 3gp file to a progressive downloadable file. You can use the tool mp4box to convert your 3gp file and add a hint track to make it rtsp streamable http://www.videohelp.com/tools/mp4box -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opi

[android-developers] Re: how to know if it the emulator or device

2009-11-04 Thread Roman ( T-Mobile USA)
the other methods. > > On Nov 4, 6:19 am, Zhihong GUO wrote: > > > It can not work. There is no exception throws and the wifiManager returned > > can be used as wifiManager.isEnabled() > > > 2009/11/4 Dianne Hackborn > > > > On Tue, Nov 3, 2009 at 11:10 AM, Ro

[android-developers] Re: how to know if it the emulator or device

2009-11-03 Thread Roman ( T-Mobile USA)
Furthermore the API call (WifiManager)mContext.getSystemService(mWifiService); gives you an exception on the Emulator which is an indication that Wifi radio is not supported. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this emai

[android-developers] Re: voice quality not good

2009-11-02 Thread Roman ( T-Mobile USA)
I am using nearly the similar configuration for some audio recording and play back than you. Try to check whether you get some better audio quality when you use AudioManager.STREAM_MUSIC instead of STREAM_SYSTEM. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The view

[android-developers] Re: voice quality not good

2009-11-02 Thread Roman ( T-Mobile USA)
I am using nearly the similar configuration for some audio recording and play back than you. Try to check whether you get some better audio quality when you use AudioManager.STREAM_MUSIC instead of STREAM_SYSTEM. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The view

[android-developers] Re: Client server architecture problem (one receiving thread and many activities)

2009-10-30 Thread Roman ( T-Mobile USA)
Michal, I could think of to implement a dispatcher mechanism in your thread where you receive the incoming messages. I assume that you know which traffic should be routed to which activity, correct? You could put the incoming message with an destination identifier (identifier for the activity)

[android-developers] Re: Fetch IMSI or detect SIM change?

2009-10-30 Thread Roman ( T-Mobile USA)
Use TelephonyManager getSubscriberId() to get the IMSI 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: use data network while connected to wifi

2009-10-29 Thread Roman ( T-Mobile USA)
This is right now not supported from SDK level. You can modify the framework/platform code to get this running... -- 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,

[android-developers] Re: HttpConnection forWifi

2009-10-29 Thread Roman ( T-Mobile USA)
See response to your post on beginner http://groups.google.com/group/android-beginners/browse_thread/thread/6b3d05991fbc9cb2?hl=en -- 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 ind

[android-developers] Re: Connection dropped / app sleep on device standby?

2009-10-28 Thread Roman ( T-Mobile USA)
Try to implement a service which is responsible for the data connectivity. You want to make sure that you acquire a CPU wake lock, that you are able to process the incoming data in your service. Also check out the Wifi wake lock (http://developer.android.com/ reference/android/net/wifi/WifiManage

[android-developers] Re: Native Shared Lib

2009-10-26 Thread Roman ( T-Mobile USA)
Change the following code static{ System.load("/data/data/com.android/libnative.so"); } to static{ System.load("native"); } and make sure that your lib is in folder data/data// lib (the lib is placed automatically in this folder). -- Roman Baumgaertner Sr. SW Engineer-OSDC

[android-developers] Re: Android getConnectionInfo() crash

2009-10-26 Thread Roman ( T-Mobile USA)
The code looks fine to me. Are you using the Access_Wifi_State permission in the manifest file? -- 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 necessa

[android-developers] Re: Access Wifi and UMTS interface on Android

2009-10-26 Thread Roman ( T-Mobile USA)
You have to do this on native -- 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 Oct 26, 6:56 a

[android-developers] Re: - Play video in Android Media Player from given URL

2009-10-25 Thread Roman ( T-Mobile USA)
If you stream from a remote server, make sure the the file is in a streamable format. -- 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 repre

[android-developers] Re: Find MAC address

2009-10-23 Thread Roman ( T-Mobile USA)
The following works fine on Wifi. NetworkInfo networkInfo = connection.getActiveNetworkInfo(); WifiInfo wifiInfo = mWifiMgr.getConnectionInfo(); Log.d(TAG,"MAC:"+wifiInfo.getMacAddress()); For cellular I am not aware of a method over Java. You might be able to use busybox for obtaining some add

[android-developers] Re: call forwarding

2009-10-22 Thread Roman ( T-Mobile USA)
Current SDK does not support call forwarding. APIs related to calls are very limited especially SS support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-developers] Re: android record video(3gp) to remote server

2009-10-21 Thread Roman ( T-Mobile USA)
Check the Gpac source forge page http://gpac.cvs.sourceforge.net/viewvc/gpac/gpac/applications/mp4box/ The app mp4box does the conversion. Roman ( T-Mobile USA) View profile More options Oct 21, 11:16 am From: "Roman ( T-Mobile USA)" Date: Wed, 21 Oct 2009 11:16:45

[android-developers] Re: android record video(3gp) to remote server

2009-10-21 Thread Roman ( T-Mobile USA)
; from the MediaRecorder? > > On Oct 19, 4:21 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > A file which is recorded as a3gpfile by the Android MediaRecorder is > > NOT streamable. You would need to make it streamable before trying to > > play i

[android-developers] Re: Devices information using Wifi API

2009-10-20 Thread Roman ( T-Mobile USA)
If you want to get valid IP address you can try to enumerate over your LAN addresses. If your LAN network has an IP address like 192.168.1.0 you can try to ping192.168.1.1, 192.168.1.2, ... If you get a response back, you know that there is another system which has the IP address assigned.

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread Roman ( T-Mobile USA)
I noticed that enabling/disabling data connectivity (airplane mode) does not disable data communication on the emulator. There is a bug filed related to this issue. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those

[android-developers] Re: uninstall an application

2009-10-20 Thread Roman ( T-Mobile USA)
For being able to uninstall an application you need a permission DELETE_PACKAGES which can only be used by the system or by the application having the same signature. This means you won't be able to uninstall third party application if you don't have the corresponding signature. If it is possible

[android-developers] Re: android record video(3gp) to remote server

2009-10-19 Thread Roman ( T-Mobile USA)
A file which is recorded as a 3gp file by the Android MediaRecorder is NOT streamable. You would need to make it streamable before trying to play it back via the MediaPlayer. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-developers] Re: NFC support on adroid platform and available devices

2009-10-16 Thread Roman ( T-Mobile USA)
You might get better answers in the Android porting group than in the Developer. Do yo have a device with NFC support? Keep me updated about your finding, I am also interested in this topic. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statemen

[android-developers] Re: Audio Playback while Recording... ------- attemp playback while recording, cheat it! ----- error

2009-10-16 Thread Roman ( T-Mobile USA)
I am assuming when you record your audio stream, the file is blocked from playback. Check out the following blog which talks about video streaming and deals with a similar problem http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/ -- Roman Baumgae

[android-developers] Re: Socket.connect works on Wifi, fails on 3G (actually sort of the opposite...)

2009-10-14 Thread Roman ( T-Mobile USA)
You might want to take a tcpdump to check what traffic you receive on the 3g interface. -- 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 rep

[android-developers] Re: State of a phonecall

2009-10-14 Thread Roman ( T-Mobile USA)
I feel your pain . The only way to be more precised in reflecting call states is to look in the framework/platform code and expose this information to the higher level (framework code changed needed :-( ) The Android Telephony on SDK level has no concept of a Call or Connection as other exist

[android-developers] Re: Stream youtube to a videoview?

2009-10-13 Thread Roman ( T-Mobile USA)
I noticed that I cannot play the file rtsp://rtsp.youtube.com/youtube/videos/S2eoCqwBCQI/video.3gp which you put in your source code on my desktop browser. The Android MediaPlayer is very sensitive. If the container format does not fit the one which is expected by the mediaPlayer, you won't be

[android-developers] Re: Check for internet connection

2009-10-12 Thread Roman ( T-Mobile USA)
On the emulator you always have data connectivity. For example with enabling the Airplane mode you can still browse the web (which should not be the case). I submitted a bug on this (don't remember the bug number). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The view

[android-developers] Re: get outgoing call details in background

2009-10-12 Thread Roman ( T-Mobile USA)
You should be able to measure the time between multiple onCallStateChanged events. In case of an outgoing call the state would switch from IDLE to CAll_STATE_OFFHOOK to to IDLE again. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in t

[android-developers] Re: How can I package shared libs only into apk

2009-10-12 Thread Roman ( T-Mobile USA)
Which version of the NDK are you using? I am using 1.5 and the Android.mk does not look as complicated. By the way, try to ask your question in the Android-NDK instead of the developer group! -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and stateme

[android-developers] Re: Chat Application

2009-10-11 Thread Roman ( T-Mobile USA)
To be able to implement an IM application you should think first about which signaling protocol you can use You would have the following options: + write your own proprietary signaling protocol + usage of XMPP protocol + usage of SIP + (porting of opensource IM projects or available IM framewor

[android-developers] Re: Connectivity Manager - CONNECTIVITY_CHANGE

2009-10-08 Thread Roman ( T-Mobile USA)
Try to implement the following + use the NetworkInfo on your connection to find out about your current connection (whether it's Wifi or Mobile) + implement a broadcast receiver and listen to NETWORK_STATE_CHANGED_ACTION events When you receive the network state change event and you have a valid

[android-developers] Re: Is network slower when screen is blacked out?

2009-10-08 Thread Roman ( T-Mobile USA)
The speed of your data connection has nothing to do whether your screen is on or not. As Marco already said, when your Wifi data connection is idle, it will turn of the Wifi radio. When the phone goes back to active mode Wifi reconnects. In case of cellular you are not in control of your data conn

[android-developers] Re: WiMAX for Android

2009-10-07 Thread Roman ( T-Mobile USA)
Yep, you would have to implement the usb driver support for your WiMax card on Android which also includes platform/framework changes to recognize WiMax as a data interface. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email a

[android-developers] Re: Handling Network Unavailability

2009-10-07 Thread Roman ( T-Mobile USA)
Android supports some intents about network connection change. In your onReceive method listen for this network connection changes and check connectivity with NetworkInfo networkInfo = connection.getActiveNetworkInfo(); (at least this works for me when for example the app loses conn

[android-developers] Re: VOIP Media Stack

2009-10-05 Thread Roman ( T-Mobile USA)
If you cannot wait doing Voip on Android, play around with SipDroid. The application does some basic support Voip support (SIP, RTP and G711 codec). Most of the functionality is right now implemented on Java level. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The view

[android-developers] Re: Integrating G729 codec in mjsip

2009-10-05 Thread Roman ( T-Mobile USA)
SipDroid has right now implemented the G711 on Java level. You can use the current implementation as a guideline for your G729 codec implementation (how to pass the raw audio to the convert API). First you should answer the question whether you want to implement your codec on Java or on native le

[android-developers] Re: Auto answer calls and hangup programmetically

2009-10-02 Thread Roman ( T-Mobile USA)
The Android SDK does not support this. Of course you find apps on the market place doing these kind of things but it is NOT the official way. -- 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: A question about rtsp Streaming

2009-10-01 Thread Roman ( T-Mobile USA)
Have you tried to find out whether any traffic is successfully sent out the the device using tcpdump or wireshark? Also run a tcpdump on your device to see whether you receive any rtsp streaming. Only from reading about the problem, my first guess is that whatever is causing the problem, it shou

[android-developers] Re: Adding a JAR to my Android project?

2009-09-30 Thread Roman ( T-Mobile USA)
You need to update the properties of your project in Eclipse. Go to the Project Tab --> Properties and select the Java Build Path. After selecting this you should see 4 tabs with Projects and Libraries. For adding a JAR, select Libraries --> Add External JARs. That's it -- Roman Baumgaertn

[android-developers] Re: conference call

2009-09-29 Thread Roman ( T-Mobile USA)
I haven't seen any Android SDK APIs which are supporting supplementary services. For being able to support such a functionality APIs like -- hold -- join -- switch have to be available. This functionality is supported on the lower level of the telephony support (look in the Android source fra

[android-developers] Re: Is Android able to connect to WPA Enterprise Wi-Fi networks ?

2009-09-25 Thread Roman ( T-Mobile USA)
Alex, Check out the following discussion http://forums.t-mobile.com/tmbl/board/message?board.id=Android_MR&thread.id=106 Find information on WifiHelper at http://www.androlib.com/android.application.fan-wifi-jmjE.aspx -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together Th

[android-developers] Re: Peer-to-peer phone application?

2009-09-25 Thread Roman ( T-Mobile USA)
Right now there is no "real" P2P possible on Android using the official SDK APIs. In case of Wifi there is no support of Ad-Hoc. You could try to use a multicast approach where you try first to discover which devices are in the WLAN. Problem with multicast/broadcast on Wifi is that your network p

[android-developers] Re: Get Telephony Country code

2009-09-24 Thread Roman ( T-Mobile USA)
Which information do you exactly need? There are static information like - IMEI: (15 digit unique code, first 2 digits = country code of the approval-country) is related to your mobile device - IMSI International Mobile Subscriber Identity: first 3 digits represent the mobile country code (3166-

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread Roman ( T-Mobile USA)
n opportunity to just go and try it out... my question > here is what T-Mobile USA's position is on allowing subscribers to run > SIP over the 3G network? > > On Sep 23, 2:17 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > Of course you could think of

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread Roman ( T-Mobile USA)
Of course you could think of to run your Android device as a server like system, but be aware that in case of cellular you have to deal with NAT. This means all your clients have to know how to reach you. One possibility to deal with this problem would be to use a cloud service and notify the clou

[android-developers] Re: Enable/Disable Networking in Emulator

2009-09-22 Thread Roman ( T-Mobile USA)
Matt, I noticed that if you enable the airplane mode (on the real device networking is disabled), that you can still do networking on the emulator. Maybe your observations not being able to switch off networking via the function keys is related to the airplane mode problem. -- Roman Baumgaertne

[android-developers] Re: How can I get Activity object from Intent object or something else

2009-09-21 Thread Roman ( T-Mobile USA)
When you are able to get the handle for the intent, you should be able to use intent.getExtras(); The API returns a bundle object which you should have used to send your complex object. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements

[android-developers] Re: Including other Java source projects in Android project

2009-09-20 Thread Roman ( T-Mobile USA)
In general you have not to create a jar package and add it to your build path. Make sure that you have your project created as a Java project. Also make sure that you don't see any problems/errors. When you now add this project to your existing Android project, I normally select only the project

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-19 Thread Roman ( T-Mobile USA)
USA, Inc. On Sep 18, 9:21 pm, "!oEL" wrote: > So there is no way I can really test it? > > On 9月18日, 下午1时07分, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > You don't have Wifi support on the emulator > > > -- > > Roman B

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-18 Thread Roman ( T-Mobile USA)
You don't have Wifi support on the emulator -- 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

[android-developers] Re: Can a native application use java methods in TelephonyManager using getSystemService()

2009-09-17 Thread Roman ( T-Mobile USA)
JNI is bi-directional. You can alsoo call Java methods from native code. I haven't tried this on the Android platform but I assume that it works fine. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the autho

[android-developers] Re: How use root permission

2009-09-17 Thread Roman ( T-Mobile USA)
IF you want to set root permission with your app, the application has to be started as root. -- 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 necessari

[android-developers] Re: Route Audio Output to Mic?

2009-09-17 Thread Roman ( T-Mobile USA)
When you are in a call the audio is controlled by the baseband (this is valid for the HTC hardware). It might be that the new Motorola cliq offers here more flexibility -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are t

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-16 Thread Roman ( T-Mobile USA)
Could you post the Exceptions? What might help is a clean on your project. I got the following exception nor current process has android.permission.WAKE_LOCK and resolved it by cleaning the project/ -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opin

[android-developers] Re: Android Call Mechanism?

2009-09-15 Thread Roman ( T-Mobile USA)
> I would like to know how a call is processed in android. I have been > gng thru the code, but nothing seems to be working out. What do you mean with nothings seems to be working out? Please, be more specific. Which code did you look at (TelephonyManager in framework or native code)? > From wa

[android-developers] Re: mount sd card

2009-09-15 Thread Roman ( T-Mobile USA)
, Chris Stratton wrote: > On Sep 15, 6:25 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > You could write a client/server app. The server run's on your phone > > and informs the client when to mount the sdcard. > > Also the server informs were to find the

[android-developers] Re: mount sd card

2009-09-15 Thread Roman ( T-Mobile USA)
You could write a client/server app. The server run's on your phone and informs the client when to mount the sdcard. Also the server informs were to find the data you want to share. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in thi

[android-developers] Re: Can I use android.provider.Telephony?

2009-09-15 Thread Roman ( T-Mobile USA)
Using code in the Android source directly instead of the SDK API's is always a risk. Your application might work for only a temporary time. In cases of framework code changes the chances are high that your app breaks. Use the APIs which are offered on SDK level -- Roman Baumgaertner Sr. SW

[android-developers] Re: tool for Android performance measure

2009-09-14 Thread Roman ( T-Mobile USA)
USA, Inc. On Sep 14, 9:11 pm, "Roman ( T-Mobile USA)" wrote: > Which performance data are you interested in? > > Code performance > > Traceview (http://d.android.com/guide/developing/tools/traceview.html) > > Shell commands > > - top > > benchmar

[android-developers] Re: tool for Android performance measure

2009-09-14 Thread Roman ( T-Mobile USA)
Which performance data are you interested in? Code performance Traceview (http://d.android.com/guide/developing/tools/traceview.html) Shell commands - top benchmark applications (http://www.androlib.com/android.application.softweg-hw-performance- jiCn.aspx) Tool measure phone performance fo

[android-developers] Re: Solution suggestions

2009-09-14 Thread Roman ( T-Mobile USA)
I would go for a). Here are my reasons To retrieve your XML data to obtain server information is a fast TCP call. You can store the data in shared preferences. If the server versions are changing frequently within a day, query for the server data more often. I think a data base (option b) might

[android-developers] Re: routing audio to speaker

2009-09-14 Thread Roman ( T-Mobile USA)
I invoke the provided speaker methods, >         . >         mAudioManager.setSpeakerphoneOn(true); > > Kindly provide me pointers like file name or funtion name. > > Thanks > Sunee > > On Sep 12, 7:48 am, "Roman ( T-Mobile USA)" > mobile.com> wrote

[android-developers] Re: Communication over USB with Program on Computer

2009-09-14 Thread Roman ( T-Mobile USA)
When you connect the USB cable make sure that you act on the intent ACTION_UMS_CONNECTED when you mount the USB storage. After receiving the event you could tell the desktop application to send/copy files from the desktop to the sdcard of the device. The other way is not supported which means you

[android-developers] Re: routing audio to speaker

2009-09-11 Thread Roman ( T-Mobile USA)
> setRouting(AudioSystem::MODE_NORMAL, AudioSystem::ROUTE_SPEAKER, > AudioSystem::ROUTE_ALL); > So wouldn't it route to speaker by default. > > Kindly let me know your comments. > > -Pras > > On Sep 10, 11:46 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: >

[android-developers] Re: Execute chown command

2009-09-11 Thread Roman ( T-Mobile USA)
3rd party apk's can be found in /data/app Change the permission to the folders and then owner of your APK. Is this what you were looking for? -- 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: Checking the user's country

2009-09-11 Thread Roman ( T-Mobile USA)
What do you mean with "user's country"? Static methods: - You could use the phone number which is assigned to you. The phone number starts with the country code. - Also the IMEI has information about in which country your phone was approved/registered. Dynamic method based on your cellular conne

[android-developers] Re: Checking the user's country

2009-09-11 Thread Roman ( T-Mobile USA)
What do you mean with "user's country"? Static methods: - You could use the phone number which is assigned to you. The phone number starts with the country code. - Also the IMEI has information about in which country your phone was approved card was approved. Dynamic method based on your cellula

[android-developers] Re: drop call after some time duration

2009-09-11 Thread Roman ( T-Mobile USA)
I am not aware of that this is supported. If yes it is a very dangerous API/event ... -- 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 repre

[android-developers] Re: discovery of other computers/devices on WiFi network?

2009-09-10 Thread Roman ( T-Mobile USA)
You need to implement a discover mechanism which is not trivial. You have the following options -- using a client/server approach where the server knows about the connected clients. When a client gets Wifi connectivity it would tell the server about its connection information. Another client coul

[android-developers] Re: routing audio to speaker

2009-09-10 Thread Roman ( T-Mobile USA)
You want to try the following AudioManager mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); mAudioManager.setMode(AudioManager.MODE_NORMAL); . mAudioManager.setSpeakerphoneOn(true); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T·

[android-developers] Re: Take control of wireless hardware

2009-09-10 Thread Roman ( T-Mobile USA)
There is no SDK API available which you can use for controlling the underlying hardware regarding transmitting/receiving. Especially for the cellular this control can be found on the baseband level and which is not accessible on higher level. For wifi I am also not aware of any driver support cont

[android-developers] Re: Security framework available on android??

2009-09-09 Thread Roman ( T-Mobile USA)
The Bouncy Castle framework is part of Android. You can find it in the dalvik/libcore. If you want to use bouncy castle on SDK level you can download a jar package from http://www.bouncycastle.org/ -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and s

[android-developers] Re: running emulator on a remote machine

2009-09-08 Thread Roman ( T-Mobile USA)
uld like the emulator running on the laptop to show up in the list > of devices in DDMS on my desktop, and receive its logcat output, etc. > How could I use NFS for that? > > On 9 sep, 01:01, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > If your system

[android-developers] Re: running emulator on a remote machine

2009-09-08 Thread Roman ( T-Mobile USA)
If your systems support NFS then start the emulator remotely over NFS. -- 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

[android-developers] Re: Broadcasting reboot intent

2009-09-08 Thread Roman ( T-Mobile USA)
Kacper, Sorry, I am not Dianne but I still answer :-) I would not allow this permission for 3rd party applications. Of course Android informs you about permissions of applications you install but how may people are installing apps without reading or understanding what they install. When you give

[android-developers] Re: Ethernet / IP over USB connection?

2009-09-08 Thread Roman ( T-Mobile USA)
You have to solve the USB ip connectivity on your Windows system as well as on Android. On Windows I could think of the following options - get a USB IP support based on Linux. You can run VMWare player or another free Virtual machine on top of Windows. Normally USB connections will be detected

[android-developers] Re: Cannot get PhoneNumber on Real device but code works in Emulator

2009-09-07 Thread Roman ( T-Mobile USA)
Your code looks fine to me. Could you check whether this.telMgr.getLine1Number() returns null ? Also verify the setting application (go to about phone --> status --> phone number). You should be able to see your phone number. In cases where you have the radio switched off you cannot read the ph

[android-developers] Re: A sample mobile banking solution

2009-09-07 Thread Roman ( T-Mobile USA)
email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 7, 5:31 pm, "Roman ( T-Mobile USA)" wrote: > The security architecture for your mobile application depends on the > requirements for mobile bankin

[android-developers] Re: A sample mobile banking solution

2009-09-07 Thread Roman ( T-Mobile USA)
The security architecture for your mobile application depends on the requirements for mobile banking application in general. I would start the following investigations - What are the mobile banking requirements on a mobile device ---> required radio interface for your transaction (wifi is not as

[android-developers] Re: detect usb device

2009-09-07 Thread Roman ( T-Mobile USA)
> when I'm in the Activity1, and insert a usb device, > then app can detect right now and use dialog send a message to user > the device is mounted!? > > thanks > > On 9月7日, 下午1時30分, "Roman ( T-Mobile USA)" > mobile.com> wrote: > &

[android-developers] Re: How to block incoming call?

2009-09-07 Thread Roman ( T-Mobile USA)
et.com/package/com.dragon.pandafirewall > ? > > the call blocking works. My G1 doesn't even ring. > > On Sep 7, 1:18 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > I am not aware that you can intercept an incoming call only from SDK > > level.

[android-developers] Re: detect usb device

2009-09-06 Thread Roman ( T-Mobile USA)
You can detect when you attach a USB storage device. See android.intent.action.MEDIA_MOUNTED -- 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 necessari

[android-developers] Re: How to block incoming call?

2009-09-06 Thread Roman ( T-Mobile USA)
I am not aware that you can intercept an incoming call only from SDK level. Firewall programs which are claiming to block incoming calls are not working on my phone. If there is a mechanism out there, please let me know. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together Th

[android-developers] Re: What is the best way to backup app database to a file?

2009-09-06 Thread Roman ( T-Mobile USA)
Are you right now thinking only to backup your data base on the device or also somewhere on a remote location (PC, server)? You could easily do a byte copy of your DB //open your existing DB InputStream dbStream = mContext.getAssets().open(); OutputStream backupDbStream

[android-developers] Re: Take a long time to make call

2009-09-03 Thread Roman ( T-Mobile USA)
I have to check out this app :-) ... If you have the source code try to find out how long it actual takes from switching from ringing to connected. I could imagine that the phone does the processing in time but the backend processing might be pretty slow for the case you described. Any ideas how

[android-developers] Re: Communicating with the gtalk app?

2009-09-03 Thread Roman ( T-Mobile USA)
You might want to look at the libjingle library which had some hard coded hooks to talk to the GoogleTalk servers. Of course you would have to port the needed libraries to the Android platform which is not a trivial task. I am not aware that there is any porting available on Android. -- Roman Ba

[android-developers] Re: How to detect/query the screen off event?

2009-09-03 Thread Roman ( T-Mobile USA)
Use intent ACTION_SCREEN_OFF. Broadcast Action: Sent after the screen turns off. Constant Value: "android.intent.action.SCREEN_OFF" -- 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: Can I leave some info after my app is uninstalled?

2009-09-03 Thread Roman ( T-Mobile USA)
I could think of to write a service which keeps track of application you are uninstalling. When you are in progress of uninstalling an application your new service would be called and keeps track of the uninstalled app using the DB. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick

[android-developers] Re: Audio streaming

2009-09-02 Thread Roman ( T-Mobile USA)
Yes, it does. You can do something like audioStreamer.startStreaming(”http:///″, 1444, 180); -- 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 necessa

  1   2   >