I have a program with a function copied below it plays a sound upon clicking a button. If you click the button 10 times 10 different media players play the same sound that is the way i want it but how can i assign a button to stop all 10 media players at a time like a "STOP ALL BUTTON"
public void onClick(View v){
int resId = 0;
int s...
Hello again...
I have a widget which is a TimePicker that retrieves the time saved in a field in a database.
Thing is that when the user changes the time value in the widget, this is not being saved in the database.
So I came across the setOnTimeChangedListener method that works like a charm, if you are only using the plus and minus s...
I have created an application that loads a website using WebView. Everything works fine except that I'm unable to play any video files within the application. So, what I'm looking for help on is getting my application to launch the mediaplayer when I click on a link ending with .mp4. Any help and tips would be much appreciated!
...
alright first off i will say that im definitely newer to android programming than most.. i think that i am picking up quite quickly however i think that the program that im looking to eventually create is a bit out of my league right now considering my level of knowledge.. im hoping someone here can either tell me what i need to do so i ...
In my case I want to write an app which is totally symetrical (not client-server) with identical functionality at two PCs, one a 'standard' Windows or Linxu box and the other an Android slate.
Can I run the same program on both or do I nneed to wrap it in an Android package for persmissioons, etc?
The two PCs will communciate by TCP/I...
Hi all,
I have a service that starts and binds correctly when it's first called, but successive bindings to that same service fail when called by other activities.
The code:
activity.startService(new Intent().setClass(activity, ServerListenerService.class));
xmppServiceConnection = new ServiceConnection() {
public void...
Has anyone ran into an issue with overriding onKeydown where the system kind of freezes for a second? I ran into this with a custom surfaceView, so I did a small test. I created a super simple activity with a counter that just updates a textview:
int count = 0;
@Override
public void onKeyDown(int keyCode, KeyEvent event) {
count++;...
Here is my code. everything works great except the orientation, it reloads every time I rotate the phone it reloads to the home page, it is a pain. can anyone tell me where the problem is.
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.G...
How could I tell to my BroadcastReciver to do something after the user insert the SIM lock code and the device are ready for the normal operation? wich intent ACTION I need to listener and set in the manifest?
Thanks
...
I have to create a UI with components(TextView, Bottons etc) placed at particular coordinates as specified in an XML coming from a server. I am currently using AbsoluteLayout but since its deprecated i want to use some other method.
...
I have a number of images in my directory.
I want to show random images in ANDROID.
Please anyone provide me with an example.
...
I try to send an image over bluetooth to another device. This works mostly fine, but sometimes, I get a StreamCorruptedException: Wrong format: 0x27 on the receiving device. Anybody knows what this means? And how can I avoid that?
...
I am trying to download a zip file using HttpCLient 4 and it is going at around .5 (kilobytes/kilobits)? per minute. The file is less than a MB large, and the download will probably take an hour! Am I doing something wrong? How else should I do this? Here is my current implementation:
@Override
protected Uri doInBackground(S...
I want to send a username and password to a php page in android.
how do i do this using httpost
i.e i want to get the values using POST in the PHP page.
Please give me an example.
Thankyou
...
I would like a receiver to show an activity even if the device is in sleep or locked mode.
It works well, the only issue is that it is not displayed if the device is locked.
i tried working is the power management, and the receiver does acquire the lock but still it doesn't do the job.
...
Hi,
I wonder,
how can I draw a nice flight route between 2 points on a google map's
MapView?
look at this:
http://maps.forum.nu/gm_flight_path.html
this is exactly what I need.
thanks!
...
Hi I am developing an Android App where I require a user to authenticate his session before using the app. One way is to store a user name and password by asking him to register on the app and then use that to authenticate him. But i was looking to do something else, maybe use an OpenId account to authenticate or Opensoial or something l...
Hi there,
for quite a while I have been trying to solve an issue with a Null Pointer Exception while populating a ViewStub. What I am trying to do is within a SlidingDrawer that contains some imageButtons and ViewStubs to fill in the ViewStubs when an ImageButton is pressed. I have been following the ViewStub Class Overview to create th...
Hello All,
I have a friend who is quite a capable programmer, especially considering that he is blind. Now he would like to start developing for Android. But, the problem I see him running into is that there appears to be no accessibility features for the Android emulator. Ideally he would be able to have his computer read the conten...
Hi,
I have created an application that read messages with voice. I would like to pause any running media player when a message arrives in order to make the voice more clear. Is there any intent that could achieve this aim? I have noticed that google navigator, for example, is able to pause media player (and other music app like pandora)...