I need to run a service each night at midnight. I would like to use the AlarmManager to do this.
Can you give me some guidance of how to make it work correctly?
alarmManager = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, System.currentTimeMillis(), AlarmM...
Does Android Linux Kernel support V4L or V4L2 (Video for Linux). If not, it'is possible to add it
...
I can not figure out the android 2D graphic library. Is it SGL, Skia or subset of OpenGL
...
hi,
i am writing this action game, but i notice that when there are a lot of actions going on
during the game, the menu button on my MyTouch phone doesn't work. i have to pause the game
before the menu buttons works. i tried raising the priority of the activity thread by doing
this:
i also tried to lower the game thread's pri...
Hi,
I am trying to improve the layout for my game. The problem is that while I can create a
good layout for one android phone, it doesn't work for another, ie the trackball for MyTouch
is on the right side (landscape mode), but for the MyCliq, the DPad is on the left side. Is
there a way to programmatically set the layout based ...
I have a service that regularly queries a web server for new messages. The service stores the new messages in an arrayList. These messages are implemented using a custom class, storing all kinds of metadata (strings and longs).
An activity then connects to this service to retrieve those messages and display them to the user.
I have an ...
Currently, I'm trying to develop an app.
and I don't know how to change the Toast font. .
final OnClickListener clickListener = new OnClickListener() {
public void onClick(View v) {
try {
Toast.makeText(nova.this,"Hello", 500000).show();
}
catch (Exception e) {
To...
I've have an application with Android front end and Django as the back end. As part of the answers here, I'm confused over the approach which I should take to send images to Django Server. I've 2 options at my disposal as Piro pointed out there.
1) Sending images as Multi Part entity
2) Send image as a String after encoding it using Ba...
Coming from an iPhone world...
In Android, I am looking for an iPhone UIWebView-like control which can display HTML and let me catch clicks on links and stop the navigation. My apps display text with commands as href's in the HTML.
...
I have some images that I loaded from a remote source stored in Bitmap variables and I want to display them. In addition to switching between these images the user should also be able to zoom and pan them. My first idea was to somehow pass them via an intent to the built-in gallery application but this doesn't seem to be possible.
A solu...
Hey guys,
I tried searching the forums on this one, but I wasn't able to find anything on my problem.
To describe my problem, everytime my location changes, it redraws the center maker on the map.... Only catch is that it doesn't delete the previous one. I can get it to delete the previous one when the location is changed, but I have ...
Hi guys,
Let me explain what I am want to archive. For example, in Flex I can create page (list of something) with 3 states: Loading state (just display some animation or label with text "Please wait."), No records state (page with text saying that there is no records) and Page with populated list. It is very easy to operate with state...
I have an android activity in which I'm using tabs.
public class UnitActivity extends TabActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.unit_view);
TabHost tabHost = getTabHost();
TabSpec spec;
spec = tabHost.newTabSpec("control...
I've 16 textViews and need to set something like this done:
for (int i=1; i<6; i++)
{
int $RidInt = R.id.s;
tv[i] = (TextView)findViewById($RidInt);
tv[i].setTypeface(face);
tv[i].setClickable(true);
tv[i].setOnClickListener(clickListener);
}
my R.java file is :
public final class R {
public static final clas...
Hi,
I'm creating interactive charts in java for android environment.
Google visualisation API is very impressive.
I need to know how to use it in java. Is there any Wrapper API available for this?
Or Can I use it directly in my application. Can anyone post a code snippet for the same.
...
Hi! is it possible to check , how much free space is available in android sd card through android programming..... i am storing some images in sd card but before that want to check how much free space is available.....
...
I'm trying to write a program that needs smooth orientation sensor samples as the phone is rotated all around. Every time the orientation of the phone is changed, it interrupts the data and freezes the program while the layout changes. How can I lock it in one orientation (landscape or portrait, it doesn't matter)?
I assume it has somet...
dear friends,
i have created following layout.
<TableLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TableRow>
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Post As" />
<Spin...
Hi,
I would like to write a rather simple content application which displays a list of textual items (along with a small pic).
I have a standard menu in which each menu item represents a different category of textual items (news, sports, leisure etc.). Pressing a menu item will display a list of textual items of this category.
Now, h...
Hello , everyone
Some pre-define variant, for example:attribute value, layout
view .etc. (e.g.android:galleryItemBackground), where i can find the
source code(exactly implementation or definition) in site:
android.git.kernel.org,
...