android

How to do the android programming

I want the resources that provides better help in android programming using eclipse and Android SDK. I am mainly concern to date picker, Time clock and SQLite DB connectivity. How to use them and sample codes. any help is appreciable. Thanks in advance. ...

accsessing picasa using android

Hi , I am trying to access picasa from android , i have tried to run following sample code http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples#picasa-atom-android-sample%3Fstate%3Dclosed but i am getting only one thing over here , and there is no options to select google accoun...

Deleting application database from emulator

I'm testing an application I'm working on and I wanted to delete the database my application creates so I could read all the data from my web server back in to a fresh one. I launched adb, went to data/data/my.applicaton.package/databases and did a "rm mydatabase". This deleted the database (note: I've done this many many times before ...

How can I change layout params while program is running

I have an ImageView sitting on a FrameLayout. I want to be able to move this imageView by setting a margin: LayoutParams lp = new FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); lp.setMargins(left, top, 0, 0); imageView.setLayoutParams(lp); imageView.invalidate(); However nothing changes and my imageView does not move. What am I do...

How to make a android WebView load faster?

Hi, Anybody has some suggestions to make a webview faster to load the url? In my situation, I am using the jQuery's getScript to load the javascript(s) when needed. Thanks, Sana. ...

Android: add new view with a XML Layout file

I am beginning developing android application. What I need to know is how to associated a xml layout file with a new class (not the activity). For example the class needs to have a table with an image and some texts. thanks! ...

Apply Different Style to Button When Pressed

Is there a way to apply a style to a button when the button is pressed? If I have a style in style.xml: <resources> <style name="test"> <item name="android:textStyle">bold</item> </style> </resources> a selector in button.xml: <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:...

Mulitple Instances of Pending Intent

I created a widget that when clicked activates a PendingIntent. The problem is when I have more than one widget on the screen only the latest one will start the PendingIntent. I have read some about a unique request code, but not figured this out. Any ideas how I can have multiple widgets and the PendingIntents work for each? Her...

Android Tabbed Layout setContent

I'm developing an Android application with a tabbed layout. I've got it to where it doesn't spawn a new activity like Google's tutorial suggested, however I only did this in an effort to get my content to show when clicking on each tab. Currently it just shows black regardless of what tab is active. The following is my code in its lates...

How to call a PHP Webservice from Android using KSOAP2?

Hi can anybody suggest "How to call a PHP Webservice from Android using KSOAP2?" Thanx in adv. ...

How do I setup vertices for a rectangle?

I need to setup vertices for a rectangle - I have a square example, how would I modify it to get a rectangle 5 times the width and half the height? /** The initial vertex definition */ private float vertices[] = { //Vertices according to faces -1.0f, -1.0f, 1.0f, //v0 1...

How to Use Android addHeaderView

Can Android's addHeaderView() be used to add multiple headers throughout a single ListView? Can someone give an example of how to do this? I was able to accomplish what I wanted by manipulating the IconicAdapter Class... is there any reason why I should not do it this way? I feel this could be modified for more advanced implementations....

How to send an ArrayList of custom objects in a Bundle

I have an application that uses a service to create an ArrayList of custom objects (MyObject) every x seconds. I then want my Activity to obtain this ArrayList. I'm currently planning on having the Service send a message to the Activity's handler every time it finishes the query for the data. I want the message to the Handler to conta...

ContextMenu title -> get from clicked listView item

Hello, Trying to set ContextMenu title according to the ListView clicked item. The ListView contains Bookmarks list -> FAVICON + BOOKMARK TITLE @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); menu.add(0, EDIT_ID, 0, R.string.men...

Https returns 404 with DefaultHttpClient on Android?

I have an http request that worked as http://blah.com and now I have been asked to use https://blah.com The former works and the later fails with a Network I/O error. Are there any missing parameter settings that I need for the client? The URL request: D/MyAppWebservice(23142): http-transform :) [https://cdp.mobibob.com:8151/DoTransa...

Auto-sizing of background image in tablerow to fit content in Android

Hi, I have a TableLayout in my Android application. In the TableLayout, I have a TableRow which has an oversized background image. I would like the background image to be auto-sized to cater to the content within the TableRow. But no matter how I try, it always display the original size. Please refer to link for screen capture. As s...

is there a way to detect the pysical button press on a Droid X?

I realize the Camera button on the Droid X is not a standard feature across all phones, so, I'm curious how to attach a callback to it. I have a camera application that I wrote and I want the user to be able to snap the picture by pressing that button, but currently it doesn't work that way, so, I'm wondering how to attach my callback t...

Where can I download JDK 1.6u20 64-bit?

I'm working on an Android program for my senior capstone project, and having trouble getting the correct environment configured. I'm using a 64-bit windows machine with Eclipse 3.5 and JDK 1.6u21. From what I've been able to gather, Eclipse 3.5 doesn't play well with update 21 on 64 bit architectures, and it's recommended to use JDK 1....

Basic ImageButton onClick event not firing - surely something simple?

I'm trying to get a simple onClick to fire from an ImageButton - it seems like a simple enough task, but I'm obviously missing something here. Here is my java file: package com.jlbeard.android.testapp; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; im...

Suppress notifications from a service if activity is running

I have an Activity and Service that work together in my application. I've configured the service as a remote service (implemented AIDL) so it will keep running even when the Activity isn't visible. The service is responsible for polling a server for data and sending alert notifications when certain criteria are met. I do not want the ...