Hello all,
I have problem with displaying bitmap image on imageview on high density screen (480x800). When the bitmap image loaded from file on sdcard, the image does not scale to fit hdpi screen. On medium density screen it works normal (320x480).
public static Bitmap getBitmapFromFile(String src) {
File file = new File(src);
...
i put many flash components in my webview , and test it on Desire , wow terrible!
i put many flash components on webview page, when i was scrolling the page, i saw flash components
out of the webview still on screen ..... didn't disappear......冏rz could any one tell me why??
android 2.2 ........support flash ......right??
...
I would like to change margin of my buttons in d applcn...
suppose I have 5 buttons like this in a linear layout, one below d other...
When I focus on a button, its width should increase (which I know how to handle) and at the same time, width should increase linearly towards both left and right.
i.e. If the current width of the button...
Hi everyone,
Has any one implemented C2dm succefullly,
then please send the code, how to get registration_id form c2dm server for our application.
thanks in advance.
...
Since Objective-C exists and is supported even in MinGW, by passing -x objective-c, is there a hack to achieve this with Android SDK? I've did a rudimentary test on a colleague's machine where it appears that language objective-cis not supported.
I am not interested in getting UIKit or AppKit, or even Foundation, to work; I've written m...
I want to get the Information of the Music track playing on a android device?
Is there any android powered api available for this?
Or do I have to write a plugin for respective android media players?
...
Hi guys,
i try to connect (HttpClient) to an internal server in my app via wi-fi. But every time i got an UnknownHostException if I use the domain name of the server (http://domainname/..). If i use the Ip instead, it works well.
This happens not only on the emulator but also on a real device (htc desire).
Did anyone got the same prob...
Hi I have a listview and I am trying to start an activity from the listview by {startActivity(class.java);}
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class ll2 extends Activity {
publ...
Can an Android application include a widget or is the widget an application itself and needs to be separated from the application ?
...
As we know, we can rotate a bitmap through 2 ways.
The 1st way is:
Matrix mt = new Matrix();
mt.postRotate(degree);
Bitmap bitmap = CreateBitmap(src, 0, 0, w, h, mt, true);
canvs.drawBitmap(bitmap, 0, 0, paint);
In this way, we always need create new bitmap for every rotation, it
is not good way for high performance game or app.
...
With the new tag of the AndroidManifest, is it also possible to define my application requires an accelerometer? It seems to me only light sensor and proximity sensor are supported in the tag.
Thanks in advance.
...
I want to create a mapview marker with 4 elements:
- picture (of user)
- background
- text (username)
- Arrow to show an direction
OverlayItem.setMarker() accept only a drawable.
How can I create an drawable with 4 Items? Or can i add an View as marker to overlayItem?
any ideas?
...
I have an Android project that I have been working on and debugging just fine for several months, but for some reason it is now consistently hanging at the "Runnning tests..." step. I have experienced intermittent hangs from the beginning, but a simple retry and/or restart of Eclipse or the emulator usually resolves it. But now I am ju...
Hi
I have 24 teams in a list, I have 24 separate .java classes for each team with information about those teams. When the user click on an item(Team) in the list I want to goto that teams java file(Class) and display there information. below is the code,
import android.app.Activity;
import android.content.Intent;
import android.os.Bu...
I have a ListView a row of which contains a couple of TextViews, an image and a button.
My requirement is that when a row item is selected, the Text Style and color of the TextViews and the background drawable of the button should change.
I am not sure of how to do this.
Questions/Assumptions/What I think:
Will having a state d...
Hello,
I did a simple program by overriding each of the lifecycle methods and everything works as I'd expect, except for onRestoreInstanceState(Bundle savedInstanceState).
I overrode the method as
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
...
whats the difference between MyActivity.finish() and MyActivty.this.finish()? I see an example where MyActivty.this.finish() is called from hitting the OK button on a dialog asking if you want to exit the app. isn't the ".this" part redundant?
...
Hi there,
i have an application which loads urls from a website. Now i want that the aplication uses the cache when offline. But i just get the failure site which says that im not connected to the website. At first i set the Cachmode to Load_Normal but this doesnt help. Next i tried a realy "silly" approach using the ConnectivityManager...
Hi all
Im trying to strip all non standard letter characters from an edittext textbox on an android app im making. I am successfully creating a listener, obtaining the value and removing bad chrs via a regex. however, the .setText line below causes the app to crash. Anyone got any ideas how to get around this and dynamically mask c...
I don't know how to elegantly solve the following task:
I have several blocks of code (operation) to execute.
Each block can return true of false to indicate that further execution is possible.
Inside of each block I have to use asyncronous methods calls (Because Android is completeley asynchronous).
Example of processing operations...