Hi,
I am very new to android development and have been trying to draw a square comprised of multiple smaller rectangles of different colours... Like a Mosaic essentially.
Basically at the moment I am reading values from a file which assigns the colour to the smaller Rects. I am using a pair of nested for loops to try to draw the small...
Hello, i recently customized the UI of my tabs by setting a backgroundResource on each tab, then switch between selected / unselected depending on which tab is currently in focus. I got one problem though, there seems to be a white border that comes with the tabwidget by default that stretches over to the other (unselected) tabs at the b...
i overlapped opengl view and camera preview, and it shows everything at fresh start.
but after backed from child activity (after onResume()) opengl objects not appeared anymore.
i found some discussion about this weird problem, but i can't use following solution, because i should call child - map activity.
http://groups.google.com/gro...
I am reading a few thousand items out of a database in my Android app and want to show a loading dialog, start a thread and read the database then close the dialog and then populate a listview with the data.
I cant seem to figure this out.
I have the dialog pop up and disappear but I don't know how to populate the listview after the ...
When using this class I get this strange exception. It is used to print out a nice timer display for my game, and is created when my main GameView class is created. The error gets thrown at line 26: super(s*1000,1000);
package tommedley.android.game;
import android.content.Context;
import android.graphics.Canvas;
import android.graphic...
Has anybody used jodatime with android? I'm getting a force close with no trace.
package test.journal.help;
import java.util.Date;
import org.joda.time.DateTime;
import org.joda.time.Days;
import android.app.Activity;
import android.os.Bundle;
public class journaltester extends Activity {
/** Called when the activity is first cr...
I have some text encoded in ISO-8859-1 which I then extract some data from using Regex.
The problem is that the strings I get from the matcher object is in the wrong format, scrambling chars like "ÅÄÖ".
How do I stop the regex library from scrambling my chars?
Edit: Here's some code:
private HttpResponse sendGetRequest(String url) th...
Alright, so I've got this OpenGL tutorial I'm basing from, my current code is equivalent to Part II of it, which is here:
http://blog.jayway.com/2009/12/04/opengl-es-tutorial-for-android-%E2%80%93-part-ii-building-a-polygon/
The code for that can be downloaded near the bottom of the page. It leaves you with a white square, and I want t...
I am trying to mimic buttons (Apps, Games, Downloads) as seen in Android Market application
Checking the configuration of TabWidget, I think it's not possible to create this simple design with it. I decided to use simple buttons and try to create custom design following answer to similar question. But still I cannot clone the design (...
Hi All, I am experimenting with using a WebView to display Flash content inside my activity. Everything is working pretty well, but when the user hits the home key to put the activity into the background, the Flash content keeps running (sound keeps playing, etc)
I have noticed that both the stock Android browser and Dolphin Browser see...
What concepts in desktop application development (e.g. Java, WPF, Cocoa) are closest to Android's fundamental concepts like Activity, ActivityGroup, and Intent? (And what are the nuances to how they differ?)
...
I have just started with Android development, and facing one issue in the android application.
When application tries to read the data from file (raw resources), it throws IOException on readLine() function. code is as below:
final Resources resources = m_ApplicationContext.getResources();
InputStream inputStream = resources.openRawRes...
Is it possible to programatically push a file into the SD card of an Android device over the network? How can this be done?
...
Hi,
In AirplaneModEnabler.java present in ..\packages\apps\Settings\src\com\android\settings, the handler looks for EVENT_SERVICE_STATE_CHANGED to toggle the state of the checkbox and to display the summary.
When and from where is EVENT_SERVICE_STATE_CHANGED triggered? Currently the airplane mode functionality is very weird. I need to ...
Friends,
I need to fetch data from SQlite Db and set it on List View,it fetches data has well but the view showing on screen being empty,anybody help me to get the content to visible.
...
Hello everyone,
I've read several example programs and tutorials to try and solve my problem but they all seem to go the same way. I've used a couple Activities and xml documents to create a menu that loads when my game starts. When the user clicks the "Start The Game" button, it loads a new Activity that sets the view with my game th...
I understand, at least on paper, the basic difference between the Content Provider and just directly accessing the SQLiteDatabase. I have a functioning prototype for my application, and currently it is just directly hitting the database. I don't really have any experience using the Content Provider pattern, but I have found out that I ...
I'm parsing large XML document using pull parser (org.xmlpull.v1.XmlPullParser). When I reach specific node I want to grab it and all its children as chunk of text (or just children is OK too) and save as String. What would be efficient way of achieving this? Anything better than (in essence) buffer.append('<').append(xpp.getName()).appe...
Hello everyone,
I've read several example programs and tutorials to try and solve my problem but they all seem to go the same way. I've used a couple Activities and xml documents to create a menu that loads when my game starts. When the user clicks the "Start The Game" button, it loads a new Activity that sets the view with my game th...
When trying to build the "Hello World" in Eclipse i keep getting this error:
ddms]Failed to initialize Monitor Thread: Unable to establish loopback connection
The emulator pops up some time after the error but without the "hello world"-program.
I've tried the adb kill-server stuff, turned off all firewalls, yet i still keep getting th...