android

Logcat Broken. No output in eclipse or terminal

Hey All, My logcat output has completely disappeared from both eclipse and "adm logcat". In both instances they're just blank. I've tried: adb kill-server / adb start-server Restarted eclipse Rebooted computer (dell mini 10v) Rebooted phone (cliqxt) Unplugged and replugged in phone usb connection I can't real...

how to convert a serverSocket into httpServer?

hi, i have a server socket on pc and client on android, i want to convert the serverSocket to httpServer (and the client too) without changing any of the functionality. What is the quickest way to do it? (i read that in http i need to implement some functions, like GET,POST,... is there a way to avoid it? because the server is for a spec...

starting service without application

I have a call blocking application. It has 3 files: 1) class BlockMyCall extends BroadcastReceiver 2) class SimpleClass1 extends Service 3) PhoneBlock extends Activity I start "PhoneBlock " Activity to call Service "SimpleClass1 ", which eventually calls "BlockMyCall" intended to block outbound calls (by setting result to "null"). ...

Android: Insert.POSTAL String format

How do I format Insert.POSTAL so that the add contact dialog populates with city state and zip also? ...

how to get a list of available gsm networks?

hi there! i'm currently writing on some piece of code in android 2.1 that is supposed to measure the signal strength of the gsm signals. what i need is some kind of list with some kind of network IDs matching the corresponding signal strengthes... i got this far: public class main extends Activity { TelephonyManager telManager; ...

android grow box animation

Hi, Inside of a ListView row, I have a box (right now its an imageview, but i will probably be converting it to a linear or relative layout object at some point). when you click on the box, i have it start a scale animation that makes it appear to grow. however, once the animation is over, the box goes immediately back to its original...

ACTION_CALL intent called from Android service on Motorola Milestone hangs Dial In activity.

Hi, I have a problem with ACTION_CALL intent from my service on Motorola Milestone after upgrade to 2.1 - update1 firmware version. I have a very simple (worked before) code. Intent dialIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel://" + dialOutNumber)); dialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(d...

Setting an adapter on my listview

Hi all, I'm trying to have my listView as defined in my main.xml display a list of my objects. This worked fine when my activity extended on ListActivity and used getListView(). Now I extend from a normal Activity though and want to plug my custom adapter into my R.id.list like this: ListView lv = (ListView) findViewById(R.id.list);...

Creating a split button for a custom ListView adapter

I'd like to make a list adapter that formats views like this: I want to be able to fire a different onClick when the user clicks the image. I have defined the onClick on the image itself in the getView() override, but how do I then get the position of the line that was clicked so I can update the record in the database to record the ...

Scrollable Android ListView in TableView Row

I have the following layout for a dialog: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/categorylist" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="0"> <TableRow> <ListView...

Dialog.show() vs. Activity.showDialog()

As far as I can tell, there are two ways to show a Dialog from an Activity. Create the Dialog (for example, using an AlertDialog.Builder), and then call the newly created Dialog's show() method. Call the Activity's showDialog() method, passing in an int that uniquely defines what sort of Dialog you want to build. Then override onCreate...

Android custom dialog like 'Quick Contact'

Hello all, I want to create a custom dialog like Quick Contact in contact app or the one in official Twitter app. When i click on a button, it will be opened above or below the button. http://londatiga.net/images/qc-tw.jpg Quick Contact & Twitter I've read the source code of Contact app but it seems to use internal API. The alternati...

I added ImageButtons and listener, now emulator crashes

Here is my code below. When I just had the EditText Box code, it loaded fine. When I added the ImageButtons and listeners, it will not run at all. I do not want to add method code until I can get it to at least run. I am running on API 7 package org.chrome9.golfCalc; import android.app.Activity; import android.os.Bundle; import android...

Android apk install on deviceanywhere

I downloaded my Android apk onto a Device on deviceanywhere. After the download, when I click on it, it asks "Do you want to install this application?". I click "Install", it comes back saying "Application not installed" with a warning symbol. Anyone know why this is happening? Thanks Chris ...

onActivityResult no longer being called after onDestroy

Hi, onActivityResult is giving me major headaches. My little game has a title / menu screen. Upon clicking "new game" an Activity is launched which creates a SurfaceView for my game world. When playing, the player can enter buildings in the game world. Upon entering a building I launch the activity for that particular building from m...

Autocomplete list from SQLite with criteria

Can someone point me to right direction, how to create an adapter for AutoCompleteTextView, which would be getting data from SQLite DB, using data, which user entered into the text field? I want to use the user-entered data to filter suggestions for autocompletion. I imagine that adapter should always take user-entered data as soon as ch...

Android detect phone lock event

I want to be able to detect the phone lock event. When my app is running, if I press the red button (call end button/power button), the phone gets locked and the screen goes blank. I want to be able to detect this event, is it possible? Thanks Chris ...

can android load dll's from sdcard in native mode

I want to port a program I wrote to android. The program is in c++ on windows and linux. The program uses dll's for a plugin architecture. New plugins can be added to the program by downloading a dll which the program loads from a specific folder. My question is... Is it possible to download dlls built for android to a directory on the ...

How to get current memory usage in android?

I have used /proc/meminfo and parsed command response.however it result shows that : MemTotal: 94348 kB MemFree: 5784 kB means. it shows there is only 5MB free memory. Is it possible with android mobile? There is only 5-6 application installed on my mobile and no other task is running. but still this command shows ther...

How do you get hold of an Android Context for a Junit test from a Java Project?

I need to access and Android context for a JUnit Test. I have tried using MockContext and extending the AndroidTestCase but each time I get an error saying (stub!) ...