[android-developers] Don't recieve Wi-Fi connection change intent when device screen is blank

2012-10-26 Thread draf...@gmail.com
I currently listen for changes in the Wi-Fi in my Android application and for the most part it works OK, however when the user has there device is idle/sleep mode, as in when the screen is blank. If they walk into a Wi-Fi area and automatically connect I don't get the intent until the user has

[android-developers] Android - use multiple Activities within a TabActivity what's the solution?

2011-10-27 Thread draf...@gmail.com
I currently have a TabActivity which has 4 tabs, within one of the tab's I want to be able to move forward and back between 4 different Activities. However if I try to start a new Activity now it removes the TabActivty and starts a whole new Activity with no tab bars. I have read about using

[android-developers] Strange behavior after signing build with release keystore

2011-07-29 Thread draf...@gmail.com
Having some really strange bugs with my Android application at the minute, it I run it from Eclipse it runs fine, pretty much perfect. It contains a login screen that I can access and get to my main screen fine when running through Eclipse. When I press the home key and return to my application

[android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-04-19 Thread draf...@gmail.com
), force a compile and see what's dumped in the console view? On Tue, Mar 15, 2011 at 6:46 AM, Donal Rafferty draf...@gmail.com wrote: Bit of an update on this, I'm still stuck on it and have noticed some curious issues. My project was started back in 1.5 SDK so my resources only had

[android-developers] Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread draf...@gmail.com
I have recently downloaded the add on to Eclipse for the 2.3 SDK. My minSDK is 2.1update-1. Previously I only had up to the 2.2 SDK and I could change my XML files and drawables without hassle and the generated R.java file would regenerate properly. The same if I changed my aidl files, the stubs

[android-developers] Trouble with loud speaker off on Galaxy S

2010-11-25 Thread draf...@gmail.com
Has anyone else experienced this on the Samsung Galaxy S? When I use the folowing to turn the Loudspeaker on it works fine: audioManager.setSpeakerphoneOn(true); But when I try the opposite to turn it off: audioManager.setSpeakerphoneOn(false); The Loudspeaker stays on and audio is played via

[android-developers] Android intent filter for SMS and call?

2010-11-01 Thread draf...@gmail.com
I am trying to register my Activity so that it can be used by the Activity chooser/picker allowing a user to choose whether or not to select my application/Activity to complete what they are trying to do. I want to provide the option for the user to be able to select my application when they want

[android-developers] Get soft keyboard to automatically pop up when a dialog is displayed?

2010-10-22 Thread draf...@gmail.com
I currently pop up a custom dialog with an EditText in it. Currently the keyboard will only pop up when the user clicks into the EditText. Is it possible to get the keyboard to pop up for the EditText as soon as the Dialog loads? I have tried: editText = (EditText) findViewById(R.id.EditTextd);

[android-developers] Display a numeric keypad on activity without an input area

2010-10-21 Thread draf...@gmail.com
I use the following code to pop up the soft input keyboard in my Activity --- InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.getInputMethodList(); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); --- This displays the

[android-developers] Listen for key presses on Numeric keypad?

2010-10-21 Thread draf...@gmail.com
I use the following code to listen for the key presses of 0 - 9 from the soft input keyboard on Android: --- @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_0)

[android-developers] Unusual Android Error

2010-10-12 Thread draf...@gmail.com
I have an Activity that uses a ListView to simply display a list of options for a user to select and when they select an option they are taken to a new Activity. However on occasion the Activity with the options freezes when I try to select one of the options, I get the ANR and in the log cat

[android-developers] CheckBoxPreference default value

2010-10-11 Thread draf...@gmail.com
I have the following XML code for my CheckBoxPreference: CheckBoxPreference android:key=pref_boot_startup android:title=Auto start android:defaultValue=true / But when I retrieve the preference in code the value is false. sharedPreferences =

[android-developers] How to decrypt an XML file?

2010-09-24 Thread draf...@gmail.com
0 down vote favorite I am trying to to download and decrypt an encrypted XML file. I have implemented the download part and have tested with an unencrypted file and it works fine. However I now need to be able to download an XML file that has been encrypted using AES and the key So I

[android-developers] how to get specific preference in Java code from an XML preferences file?

2010-09-23 Thread draf...@gmail.com
I have the following code in my application in res/xml/ preferences.xml: PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android PreferenceCategory android:title=Wi-Fi settings EditTextPreference android:key=pref_voice_threshold_top

[android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread draf...@gmail.com
In my application I use an AsyncTask on start up of my Activity to fetch the ringtone of a particular contact. It works normally but I have noticed that if the application is stopped twice before the AsyncTask gets to the doInBackground method then when the Activity starts again the AsyncTask

[android-developers] how to make sure my Service is restarted?

2010-08-31 Thread draf...@gmail.com
0 down vote favorite I have an Android application with a background running Service. When the Service crashes or gets killed by Android I can see that Android tries to restart it again. However the Service never actually restarts, I can see Android scheduling the restart but it new

[android-developers] onBackPressed() not working

2010-08-24 Thread draf...@gmail.com
I have an application building against Android 2.1 and I want to override the back button. I have followed the example here: http://android-developers.blogspot.com/2009_12_01_archive.html And my code is as follows: --- @Override public boolean onKeyDown(int

[android-developers] Slider devices cause Activities to reset…

2010-08-20 Thread draf...@gmail.com
While testing on Android 1.6 using a G1 I have noticed that when I slide out the keyboard it kills the activity and recreates it even though I have set my activity to only display in portrait mode. Same happens when I push the keyboard back in. I get onSaveInstance, onDestroy called, then

[android-developers] Re: Slider devices cause Activi ties to reset…

2010-08-20 Thread draf...@gmail.com
/activity-element.htmlhttp://developer.android.com/guide/topics/manifest/activity-element.h... On Aug 20, 2:17 pm, draf...@gmail.com draf...@gmail.com wrote: While testing on Android 1.6 using a G1 I have noticed that when I slide out the keyboard it kills the activity and recreates it even

[android-developers] Re: Slider devices cause Activi ties to reset…

2010-08-20 Thread draf...@gmail.com
... On Aug 20, 2:17 pm, draf...@gmail.com draf...@gmail.com wrote: While testing on Android 1.6 using a G1 I have noticed that when I slide out the keyboard it kills the activity and recreates it even though I have set my activity to only display in portrait mode. Same happens when I push

[android-developers] Key Dispatching Timed Out

2010-08-12 Thread draf...@gmail.com
In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog appearing. Here is what gets printed in the log: --- WARN/WindowManager(88): Key dispatching

[android-developers] How do I capture and loop video to the screen?

2010-08-09 Thread draf...@gmail.com
I was wondering if anyone knows of a tutorial explaining how to capture the video from the camera on an Android device and then display the video in real time on the screen? I have looked up MediaRecorder, MediaPlayer, Videoview but they all seem concerned with recording audio/video to a file

[android-developers] Re: Android Market Licensing: Now Available!

2010-07-28 Thread draf...@gmail.com
Really required in the Republic of Ireland too, Android devices are getting quite popular here and the time has come to open the paid market On Jul 27, 9:24 pm, Sebastian Rodriguez srodrig...@gmail.com wrote: I agree with Anton Persson. When will Google realize that opening the paid market to

[android-developers] How to change target build on Android project?

2010-07-27 Thread draf...@gmail.com
I currently have an Android project in Eclipse. I created it with a target build of 1.5 (sdk 3). Now I want to change it so that it has a minSdk of 3 and targetSdk of 8. To do this I see that I must build against the newest SDK (2.2) To do this in Eclipse I right click on my project, go to

[android-developers] How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5?

2010-07-27 Thread draf...@gmail.com
I have the following piece of code in my Android application that looks up a contacts ID, I have just changed the target from 1.5 to 2.2 but with a min SDK of 3 (1.5) so that I can use the ContactsContract Uri in 2.2 and the People Uri in 1.5. However the code leads to the following error when

[android-developers] Android - Java Observer not working

2010-07-14 Thread draf...@gmail.com
I am having some trouble with implementing my own observer in Java on the Android platform. I have created a class call NetworkPathJni that uses an Observer interface class called NetworkPathJniObserver to notify other objects of changes. Here is the code for NetworkPathJni.java --- public

[android-developers] How to create Multiple instances of an Activity From a Service?

2010-07-01 Thread draf...@gmail.com
I was wondering is it possible to create multiple instances of a single Activity in Android? I currently start my own inCall screen for a Voip Test by using the following code: (Used in a Service) --- public void initInCallScreen(String pName, String phoneNumber, int contactID,

[android-developers] How To Override the “Back” button so it doesn’t Finish() my Activity?

2010-06-29 Thread draf...@gmail.com
I currently have an Activity that when it gets displayed a Notification will also get displayed in the Notification bar. This is so that when the User presses home and the Activity gets pushed to the background they can get back to the Activity via the Notification. The problem arises when a

[android-developers] How to save an object in onSaveInstanceState?

2010-06-18 Thread draf...@gmail.com
I have created a small XML parsing application for Android that displays information in a listview and then allows a user to click on the list view and a dialog with further info will pop up. The problem is that when the screen orientation is changed when a dialog screen is open I get a null

[android-developers] A clear, concise tutorial on PreferenceActivity Preferences?

2010-06-01 Thread draf...@gmail.com
I was wondering can anyone direct me to a detailed Preferences tutorial? Or provide me with a bit of help here? I have my preferences saved in preferences.xml as follows: PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android PreferenceCategory android:title=Wifi Settings

[android-developers] Does Observer not work in a Android Service?

2010-05-31 Thread draf...@gmail.com
I am using the Observer pattern in my Android application to notify a running service that some data has changed: Here is the code outside the Service: (WifiConnectionManager) --- //Observables @Override public void NotifyQCLevelChange(QCLevel newQoSLevel) {

[android-developers] SendOrderedBroadcast Help

2010-05-31 Thread draf...@gmail.com
I am trying to use a sendOrderedBroadcast in my Android app. I want to be able to send the Intent from one of my applications to another and I then want to get data back from the Application that recieves the Intent, in this case a boolean true or false. Here is the current code: Intent i

[android-developers] How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread draf...@gmail.com
I am currently learning about widgets in Android. I want to create a WIFI widget that will display the SSID, the RSSI (Signal) level. But I also want to be able to send it data from a service I am running that calculates the Quality of Sound over wifi. Here is what I have after some reading and

[android-developers] Get Notified when a new access point is added?

2010-05-26 Thread draf...@gmail.com
I was wondering is it possible to get a notification of when a new configured network is added to the WifiManager in Android? I know you can get the current list of configured networks http://developer.android.com/intl/de/reference/android/net/wifi/WifiManager.html#getConfiguredNetworks%28%29

[android-developers] Issue with WifiManager.calculateSignalLevel(RSSI, 5)

2010-05-20 Thread draf...@gmail.com
I am trying to use the Wifimanager to calculate the Signal Level of the access points found during a scan. I am using the following method: http://developer.android.com/intl/de/reference/android/net/wifi/WifiManager.html#calculateSignalLevel%28int,%20int%29 But it appears to always return the

[android-developers] How to scan Access Points and select strongest signal?

2010-05-13 Thread draf...@gmail.com
I am currently trying to write a class in Android that will Scan for access points, calculate which access point has the best signal and then connect to that access point. So the application will be able to scan on the move and attach to new access points on the go. I have the scanning and

[android-developers] A couple of Rom questions for the experts

2010-05-06 Thread draf...@gmail.com
I have a couple of questions for the Rom developers/experts on here regarding things that can be done with Android ROM's. Is a parser Rom upgrade possible? So is it possible to change a small part of a ROM and then allow users to upgrade their ROM easily? So can I change a part of a ROM and then

[android-developers] Some connectivity questions

2010-05-05 Thread draf...@gmail.com
I have a couple of questions about connectivity on Android, if anyone has any insight it would be great. What is the default when an application wants to wirelessly connect? Is it wlan? And if wlan is switched off or there is no access points around is it 3g or gprs? Is a device always ip

[android-developers] Querying the SMS ContentProvider?

2010-04-06 Thread draf...@gmail.com
I currently register a content observer on the following URI content://sms/ to listen out for incoming and outgoing messages being sent. This seems to work ok and I have also tried deleting from the sms database but I can only delete an entire thread from the following URI

[android-developers] Subscribe to onDialogClosed

2010-03-24 Thread draf...@gmail.com
Can anyone give me an example or explain to me how i subscribe to the onDialogClosed method of an EditTextPreference? http://developer.android.com/intl/fr/reference/android/preference/EditTextPreference.html#onDialogClosed%28boolean%29 I want to know when a dialog have had its OK or Cancel

[android-developers] How to add my own Audio codec to AudioRecord?

2010-03-10 Thread draf...@gmail.com
I currently have a Loop back program for testing Audio on Android devices. It uses AudioRecord and AudioTrack to record PCM audio from the Mic and play PCM audio out the earpiece. Here is the code: public class Record extends Thread { static final int bufferSize = 20;

[android-developers] Supress the native In Call Screen and replace with 3rd party?

2010-03-05 Thread draf...@gmail.com
Currently creating a VOIP application for Android and I was wondering is there any possible way to supress the In Call Dialog when sending a call over GSM and use our own 3rd party In Call Dialog or screen instead? At the minute when we switch from our VOIP call and send it over GSM via the

[android-developers] Re: Screen gets locked with 'call end' button, how to unlock?

2010-03-05 Thread draf...@gmail.com
End call key locks the screen on my HTC Hero, to unlock it I press the menu key On Mar 5, 9:50 am, Sachin sachinpandh...@gmail.com wrote: Hello, We have ported Android Eclair on our target. After booting the Android and unlocking the screen first time, if we press the 'call end' button then

[android-developers] Is it possible to have 3G and Wifi connections at the same time?

2010-03-05 Thread draf...@gmail.com
Hi all, I was wondering does anyone know if its possible to open a wifi and a 3g connection at the same time on Android? Is there any way to control access to both Wifi and 3g/GPRS data connections and use them at the same time? -- You received this message because you are subscribed to the

[android-developers] intents getting incrementing each time received?

2010-03-01 Thread draf...@gmail.com
Hi all, I have started using custom intents in my application and I have come across a bit of a problem. When I send a custom intent I register a Broadcast Receiver and I catch the intent no problem. However problems seem to appear when I send the intent again, the Broadcast Reciever seems to

[android-developers] Ringtone.stop() wont work?

2010-02-26 Thread draf...@gmail.com
I currently start a Ringtone on Android and it plays fine. However when I try to stop the ringtone it doesn't stop or atleast doesn't stop straight away, it will keep in playing until it just plays out. Here is how I set up the Ringtone: int rm = audio_service.getRingerMode(); int vs =

[android-developers] About box in application manager?

2010-02-08 Thread draf...@gmail.com
I was wondering does anyone know how to give an Android application an about box in the application manager? So when a user goes to Settings Applications Manage Applications and clicks on an app there is an About box there that the user can click and info about the app pops up. You can see

[android-developers] Activity seems to get attached to Dialer context?

2010-02-05 Thread draf...@gmail.com
Hi all, I currently have an application that listens out for the out going call broadcast, when I recieve the broadcast I pop up an activity on the screen with some user information. The user can then press end to remove this screen. It all works fine however I have a problem when I hold down

[android-developers] Is passing AMR_NB into AudioTrack and AudioRecord valid?

2010-02-03 Thread draf...@gmail.com
I currently use AudioTrack and AudioRecord to create a looping sound program and I was using raw PCM audio but I want to use AMR_NB audio so I set up the code as follows arec = new AudioRecord(MediaRecorder.AudioSource.MIC, 11025,

[android-developers] Android - minimal UI, services or broadcast recievers?

2010-01-28 Thread draf...@gmail.com
I have an application that will have no User Interface (not exactly none altogether but VERY minimal). I want it to scan for Wifi access points at regular intervals, check the connected state of Wifi and check the connected level of the currently connected access point. It also listens for the

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-26 Thread draf...@gmail.com
, AudioManager.ROUTE_ALL); However I've yet to find a solution for 1.6 + Any help would be greatly appreciated Thanks On Mon, Jan 25, 2010 at 9:19 AM, Donal Rafferty draf...@gmail.com wrote: Hi Ani, I am working on 1.5 (CupCake) and have tried to use the setRouting method, however the audio still

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-22 Thread draf...@gmail.com
the AudioRecord and AudioTrack stuff works. Just polishing some of it up to release my first app, but glad it could be of use to someone else as well. I look forward to that pint ;-) Mike On Jan 21, 5:23 pm, Donal Rafferty draf...@gmail.com wrote: Thanks Mike, Your a legend, have

[android-developers] Loop audio from mic to earpiece?

2010-01-21 Thread draf...@gmail.com
Hi all, I was wondering is it possible with Android to record from the mic and play the sound back out the earpiece with just a 1 second delay? I have seen the tutorials and can currently record from the mike and save a 3gp file to the sd card. However is it posssible to record and say stream

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread draf...@gmail.com
into AudioTrack and you should be able to acheive the desired effect. I have done something similar, but without the delay. Mike On Jan 21, 11:28 am, draf...@gmail.com draf...@gmail.com wrote: Hi all, I was wondering is it possible with Android to record from the mic and play

[android-developers] Re: Loop audio from mic to earpiece?

2010-01-21 Thread draf...@gmail.com
other things. If you set the stream to STREAM_VOICE_CALL it might come through the earpiece as this is where a call would be routed, although I guess that depends on headsets and stuff. Can anyone clarify if I am right? Mike On Jan 21, 11:49 am, draf...@gmail.com draf...@gmail.com wrote

[android-developers] Cant get data from my service

2010-01-19 Thread draf...@gmail.com
I have a service that is running fine and I can see the data collecting in the logcat, However after creating an aidl and trying to get the information from the service to my main activity I have hit a problem. I just cant seem to get the data to pass across at all, I always get a null pointer

[android-developers] Re: READ_SMS permissions not working

2010-01-18 Thread draf...@gmail.com
that will let me do this? Is there some way of doing it with the official API that I have missed? Thanks in advance On 15 Jan, 18:58, moneytoo m...@seznam.cz wrote: Use content://mms-sms instead if you must but I would recommend you to stick with the official API. On Jan 15, 3:50 pm, draf...@gmail.com

[android-developers] READ_SMS permissions not working

2010-01-15 Thread draf...@gmail.com
Hi all, I keep getting the following error: 01-15 12:29:28.155: ERROR/DatabaseUtils(115): java.lang.SecurityException: Permission Denial: reading com.android.providers.telephony.SmsProvider uri content://sms from pid=1004, uid=10054 requires android.permission.READ_SMS Even though I have the

[android-developers] Cant find my content provider?

2009-12-21 Thread draf...@gmail.com
Hi, I have written the following content provider, but when I try to pull information from it into an array, I get the following error: 12-21 15:14:18.627: ERROR/ActivityThread(1160): Failed to find provider info for cicero.org.provider.CiceroContentProvider I presume its something to do with

[android-developers] managedQuery - Nullpointerexception

2009-12-17 Thread draf...@gmail.com
Having a problem with the managedQuery below, I am trying to get the value of the CallLogs.Calls.TYPE or in other words the type of the call, missed, answered, dialled. however I keep getting this error 12-17 15:17:50.580: WARN/System.err (1488): android.database.CursorIndexOutOfBoundsException:

[android-developers] Call Log Questions

2009-12-16 Thread draf...@gmail.com
Hi all, I have been trying to Query, insert and update the Call Log for the past few days. Query is fine, have no problem with that. But I'm wondering does the content provider allow you to add a new event to the call log or update events already on the call log? I see there is no

[android-developers] Adding, Editing, Deleting entries in Androids call log

2009-12-15 Thread draf...@gmail.com
Hi, I have been looking at Androids call log content provider and have managed to pull the data from it and display it in my own app. However I want to be able to write to the call log, is there anyway of doing this? -- You received this message because you are subscribed to the Google Groups