I have a tile based image viewer which scrolls and zooms. Everything works fine...but when the gc fires up there is a bit of a lag I want to get rid of.
At the moment, I have no recycling method to my bitmaps for the tiles not onscreen anymore.
Would it make a difference if I did recycle the bitmaps once they go off screen using recy...
I am trying to do a listview which looks like this:
It has two parts, the left is left-aligned and contains two textviews which are single line and truncated.
The right is part also has two textviews but they are right-aligned and have constant size. The main problem is that the right part does not align to the right.
If I use a stati...
I want to build an activity with similar layout as of the 'CAR HOME' app provided with the Android Emulator.
Any hints will be helpful. I am currently trying GRID VIEW, but not able to populate the complete screen. Also, when the orientation changes to landscape, it all get screwed.
If anyone has achieved this, please help me with the ...
What is an effective way to determine how much free space is on the SD card?
...
I have 2 threads, one that decodes bitmaps from the assetManager, and another that is my SurfaceView. When i set the priority of the bitmap decoder very low, i actually get more lag then if its much higher. Why would it act like that? thanks.
Heres my code:
public void bitmapLoader(final String filePath,final int pathVariable) ...
This is my first time using jodatime and i've got a stackoverflow error that i have no idea how to fix. I'm creating an android app that needs to be able to display the days between when a sqlite record was created and today. As far as i can tell everything is working correctly except jodatime. I got this error when building the project
...
I'm trying to figure out how to launch an activity in my app from a custom URI such as myapp://myuriactivity
I've read a lot about the intent and intent filters in the android references and also read several examples, but for some reason I can't get my simple test to work. Below is my manifest file, can anyone tell me what I'm doing w...
I have a service running (Socket), this is how i start the service.
Intent s = new Intent(this, Socket.class);
startService(s);
in every activity i check for the user to select the home button, as soon as the home button is clicked i need to destroy the socket, so i have the below code on every activity in my app:
@Override
public bo...
Hi I am generating the random numbers and do some functionality with that .but when i change the otientation new random numbers are coming.But I want portrait random nimbers.For this give me some suggestions.Thanks in advance
...
This question seems embarassingly simple, yet it vexes me still. I am using the standard ADT and Eclipse Android environment to build my Android app. The apk is named after the project name in Eclipse, but I want to name the apk something different...How can I customize the name of the apk artifact that is produced when the project build...
hey guys i am gonna organise a short seminar based on Android Applications i need answers of a few questions written below...
please help me out!!
history of android??
how did it come into existence??
why the image is of cartoonise human robot that green colored pic??
what was goolge motivation when it thought of introducing andorid ...
I'm sure all must have seen Twitter application for android. How can i show livewallpaper inside application on my dashboard screen, just like twitter is doing.
I need to do the same thing as they have done, where and image will keep floating around when user views home screen of the application.
Any help would do!!!
Thanks in advance...
I have a mapview with location overlay items. Now when the user clicks
the overlay item pin/marker, I need to display a dialog with
corresponding people at that location.
Now since some places have more than one person at the same location,
I am trying to display them as a list. this part works fine.I want the
ListView Layout to be wrap...
I have code that connects to an FTP server and gets an input stream to a file which works wit smaller files, but doesn't work at all with larger ones. It simply returns null each time, yet when I paste the full url into a browser it works fine. Here is my FTP download code:
publishProgress("Downloading...");
try {
...
Hello all,
I know i am doing a small mistake.
I am using LinearLayout and i want to place the "icon-image" at "Center".
I am using the following code:
<LinearLayout
android:id="@+id/LinearLayout01"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
...
I have a SQLite db that size is over 2.6 GiB. (The db contains maps.)
This db is used by RMaps app. When move the maps to some parts at maximum zoom, the app suddenly closes. However, there is no force close message, no report button. So, I've got an idea that it is caused by reading blocks that are beyond a certain limit e.g. max(int). ...
Hi everyone,
Trying to figure what's wrong with my codings. I followed a blog post from here.
I managed to get the codes to actually upload the file to a PHP web service. However, for some reason although I've set explicitly the MIME type for the file, PHP shows that the MIME is just a blank string and therefore rejected.
Here's my co...
Hello all,
I know we can set the following value to the anroid:gravity and android:layout_gravity :
center
center_vertical
center_horizontal , etc.
But i am confused regarding these both.
what is the difference between the usage of android:gravity and android:layout_gravity?
...
Hi,
I have installed all the pre-requisite to start android development.
Installed JDK
Downloaded and unzipped Android SDK and ran SDK.exe. Selected the SDK i wanted to work with.
Installed Eclipse.
Downloaded ADT and configured it for eclipse.
Created a AVD.
6 Created a new Hello World project.
Set teh run configuration pointing the ...
Hello,friends:
I'm doing a simple program using "MultiAutoCompleteTextView" to prompt the common words when I
inputing several letters.
code:
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this,
android.R.layout.simple_dropdown_item_1line,
ary);
MultiAutoCompleteTextView textVi...