android

Save and Extract html page on Android

Two issues with my Android programming, require some guideline The way to save any visited webpage as html source file, then The way to extract some useful text from those saved html source files If these are possible, where should I get start for them Thank you in advance ..... ...

How to send and receive broadcast message

I am trying to pass data between two activities that are inside of tabs. I am trying to use the sendBroadcast. With breakpoints set I never reach the OnReceive. manifest : <activity android:name=".WebResults" android:label="@string/app_name"> <intent-filter> <action android:name="com.toxy.LOAD_URL" /> ...

Android CheckBoxPreference Default Value

I have the following XML code for my CheckBoxPreference: <CheckBoxPreference android:key="pref_boot_startup" android:title="Auto start" android:defaultValue="true" /> But when I retrieve the preference in code the value is false. sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)...

How can I emulate a headset stub in android

Hi I'm trying to create a headset stub in my Android app, so my app can get a "virtual" ACTION_MEDIA_BUTTON from it. Any idea how can I do that? thanks. ...

Playing a Ringtone for a certain time period.

I want to play a ringtone selected from the RingtonePreference in a Service for a limited period of time (5 secs, for instance). What is the best way to do it? And is there a way to fade out the ringtone's volume when the ringtone is about to finish its playback within the allocated time? ...

How to draw canvas in respect of phone orientation (landscape , portrait) ?

There is no problem with portrait mode but when i try my app on landscape mode it doesn't look how it should.What is general aproach to solve this problem.My first idea is replacing X and Y places.If i am on the right track how should i do this ? Should i use an if statement at the beginning of the onDraw() function and write entire same...

How to vibrate the phone in sync with the ringtone?

I want to vibrate the phone in the same way as the incoming call in sync with the ringtone. How do I achieve it? ...

Layout within TabHost and TabWidget

Hi, I'm extremely new to Android and just trying to get my head around these layouts. I've got several tabs which contain a LinearLayout with a TabWidget and FrameLayout as children. In the FrameLayout I'd like a certain percentage at the bottom of the screen to be reserved for a table, the rest above to be filled with an image. How ca...

Android view doesn't accept clicks

I add a listview via Java into @+id/View01. For some reason the items in the listview don't accept clicks. Does anybody have ideas about possible causes? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="fill_parent"...

Android, get icons of running activities?

I've got a list of running processes from ActivityManager.RunningAppProcessInfo, like this: ActivityManager am = (ActivityManager) getSystemService(Service.ACTIVITY_SERVICE); List<ActivityManager.RunningAppProcessInfo> processes; processes = am.getRunningAppProcesses(); for(ActivityManager.RunningAppProcessInfo info: process...

which is better android or j2me for image processing on phone

hey iam going to do some applications on mobile using image processing applications i was asking which will be suitable for me as i will need a programming language that supports phonve devices with high memory , what is the maxiumm number of ram size that has been released to work on phone is there any name about the phone th...

Android 1.6 to 2.2

Hi, I'm developing a simple app for Android-2.2. What are some key features that can make the app not work for 1.6? ...

query table columns for specific data values in sqlite android

Hello all, i am trying to query my database so that it returns only rows with a specific value in a certain column.but when i run it, it still returns all the rows. please take a look at the code and see if i have done it incorrectly. I am trying to query for the string in the PRIORITY column. i want to display those specific rows in a l...

Android; how can you invoke a SOAP web service without using ksoap?

I'm not asking to be spoon fed here, just need some pointers on where to direct my searching I want to call a SOAP web service, possibly this one I don't want to use KSoap, is there anyway I can do this using the apache libraries that are included with the Android SDK? ...

Why does Eclipse does not see my Samsung Galaxy phone although I can transfer files using a drive letter

I developed my first (small) Andoid application using Eclipse and are now ready to transfer it to my Galaxy S mobile device (develping for Android 2.1) Following another thread in SE, I changed the run mode in Eclipse to manual in the hope that I would be able to chose my phone and/or AVD every time I run the program. The popup list h...

Android: Stretching ImageView with background

I have a landscape layout that features a vertical LinearLayout of buttons on the left side of the screen and a user-defined picture on the right of the screen. The design I'm working from calls for a double-stroke border around it, which I implemented by creating a rectangular shape background with the border being the outer color and ...

problem with KeyGuardManager

Hi, I am trying to use the KeyGuardManager to unlock the phone easily. so far no problems the phone is unlocked and all is good. However when this code is executed later I notice my phone is behaving weirdly. until a I see the following message in the Logcat file : WindowManagerService.mKeyguardTokenWatcher: cleaning up leaked referenc...

Question to all Android attach folks

Hi All, I have two questions as follow: 1) Can we embed mp4 file in android webview? 2) Can we also embed apk file in android webview? thanks ...

Android onLoadCompleteListener how to implement?

I have a custom class called "Sound" with SoundPool, I want to implement the loading complete listener so that my activity can play an intro sound and display the "start" button once loading is complete. How would I go about implementing the listener and then testing for the complete status from my activity to make sure everything is lo...

Android Manifest Problems

Whenever I run my program, I get this error: 10-11 17:53:12.135: ERROR/AndroidRuntime(403): at android.app.Instrumentation.newApplication(Instrumentation.java:957) 10-11 17:53:12.135: ERROR/AndroidRuntime(403): at android.app.Instrumentation.newApplication(Instrumentation.java:942) 10-11 17:53:12.135: ERROR/AndroidRuntime(403): ...