[android-developers] Re: Installing APK from Internet?
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 following href ip address of y server:port/folder in webapps/your apk -- 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 Nov 19, 12:40 am, Syl sylvain.guyoma...@altran.com wrote: I have tested installation from Internet but only with the Emulator. Inside a web page, I set a link toward a APK file (for example : a href=/myApplication.apkClick here to install/a). From the web browser in the emulator, when I click on the link, the file is downloaded. Then, when I click on the downloaded file from the download manager of the browser, installation starts (NOTE : a message can invite the user to modify settings to authorize the install of packages not provided from Android Market). However, I have not tested the behaviour on a real device. Does any one know if it is the same behaviour ? On 19 nov, 04:19, babu rkabhi1...@gmail.com wrote: Is there any way to download APK from the internet on an Android phone (T Mobile MyTouch)? I have installed the Apps Installer application that installs APK's from the SDCard. However I want to download the APK from the internet and then use Apps Installer to install it. Currently when I download my APK, it gets stored as a TXT file on the phone for some reason. Is there any way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: media recorder error on start
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 do not necessarily represent those of T-Mobile USA, Inc. On Nov 17, 5:55 am, android_dev pankaj.i...@gmail.com wrote: Hi i am trying to record video and upload to web server. i created a temp file but when i try to start recorder.start(), it gives me java.lang.RuntimeException: start failed. i tried debugging it but i am not getting it working. can someone please give me sample code to record video and save. i am really stuck with this error -- 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: Download Android source code failed
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 those of T-Mobile USA, Inc. On Nov 17, 3:19 am, Blue Zheng blue.zh...@gmail.com wrote: Me too. I tried many times, always failed. On Nov 17, 10:14 am, Andrei gml...@gmail.com wrote: I had same Just try till succeed On Nov 16, 9:07 pm, Alger, Lin addr...@gmail.com wrote: I try to download source code for Android 2.0, but I always got the fatal: The remote end hung up unexpectedly message. Does the source code database with some problem? Should I rebuild my repo environment? or change some setting of repo? please tell me how to get the source code for Android 2.0. -- 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: outgoing call data stream / channel
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 a handle for the voice stream is much more complex. If you want to find out more about this google for interprocess communication between application and baseband processors. -- 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 Nov 10, 10:17 am, Joachim Neumann jogineum...@gmail.com wrote: Hi Dianne, I am also struggling with this issue and would like to understand the limitations in current Android hardware. My present understanding is that in on current Android phones there is a GSM/3G chip that 1. receives the *analogue* GSM/3G antenna signal 2. receives modem-like AT commands from Android to initiate phone calls, send text messages, etc. 3. routes the *analog* audio signal from the GSM/3G antenna to the amplifier/speaker or bluetooth headset. In such a setup, the audio signal of the phone call would exist in digital form within the GMS/3G chip, but it would be out of reach for the android OS. Outside the GMS/3G chip, the call signa would only exist in analog form - while being routed to the amplifier/speaker or to the bluetooth chip. In this case, the only hope for software access to the audio signal during a phone call would be a completely new design that implements the mobile phone functionality in software. Is that correct? Dr. Joachim Neumann P.S.: I would like to implement a hearing aid in software, seewww.amplicell.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: outgoing call data stream / channel
Here is a pretty good link which talks about the intercommunication of baseband and AP http://www.embedded.com/columns/technicalinsights/187203124?_requestid=22 -- 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 Nov 11, 12:06 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: 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 a handle for the voice stream is much more complex. If you want to find out more about this google for interprocess communication between application and baseband processors. -- 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 Nov 10, 10:17 am, Joachim Neumann jogineum...@gmail.com wrote: Hi Dianne, I am also struggling with this issue and would like to understand the limitations in current Android hardware. My present understanding is that in on current Android phones there is a GSM/3G chip that 1. receives the *analogue* GSM/3G antenna signal 2. receives modem-like AT commands from Android to initiate phone calls, send text messages, etc. 3. routes the *analog* audio signal from the GSM/3G antenna to the amplifier/speaker or bluetooth headset. In such a setup, the audio signal of the phone call would exist in digital form within the GMS/3G chip, but it would be out of reach for the android OS. Outside the GMS/3G chip, the call signa would only exist in analog form - while being routed to the amplifier/speaker or to the bluetooth chip. In this case, the only hope for software access to the audio signal during a phone call would be a completely new design that implements the mobile phone functionality in software. Is that correct? Dr. Joachim Neumann P.S.: I would like to implement a hearing aid in software, seewww.amplicell.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: Transfer file between phone
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 to accomplish. -- 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 Nov 8, 10:00 am, Mike88 michael...@gmail.com wrote: Hello, Can some give me advice on what I could use to write code to transfer a file from one phone to another. -- 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: motorola cliq sdk 2.0
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 USA, Inc. On Nov 7, 1:29 pm, Romain Guy romain...@google.com wrote: I want awww.androidhallofshame.comwith the picture and name of all developers using private APIs :) On Sat, Nov 7, 2009 at 1:25 PM, nEx.Software email.nex.softw...@gmail.com wrote: You know, actually, come to think of it... It might only be those evil non-public apis that we all know not to use but still do anyway... I'll have to look and see if anything I have seen was a public api. I know that working with the Contacts is incredibly frustrating, but that is probably technically working correctly per the API On Nov 7, 2:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced by Motorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- 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.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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: Transfer file between phone
As Jason suggested you can write a simple protocol which finds out about the clients within your wireless LAN. Something like + clients which are interested to be part of the file transfer within your WLAN are listening to the LAN broadcast ip address + sender sends out a request to all clients which are interested in receiving the file + all clients interested are responding back with their IP address + start your file transfer (ftp or http post) using the client IP address (if you have multiple clients you can loop through the list of clients) Note: you could also use the broadcast IP (more efficient) address for the file transfer but then everyone on the wireless LAN could receive the 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 necessarily represent those of T-Mobile USA, Inc. On Nov 9, 3:47 pm, Jason Proctor jason.android.li...@gmail.com wrote: you could broadcast on a known port number to find each other, then once you've done that, use HTTP GET/PUT on another known port. HTTP servers are pretty easy to write, and there is a client in the Android SDK. Roman, Thanks for the response. What I am trying to do is, write a program be able to send a file of any type (but probably an mp3) from one android phone to another android phone. The two phone will only be a few meters apart if that. Bluetooth was not working very well I was just getting a lot of problems. Both phone are using android 1.5 do you have any tips on setting ftp client/server and android. Thanks and Regards Mike On Mon, Nov 9, 2009 at 8:47 PM, Abhi mailto:abhishek.r.sha...@gmail.comabhishek.r.sha...@gmail.com wrote: Hi Romain, To add to my above note, the preferred wireless connection would be Wi- Fi and not Bluetooth. Is there a way to find out what devices are connected to your WLAN? Like how we do a scan for Wireless Access Points. Is there a way by which these Wireless devices can share MAC addresses to identify each other? Thanks, Abhi On Nov 9, 1:59 pm, Abhi mailto:abhishek.r.sha...@gmail.comabhishek.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 home wireless printer. Could you please guide me through to the initial steps? Thanks, Abhi On Nov 9, 1:50 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- http://mobile.commobile.com wrote: 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 to accomplish. -- 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 Nov 8, 10:00 am, Mike88 mailto:michael...@gmail.commichael...@gmail.com wrote: Hello, Can some give me advice on what I could use to write code to transfer a file from one phone to another.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to mailto:android-developers@googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To 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=enhttp://groups.google.com/group/android-developers?hl=en -- jason.vp.engineering.particle -- 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: Calling a URL from Android phone
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 from your PC with the camera? -- 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 Nov 2, 9:42 pm, David Kebo davidk...@gmail.com wrote: An suggestions ? On Oct 25, 12:18 pm, David Kebo davidk...@gmail.com wrote: I am calling a URL from the Android phone This URL is supposed to move a camera connected on the same network Here is the code for the URL: url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi? camera=1move=home); URLConnection cameraConnection = url.openConnection(); cameraConnection.connect(); I get no response when I run this code from the phone. Is this the right way to call a URL from an Android phone ? 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: Managing receiving/making calls with MediaPlayer
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 your playback. -- 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 Nov 5, 10:44 am, brooke brooke.ma...@gmail.com wrote: Hey everyone, I'm sure this is a topic already, but I can't find it. I've got a streaming audio application that needs to pause when a call comes in or is made, and resume on completion. I found some logic that does this in the Music player. What I found sets up a PhoneStateListener and listens for changes in the phone state and adjusts accordingly. Do I need to implement this code or is there some new fangled approach I should use? Thanks, Brooke -- 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 know if it the emulator or device
Yep, I agree that checking the Wifi service availability is not the best idea -- 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 Nov 4, 7:00 am, Diego Torres Milano dtmil...@gmail.com wrote: As Dianne mentioned assuming that because there's no wifi you are running on the emulator is a bit risky. There could be real phones with no wifi and emulator emulating wifi. Stick to any of the other methods. On Nov 4, 6:19 am, Zhihong GUO gzhh...@gmail.com 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 hack...@android.com On Tue, Nov 3, 2009 at 11:10 AM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: 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. That's only because it doesn't happen to currently be implemented in the emulator. This could very well change in the future. -- 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.comandroid-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
[android-developers] Re: Problem with playing media through http/rtsp
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, 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 Nov 2, 8:47 pm, dileep dileepkumar.renint...@gmail.com wrote: Hi Friends, Did anyone try playing audio/video through http/rtsp. I am having a problem with either of the approach I am getting an error Command PLAYER_INIT completed with PVMFError I some cases I got Command PLAYER_INIT completed with PVMFErrorContentInvalidForProgressiveDownoload. Can some one explain what is the problem. The code snippet I am using is given below... --- -- VideoView mVideoView = (VideoView) findViewById(-); mVideoView.setVideoPath(http://192.168.1.143:8080/3.3gp;); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); mVideoView.start(); The code works fine when I say mVideoView.setVideoPath(/sdcard/vv.3gp); but not able to play if I give a rtsp/http urls In case of http it says PVMFErrorContentInvalid for progressive download Can some body tell me what is the problem. Can you please post the code if someone has been successful in playing audio/video through http/rtsp. Thanks Regards DileepKumar mail: dileepkumar.renint...@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: how to know if it the emulator or device
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 email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 3, 5:40 am, sham shamcs shamc...@gmail.com wrote: In Linux ,use *adb devices* command to see which one is running. On Tue, Nov 3, 2009 at 6:59 PM, Zhihong GUO gzhh...@gmail.com wrote: Hi all, How to know if the application is running on emulator or on a real device? I want to implement a function to detect wifi connection. If the application is running on emulator, just skip the wifi detection, while on real device, the wifi connection check should be done. how to do that? Thank a lot, James -- 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%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
[android-developers] Re: voice quality not good
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 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 Nov 2, 12:35 am, raghu 13ra...@gmail.com wrote: hi, android audio issue using mic i am recording the audio and i am playing it, but the voice quality is not good and some kaar kaar ... sound is there why the voice quality is not good ? why is that kaar kaar sound ? help required i have set the permission in .xml file also android.permission.INTERNET, android.permission.MODIFY_AUDIO_SETTINGS, android.permission.RECORD_AUDIO, android.permission.WRITE_SETTINGS below is the code i am using to record the audio and play it is there any wrong in the code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); byte[] Buffer = new byte [8] ; int Size = 320 ; int BuffLen = 1 ; int SizeSoFar = 0 ; int MinBuffSize ; int Written = 0 ; int temp = 0 ; AudioRecord audioRecord = new AudioRecord (MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 4096) ; audioRecord.startRecording () ; MinBuffSize = AudioRecord.getMinBufferSize(8000,2,2); Log.i (--PRINT--, minimum buf size : + MinBuffSize) ; AudioTrack track = new AudioTrack (AudioManager.STREAM_SYSTEM, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO , AudioFormat.ENCODING_PCM_16BIT, 4096, AudioTrack.MODE_STREAM) ; track.play() ; while (BuffLen != 0) { while (temp == 0) { SizeSoFar += audioRecord.read (Buffer, SizeSoFar, Size) ; temp = 1 ; } temp = 0 ; SizeSoFar = 0 ; Written = track.write (Buffer, 0, Size) ; try { Thread.sleep (5) ; } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace() ; } } audioRecord.stop() ; track.stop() ; } -- 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: voice quality not good
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 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 Nov 2, 12:35 am, raghu 13ra...@gmail.com wrote: hi, android audio issue using mic i am recording the audio and i am playing it, but the voice quality is not good and some kaar kaar ... sound is there why the voice quality is not good ? why is that kaar kaar sound ? help required i have set the permission in .xml file also android.permission.INTERNET, android.permission.MODIFY_AUDIO_SETTINGS, android.permission.RECORD_AUDIO, android.permission.WRITE_SETTINGS below is the code i am using to record the audio and play it is there any wrong in the code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); byte[] Buffer = new byte [8] ; int Size = 320 ; int BuffLen = 1 ; int SizeSoFar = 0 ; int MinBuffSize ; int Written = 0 ; int temp = 0 ; AudioRecord audioRecord = new AudioRecord (MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 4096) ; audioRecord.startRecording () ; MinBuffSize = AudioRecord.getMinBufferSize(8000,2,2); Log.i (--PRINT--, minimum buf size : + MinBuffSize) ; AudioTrack track = new AudioTrack (AudioManager.STREAM_SYSTEM, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO , AudioFormat.ENCODING_PCM_16BIT, 4096, AudioTrack.MODE_STREAM) ; track.play() ; while (BuffLen != 0) { while (temp == 0) { SizeSoFar += audioRecord.read (Buffer, SizeSoFar, Size) ; temp = 1 ; } temp = 0 ; SizeSoFar = 0 ; Written = track.write (Buffer, 0, Size) ; try { Thread.sleep (5) ; } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace() ; } } audioRecord.stop() ; track.stop() ; } -- 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: Fetch IMSI or detect SIM change?
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. On Oct 29, 10:59 pm, javame_android su...@saltriver.com wrote: Hi, I want to fetch the IMSI number so that I could keep it in memory and detect whenever SIM card changes. Is it actually possible? Is there anyone who can guide me a bit? Hope to get a positive reply soon. Regards Sunil --~--~-~--~~~---~--~~ 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: Client server architecture problem (one receiving thread and many activities)
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) in an thread safe container which is accessible by the different activities (for example queue record: dest id, message data). After the message is placed on a message queue, contact the corresponding activity that data is in the message queue. The destination activity would loop through the message queue and be able to find the incoming messages based on the destination identifier. -- 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 30, 1:03 am, Michal michalko...@gmail.com wrote: Hi all, I have a question concerning the following situation: 1. I'm developing a client server application using TCP/IP Sockets. 2. Android application is a client which is composed of many activities. 3. There is one dedicated thread created in android app for receiving messages from server. How to manage many activities in this receiving thread in a way that an incoming message will be passed to a proper activity (the one which is currently active)? I would appreciate any advice. BR, Michal -- 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: HttpConnection forWifi
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 individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 28, 11:22 pm, Nemat nemate...@gmail.com wrote: Hi Friends I have written my HttpConnection code for Android.I have also set Network preferences. Should I change the code so that it would be able to work for Wifi?or I dont need any change.Does the same code work for Wifi correctly?Here is my code: public static String http_get(String urlParameters) { String msg = ,uid = ; int ch; url = url + urlParameters ; int BUFFER_SIZE = 2000; InputStream in = null; try { in = OpenHttpConnection(url); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { InputStreamReader isr = new InputStreamReader (in); int charRead; String str = ; char[] inputBuffer = new char [BUFFER_SIZE]; try { while ((charRead = isr.read(inputBuffer))0) { //---convert the chars to a String--- String readString = String.copyValueOf(inputBuffer, 0, charRead); str += readString; inputBuffer = new char[BUFFER_SIZE]; } in.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Log.i(Server,str); if(str.indexOf(1_)!=-1) { uid = str.substring(2); } else { uid=0; } } catch (Exception e) { msg = e.toString(); } return uid; } public static String postData(String user,String file, String Contents){ // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url+file); String result=; try { // Add your data ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); Log.i(POSTDATA,user); nameValuePairs.add(new BasicNameValuePair(sID, user)); nameValuePairs.add(new BasicNameValuePair(content, Contents)); httppost.setEntity(new UrlEncodedFormEntity (nameValuePairs)); // Execute HTTP Post Request HttpResponse response = httpclient.execute(httppost); InputStream is = response.getEntity().getContent(); BufferedInputStream bis = new BufferedInputStream(is); ByteArrayBuffer baf = new ByteArrayBuffer(20); int current = 0; while((current = bis.read()) != -1){ baf.append((byte)current); } Log.d(GETANDPOST,new String(baf.toByteArray())); result=new String(baf.toByteArray()); /* Convert the Bytes read to a String. */ // text = new String(baf.toByteArray()); // tv.setText(text); } catch (ClientProtocolException e) { // TODO Auto-generated catch block } catch (IOException e) { // TODO Auto-generated catch block } return result; } public String SetPreference() { ConnectivityManager connMgr=(ConnectivityManager)getSystemService (this.CONNECTIVITY_SERVICE); NetworkInfo info=connMgr.getActiveNetworkInfo(); connMgr.setNetworkPreference(ConnectivityManager.TYPE_WIFI); return (connMgr.getActiveNetworkInfo().getTypeName ()); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the
[android-developers] Re: use data network while connected to wifi
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, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 28, 4:07 pm, syronet edwinpat...@gmail.com wrote: Is it possible to use the cellular 3g data network while connected to wifi ? I want to create connection through the 3g network while wifi is also connected Any help is 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: Connection dropped / app sleep on device standby?
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/WifiManager.WifiLock.html) You can check the status of your Wifi connection using a broadcast receiver. Look for the state changes intents. -- 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 28, 5:49 pm, Loki117 thomas.sheppar...@gmail.com wrote: Hey Guys, I am looking for some help. I am seeing something odd happening when my device goes to sleep (Hero) when the device sleeps a process which I have in the background seems to stop picking up data from it's server. I can't work out of the service is going to sleep or if the network connection is being dropped (3G WifI) can anyone shed some light on the status of the phone when it goes into standby mode (the user presses the power button)? What happens if a thread that is currently sleeping wakes up and makes a network request for example? Thanks in advance, Tom --~--~-~--~~~---~--~~ 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 Wifi and UMTS interface on Android
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 am, Ricardo Silva ban...@gmail.com wrote: Hi, I'm developing a framework for android and i need to access directly to the Wifi interface and UMTS interface (make switch to other access point, send/receive MAC segments and others things in low layers). Can i do this in Java? or have to be in C++? and in C++, using the NDK? Thanks Regards, Ricardo Silva --~--~-~--~~~---~--~~ 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 getConnectionInfo() crash
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 necessarily represent those of T-Mobile USA, Inc. On Oct 26, 3:12 am, Khetzal quetz...@gmail.com wrote: Hello, I'm trying to get wifi signal strength in an android 1.6 dev phone with this code: WifiManager m = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo w; w= m.getConnectionInfo(); But when their is the getConnectionInfo, the application crash. Is there something wrong with my code ? I've search without founding. 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: Native Shared Lib
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/your app folder/ lib (the lib is placed automatically in this folder). -- 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, 9:49 am, Sanjay sanjai...@gmail.com wrote: Hi, I'm trying to create a shared lib written in c++. I followed all the steps which are recommended to create the shared lib and to access the native code in Android. But so far I couldn't succeeded in loading the shared lib on device or emulator. When I tried to load the lib by: static{ System.load(/data/data/com.android/libnative.so); } I am getting this error: 10-26 11:16:57.269: DEBUG/dalvikvm(714): Trying to load lib /data/data/ com.android/libnative.so 0x435942a8 10-26 11:16:57.429: INFO/dalvikvm(714): Unable to dlopen(/data/data/ com.android/libnative.so): Cannot find library 10-26 11:16:57.489: DEBUG/AndroidRuntime(714): Shutting down VM 10-26 11:16:57.489: WARN/dalvikvm(714): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 10-26 11:16:57.519: ERROR/AndroidRuntime(714): Uncaught handler: thread main exiting due to uncaught exception 10-26 11:16:57.671: ERROR/AndroidRuntime(714): java.lang.UnsatisfiedLinkError: Library /data/data/com.android/ libnative.so not found 10-26 11:16:57.671: ERROR/AndroidRuntime(714): at java.lang.Runtime.load(Runtime.java:437) 10-26 11:16:57.671: ERROR/AndroidRuntime(714): at java.lang.System.load(System.java:536) . Could anybody please help me out to resolve the above issue. I also came across this post which says that if the code is written in c++, we always get issues with shared lib. http://markmail.org/message/vxakxs6g5yplkdjv#query:unable%20to%20dlop... Could anyone assert the above statement? I'm trying hard to get over this issue but so far couldn't get any fruitful result. I highly appreciate for your time and help. Thank you, Sanjay --~--~-~--~~~---~--~~ 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: - Play video in Android Media Player from given URL
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 represent those of T-Mobile USA, Inc. On Oct 24, 12:25 pm, skcratch skcra...@gmail.com wrote: Hi there! Can anyone please tell me if Android Media Player is able to play a video that is placed in a remote server, in a supported format? Thanks in advance, Best regards! --~--~-~--~~~---~--~~ 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: call forwarding
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 not necessarily represent those of T-Mobile USA, Inc. On Oct 22, 7:54 am, jera g. jera...@gmail.com wrote: how do I forward incoming calls to another number? --~--~-~--~~~---~--~~ 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: Find MAC address
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 additional network information (busybox arp for the ARP table) -- 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 23, 9:00 am, Wayne Wenthin wa...@fuligin.com wrote: Anyone have a clue how to implement this? This looks like a good way to get a unique ID for any device that can talk to the net. On Thu, Oct 22, 2009 at 7:31 PM, String sterling.ud...@googlemail.comwrote: On Oct 22, 8:49 pm, Ronny mayanka...@gmail.com wrote: I am eager to know if it is possible to get the device MAC address. How about http://developer.android.com/reference/android/net/wifi/WifiInfo.html...() I haven't tried it, and it's not documented, but it sure looks promising. String -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: android record video(3gp) to remote server
I have no idea what will be supported in future. I hope only that the media framework offers a much better support for real time streaming. You could try to port some open source code to Android which converts 3gp to 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 represent those of T-Mobile USA, Inc. On Oct 21, 12:16 am, ivan istas...@gmail.com wrote: Are there plans to implement 3gps, 3gpt or 3gpr streamable formats from the MediaRecorder? On Oct 19, 4:21 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- 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 it back via the MediaPlayer. -- 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 18, 8:36 pm, zongan liu liuzongan1...@gmail.com wrote: After several days of agonizing, ultimately did not solve the problem, is hereby published issue and hoping to get friends to help. Requirements: The android to record video and transmitted through the socket means to save the file on the server (3gpfile). Question:3gpfiles saved to the server, mobile player can't open,3gp file encoding is not correct. Note: stored in the phone's local system,3gpfiles encoded in the correct format, mobile phone player to open. android record code: String hostname = 192.168.20.106; int port = 1234; try { socket = new Socket(InetAddress.getByName(hostname), port); } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); mMediaRecorder = new MediaRecorder(); // 设置以流方式输出 mMediaRecorder.setOutputFile(pfd.getFileDescriptor()); mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mMediaRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); mMediaRecorder.setVideoSize(176, 144); mMediaRecorder.setVideoFrameRate(15); mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mMediaRecorder.setMaxDuration(1); Server receives the data code: public MultiThreadServer() throws IOException { serverSocket = new ServerSocket(port); // Runtime的availableProcessor()方法返回当前系统的CPU数目. executorService = Executors.newFixedThreadPool(Runtime.getRuntime ().availableProcessors() * POOL_SIZE); System.out.println(服务器启动); } public void service() { while (true) { Socket socket = null; try { // 接收客户连接,只要客户进行了连接,就会触发accept();从而建立连接 socket = serverSocket.accept(); //executorService.execute(new Handler(socket)); new Thread(new Handler(socket)).start(); } catch (Exception e) { e.printStackTrace(); } } } Handler class code: public Handler(Socket socket) { this.socket = socket; d = new File(D:/ds); if (!d.exists()) { d.mkdirs(); } try { store = File.createTempFile(sdsd, .3gp, d); fos = new FileOutputStream(store); socketIn = socket.getInputStream(); } catch (IOException e) { // TODO Auto-generated catch
[android-developers] Re: android record video(3gp) to remote server
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) roman.baumgaert...@t-mobile.com Date: Wed, 21 Oct 2009 11:16:45 -0700 (PDT) Local: Wed, Oct 21 2009 11:16 am Subject: Re: android record video(3gp) to remote server Reply | Reply to author | Forward | Print | Individual message | Show original | Remove | Report this message | Find messages by this author I have no idea what will be supported in future. I hope only that the media framework offers a much better support for real time streaming. You could try to port some open source code to Android which converts 3gp to 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 represent those of T-Mobile USA, Inc. On Oct 21, 5:30 pm, ivan istas...@gmail.com wrote: You wouldn't happen to know of any off hand...? On Oct 21, 12:16 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: I have no idea what will be supported in future. I hope only that the media framework offers a much better support for real time streaming. You could try to port some open source code to Android which converts3gpto 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 represent those of T-Mobile USA, Inc. On Oct 21, 12:16 am, ivan istas...@gmail.com wrote: Are there plans to implement 3gps, 3gpt or 3gpr streamable formats from the MediaRecorder? On Oct 19, 4:21 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- 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 it back via the MediaPlayer. -- 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 18, 8:36 pm, zongan liu liuzongan1...@gmail.com wrote: After several days of agonizing, ultimately did not solve the problem, is hereby published issue and hoping to get friends to help. Requirements: The android to record video and transmitted through the socket means to save the file on the server (3gpfile). Question:3gpfiles saved to the server, mobile player can't open,3gp file encoding is not correct. Note: stored in the phone's local system,3gpfiles encoded in the correct format, mobile phone player to open. android record code: String hostname = 192.168.20.106; int port = 1234; try { socket = new Socket(InetAddress.getByName(hostname), port); } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); mMediaRecorder = new MediaRecorder(); // 设置以流方式输出 mMediaRecorder.setOutputFile(pfd.getFileDescriptor()); mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mMediaRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); mMediaRecorder.setVideoSize(176, 144); mMediaRecorder.setVideoFrameRate(15); mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mMediaRecorder.setMaxDuration(1); Server receives the data code: public MultiThreadServer() throws IOException { serverSocket = new ServerSocket(port); // Runtime的availableProcessor()方法返回当前系统的CPU数目. executorService = Executors.newFixedThreadPool(Runtime.getRuntime ().availableProcessors() * POOL_SIZE); System.out.println(服务器启动
[android-developers] Re: uninstall an application
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 to uninstall application as described above, then Android would have a big security hole. Applications could be easily replaced by rogue application. -- 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 20, 12:35 am, XC He schosnab...@gmail.com wrote: Anyone know how to trace or debug inputmethod service under Eclpse? I need step by step tracking. Thanks. Best Regards --~--~-~--~~~---~--~~ 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 simulate network delay/speed
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 of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 20, 2:24 pm, kllrnohj kllrn...@gmail.com wrote: I forgot to mention this is on Windows Vista On Oct 20, 3:07 pm, David Turner di...@android.com wrote: Sounds like a bug. Which exact version of the SDK are you using, and on which platform? On Tue, Oct 20, 2009 at 1:17 PM, kllrnohj kllrn...@gmail.com wrote: That's the thing, I'm not getting *any* delay whatsoever. I set it to the highest it would go (15 seconds) and I connected, sent, and received all in under ~300ms - there was no noticeable delay whatsoever. Setting the speed has no apparent affect either, and turning on and off the data connection also doesn't do anything. All of the settings affect the android browser, but none of them affect my app. As in the android browser will claim that there is no connection whereas my app has no trouble connecting. On Oct 20, 1:39 pm, Dan Sherman impact...@gmail.com wrote: Unfortunately I haven't found a solution. The delay looks to only affect initializing connections (if you have a 10sec delay on the emulator, you'll see it take 10 seconds to connect the socket). We built a workaround in-app that delayed outgoing/incoming packets by a constant amount. I haven't seen a way to do it with the emulator by default however... - Dan On Tue, Oct 20, 2009 at 1:27 PM, kllrnohj kllrn...@gmail.com wrote: An app I'm developing opens a TCP socket connection to a server. That works great, no problems. What I want to do is simulate network delay and slow speeds, but the changes don't do anything. I telnet in to the emulator console just fine and can set the delay and speed changes, but they don't affect my app in any way. Even disabling data entirely (gsm data off) doesn't do anything. However, all of the settings affect the browser, just not my app. I'm just using a regular Java socket (java.net.Socket). What am I missing? --~--~-~--~~~---~--~~ 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: Devices information using Wifi API
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. Of course this is not the most efficient mechanism and might not be successful in all cases (clients in the network might not respond to ping) but it's a possibility ... With the usage of some linux commands like netstat you should be able to get also the corresponding MAC addresses of the IP addresses. -- 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 20, 8:35 am, sd swarup.do...@gmail.com wrote: Hi, I want to get the information of the devices that are connected to a Wifi Access point. Is there an API developed for that. Is it possible to retrieve the table information of the devices from a Wifi Access point? If yes then can somebody guide me how to go ahead with that. Thanks SD --~--~-~--~~~---~--~~ 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 record video(3gp) to remote server
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 are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 18, 8:36 pm, zongan liu liuzongan1...@gmail.com wrote: After several days of agonizing, ultimately did not solve the problem, is hereby published issue and hoping to get friends to help. Requirements: The android to record video and transmitted through the socket means to save the file on the server (3gp file). Question: 3gp files saved to the server, mobile player can't open, 3gp file encoding is not correct. Note: stored in the phone's local system, 3gp files encoded in the correct format, mobile phone player to open. android record code: String hostname = 192.168.20.106; int port = 1234; try { socket = new Socket(InetAddress.getByName(hostname), port); } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); mMediaRecorder = new MediaRecorder(); // 设置以流方式输出 mMediaRecorder.setOutputFile(pfd.getFileDescriptor()); mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mMediaRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); mMediaRecorder.setVideoSize(176, 144); mMediaRecorder.setVideoFrameRate(15); mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mMediaRecorder.setMaxDuration(1); Server receives the data code: public MultiThreadServer() throws IOException { serverSocket = new ServerSocket(port); // Runtime的availableProcessor()方法返回当前系统的CPU数目. executorService = Executors.newFixedThreadPool(Runtime.getRuntime ().availableProcessors() * POOL_SIZE); System.out.println(服务器启动); } public void service() { while (true) { Socket socket = null; try { // 接收客户连接,只要客户进行了连接,就会触发accept();从而建立连接 socket = serverSocket.accept(); //executorService.execute(new Handler(socket)); new Thread(new Handler(socket)).start(); } catch (Exception e) { e.printStackTrace(); } } } Handler class code: public Handler(Socket socket) { this.socket = socket; d = new File(D:/ds); if (!d.exists()) { d.mkdirs(); } try { store = File.createTempFile(sdsd, .3gp, d); fos = new FileOutputStream(store); socketIn = socket.getInputStream(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void run() { try { System.out.println(New connection accepted + socket.getInetAddress() + : + socket.getPort()); while ((length = socketIn.read(buffer)) != -1) { fos.write(buffer, 0, length); fos.flush(); System.out.println(正在写入中 + length); } fos.flush(); store = null; socketIn.close(); } catch (IOException e) { e.printStackTrace(); } finally {
[android-developers] Re: Audio Playback while Recording... ------- attemp playback while recording, cheat it! ----- error
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 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 16, 5:20 am, Vishal vishal.andr...@gmail.com wrote: Hello, I have a Java application where in I am trying to read Audio samples from the mic into a buffer and then write the samples back to speaker from a buffer for playing. I have used AudioRecord and AudioTrack interfaces. Below are my configurations for the Record and Track object creation. AudioTrack(0, 8000, 2, 2, playBufSize, 1); AudioRecord(1, 8000, 2, 2, recBufSize); Using AudioRecord interface I am able to read the samples from mic continiously (8000 sampling rate and 640 samples per read). In the similar way I am also able to write some pcm samples to the speaker from a buffer and play it continuously using the AudioTrack interface (without record). But when I try to do both record and play simultaneously I am able to only record audio from mic but I am not able to play any samples to speaker. I am getting this error --- attemp playback while recording, cheat it! - in the log cat. I have given the following permissions android.permission.RECORD_AUDIO and android.permission.MODIFY_AUDIO_SETTINGS in the Manifest file. I didn't find any special permission to play the audio. Is there anything else that I need to enable? Thanks in advance, Vishal --~--~-~--~~~---~--~~ 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: NFC support on adroid platform and available devices
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 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 16, 2:29 am, we-mark r.liehm...@gmx.at wrote: Hello Guys, after some internet based research I didn't found helpfull information about NFC support on android. Is there anyone out there who has information about this? I know that there is an open source project called libnfc.org running and also some other stuff from Contactless Data Inc. Since I'm dealing with a very cool NFC app I'm interested in new devices or features which can support that app. Mobile handsets with Android and NFC functionalities would be a very cool thing. I hope there is some interesting information from you guys. Thx! --~--~-~--~~~---~--~~ 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: State of a phonecall
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 existing TAPI implementations which makes it very difficult to write a good Telephony application on SDK level I hope things are changing in the future -- 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 13, 11:42 pm, SGAdrian sven.wastl...@gmail.com wrote: Hi, I can see that we can get a phonestate via the PhoneStateListener, /** * The phone state. One of the following:p * ul * liIDLE = no phone activity/li * liRINGING = a phone call is ringing or call waiting. * In the latter case, another call is active as well/li * liOFFHOOK = The phone is off hook. At least one call * exists that is dialing, active or holding and no calls are * ringing or waiting./li * /ul */ enum State { IDLE, RINGING, OFFHOOK; }; but there is no way of telling the state of the call. OFFHOOK is a number of states combined into one. Is there a particular reason for this? Are we not allowed to see the correct state of a call? BR, SGAdrian --~--~-~--~~~---~--~~ 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: Socket.connect works on Wifi, fails on 3G (actually sort of the opposite...)
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 represent those of T-Mobile USA, Inc. On Oct 14, 1:30 am, truthtrap jurgvanvl...@gmail.com wrote: guys and girls, i am trying to test the availability of a service with a socket. the code is quite simple try { InetAddress address = InetAddress.getByName(dns); s = new Socket(); try { SocketAddress endpoint = new InetSocketAddress(address, port); s.connect(endpoint, 1000); s.close(); return true; } catch (IOException e) { return false; } } catch (UnknownHostException e) { return false; } it works in the emulator and i thought everything was ok. but it does not work on my device (ADP with 1.6.) actually it does work, but not with 3G. the socket.connect blocks when the device is in wifi mode, as expected. but when on 3G it just continues, as if a connection has been made. (the tested case is port 80 on an amazon ec2 instance.) can anyone either tell me why this happens so i can fix. or perhaps there is an alternative to testing service connections for availability. thanks, jurg. --~--~-~--~~~---~--~~ 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: Stream youtube to a videoview?
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 able to stream. -- 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 13, 5:09 am, furby wookie...@gmail.com wrote: I am sure that this has been discussed before... But I don't seem to be really grokking it... I have a videoview called tv1 on a form. I have a bit of code that fires when a button is pressed that looks like this : String uristr = rtsp://rtsp.youtube.com/youtube/ videos/S2eoCqwBCQI/video.3gp; tv1.setVideoURI(Uri.parse(uristr)); tv1.start(); The emulator tells me that This video cannot be displayed and if I try it on my phone, the app just crashes... Does anyone know what I am doing wrong here? --~--~-~--~~~---~--~~ 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 package shared libs only into apk
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 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 12, 1:19 am, tica ticat...@163.com wrote: From the SimpleJNI's sample code, the Android.mk is like this: # This makefile shows how to build a shared library and an activity that # bundles the shared library and calls it using JNI. TOP_LOCAL_PATH:= $(call my-dir) # Build activity LOCAL_PATH:= $(TOP_LOCAL_PATH) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := samples LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := SimpleJNI LOCAL_JNI_SHARED_LIBRARIES := libsimplejni include $(BUILD_PACKAGE) # # Also build all of the sub-targets under this one: the shared library. include $(call all-makefiles-under,$(LOCAL_PATH)) And I know add the LOCAL_JNI_SHARED_LIBRARIES variable can tell the build system to add libsimplejni.so into the apk file , but the libsimplejni.so file will still copy into /system/lib/ directory. How can I make the libraries only build into apk ,and it will not copy to / system/lib directory in the Android build system ?Cause I do not need it anymore if the libs were already included in the apk. --~--~-~--~~~---~--~~ 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: get outgoing call details in background
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 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 12, 3:14 am, Nemat nemate...@gmail.com wrote: Hi friends, Actually I was working to get duration of outgoing call.But I dont find any way of doing this.Then I decided to get the details of outgoing call from call log. But my code works only for Activity.I want this to work with Services because I want to get the details related to outgoing call in background using services.What should I do to get these details in background.I currently implement it for Activity.Here is my complete code: public void outgoingRecord() { Cursor c = getContentResolver().query( android.provider.CallLog.Calls.CONTENT_URI, null, null, null, android.provider.CallLog.Calls.DATE+ DESC); startManagingCursor(c); int numberColumn = c.getColumnIndex( android.provider.CallLog.Calls.NUMBER); int dateColumn = c.getColumnIndex( android.provider.CallLog.Calls.DATE); // type can be: Incoming, Outgoing or Missed int typeColumn = c.getColumnIndex( android.provider.CallLog.Calls.TYPE); int durationColumn=c.getColumnIndex( android.provider.CallLog.Calls.DURATION); // Will hold the calls, available to the cursor ArrayListString callList = new ArrayListString(); try{ boolean moveToFirst=c.moveToFirst(); Log.d(MOVETOFIRST, moveToFirst=+moveToFirst);} catch(Exception e) { Log.e(MOVETOFIRSTERROR,MOVETOFIRST Error=+e.toString()); } String callerPhoneNumber = c.getString(numberColumn); int callDate = c.getInt(dateColumn); int callType = c.getInt(typeColumn); int duration=c.getInt(durationColumn); Log.d(CALLS, callDate=+callDate); switch(callType){ case android.provider.CallLog.Calls.INCOMING_TYPE: Log.d(INCOMINGCALLLOG, CallerPhoneNum=+ callerPhoneNumber+ +Duration=+duration); break; case android.provider.CallLog.Calls.MISSED_TYPE: break; case android.provider.CallLog.Calls.OUTGOING_TYPE: Log.d(OUTGOINGCALLLOG, CallerPhoneNum=+ callerPhoneNumber+ +Duration=+duration); break; } } I got error in startManagingCursor(c). Should I use another way to do this?If yes,What would be that 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: Check for internet connection
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 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 12, 3:29 pm, stanlick stanl...@gmail.com wrote: This code seems to return true unconditionally. Of course, I suppose it could be the emulator, but here is the deal. When I switch my wi- fi off and try using the emulator browser, I get the built-in Android 404 page. However, when my application tests for a net connection using the code below, it returns true. public boolean iCanHasDataNowKThxBye() { ConnectivityManager connMgr=(ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info=connMgr.getActiveNetworkInfo(); return(info!=null info.isConnected()); } Scott On Aug 21, 6:29 am, Mark Murphy mmur...@commonsware.com wrote: Guru wrote: /** * Checks whether the device is able to connect to the network * @param context * @return */ public static boolean isNetworkAvailable(Context context) { ConnectivityManager connectivity = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE); if (connectivity == null) { Log.w(tag, couldn't get connectivity manager); } else { NetworkInfo[] info = connectivity.getAllNetworkInfo(); if (info != null) { for (int i = 0; i info.length; i++) { if (info[i].getState() == NetworkInfo.State.CONNECTED) { return true; } } } } return false; } I have been using: ConnectivityManager connMgr=(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info=connMgr.getActiveNetworkInfo(); return(info!=null info.isConnected()); Are there scenarios where a NetworkInfo other than getActiveNetworkInfo() might be connected? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org --~--~-~--~~~---~--~~ 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: Chat Application
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 frameworks) Also check out the Specs from Wireless Village which should give you an idea about the basic functionality which you want to 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 not necessarily represent those of T-Mobile USA, Inc. On Oct 11, 2:28 pm, Silver sunsilverdra...@gmail.com wrote: Is there an online tutorial for how to write a very mundane chat application on the Android platform, over two or more phones? (doesn't have to be anything special, just be able to send messages from one phone to the other in real time) 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: Is network slower when screen is blacked out?
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 connection when your data connection is idle, because in such a case you also get disconnected and lose your IP connectivity. You might want to check the download pattern using Wireshark. The latest Wireshark has some pretty cool new features which support analysis of your data traffic. -- 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 8, 4:18 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I have an app that keeps pulling data from the network. I noticed that my downloading speed seems to have slowed down if I let the phone's screen to black out. Is this true? Is there a way to tell Android keep using full network speed even when screen is blacked out? 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: Connectivity Manager - CONNECTIVITY_CHANGE
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 IP address, send an intent to your application. The function above should be implemented as a service. -- 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 8, 12:13 am, Ryan Berti ryanbertiw...@gmail.com wrote: Hello, I'm very new to the boards, and I have a question about the connectivity manager but didn't see it discussed in my searches. I am doing research on the possibility of producing a background application that is woken up when an ad-hoc wifi network is in range. I understand how to create a network of this type, but my problem lies in the acknowledgment of a network of this type without busy waiting. I have recently discovered that applications have to ability to be woken up by broadcast intents, where the app is declared as a received in the manifest file. The one that interests me is the ConnectiviyManager.CONNECTIVITY_ACTION. From what I understand, this event is broadcasts when the device switches networks. I am wondering if this functionality can be modified so that the event is sent out when new wireless (preferably ad-hoc) networks are in range. It seems like I could accomplish this by having my phone connect to these type of networks automatically, but I'm not sure how to go about this either. I am very interested in what everyone has to say. Thanks! -Ryan Berti --~--~-~--~~~---~--~~ 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: Handling Network Unavailability
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 connectivity it tries to reestablish connectivity on Wifi (preferred interface) and then cellular) If you are one cellular your are going to lose data connectivity if you are not using the data interface. You might want to send out some dummy packets to keep cellular connectivity alive (for example doing a ping to a well known address). -- 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 7, 10:20 am, lilbyrdie kf6...@gmail.com wrote: I think the question you're asking is simple: When network is lost, the SDK doesn't detect this and thinks it's valid still. Thus, it still tries to use it. But, since it's not there, nothing happens. How can this be resolved? If that's your question, I share that question. On Sep 16, 11:38 am, mobilek...@googlemail.com mobilek...@googlemail.com wrote: The application I'm working allows a continious upload of several Mbs over http, which turns out to be quite a challenge when testing it on T-Mobile's 3G netowrk in the UK. At points the stream is interrupted and thenetworkstatus seems to change from connected to idle during data transmission. The tricky part here is that my broadcast receiver does not detect the change, whereas I can clearly see that no data has been uploaded by the indication of the 3G icon in the status bar. Has anyone faced anything similar to that? How do you overcome thisissue when your app has established anetworkconnection, but then out of nowhere it losses it, and there is no way for you to detect that... I'm fairly familiar with the architecture of mobile 3G networks, and the principles of connecting to a B-Node and maintaining that connection, however, in my case it seems that the client keeps losing connectivity completely randomely. Any thoughts appreciated 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: WiMAX for Android
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 are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 7, 2:50 pm, Bala california.b...@gmail.com wrote: I am submitting this post from the Palo Alto Cal-train station, using Clearwire WiMax Innovation Network in Silicon Valley. The speed is unbelievable. Perhaps it is because the network is open only for the developers. If this kind of connectivity and speed is available to the public, then it will be awesome. Instead of the PC, can I use Android phone to access this network. I can connect the WiMAX modem through the USB on my phone. But I may need the WiMAX system software. Any help will be highly appreciated. Thanks, Bala --~--~-~--~~~---~--~~ 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: Integrating G729 codec in mjsip
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 level. Converting raw audio to G711 is pretty straight forward and not as expensive as converting your raw audio to G729 format (find a native implementation at http://www.readytechnology.co.uk/open/ipp-codecs-g729-g723.1/). Be aware of that you can use g729 only for trial purposes. If you try to sell an app using g729 you need a license! -- 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 4, 11:37 pm, Mohammad Siddiqui siddiqui.m...@gmail.com wrote: Hi All i am developing a VoIP client for android using the mjsip any one have the idea about integrating the G729 codec with mjsip thanks in advanced --~--~-~--~~~---~--~~ 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: VOIP Media Stack
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 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 5, 7:17 am, milan mila...@gmail.com wrote: Hi, Does anybody knows whether there are plans for Android to add a VOIP media stack into platform? By media stack I mean audio engine that handles: Acoustic Echo Cancellation/Suppression, noise filtering, handling audio sampling/playing (and possibly RTP streams as well) ? I know Windows CE and Symbian have such engines. Thanks Milan --~--~-~--~~~---~--~~ 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: Auto answer calls and hangup programmetically
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 their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 1, 7:43 pm, BQ waveconnex...@gmail.com wrote: Hi, Can anyone point me how to auto answer calls and hangup programmetically, and the related permission? Sample or skeleton code is appreciated. Thanks, BQ --~--~-~--~~~---~--~~ 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: A question about rtsp Streaming
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 should be independent from your wireless connection. Here are some basic things I would try to find out? 1. Do you have data connectivity on Wifi/cellular? (get a valid IP address and can do data connectivity) 2. If yes, can you intercept the rtsp stream before passing the stream to the media player (I assume here that tcpdump tells you that you received the stream) 3. what APIs are you using for the rtsp streaming (openCore?) -- 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 1, 7:39 am, ParanoidAndroid bestpriv...@googlemail.com wrote: I also think that this is a wireless problem, although Google does not think so:http://code.google.com/p/android/issues/detail?id=2302can=1q=rtsp%2... On 19 Sep., 18:25, yjshi shiyaju...@gmail.com wrote: Hi,all. I met a very strange problem.And I can not understand the reason of this happening.Recently I just create an app(that is using mediaplayer ) to play the rtsp Streaming.At the beginning,I use the sim card to connect to the internet.I try to let the app play for many times .But it was only success once.Many times the app could not play and the buffer always shows 0%.While I use the WIFI to connect the internet ,the rtsp could be played,but when I use the another WIFI to connect to the internet,to my surprise it failed.Both the sim card and WIFI ,it all could play the http Streaming.The rtsp Streaming is very strange, I can not understand.I guess there is maybe something wrong withWireless. 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: Adding a JAR to my Android project?
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 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 Sep 29, 10:31 pm, JavaNut i...@chiralsoftware.net wrote: Is there a way to add external JARs to an Android project? I have some code in an external JAR file that I want to use. I saw many references to doing this within Eclipse, but I don't have Eclipse. I assume there's some way to do it by editing AndroidManifest.xml? I couldn't find any description of how to do this other than using Eclipse. --~--~-~--~~~---~--~~ 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: conference call
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 frameworks/base/telephony...). That's why the current phone app is able to offer this functionality. -- 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 Sep 29, 5:27 am, Nemat nemate...@gmail.com wrote: Hi, is it possible to add an incoming call with current call to make it as a conference call programmatically? Thanks in advance Nemat --~--~-~--~~~---~--~~ 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: Peer-to-peer phone application?
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 performance gets impacted very fast when you add the number of clients in the network. Also the type of traffic in the WLAN influences the throughput. If you think about using a central server then I would not all your setup P2P anymore. -- 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 Sep 24, 4:48 pm, Dan Sherman impact...@gmail.com wrote: Put a server between them, and have each of them talk to the server. NAT punchthrough and such isn't easy, and to be honest, with a game, you want some sort of central system to make sure everything is legit (anti-cheating) :) - Dan On Thu, Sep 24, 2009 at 5:21 PM, Silver sunsilverdra...@gmail.com wrote: Hello all, I'm with a group of college students making a multiplayer game as a class project on the Android platform for the G1. Our primary goal is to allow multiple phones (or for the sake of initial testing, a phone and an emulator on a PC) to communicate with one another. Our game is turn based, and we've been looking into TCP/IP and VNC proxy servers to transfer data between the game clients on each phone, but none of them seem particularly simple to implement. We've been through many articles documenting how difficult peer-to-peer connections are on the Android platform. What would some viable network protocols to use for the sake of our project and how should we go about setting them up? Thanks, S --~--~-~--~~~---~--~~ 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 Android able to connect to WPA Enterprise Wi-Fi networks ?
Alex, Check out the following discussion http://forums.t-mobile.com/tmbl/board/message?board.id=Android_MRthread.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 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 Sep 25, 3:38 am, Alex Danvy a...@danvy.tv wrote: A Wi-Fi device running Android looks like being able to connect to a secured Wi-Fi access point using WEP, WPA, etc. I actually can't figure how to setup a WPA Enterprise secured Wi-Fi connection wich requires a certificate. I can't find a way to import a security certificate. I went to Settings app, Wireless controls menu, Wi-Fi settings menu, clicked the Advanced menu, Security certificates menu, clicked Add certificates menu to get an empty list. I tried to put the .cer file on the SD card but the list is still empty. Does someone have any idea ? Alex --~--~-~--~~~---~--~~ 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: Get Telephony Country code
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-1 numeric for the country code): - ICC-ID: 20 digits based on International Standard ISO/IEC 7812, you can use API getSimSerialNumber() to retrieve this information - getSimCountryIso(): SIM provider's country code: I assume it is 3166-1 alpha-2 Dynamic information - getNetworkCountryIso(): dynamic information: current registered operator's MCC (Mobile Country Code). I assume it is 3166-1 alpha-2 ISO 3166-1 alpha-2 — two-letter country codes which are the most widely used. -- 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 Sep 24, 8:53 am, rollbak roll...@gmail.com wrote: Hello, I need to retrieve country info from the device. And i found the following methods to retrieve that info: android.telephony.TelephonyManager.getNetworkCountryIso() android.telephony.TelephonyManager.getSimCountryIso() I need to know if this ISO refers to: ISO 3166-1 alfa-2 country code specification or what other ISO is using. Also what's the difference between those to functions? 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: Android as a virtual PBX
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 cloud about your new IP address. In general you can easily support data traffic which does not need to be in a session context (no streaming) like browsing. In this cases you always can re-establish a connection. To run your mobile Android server in a Wifi environment might be easier to handle than cellular but this depends again how your Wifi LAN is setup. -- 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 Sep 23, 3:18 am, Masoom Alam masoom.a...@gmail.com wrote: Can Android be used as Virtual PBX. This means that, it can work as a virtual attendant for playing specific music files, call fowarding, recording messages. SipDroid is already available but it is just a client soft phone. Regards, M Alam --~--~-~--~~~---~--~~ 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 get Activity object from Intent object or something else
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 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 Sep 21, 1:02 am, HandsomeboyIT handsomebo...@gmail.com wrote: I have an Activity that running on system. I can get the Intent that is used to start the activity. But i don't know how to get the Activity object from the Intent object or something else. Can anyone tell me how to do this??? Note that, I don't use Instrumentation object. Thanks so 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Including other Java source projects in Android project
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 tab in the Java build path and select the open Java project. After pressing OK, you should see that any dependency to your Java project can be resolved and existing problems/ errors should disappear. Let me know if you still have any issues. -- 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 Sep 18, 11:11 am, kevin.hooke kevin.ho...@gmail.com wrote: Is it possible to include other Java source projects in Eclipse into an Android project? Normally for a regular Java project you do this by adding the other project to the build path and including it in the Project References. This same approach lets the code compile, but when the app is deployed to the emulator, it throws a VerifyError when I try and instantiate classes from my other project. Is this possible with the Android SDK? Do you have to build them to jars and include them inside your Android project like this? I know this works, but just involves more steps to do this. Thanks, Kevin Hooke --~--~-~--~~~---~--~~ 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 Programmatically Turn On/Off WIFI?
Tell the Android team to add Wifi support in 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 Sep 18, 9:21 pm, !oEL runzhou...@gmail.com wrote: So there is no way I can really test it? On 9月18日, 下午1时07分, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: 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 Sep 17, 9:48 pm, !oEL runzhou...@gmail.com wrote: Thank you guys. I got rid of the Security Exceptions by adding a couple of permissions, including WAKE_LOCK, which appears to be the exception I got after adding the two WIFI ones. However, now I've managed to actually access the state, but in Emulator it tells me: Failed to load WIFI driver. The same thing happens when I use the built-in power control widget. On Sep 17, 12:48 am, Raphael r...@android.com wrote: On Tue, Sep 15, 2009 at 8:36 PM, !oEL runzhou...@gmail.com wrote: Hi, Second question of the day, how do Iprogrammaticallyturn on/off WIFI? There's an example at line 226 here: http://code.google.com/p/autosettings/source/browse/trunk/AutoSetting... R/ --~--~-~--~~~---~--~~ 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 Programmatically Turn On/Off WIFI?
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 Sep 17, 9:48 pm, !oEL runzhou...@gmail.com wrote: Thank you guys. I got rid of the Security Exceptions by adding a couple of permissions, including WAKE_LOCK, which appears to be the exception I got after adding the two WIFI ones. However, now I've managed to actually access the state, but in Emulator it tells me: Failed to load WIFI driver. The same thing happens when I use the built-in power control widget. On Sep 17, 12:48 am, Raphael r...@android.com wrote: On Tue, Sep 15, 2009 at 8:36 PM, !oEL runzhou...@gmail.com wrote: Hi, Second question of the day, how do I programmatically turn on/off WIFI? There's an example at line 226 here: http://code.google.com/p/autosettings/source/browse/trunk/AutoSetting... R/ --~--~-~--~~~---~--~~ 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: Route Audio Output to Mic?
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 those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.! On Sep 17, 3:21 am, Cheng Zhong hust.zch...@gmail.com wrote: Hi guys, I'm trying to play a music (using MediaPlayer) during a call and want the caller to hear the music I'm playing. Unluckly it doens't seem work at all, the caller hear nothing even I set the music volumn to MAX ( of course, the speaker and the mic on Android are far away from each other). Is there any ways to route Android's audio output to its Mic? Or something like Stereo Mix in Windows? 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 use root permission
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 necessarily represent those of T-Mobile USA, Inc. On Sep 17, 1:20 am, Francesco Pace paxa...@gmail.com wrote: Yeah, with adb remount my program works correctly. But If I want set root permission at my simple application (File Browser), How can I do? Thanks... 2009/9/16 cs_post...@hotmail.com cs_post...@hotmail.com Running the mount command from a shell will likely show that /system is mounted read-only as per default android setup, unless you've changed that in the process of rooting the phone. The exact syntax of the (somewhat non-standard?) mount command to use for remounting it read/write is not something I recall at the moment, but you'll find it with some web searching. On Sep 16, 6:32 am, Francesco Pace paxa...@gmail.com wrote: I use Superuser.apk for execute su command. My program write file test.txt in /system but statement Log.v(TEST], String.valueOf(list.length)); return value 0. --~--~-~--~~~---~--~~ 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 a native application use java methods in TelephonyManager using getSystemService()
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 author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 17, 9:47 am, Harsh harsh1...@gmail.com wrote: Hi I am currently working on porting a application written in C in android platform. I need to know that can i invoke/call the getSystemService from the C application using invocaton interface by JNI. Meaning using a .java file which will interact with the interace provided by the android.telephony.TelephonyManager.java for using getCallState() and other mehthods. I want to know if this is feasible? Thanks for your 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: How To Programmatically Turn On/Off WIFI?
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, 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 Sep 16, 11:02 am, !oEL runzhou...@gmail.com wrote: Hi, Thank you for the help. However I'm still getting some Security Exception, will report later on the details. On Sep 16, 5:15 am, MrChaz mrchazmob...@googlemail.com wrote: Add uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission uses-permission android:name=android.permission.ACCESS_WIFI_STATE/ uses-permission to the manifest file On Sep 16, 4:36 am, !oEL runzhou...@gmail.com wrote: Hi, Second question of the day, how do I programmatically turn on/off WIFI? Currently I'm having something like this: _iWifi.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { WifiManager wm = (WifiManager) getSystemService(WIFI_SERVICE); if (!wm.isWifiEnabled()) { wm.setWifiEnabled(true); } else { wm.setWifiEnabled(false); } } }); Where _iWifi is a button instant (of course...) Now, the problem is that it tells me there is a Security Exception occurred, I guess I have no permission to access this. I'm sure a firmware key is not needed in this case (unlike my previous question regarding reboot action), so what is the proper way of doing this? Please help, thank you in advance :D --~--~-~--~~~---~--~~ 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 use android.provider.Telephony?
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 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 Sep 15, 6:28 am, Pentiumao pentiu...@gmail.com wrote: Hi everyone: I have one problem when developing a sms application. I saw most example code used the android.provider.Telephony package, but that only exist in Android open source project, not in standard SDK. Most people say : that means you should not use it in your application. As you know, there is one application(com.android.mms) runs in emulator and work well, I read its source and it did use some package just like I mentioned before( only exist in open source project), e.g. android.provider.Telephony.Mms. That really puzzled me. Anyone can help me? 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: mount sd card
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 this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 15, 8:13 am, manigault manig...@gmail.com wrote: I am trying to write a desktop client to synchronize data with my android app. When i mount the sd card how can i find is this is android sd card and how to check if given application is installed of the phone ( by de desktop client). --~--~-~--~~~---~--~~ 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 sd card
As long as Bluetooth API support is limited the communication channel would be Wifi. Of course ip support over UDP would be another option but this requires platform changes. Chris as you pointed out in your post, whatever people are trying to implement to sync data over usb, it will be a hacked solution with many concerns. -- 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 Sep 15, 4:42 pm, Chris Stratton cs07...@gmail.com wrote: On Sep 15, 6:25 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- 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 data you want to share. On an average consumer's phone and computer (ie, usb debugging not on, no sdk installed on pc) is there a recommended or even available communication channel to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Call Mechanism?
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 wat I have seen so far, almost everything is done in the form of java applications (please correct me if I am mistaken). What do your mean with everything? For example the audio handling for cellular calls is not handled in the framework code at all, that's why it is very tough to record a call. Then how do the java functions interact with the lower layer C functions, like the RIL (Radio Interface Layer) in C? You can find the communication from Java to the RIL layer in native in frameworks/base/telephony/java/com/android/internal/telephony/gsm/ RIL.java/ Socket communication is used to talk to the native layer. -- 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. Any help would be greatly appreciated. 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: Communication over USB with Program on Computer
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 can not mount any external storage device to your device (as long as you are not changing the framework/platform) behavior (this communication is only half duplex!) To make it more flexible you would have to introduce IP connectivity over USB (platform/framework changes required). -- 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 Sep 14, 5:52 am, Patrick Boos patrickboo...@gmail.com wrote: Goal: Send Data from the phone to the computer (and the other way) using only the USB cable. We need this to synchronize data between the a program on the android phone and a program on the computer. Over Wifi is not an option. It has to work over the USB cable. We need this for a university project and would be glad if anyone could enlighten us on this matter. Thank you already for the help. Greetings Patrick Boos --~--~-~--~~~---~--~~ 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: routing audio to speaker
Sunee, If you could send me a part of your code, this would be helpful, especially when try to playback your audio. I am setting the speakerphone after obtaining a AudioManager instance. -- 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 Sep 14, 7:37 am, sunee suneetha.kalahas...@wipro.com wrote: I tried to invoke setSpeakerphoneOn(), but not able to make out the proper place. Could you let me know where can 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) roman.baumgaert...@t- mobile.com wrote: For the headset you have to find out whether a headset is connected over USB (if you use a G1 or myTouch) that's why you can find the HeadsetObserver class in the framework. In case of thespeakeran Observer is not required because it is an internal hardware component which you cannotenable/disable or unplug as a device. With setRouting you can set a more complex audio routing using a bit mask which is not required to route your audio signal to thespeaker. -- 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 Sep 10, 11:53 pm, Pras prasanna.kuma...@wipro.com wrote: Hi, Thanks for the info. I am also facing this similar problem and am new to Java. In the code base i found that we have the HeadsetObserver.java file but there is no similarSpeakerobserver java class. Kindly advice if we need to create a similar java class forSpeakeror where we can invoke the setSpeakerphoneOn method. Another doubt is that in the AudioFlinger.cpp, we have setRouting(AudioSystem::MODE_NORMAL, AudioSystem::ROUTE_SPEAKER, AudioSystem::ROUTE_ALL); So wouldn't it route tospeakerby default. Kindly let me know your comments. -Pras On Sep 10, 11:46 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: 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· · ·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 Sep 10, 5:38 am, sunee suneetha.kalahas...@wipro.com wrote: I am working onandroidfor omap zoom2. omapkernel - 2.6.27 android - RLS25.6 Theaudioplayback seems to happen (progress bar updation happens) but noAudiois heard. There is no headphone connected and also the sound level is at maximum. Is speakerroutingenabled by default or do i have toenableit explicitly? Kindly help me. Thanks, Sunee- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Solution suggestions
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 be an overkill if you have only a few version information to handle. Accessing the server information with shared preferences is straight forward. If the information is much more complex and is also handled on server side in DB, you might want to reconsider your evaluation and create a DB within your main app. In general a separate application which you have to manage adds complexity. You have to think about the following - how do you manage installation/uninstallation of your application? - when is the main application usable (when the second app is installed and has updated server information)? - is it required for your application to have always updated server information? - when a user manually uninstalls your second application (the app which communicates to the server), what do you do? These are only some basic questions. For sure you will come up with much more questions if you go with option b) or c). -- 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 Sep 14, 1:56 pm, Neilz neilhorn...@googlemail.com wrote: Hello. I'm wondering about the best way for android (on a mobile device) to handle the equivalent of a web-app. Let's say a client wants a version of their website (which contains server side capability - database, a framework like struts/spring, ajax calls etc) on a mobile device. How would you go about putting something similar onto an android mobile? What are the options, and the technologies you could use? Would you a) simply make a new front end sitting on the existing web servers, written using a simplified XML which android can display appropriately? So all you had to do was call the appropriate web address to view the android version of the website. Or b) would you write a new app entirely for the device, which had a version of the database loaded into it? Or c) would you write a new app for the device, which made calls across the web to the existing server side functionality. If you did this, what technologies would you use for the communication? I hope this isn't to vague. I would appreciated any pointers to the technologies I need to be looking at to achieve 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: tool for Android performance measure
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 for following categories: - 2D Graphic performance - CPU performance - Memory performance - File system performance Added options/settings menu Added ability to store results on SD card. Benchmarks for each group can be executed several times for improving accuracy. -- 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 Sep 14, 8:28 pm, Shakeel shakeelaha...@tataelxsi.co.in wrote: Dear all, Can you suggest some tools for measuring android performance on any platform. Thanks in advance. Regards Shakeel --~--~-~--~~~---~--~~ 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: tool for Android performance measure
There are some character device files in /dev crwxrwxrwx root root 10, 54 2009-09-14 21:01 network_throughput crwxrwxrwx root root 10, 55 2009-09-14 21:01 network_latency crwxrwxrwx root root 10, 56 2009-09-14 21:01 cpu_dma_latency Any ideas how to read the files via adb? Seems like logcat only supports radio, events and main. 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 Sep 14, 9:11 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: 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 for following categories: - 2D Graphic performance - CPU performance - Memory performance - File system performance Added options/settings menu Added ability to store results on SD card. Benchmarks for each group can be executed several times for improving accuracy. -- 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 Sep 14, 8:28 pm, Shakeel shakeelaha...@tataelxsi.co.in wrote: Dear all, Can you suggest some tools for measuring android performance on any platform. Thanks in advance. Regards Shakeel --~--~-~--~~~---~--~~ 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: drop call after some time duration
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 represent those of T-Mobile USA, Inc. On Sep 11, 12:26 am, Shrenik Vikam yoursonyt...@gmail.com wrote: i want to drop a call after some time duration let me know how to send the event to it or how to throw event on ACTION_DIAL intent --~--~-~--~~~---~--~~ 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: Checking the user's country
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 cellular connection: If you try to get information to which MNC-MCC you are connected use the TelephonyManager.getNetworkOperator() API. The MCC (mobile country code) is the information you are looking for. You can lookup which MCC code belongs to which country at http://en.wikipedia.org/wiki/List_of_mobile_country_codes. -- 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 Sep 11, 9:49 am, Anna PS annapowellsm...@googlemail.com wrote: Hi Anyone know how to check the user's country? I'm looking for a way that's faster than using GPS and reverse geocoding. (I need the country where the phone is registered, not their current location, in any case.) Is there any constant in the settings? Thanks, Anna --~--~-~--~~~---~--~~ 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: Checking the user's country
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 connection (which you are not interested in): If you try to get information to which MNC-MCC you are connected use the TelephonyManager.getNetworkOperator() API. The MCC (mobile country code) is the information you are looking for. You can lookup which MCC code belongs to which country at http://en.wikipedia.org/wiki/List_of_mobile_country_codes. -- 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 Sep 11, 9:49 am, Anna PS annapowellsm...@googlemail.com wrote: Hi Anyone know how to check the user's country? I'm looking for a way that's faster than using GPS and reverse geocoding. (I need the country where the phone is registered, not their current location, in any case.) Is there any constant in the settings? Thanks, Anna --~--~-~--~~~---~--~~ 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: Execute chown command
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 in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 11, 3:48 am, Francesco Pace paxa...@gmail.com wrote: Hi guys, I have an rooted Galaxy. I want to change owner to my application with chown command. I have a FileBrowser and I want to see files in /data directory (for example). Which files I have to change permission? Sorry for my english, Thanks Francesco --~--~-~--~~~---~--~~ 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: routing audio to speaker
For the headset you have to find out whether a headset is connected over USB (if you use a G1 or myTouch) that's why you can find the HeadsetObserver class in the framework. In case of the speaker an Observer is not required because it is an internal hardware component which you cannot enable/disable or unplug as a device. With setRouting you can set a more complex audio routing using a bit mask which is not required to route your audio signal to the speaker. -- 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 Sep 10, 11:53 pm, Pras prasanna.kuma...@wipro.com wrote: Hi, Thanks for the info. I am also facing this similar problem and am new to Java. In the code base i found that we have the HeadsetObserver.java file but there is no similar Speaker observer java class. Kindly advice if we need to create a similar java class for Speaker or where we can invoke the setSpeakerphoneOn method. Another doubt is that in the AudioFlinger.cpp, we have 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) roman.baumgaert...@t- mobile.com wrote: 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· · ·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 Sep 10, 5:38 am, sunee suneetha.kalahas...@wipro.com wrote: I am working on android for omap zoom2. omapkernel - 2.6.27 android - RLS25.6 Theaudioplayback seems to happen (progress bar updation happens) but noAudiois heard. There is no headphone connected and also the sound level is at maximum. Is speakerroutingenabled by default or do i have to enable it explicitly? Kindly help me. Thanks, Sunee- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Take control of wireless hardware
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 controlling the transmitter/receiver. Of course you find APIs related to changing the connection state of the different radio interfaces. -- 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 Sep 9, 8:06 pm, spaceman spacem...@gmail.com wrote: Hey people. Can anyone tell me how can I control the wireless transmitter / receiver of the underlying hardware through android (or some other api)? --~--~-~--~~~---~--~~ 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: routing audio to speaker
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· · ·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 Sep 10, 5:38 am, sunee suneetha.kalahas...@wipro.com wrote: I am working on android for omap zoom2. omapkernel - 2.6.27 android - RLS25.6 The audio playback seems to happen (progress bar updation happens) but no Audio is heard. There is no headphone connected and also the sound level is at maximum. Is speaker routing enabled by default or do i have to enable it explicitly? Kindly help me. Thanks, Sunee --~--~-~--~~~---~--~~ 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: discovery of other computers/devices on WiFi network?
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 could request this information from the server to get all the connected systems within the LAN. -- client discovery: send a broadcast in your local lan and ask who is available. All connected systems would respond back with their connectivity information. -- the most inefficient way is to enumerate over the possible IP addresses and check whether they are reachable. Of course you would not necessarily know which IP address belongs to which system. Good Wifi AP have an internal table about the devices which are connected. If you have knowledge how to change the Wifi firmware you could modify your AP with supporting the client/server approach described above. -- 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 Sep 9, 8:31 pm, James Morrissey jimmymorris...@gmail.com wrote: Hi all, I'm hoping someone here can help as I've had no luck searching for the information I'm looking for. I've written a small utility application which my users can type a host name or an IP address to connect to. What I'd like to do is discover all discoverable devices on my WiFi network (ie. in Windows when you find other computers on the network), so that I can present my users with a list of computer names / IP addresses - rather than them having to already know the name / IP. Can anyone point me in the right direction? Regards, James --~--~-~--~~~---~--~~ 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: Security framework available on android??
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 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 Sep 9, 9:46 pm, Sudeep Jha sudeep.neti...@gmail.com wrote: Which security framework is available or can be ported to android ? Warm Regards, Sudeep --~--~-~--~~~---~--~~ 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: Ethernet / IP over USB connection?
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 correctly on the VM. That's at least my experience when I use VMWare and Parallels on the MAC. - use Cygwin o Windows On Android - you have to port over an open source USB IP library to Android. When you google around you will find many open source projects. The porting might be not trivial because you have to make sure that adb is still supported 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 necessarily represent those of T-Mobile USA, Inc. On Sep 8, 12:52 pm, JavaNut i...@chiralsoftware.net wrote: I have a somewhat unusual question: We have a need to use an Android device in situations where there may be no wireless, no WiFi, no Bluetooth, and no Ethernet. The only way we will have of connecting to the outside world will be by plugging a USB cable from the Android to a network-connected PC. I realize this sounds strange, but this is the problem we need to solve. Has anyone done this? I've seen references to Ethernet over USB, which seems like it would work with a Linux kernel module on the PC, but we need to use a Windows PC host. I've searched quite a bit on Google and haven't come up with solutions. If anyone has some ideas on this, I would very much appreciate it. 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: Broadcasting reboot intent
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 a 3rd party app the power to reboot the phone, there will be many apps which are misusing this permission. -- 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 Sep 8, 4:56 am, Kacper86 cpph...@gmail.com wrote: Hi! I have a question for Dianne Hackborn: Is there any hope that reboot permission would be granted for commercial apps (if customer accepts them)? On Aug 7, 11:12 pm, Dianne Hackborn hack...@android.com wrote: Not only is it not in the API docs, but because as you say you need to be signed with the platform cert, you can only use this if you are running on a device whose system software you have built yourself. On Fri, Aug 7, 2009 at 1:55 PM, markwhitney markwhit...@gmail.com wrote: Got it to work. For reference to anyone else, in addition to signing with the platform key, the ACTION_REBOOT intent has to have a few extras defined. Without any extras, it looks like the Watchdog thread will basically ignore it. This code would do an immediate reboot: Intent i = new Intent(Intent.ACTION_REBOOT); i.putExtra(nowait, 1); i.putExtra(interval, 1); i.putExtra(window, 0); sendBroadcast(i); Details in frameworks/base/services/java/com/android/server/ Watchdog.java in the Android source. Note that this is not in the API docs so probably subject to change :) mark On Aug 6, 2:24 pm, markwhitney markwhit...@gmail.com wrote: Great, thanks for the link, I will look into this further there. On Aug 6, 1:54 pm, Roman roman.baumgaert...@t-mobile.com wrote: There is already a post about this on the forum. Look at http://groups.google.com/group/android-platform/browse_thread/thread/. .. In general you don't want to allow third party apps to do arebooton your phone this easily. It is very dangerous that's why theREBOOTis only allowed for system apps. -- 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 6, 8:54 am, markwhitney markwhit...@gmail.com wrote: I am trying torebootAndroid by broadcasting Intent.ACTION_REBOOT from my activity. I believe that I have given it all the proper permissions to send such a signal but when I launch the activity, nothing happens. I saw a similar post about this back in May, but no responses. Logcat: ActivityManager I Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x102000 00 comp= {com.android.settings.shutitdown/ com.android.settings.shutitdown.ShutdownActivity} } ActivityManager I Start proc com.android.settings.shutitdown for activity com.android.settings.shutitdown/.ShutdownActivity: pid=1397 uid=10 00 gids={} ShutdownActivity D creating activity: forreboot ShutdownActivity I rebooted InputConnectionWrapper W showStatusIcon on inactive InputConnection ActivityManager I Displayed activity com.android.settings.shutitdown/.ShutdownActivity: 564 ms Note that there is no denial to send the Intent, just silence. Here is the activity code: public class ShutdownActivity extends Activity { private static final String LOG_TAG = ShutdownActivity; public void onCreate(Bundle b) { super.onCreate(b); setContentView(R.layout.shutdown_main); Log.d(LOG_TAG, creating activity: forreboot); Intent i = new Intent(Intent.ACTION_REBOOT); i.setAction(Intent.ACTION_REBOOT); sendBroadcast(i); Log.i(LOG_TAG, rebooted); } public void onPause() { } } ...and the manifest: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.settings.shutitdown android:sharedUserId=android.uid.system uses-permission android:name=android.permission.REBOOT / application android:label=shutitdown android:icon=@drawable/ic_launcher_settings activity android:name=.ShutdownActivity android:label=Shutdown
[android-developers] Re: running emulator on a remote machine
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-Mobile USA, Inc. On Sep 8, 2:38 pm, Bart van Wissen bartvanwis...@gmail.com wrote: Is there any way to connect the debugger to an emulator running on a remote machine? It's using TCP so I suppose it shouldn't be too difficult, but I can't figure out how. I would like to run the emulator on my (fast) laptop and do my coding on my (slow, but with bigger screen) desktop machine. --~--~-~--~~~---~--~~ 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 emulator on a remote machine
Bart, Sorry, my bad. I read your post again and I noticed that I misunderstood it a little bit. My idea here was to start the emulator from your second system over NFS. In this case you would run the emulator on one machine and your Eclipse on the other machine. Of course you wouldn't have the DDMS support in this case which I assume you are looking for. Would the following work for you? -- run on both machines Eclipse -- do on the slow machine your development -- create on the faster machine the same project with using the import option (import over NFS) -- start emulator on faster machine and do your testing Changes on your developer machine are visible on your test machine because you are picking up the project over NFS. I agree it is not the best solution because you have to run Eclipse ob both machines, but it should work. -- 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 Sep 8, 4:21 pm, Bart van Wissen bartvanwis...@gmail.com wrote: I'm sorry, I don't understand. I would 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) roman.baumgaert...@t- mobile.com wrote: 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-Mobile USA, Inc. On Sep 8, 2:38 pm, Bart van Wissen bartvanwis...@gmail.com wrote: Is there any way to connect the debugger to an emulator running on a remote machine? It's using TCP so I suppose it shouldn't be too difficult, but I can't figure out how. I would like to run the emulator on my (fast) laptop and do my coding on my (slow, but with bigger screen) desktop machine. --~--~-~--~~~---~--~~ 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 block incoming call?
I tried Panda and indeed the call gets blocked ... interesting When I am looking at the logcat I can see that after the intent InCallScreen was received that the phone application gets paused. Now I am also curious how to achieve this ... -- 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 Sep 6, 11:01 pm, feeling3_4 lanwen.ban...@gmail.com wrote: Thanks Roman. Have you ever tried thishttp://www.cyrket.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) roman.baumgaert...@t- mobile.com wrote: 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 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 Sep 6, 8:50 pm, feeling3_4 lanwen.ban...@gmail.com wrote: Hi, all I know there are some posts from the group have talked about this ( likehttps://groups.google.com/group/android-developers/browse_thread/thre... andhttps://groups.google.com/group/android-beginners/browse_thread/threa...), but I can not find exactly the offical answer of this issue. in android market, there are some apps which can set up a black list and block the incoming call, seehttp://www.cyrket.com/search?q=block+call for details. is there something like backdoor or unkown api for blocking incoming call. any idea? 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: detect usb device
Yep, you will receive an event that a USB storage device is connected. Currently the event is shown in the WindowsShade but you can also capture the intent in your own application. -- 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 Sep 6, 10:57 pm, tstanly tsai.sta...@gmail.com wrote: thanks! and the other question, is Android detect dynamically possible(on listening mode)? that is, 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) roman.baumgaert...@t- mobile.com wrote: 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 necessarily represent those of T-Mobile USA, Inc. On Sep 6, 10:05 pm, tstanly tsai.sta...@gmail.com wrote: hi all, does sdk provides methods to detect whether a usb device plug in ? if it's a android porting problem, I am so sorry... 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: A sample mobile banking solution
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 secure as cellular) --- what is needed if you are on wifi? --- Which security mechanisms are involved for a banking transaction? (investigate IP connectivity requirements up to security requirements on application level - What is supported on Android? (for example there a limitations on WPA2 support in Android SDK in case of Wifi) --- which protocols are supported for a secure connection? --- which security framework is available or can be ported --- in case of slow performance, what is available on native level --- does it make sense to change the framework/platform code and run certain software as root only? This are only some basic questions which I came up with. But may be it helps to get started. -- 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 Sep 7, 2:12 am, Sudeep Jha sudeep.neti...@gmail.com wrote: Hi all, Can anybody tell me something about the security architecture required to build a mobile banking solution in android? Warm Regards, Sudeep -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ 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: A sample mobile banking solution
You might be interested to watch the following web cast about mobile banking http://www.sybase.com/detail?id=1060252 The last web cast I watched from Sybase was pretty good. -- 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 Sep 7, 5:31 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: 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 secure as cellular) --- what is needed if you are on wifi? --- Which security mechanisms are involved for a banking transaction? (investigate IP connectivity requirements up to security requirements on application level - What is supported on Android? (for example there a limitations on WPA2 support in Android SDK in case of Wifi) --- which protocols are supported for a secure connection? --- which security framework is available or can be ported --- in case of slow performance, what is available on native level --- does it make sense to change the framework/platform code and run certain software as root only? This are only some basic questions which I came up with. But may be it helps to get started. -- 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 Sep 7, 2:12 am, Sudeep Jha sudeep.neti...@gmail.com wrote: Hi all, Can anybody tell me something about the security architecture required to build a mobile banking solution in android? Warm Regards, Sudeep -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ 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: Cannot get PhoneNumber on Real device but code works in Emulator
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 phone number from your SIM card or the SIM card is not available at all. By the way from which carrier is your SIM card? -- 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 Sep 7, 9:48 am, Mark Ellul mark.el...@gmail.com wrote: Hi, I am trying to create an app that gets the location and telephone number of the phone. This is the Code I am using to get the telephone number (I am focusing on sdk 1.5) and in the emulator this works try { this.telMgr = (TelephonyManager) this.getSystemService (Context.TELEPHONY_SERVICE); this.telephoneNumber = this.telMgr.getLine1Number(); LogMessage(String.format(Your Telephone Number:%s, this.telephoneNumber)); } catch(Exception ex) { LogMessage(ex.getMessage()); } However on my HTC Hero it doesn't. The Permissions I am using for both Location and Telephone number are... uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION/uses- permission uses-permission android:name=android.permission.CALL_PHONE/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.READ_PHONE_STATE/ uses-permission uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS/uses- permission Can anyone help me out with some pointers on where to start looking? Regards Mark --~--~-~--~~~---~--~~ 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 best way to backup app database to a file?
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(yourDBName); OutputStream backupDbStream = new FileOutputStream(path+name of your backup DB); //copy file from your existing DB to your backup DB byte[] buffer = new byte[1024]; int length; while ((length = dbStream.read(buffer))0){ backupDbStream.write(buffer, 0, length); } If you want to support backing up the DB on a remote system, you could easily use the same mechanism. -- 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 Sep 6, 12:22 pm, Moto medicalsou...@gmail.com wrote: I need to somehow backup my applitcations database to a file so that it can later be retored using that file. Any suggestions to doing this? The only way I would do it would be by reading every table to an xml ffile but it seems soo ineficient... The data does not have to be humand readable... Thanks! -Moto! --~--~-~--~~~---~--~~ 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 block incoming call?
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 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 Sep 6, 8:50 pm, feeling3_4 lanwen.ban...@gmail.com wrote: Hi, all I know there are some posts from the group have talked about this ( likehttps://groups.google.com/group/android-developers/browse_thread/thre... andhttps://groups.google.com/group/android-beginners/browse_thread/threa...), but I can not find exactly the offical answer of this issue. in android market, there are some apps which can set up a black list and block the incoming call, seehttp://www.cyrket.com/search?q=block+call for details. is there something like backdoor or unkown api for blocking incoming call. any idea? 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: detect usb device
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 necessarily represent those of T-Mobile USA, Inc. On Sep 6, 10:05 pm, tstanly tsai.sta...@gmail.com wrote: hi all, does sdk provides methods to detect whether a usb device plug in ? if it's a android porting problem, I am so sorry... 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: Can I leave some info after my app is uninstalled?
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 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 Sep 3, 2:36 am, 楊健 y...@cycomtech.co.jp wrote: Hey everybody! Is there any method to leave some info after my app is uninstalled?For example:file,database,setting etc. Best regards! --~--~-~--~~~---~--~~ 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 detect/query the screen off event?
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 individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 2, 11:14 pm, Tony Zhou zhouz...@gmail.com wrote: Hi, Is there any API I can detect the event that the screen is off after time out? Or is there any API I can query the backlight status? 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: Communicating with the gtalk app?
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 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 Sep 3, 9:32 am, Jim Duchek jim.duc...@gmail.com wrote: Hi. Considering the code for the gtalk app is unavailable, I'm unable to discern this information for myself, and haven't been able to find it anywhere -- I know Google has security concerns, but I'm wondering if there is any API at all for communicating with the google talk application itself, such as setting available/busy or signin/out? A plugin for Locale that would be able to do that would be extremely useful, and trivial for me to write, but the information seems not to be available, as far as I can tell. Does anyone know anything about doing this? Jim --~--~-~--~~~---~--~~ 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: Take a long time to make call
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 many messages are send between the phone and the backend to support GV? -- 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 Sep 3, 2:28 pm, Zhe zhewan...@gmail.com wrote: Hi I am using GV by Evan Charlton(amazing app). But I found that it is really slow to make a call when unchecking route all the calls through GV and choose dial out instead of call back. I check the source code and found that he use following code to make a call. Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(tel:+yourphoneNumber)); activity.startActivity(intent); The problem is, when you use above and the phone number is really long ( google voice number, 2, actually phone number), it took a long time to make the call (40 seconds until it connects). Funny thing is that, if I choose route all the calls through GV, then it connects reall fast (10 seconds). Can any one tell me is there another way to make the call efficiently? 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: Audio streaming
Yes, it does. You can do something like audioStreamer.startStreaming(”http://web -address/your-audio.mp3″, 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 necessarily represent those of T-Mobile USA, Inc. On Sep 2, 7:57 am, Vlad vloi...@gmail.com wrote: Hi, I am working on a music streaming application and cannot find APIs I can use for it (MediaPlayer supports files only local or HTTP). I have a few questions and would appreciate if someone can help me answering them. Does Android SDK 1.5 support audio streaming (MP3 stream for example)? If does what API calls I can use? If doesn't what are the plans for future SDK releases that would support streaming? Are there any suggested work arounds until the streaming is supported (like temp files etc)? Thanks, Vlad --~--~-~--~~~---~--~~ 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: Who makes embedded hardware Android devices?
Check out the following pages about smartq5/7. It's a device with bluetooth and Wifi support. Don't ask me how difficult the Android porting would be. http://www.engadget.com/2009/02/12/smartq-5-touchscreen-pmp-mid-promises-wifi-bluetooth?icid=sphere_blogsmith_inpage_engadget http://www.pocketables.net/2009/05/smartq-7-internet-tablet-mid-revealed.html -- 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 Sep 1, 8:11 am, Jeff Puckett jeff.puck...@gmail.com wrote: I'm playing around with an idea in the back of my head, was wondering if there were any Android devices that had touchscreen and wifi - no other requirements necessary. The GiiNii Movit Mini is as close to what I'm looking for as I can find. Are there hardware vendors that make custom Android products such as this? Inexpensive, ARM or MIPS, run Android, touchscreen, wifi, that's it. 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: Is it possible to make pure VOIP for Android?
What is for you pure VOIP? In case of putting a Voip application on Android you have to decide which kind of signaling protocol you want to use -- XMPP -- SIP -- your own signaling As Mark already posted earlier, SipDroid is a pretty good Voip client using SIP signaling. You can create an account on pbxes.org and play around with Voip. Both Wifi and 3G Voip is supported. -- 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 31, 3:27 am, Mark Murphy mmur...@commonsware.com wrote: echo wrote: Hi. I'm new to Android. I've search a lot about VOIP for Android and I found Skype, Nimbuzz, iSkoot, etc. But sadly it's not pure VOIP. My question for all the Android experts. Is it possible to make an application to do pure VOIP using Android? See sipdroid.org. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.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 -~--~~~~--~~--~--~---