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
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
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
), 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
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
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
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
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);
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
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)
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
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 =
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
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
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
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
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
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
/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
...
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
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
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
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
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
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
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
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,
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
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
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
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) {
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
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
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
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
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
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
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
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
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
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;
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
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
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
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
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 =
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
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
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,
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
,
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
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
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
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
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
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
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
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
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
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:
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
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
62 matches
Mail list logo