Hi
I'm making my alarm app. There is an Activity to show alarm infomation.
I want turn on the screen and unlock it. I wrote these code
AlarmActivity.java:
public class AlarmActivity extends Activity {
......
void onCreate(Bundle bl) {
.....
final Window win = getWindow();
win.requestFeature(android.view.Window.FEATUR...
Hi,
I have created four tabs that hold four listviews and I have made them transparent and added a background to each list, but now I have a ugly transparent grey box on the middle of the screen, anyone any ideas what this could be andf how I get rid of it.
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Stri...
Hi,
I'm trying to sort the layout for one of my Android apps, but I'm finding layouts a nightmare.
Principally I have to have a portrait and landscape layout for normal, small and large screens. So thats 6 layouts to maintain to start with, let alone having to launch the app on three emulators each time because my UI widets don't lo...
All,
I'm aware that by default an activity will be killed and restarted when the screen orientation changes, or a keyboard is slid in or out. (See http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android). My question is, what is the correct way to handle this from a Native code perspective? e.g. if I have a sta...
Hello
I want to create month-view calendar for android with clickable days. What kind of layout/view should I use, TableLayout or GridView. I didn't find any examples for this...
Thanks for help in advance
...
Hi
I design a custom control that is similar to button control but has text on both left and right plus image on right and some hidden text associated with it. Can some one please give me few pointers on this.
-Thank You
...
Hey,
I'm using the TabHost and TabWidget to create some tabs for an Android application. I see that the tabs show up vertically one next to the other. Is there any way to make tabs that are aligned horizontally (one on top of the other) ?.
I'm creating the tabs like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
a...
I published an app to the market one month ago but in English only.
I called it Version 1.0 (after the recommendation).
I have since added four more locales to this exact same app (no other
changes!). So it is avail now in 5 languages:
1) English
2) French
3) Italian
4) Japanese
5) German
So, exact same app but localized for four new l...
I am currently have two seperate applications, both perform seperate tasks, but there is on limited occasion times when I need one application to use the other if its there.
So I use a function to check the required application exists:
public static boolean isIntentAvailable(Context context, String action)
{
final PackageManager p...
Hey,
I'm trying to set up a tab host as an element of a layout. All the examples I've seen show the TabHost by itself in the view. The examples work fine, but when trying to make it part of another layout it doesn't seem to work. I haven't found any documentation specifying one way or another.
Something like this works (Not all code ...
I currently have the android sdk running with eclipse. It happens to be that I also want to download stanford's customized version of eclipse in order to learn some other stuff. Will there be a problem downloading and installing this customized version if I already another version of eclipse installed on my computer?
...
Is it possible to change the background image of the home screen from an app? If so how? If not, well, just say so. Thanks in advanced!
...
My app may launch a sub-activity for a specific purpose. When that activity finishes, I get the results in onActivityResult. These results are then processed in the subsequent onResume. This consists of a setContentView and also starting an AsyncTask that puts up a ProgressDialog.
This all works well when initiated the normal way, which...
Is it possible to set up a ListView so when it scrolls it only scrolls in intervals related to the height of the List Item. In other words if my item height is a number h and a swipe of the list is given a number p to represent how hard the swipe is so it can go further if the swipe is harder is it possible to set the ListView so that it...
I'm using this code to change the wallpaper of the android home
WallpaperManager wm = WallpaperManager.getInstance(this);
wm.setBitmap(myBitmap);
I would like to set the background to a drawable. Is this possible?
...
Hi,
I have a custom view in src > myproject.test > HomeView
In my main layout xml I have the following:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/home_root"
android:orientation="vertical"
android:layout_width="fill_parent"
android:la...
My Activity locks its orientation by using setRequestedOrientation(). However, once this is set to something other than ActivityInfo.SCREEN_ORIENTATION_SENSOR, onConfigurationChange() is no longer called (since it is not changing anymore) when the user rotates their device.
Is there a way, after the orientation is set with setRequested...
One of the design sessions from Google I/O this year showcased this app as an example of putting their design principles to good use. They said it would be open sourced but I'm having trouble finding it.
...
I'm new, so links and images are here
Hi,
I'm likely making a silly mistake... hoping to find out what that is.
I'd like to use a few of the standard menu icons (ic_menu_refresh, etc.) in my app's Options Menu. And I'd like to set the icons in the xml file for the menu. I read in a few places that I can use the following:
<item andro...
I am playing a setLooped enabled audio file in my app, but every time the audio file loops, there is a noticeable, though very brief, gap in the audio playback... is there any way to get around this?
...