I have two EditText and one Button in my Layout. If the two EditText both contain a text, i want to enable the button:
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
System.out.println("Key input");
String usr = user.getText().toString();
String pw = password.getText().toString();
if ( (!usr.equals("")) ...
I am attempting to use Restlet for Android to query an OData data source. However, I am not impressed with its performance in both the emulator as well on a real device. I have the requests made in a wrapper AsyncTask to make the UI responsive but it still takes over 1 minute to finally return the objects.
I get plenty of these in the L...
I am Optimizing the Android 2.2 OS to make it in such a way that it can be ported to the tablet. Can anyone suggest me how to change the themes and icons of Android 2.2 OS.
...
I'm using Eclipse 3.5.2 for Android development on Ubuntu 10.04. I installed:
Sun's JDK from Ubuntu's repositories;
Eclipse 3.5.2 (Classic) from eclipse.org, unpacked to /opt/eclipse
The Android SDK from android.com, unpacked to /opt/android-sdk
My problem is that when I'm in an Android project, JavaDoc will not work (neither for And...
I am using a Gallery view where the view corresponding to each item is non-trivial and consists of text as well as multiple buttons.
When I click to drag the gallery view (somewhere not on one of the buttons) the button's drawable state changes to pressed and appears as if all of the buttons are currently being pressed. Additionally, th...
I have a need of a function/library that can quickly encrypt an image on a low-powered device (cell phone, tablet, etc).
I need to provide a string which can act as a password to encrypt and decrypt the image file.
Ideally, I would like something that retains the image file format and just scrambles the pixels. I have tried prototyping...
I'm trying to do some blending of images in Java. After succcesfully doing multiply and screen blending, "normal" blending is causing me headaches.
I found on Wikipedia that the formula for blending two pixels with alpha is:
Co being resulting color, Ca color of top image, Cb color of bottom image and Aa -> alpha of top, Ab -> alpha o...
I need to be able to hide the soft keyboard in response to clicking a button. I have seen numerous posts on this subject and it seems that the solution is to use the InputMethodManager, but I have been unable to get it to work for me. Supposedly the following will hide the soft keyboard:
InputMethodManager inputManager = (InputMethodM...
I have a WebView that is loading a URL that plays a Flash file. This works in the regular Android Browser, or if I use an Intent. For some reason it won't load in my WebView. It tells me I need to download Flash Player, even though it has already been installed:
public void setupWebView(){
webView = (WebView) findViewById(R.id.W...
I have a basic service that sends a 'Toast' message when the service starts (Service.OnCreate). Is there a was to capture the cells logs or does anyone know why a service would randomly restart. If it were a crash, it wouldn't restart as far as I know.
Thanks
...
Text SMS have a limit of 160 characters and to send more than that you have to send using multipart SMS.
Is this applicable for Data SMS too? If the size of the data SMS exceeds (160 Characters * 7 (I believe each character is encoded using 7 bits), you have to split and send it?
I tried receiving a data SMS in the emulator, (sending ...
I didn't really want to post here as there is so much information on the net, but I've trawled the depths and can't figure it out.
Ok so I can't get this to work in two scenario's hopefully the answer is the same for both.
My problem is I set the request header but it doesn't seem to send it.
I have a session id s=e32ff223fwefd3 , and...
Hi!
I am following the standard example of how to add a RatingBar. To control the number of stars I tried to use android:numStars="5". The problem is that the number of stars doesn't seem to do anything at all. In portrait-layout I get 6 stars and when I flip the phone I get about 10 stars. I tried to set the number of stars in my Activ...
When I use sp as my font size unit in the XML file, I go to spare parts and change font size, my app's font size is not changing. Does anyone know a way to resolve that?
...
I am trying to make it so a MapView zooms to a current location based on a GeoPoint. I am setting the location using the geo fix command in telnet. My problem is that when I first input a location using geo fix my code will correctly navigate to a location on the map. If I try to set another location using geo fix however it does not ...
Hi,
I am busy writing an app and I have noticed that it sometimes crashes, and when it does and I get back to my computer then I only have the stack trace.
Is there a way for me to take a memory dump of the app at crash time?
Thanks
...
I'm creating "maps" for a game I'm making, and it's working fine on <=Android 2.1, but 2.2 is causing problems.
I'm not sure if this is a common method, so I'll explain what I'm doing. First, I draw the map which the user is going to see then I draw a map of identical size with nothing but white and pink (0xffFF006E). Anywhere I draw th...
I have a class that is essentially a message manager (a singleton) that has a timer that polls for status. (statusPollerTask is just a derived class of TimerTask that has the run() defined)
timer.scheduleAtFixedRate(this.statusPollerTask, 0, 1000);
Several Activities register themselves with the msg-man for updates (observer pattern s...
I would like to implement Google Analytics in my iPad application.
I am wondering if there are any approval process issues with this?
Is there a best practice for allowing users to disable or enable tracking?
Do you have any opinons about how ethical it is to track user app habits?
...
How can I tell android to not crop my layout when displaying the on-screen keyboard but to instead resize it?
...