android

How to get the icon of other applications (Android)

What I'm doing is getting a list of all the current running processes on the phone. Which I have done by, private List<RunningAppProcessInfo> process; private ActivityManager activityMan; ... activityMan = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); process = activityMan.getRunningAppProcesses(); this works fine. Whe...

How to set the Listview item size in android?

I have added some adapter to the list view. For some items, the text is lengthy and the item displays only some portion of the text. How to fix this.? Is there a way to set the size of the list view item? ...

SQLiteException Unknown error

Does anyone know what this means? I'm trying to start a transaction in onActivityResult() to insert a row based on the received result. 03-05 15:39:51.937: ERROR/Database(2387): Failure 21 (out of memory) on 0x0 when preparing 'BEGIN EXCLUSIVE;'. 03-05 15:39:51.967: DEBUG/AndroidRuntime(2387): Shutting down VM 03-05 15...

Unable to launch an activity using implicit intent specifying only action

I am trying to launch an activity by specifying only its action(custom) defined in its intent filter from an activity in other application. The activity to be launched is the main activity of its application thus have android.intent.action.MAIN & android.intent.category.LAUNCHER set as action and category in its intent filter. Now accor...

How to start developing a social multi-player game on android

I'd be very keen to know how to develop a social game on android which includes 2 or more than 2 players. Let's say chess..for example or scrabble.How to begin? Are there any online resources or tutorials available on this subject? ...

How to lock the Screen customly? Just like WaveSecure in Android

I want to do a demo just like WaveSecure, which win Android Develop Challenge 2 with a third place. Now I have a problem in locking the screen customly, so I want to know how WaveSecure achieve its locking function, as the following picture show: http://goo.gl/XlPP When the mobile is locked, WaveSecure can require customer to input thei...

AsyncTask Bug on HTC Sense

Im using HTC Hero with HTS sense. Im experience that sometimes AsyncTask not will run doInBackground method on execute(); Its only on my Hero this appears. Someone have come across same problem? / Martin ...

Animation for expandableListView

Is it possible to apply an expand or collapse animation for expandableListView? ...

Android - supress the native In Call Screen and replace with 3rd party?

Currently creating a VOIP application for Android and I was wondering is there any possible way to supress the In Call Dialog when sending a call over GSM and use our own 3rd party In Call Dialog or screen instead? At the minute when we switch from our VOIP call and send it over GSM via the ACTION_CALL intent it does everything we want ...

Android Camera without Preview

I am writing an android 1.5 application which starts just after boot-up. This is a service and should take a picture without preview. This app will log the light density in some areas whatever. I was able to take a picture but the picture was black. After googling like crazy, i came across a bug thread about it. If you don't generate a...

Android Selector Problem

Hi, i have a listview with a custom item_row.xml. I've defined a selector in this way: <?xml version="1.0" encoding="utf-8"?> <item android:state_pressed="false" android:drawable="@drawable/list_bg" > </item> <item android:state_pressed="true" android:drawable="@drawable/header_bg" > </item> <ite...

If I have this code in the iPhone Safari or Android Browser...will it be slow?

<div class="result"> <div class="thumbnail"> <img src="80x80.png"> </div> <div class="name"> Alex Hong </div> </div> The page will have 400 of these! A list of people and their thumbnails, all different. I will use JQuery LazyLoad, so that not all images are downloaded immediately. (The images are only down...

List clears in emulator but doesn't on an actual device.

The problem I am having is with different behavior with dealing with the emulator of a 1.6 device and an actual 1.6 android device ( In this case a T-mobile g1 ), When the list updates in the emulator it replaces the list that was there beforehand. On the phone it just appends the new list onto the bottom of the old list. I need the dev...

ClickEvent on ImageButton in Android?

Is it possible to add a click event to an ImageButton? In my code its not working here is my code: imagebutton1.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent myIntent = new Intent(v.getContext(),FaceBook.class); startActivityForResult(myIntent, 37); } }); ...

resuming an activity from a notification

Hi, I have a notification in the status bar for my app: Notification notification = new Notification(R.drawable.icon, null, System.currentTimeMillis()); Intent notificationIntent = new Intent(this.parent, MainActivity.class); PendingIntent contentIntent = PendingIntent.getActivity(this.parent, 0, notificationIntent, 0); ...

How to show a button at the end of listview in android?

I want to show a button at the end of an android list view How can I achieve this? i dont want to stick it to the activity bottom using alignparentbottom="true", layout_below does not work for me either. But i want to show it at the end of list view Any help would be appricated here comes my code. <?xml version="1.0" encoding="UTF-8"?>...

How to align views at the bottom of the screen?

Here's my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:text="@string/welcome" android:id="@+id/TextView" ...

How to change title bar color in android activity?

How can I change the titlebar color in an Android app? I tried: this.setTitleColor(Color.BLUE); but it changes color of written text on it not title bar color. ...

Playing video in Android app widget

Is there any way to play video in Android App widget. ...

Android Table Round Border

Hi, can i make something similar to the photo below in Android? It's a table with round corners. ...