Hello all,
I am quite new to Android yet, and I have an application that has a webview on it.
I need to know when the webview finishes loading a page that has a random number of redirects (sometimes to the same page, and the order of the redirects also change), so I can remove the Splash Screen only when there is a fully loaded page.
...
What are the best practices to design webservices for mobile (particularly Android) apps?
Personally I'm focused on using JSON (and not XML) and I try to make it the less verbose I can. But I'm probably missing a lot of things.
...
Hello,
I have written a web application to run on Google AppEngine using the Restlet framework, communicating using json with web clients. Those work as expected. However, one specific resource written to provide response to an Android client doesn't work when accessed through Android. However, it does work when accessed through a web br...
Hi Guys,
I want to add fadeout animation for my splash screen, that is while closing the splash screen I want to bring the fadeout animation effect.
Here are the codes which I have tried.
overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
But the above can be used only from 2.0. Ny app should support from 1.5.
So I have se...
Hey,
Is there any way to nest APKs so that you can open one with another?
I am looking to wrap a bunch of APKs with some control options that can fire an APK when selected. Even if i can start with one opening one other it would be a start...
I have thus far tried the dex loader to no avail... Keep getting a load error in the log dump...
Hi all,
I'm new in android testing. All I've used in the testing is only the ActivityInstrumentationTestCase2 (AITC2) which is explained in the Hello, Testing tutorial.
I've made a test class using AITC2 and it runs well. But once I changed the base test class to SingleLaunchActivityTestCase (SLATC) I got RuntimeException specifying "U...
Hi!
I was using audiotrack to play some sounds in a loop. Now I need to know in which period of time I'm right now, so i decided to use setPositionNotificationPeriod which works quite good.
The problem is that it just work for the first "loop" but stop being called after that :\
The code looks like the following:
...
audioTrack.setPos...
Hi,
I was looking at Android music code to understand what party shuffle does. It appears that all that party shuffle does is to create a playlist whose length is the position of the song on the list + 7, and add a random selection of songs from the phone on to this list. Unlike normal shuffle, it seems a party shuffle does not care if t...
I have been lookling this but havent found a concrete example is there a way to click a specific point on a Map and then draw a overlayitem it?
...
Hello,
I'm a complete newbie on android (and Java), and got myself some example code from a Drag and Drop tutorial to play around with and try to understand. Doing fairly well, but this code generates the java.lang.ArrayIndexOutOfBoundsException error and a force close every second time the app starts.
I'm guessing it might be somethin...
Hi,
In Handler, we can pass some data from a background thread to the UI thread like this:
private void someBackgroundThreadOperation() {
final String data = "hello";
handler.post(new Runnable() {
public void run() {
Log.d(TAG, "Message from bg thread: " + data);
}
}
}
If we use the above, we ...
Hello with regard to the known issue of unwanted checkboxes being checked while scrolling through a listview, can anyone please give me an idea how to use a checkedTextView properly so that i can maintain check state properly when scrolling through the list. I thought the listview takes care of maintaining the checkbox state when using a...
Please help! I tried everything! :(
I've got a schedule Class, which is simply a custom ViewGroup (with custom onMeasure() and onLayout()), which enables me to place childs(=events) with LayoutParams for column/row start and column/row end. The number of childs and their LayoutParams depend on database entries.
Now I'm trying to add ch...
EDIT: Problem solved, FileOutputStream defined uncorrectly, change to:
fos = new FileOutputStream( root + "/" + saveFileName );
Hello, I have a problem writing to the SD card, here is the code:
(Sorry about the layout of the code, just copy pased it )
public class SaveAndReadManager {
private String result;
private String saveFileN...
Hi here there is a interesting problem!
I have this service:
public class SensorService extends Service implements SensorEventListener {
private static final String TAG = "MyService";
private MyServiceBinder myServiceBinder = new MyServiceBinder();
private SensorManager mSensorManager;
...........
private PowerManager.WakeLoc...
I am trying to get RGB values from the preview of the video in android...Can any one help me out with this please.
thank you
...
Hello.
I'm very very new on Android.
I want to put a TextView inside a LinearLayout that fills the 80% of LinearLayout's height.
How can I do that? or How can assign percentage on Widht and Height?
Thanks.
...
I am wondering what the best way to render a tournament draw (scrollable) might be for android. Since I am new to this, I was not sure whether to invest time creating a ListView sort of thing or dynamically building html pages and rendering them with WebView. Or I could plop everything into a regular scrollable text view, perhaps.
The ...
Hi all,
Im doing an app which uses sqlite db file in assets folder, There is a screen in my app having a button 'check for update'.
Client has given me an URL link to update db file(which gives a sqlite file).
When user clicks on the button i need to upgrade the old db file with new db file from URL.
I need to replace the old file at ...
I get that the android application is supposed to follow the Activity lifecycle, and I'm sure I'll get to fully implementing it. For starters though, I'm just trying to close the application when the user selects quit from an options menu, without crashing. Can someone help me out? I have a
public boolean onOptionsItemSelected(MenuItem...