I have a ListActivity with obviously a ListView on it. This ListView consists of different sections, each of them have a header.
When I display the list of items to the user, first header is on top. If user scrolls, header is hidden and rest of items are displayed. I know how to make that simple header static, always on top, but what i ...
There is a few questions about this, but mostly lacking details and no definitive answer.
So I am using xhr long polling, my poll is pretty basic and just looks like
var poll = function() {
$.get(url, function(data) {
doStuff(data);
poll();
});
};
I start that from a script that is imported just before , I remove absolu...
I'm an android-newbie and I'm looking for a solution, how to overlap a horizontal-scrolling image-gallery with a vertical-scrolling image-gallery. that means one transparent image of the vertical-scrolling gallery should overlap one image of the horizontal-scrolling gallery (like a cross).
furthermore it should be possible to scroll ei...
Hello. I have a very simple Activity...
public class ShowOrientation extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.d("ShowOrientation", "Orientation: " + getOrientation());
}
private String ...
I need to clear about android:anyDensity attribute with true | false,i gone through the developer guide,but i can't clear about.what the difference of using true or false value for it,Please clear about it.
...
i create layout, 2 button , 1 for left scroll and 2 for right scroll,how to scrooll left and right using onclick method
...
I have create a canvas in android and inside that i have multiple bitmap images.not i want to make these images click able.
I have tried following things so far..
I tried to add bitmap in image view as imageview has a setOnClickListner
but i think ImageView can't be added into Canvas , so i dropped this idea. because even Bitmap itself...
Hi i want to know that how can i weight the coin in android phone. I want to develop an application in android where i put the coin on the screen of the device and device will weights the coin and show me the results. there are some application in I-Phone who does this work. Is this possible in the android or not? If possible then how ca...
Hi,
I have a ListView showing names of Countries.
I have stored the names in strings.xml as a string-array called country_names.
In populating the ListView, I use an ArrayAdapter which reads from strings.xml
String[] countryNames = getResources().getStringArray(R.array.country_names);
ArrayAdapter<String> countryAdapter = new ArrayAd...
I uploaded an application in the Android Market yesterday, I'm recieving house ads on my application and occasionally I also receive 3rd party ads (Checked on my phone). But my AdMob developer dashboard says my status for this Application is inactive. I have disabled test ads on the server side and also in my code. I have more than 400 u...
Hi,
I'm starting out with android development, and am really confused by the javadoc on intents.
For example I'm trying to launch the intent:
android.provider.ContactsContract.Intents.ATTACH_IMAGE
I try to launch it with:
Intent test = new Intent(ContactsContract.Intents.ATTACH_IMAGE);
startActivity(test);
and it returns an Activ...
Hi all,
How to add text to camera captured image and save in the DB.
Thanks
Quest
...
Kindly give me the way to create a 3D object in android application
...
Hello,
I created my TextView through code rather than XML. I want to draw a border around the TextView.How can we do this using code rather than XML? I also wanted when I try to setText for the TextView which is of some 2 lines then TextView is moving downward? plz also guide me to solve this problem.
I will be waititng for reply .
Reg...
Hi,
I have a application that registers a handler for custom URI on the Phone. I am able to launch the application by making a link to "myapp://act/launch" from my phone web pages. This works only if my application is installed on the device.
What I want to do is detect if the URI Scheme is supported from the browser and then prompt my...
This function runs on the UiThread, but it seems that doesnt mean it also has access to the activity context. Shall I implement to my AsyncTask a public Setter to pass the activity (as reference)?
protected void onPostExecute( Bitmap bitmap ) {
//following is underlined red due to missing context
(ImageView)findViewById...
I am getting an error wil parsing an XMl using the xmlPull parser.
The exception that i am getting is
org.apache.http.MalformedChunkCodingException: Chunked stream ended unexpectedly
Can you please let me know the reason for the error and methods to handle it.
...
Hi...
I'm trying to make animation in android like an effect in ipad when we turn the page.
Anyone has a clue for this matter?
Thanks.
...
I have a tabbed view with one Activity per tab, and when I switch from the first tab, which has a TextView, to the second tab, which only shows a clickable list, the soft keyboard is still there. I want it to go away, so I tried this:
public static void hideSoftKeyboard (Activity activity, View view) {
InputMethodManager imm = (InputM...
I have successfully programmed insertion & deletion of an Access Point in database but I need to find out how to update an access point. I'm using db.update() but its not producing any result. I am using the following code to update an access point:
ContentValues updateFields = new ContentValues();
ContentResolver resolver = getContentR...