Is there a way to retrieve the the amount of time since the battery has been charged?
It doesn't appear like there is a way to do so with BatteryManager, but they show it to you in the settings. I see it here source , but it doesn't appear like there is a way to grab it. Any help?
...
Hi Folks,
I have to do Login Authentication to post the tweets. I got the Jtwitter.jar and SignPost.jar file from this link. As far as i searched, the xAuth Authendication is more efficient. But i did not get any simple tutorial or piece of code for Login Authendication yet. I found this Article and used this code. thats get NullPointer...
In my program I have a dialogue-themed activity that pops up with an edittext and submit button that sends an sms message.
After the message is sent I want the phone to go back to whatever activity it was doing before (the dialogue is started by a broadcast receiver)
however SMSManager's sendTextMessage(...) method takes a pending inte...
Hi there
I selected API minimum level 1.5 for my android app and I'm just about to integrate gestures in to it which came in 1.6. Is there a way in Eclipse to change the minimum level from 1.5 to 1.6 halfway through building an app?
Many thanks
...
Hi All,
I spent sometime yesterday struggling with android layouts (... or better custom layouts). For general purposes forms the out of the box layouts that androids offers are more than enough. But when it comes to more complex use cases (let's take the example of the carousel with overlapping of images that are laid on an elliptic...
I am developing an Android app which needs to poll a specific webpage in time intervals. I've got it to the point where it does indeed poll the page on a specific interval, and that interval is specified in a SharedPreference which can be changed by the user in the settings page of the app. But complications arise when network connectivi...
Hello,
I have 16 ImageView objects on a view. For each one I am applying a composition of Rotation and translation by using the AnomationSet object. However the startAnimation method has to be called for each view. Currently I have a for loop and for each ImageView I start the animation passing the AnimaitonSet object.
1) Is there a ...
I am following very closely to the sample codes in the resources for TicTacToeLib as well as an example of how to display a bitmap in a book titled Android Application Development. I am doing all the same things they are doing, the only difference is I am using a SurfaceView instead of a view. Can anyone tell me what I am doing wrong? T...
I have two Image Views that are two football helmets facing each other. I'm wanting to center them and then offset them left/right a little to provide a little space between them. Here is one of the image view's xml at the moment.
<ImageView
android:id="@+id/hometeam"
android:scaleType="centerInside"
android:layout_width="fil...
I finally got everything in my app done, but now whenever I exit it with anything except the Home button, it flashes a force close screen, and then it goes away. I know its not that big of a deal, but I really want that to stop happening, I finally got a logcat on it and it said there was no super.onStop(), so I added that, then it force...
hi i am looking for a good tutorial on android's tilt control functionalities. the only ones i have seen so far are for android 1.6 or above, i need a tutorial for android 1.5. thanks.
i actually have succeeded in implementing tilt control with android 1.5. my app mainly uses the orientation sensor and the accelerometer sensor to upd...
I just got burned by a widget. I could see the cause of the problem, but I could not determine why or its solution. My widget was issuing a search (SearchManager) and the activity launched a search dialog, but when it called-back to my widget, it created another reference to the widget (i.e., the thread-id was the same, but the widget-...
Hey all,
I'm wondering if anyone knows of any method for taking a bunch of text and displaying it in a ScrollView that has multiple columns that scroll horizontally.
I'm trying to create an experience very similar to Aldiko or the Kindle app in which the user can tap left or right to go to the previous or next page of text.
Hope this ...
I'm trying to understand remote services at the moment and everything works fine, i can start the service and know how to communicate with it through the AIDL-interface. My problem is that the service seems to still run in the same process like the activity it was started from, because the activity crashes too, if there is an error throw...
I've created a custom view in an SQLite database for an Android application.
I'm using Sqliteman on Ubuntu to test my SQL statements before I put them in my app.
I'm trying to do a simple select statement on my view.
The select statement works fine in SQLiteman but when I put the same statement in my code it throws an error.
The state...
Hi,
How can I create a dialog with each dialog item being a label and then a checkbox?
And when user click 'ok' to the dialog, I can tell in my code which on of the dialog item has been checked?
Thank you.
...
I have an Android app which I distribute to several different market providers; the app is functionally the same for each, but requires certain distinct configuration parameters. Ideally I would like to produce all the individual APKs in one build step. Is there an "official" way to achieve this?
I am considering an approach in which ...
Hello, when i try to animate custom View (created in java code), there is no effect, animation doesn't start. This is how i do that:
final Animation animation = AnimationUtils.loadAnimation(this, R.anim.animation);
final CustomView background = new CustomView(this);
background.setBackgroundResource(R.drawable.bg);
backgr...
I'm applying an AlphaAnimation to a Button. The animation is extremely simple.
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="500"/>
On the emulator, the button fades...
I am doing some work in Android and have a lot to learn, but have created an app that generates some sounds. I would like to be able to store the sounds to an audio file while they are being generated. If that is possible, I would appreciate any advice on where to look for answers. Thanks.
...