android

Using AlarmManager in Android to launch a daily service?

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...

Android V4L or V4L2

Does Android Linux Kernel support V4L or V4L2 (Video for Linux). If not, it'is possible to add it ...

Android 2D graphic library

I can not figure out the android 2D graphic library. Is it SGL, Skia or subset of OpenGL ...

MyTouch android phone's menu button doesn't work

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...

Programmatically set layout for android

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 ...

Custom Classes Passed from Service to a UI threads via AIDL

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 ...

Change Toast Font

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...

Best Approach to process images in Django

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...

Android equivalent of UIWebView in Xcode

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. ...

Android: Easiest way to make a WebView display a Bitmap?

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...

How to pass Itemized Overlay from a class to a Listener Class.

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 ...

Is it possible to implement Flex states in Android application.

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...

Why do I get an error while trying to set the content of a tabspec in android?

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...

How do I iterate through the id properties of R.java class ?

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...

Is there a way to use Google Visualization API in java

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. ...

Android SD card free space.......

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..... ...

How do I lock the layout of my android program to one orientation

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...

android spinner width problem?

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...

Android: ListActivity design - changing the content of the List Adapter

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...

how to find corresponding source code or definations from site: android.git.kernel.org

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, ...