Hi!
I have a web service, .asmx that when consumed gives a response in the form:
<lData>
<name>...</name>
<posx>..</posx>
<posy>...</posy>
</lData>
I use Ksoap2 to consume the web service in Android, and I see the response as a string anyType {lData=anyType{name=....;posx=....;posy=....;};}
So, I get the right data from my web servi...
When calling Location.distanceBetween() and getting the initial and final bearing, what scale is the bearing in? I'm getting negative values, which doesn't make sense to me. Bearing goes from 0 to 360 degrees (relative or absolute, it doesn't matter). The only thing I could think of is N through E through S is 0 through 180 degrees, a...
I'm looking for a way to show and hide the statusbar with an onClickListener, but only showing it works.
WindowManager.LayoutParams lp = getWindow().getAttributes();
if (isStatusbarVisible)
lp.flags = LayoutParams.FLAG_FULLSCREEN;
else
lp.flags = LayoutParams.FLAG_FORCE_NOT_FULLSCREEN;
getWindow().setAttributes(lp);
isStatusbarV...
It seems background images are automatically shrunk in Android, for example, I use setBackgroundDrawable to set background of a view:
Drawable background = getBackground();
myView.setBackgroundDrawable(background);
Instead of shrinking, I want the image to be cropped to fit the screen size. How to do it? Thanks.
...
I have a service that is defined as:
public class SleepAccelerometerService extends Service implements SensorEventListener
Essentially, I am making an app that monitors accelerometer activity for various reasons while the user sleeps with his or her phone/device on the bed. This is a long-running service that MUST NOT be killed during...
I have read that in-call audio is not available to SDK applications. Does that mean that there is no way by which we can access the uplink/downlink audio stream?
I don't want to do any call recording but instead I would like to use VOICE_CALL or VOICE_UPLINK or VOICE_DOWNLINK through my app which is interfaced with the bluetooth heads...
I am porting an application from iPhone to Android, in one of the screens the user can choose a value for a field. This value is selected from a list that has this form (the app in the screenshot is unrelated to my app) :
Is there a similar control or a design pattern in Android to represent the same idea, a categorised selection list...
I'm trying to disable a TextView within a ViewFlipper via setVisibility to GONE and cannot get it to act like I'm wanting. My code:
switch(index) {
case 0:
//Do Stuff
findViewById(R.id.o2).setVisibility(8);
findViewById(R.id.o3).setVisibility(8);
break;
case 1:
//Do Stuff
findViewById(...
Hi,
Can you please tell me how can I do memory profile for an android application?
I want to find out how are the objects created and where did those created.
Thank you.
...
Hey!
I have a SlidingDrawer in my application. When it opens, I want everything underneath it to be blurred. Anyway I can do this? Thanks.
...
My app used to use a standard ListView, and registerForContextMenu(getListView()) and everything worked just fine.
I needed to change my app to accommodate nested lists so I replaced the ListView with ExpandableListView. I changed the Activity to ExpandableListActivity. I also changed my adapter to a tree adapter and implemented a custo...
I have a meeting with a newspaper to discuss working on an android app for a non-profit event that is held at my university (I'm a graduate) every year. They have an iphone app and are looking to have an android app made too. My friend who works on a committee brought my name up when they were asking about the app.
I'm very capable with...
Question:
Could more than one RFCOMM channels be created per time?
Testing method:
Create connections from Cellphone(Samsung GALAXY S) to two terminals in the PC. PC has two different bluetooth devices(build-in and USB dongle) and using different COM ports, say COM1 and COM2.
Steps:
Testing each connection from cellphone to differ...
Hiya folks,
I have a question about when you distribute your app with an existing DB.
Right now I've created a basic app, and from my understanding, the .db file should be in the assets folder, and when the user first runs your app it should check if the DB exists in the \data\data\ folder, if it's not there it should copy it over...co...
While configuring MJAndriod I have got an error as follows:
Project has no default.properties file! Edit the project properties to set one.
I have a default.properties which us set to a perfect target and works for another application in the same workspace.
Kindly help me resolve this.
...
I am struggling with getting a live radio stream to work on android. I am using the MediaPlayer class and just setting the URL and playing it. It works great for the most part, but after 5-30 minutes it inevitably dies. On 2.1 phones (more specifically a hero) I get this log output
W/MediaPlayer( 7919): info/warning (1, 26)
I/MediaPl...
I have written my own Exception (MyException) and implemented Logging and showing Error Messages in Form of Toasts. Here is the shortform of it...
public class MyException extends Exception {
public MyException(String msg) {
Looper.prepare();
Toast.makeText(Controller.getInstance().getApplicationContext(), msg , Toast.L...
My application has a portrait mode, and a landscape mode. I want the user to be able to force the landscape orientation by clicking on a button. How can I do this programatically?
...
I get a very common crash below from the code below.
I thought my try, catches will have handled that.
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.Fu...
Hi
i working on small facebook appliction but i have problem is to post message to wall can any one tell me how i can do that. i tried following type i get this error.
Please any one help me ....................
ERROR ==>>{"error":{"type":"OAuthException","message":"An active access token must be used to query information about the curr...