Im currently developing a program that uses a scrollable/zoomable image as the main user interface. It uses a canvas which is manipulated by a matrix to traverse a large area. Instead of loading a super large bitmap into memory, i wanted to employ a tile system to load 256 by 256 squares. My problem is that the app will lag when the ima...
I am trying to add a yes/no confirmation popup to an android OnClickListener. Is it OK to use an AlertDialog.Builder in a setOnClickListener or should I be taking a different approach? I have stepped through the following code using the eclipse/android debug environment and expect the popup to appear at the .create, awaiting user respons...
Saving the file:
FileOutputStream fo = null;
try {
fo = this.openFileOutput("test.png", Context.MODE_WORLD_READABLE);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
bitmap.compress(CompressFormat.PNG, 100, fo)
Loading the file:
String fname = this.getFilesDir().get...
I want to implement 4 threads as services in android. How di i do that. Can anyone suggest a good example for the same.?
...
I've seen some apps like dolphin browser (not the HD version, the normal one) utilizing a cache-to-sd for webview but i can't seem to figure out how to do this, does anyone know how to do this or point me in the right direction? Any help is greatly appreciated! Thanks :)
...
I'm a web designer by nature, accustomed to changing resolutions and font sizes, but I'm unsure how to design for the Android platform without knowledge of screen sizes, especially when the screen rotates from portrait mode to landscape.
Should I just do generic things that tile, or is there a way to design things of static size?
By t...
Is there a good sample application for creating android services that run in the background?
...
I am trying to stream videos from a URL into my app. I have been saving it as an mp4 and cannot get it to work. I was able to hear sound but couldn't see any video. I am trying to do it using Adobe After Effects CS4 and Adobe Media Encoder. I was hoping someone could tell me what settings I need to use in After Effects to allow me to...
Hi All
I am quite new to Android and Java
I am looking for example of how to use this class:
SingleLaunchActivityTestCase
Till now I am using class InstrumentationTestCase but the problem is that for each launched test case Android calling onSetup() and TearDown()
Need help urgently
...
I need to know when the user touches/taps/clicks the edittext in my activity.
How can I do this without interrupting the events, so the keypad still displays properly?
(And I need to know about it before the OS displays the keypad...if possible)
...
I am trying to set up Eclipse 3.5 with the Android plugin. I followed all the steps and everything installed fine. However, running the SDK and AVD Manger throws a connection refused error. I am behind a firewall at work and can not bypass it.
How can I install the Android platforms without using the manager?
...
Yeap. I want to change my ** webview's background color and font size.**
How i can for it?
...
Is it possible to define the transition between two activities for Android 1.5 and better? I would like an activity to fade in.
...
I download
android-sdk_r06-windows_2
eclipse-java-helios-win32
ADT-0.9.7
jdk-6u21-windows-i586
apache-ant-1.8.1-bin
and i follow google guide but i can't install android because
when i want to run android sdk below error occur
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, r...
I'm trying to implement an persistent TCP connection between an Android phone and a desktop server.
I've got heartbeat threads on both ends which are sending keepalive-packets on application level successfully.
The problem is that after a while (varies between 5-20min) the phone is starting to send TCP keepalives to the server, which t...
I was testing a webpage that I designed on my Android 2.1 browser but it complains with the following:
error on line 1 at Column 39: Unsupported encoding ISO8859-1
Is there anyway to solve this problem?
...
I recently picked up a phone running android 2.1, and I have rooted it and I keep trying out new roms. My big problem is that I keep having to manually copy my files from the phone to my network share. I tried Titanium Backup, and it worked well enough, but I still have to move files from the sd card to a different location.
Does anyo...
I have a service which creates a notification and then updates it with certain information periodically. After about 12 mins or so the phone crashes and reboots, I believe it is caused by a memory leak in the following code to do with how I am updating the notification, could someone please check/advise me if this is the case and what I ...
Hi,
This question actually has two parts.
The first part:
I've been developing my first app for a couple of weeks now. I have 5 screens and everything seems well. However, I'm considering changing the app's navigation to a TabView.
I haven't delved much into it, but I'm hoping someone can save me a little bit of time. It seems that p...
Ok, so currently I have this code in my program:
public void delete(String id, String name, String phonenumber, String time, String message)
{
String[] args={id};
getWritableDatabase().delete("texts", "_ID=?", args);
}
It works fine, and deletes the specified row. However, I also want to implement it so that I can delete the...