My Activity onClick() below doesn't appear to be doing anything (not seeing any string appear), yet I dont get any errors. What am I missing? Is there a way to trace the function?
package com.HelloTabWidget2;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import a...
Hello
In my android app i am reading a file but require anly the data on third line to be displayed.Is there any way to do that.
Please forward your suggestion:)
Thanks in advance.
...
I want to develop Android apps on the Mac, but the information on http://developer.android.com/sdk/index.html is confusing. Apart from the android-sdk_r06-mac_86.zip , does the Mac need JDK or Eclipse ?
The JDK installation page gives a link to Apple site for downloading "Java Developer Preview 10M3222+9M3222", which is a pre-release ve...
I'm currently implementing a gesture detector for multi-touch events on Android. For testing the behaviour of the detector, i want to send MotionEvents into the detector and check his actions.
The problem i am currently having is that i can only create MotionEvents by calling one of the existing MotionEvent.obtain() methods, but it seem...
Hi,
i am writing my own texteditor.
On 2.1 i got notified when the keyboard showed up via performPrivateCommand(); ,
I just flashed my galaxy to 2.2 and the method isn't called any longer.
Btw. on the emulator, the keyboard even never shows up.
So anyone know I could get notified? In addition I would like to know how much space the im...
I'm pretty sure that android services are going to be the end of me. I have almost no hair left after the last few days....
...anyway, I digress.
At first I was having a heck of a time getting the service to bind on an onclick of a button, got that straightened out from help here yesterday. Now I actually want the service to bind in ...
Hello
In my android application i would like to replace my first line of a txt file with some other data.
Is there any way that i can do this.
Please let me know your valuable suggestions.
Thanks in advance :)
...
Hi,
I have a very simple Android activity layout like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView id="@+id/blaimg"
andro...
It turns out that Google recommends obfuscating your Android app.
In order to understand the problem, I would like to disassemble my own app and see what information I can extract from the code. How do I do this?
...
Hi,
my App is Launched by "Main.java" (Activity) and opens a Notification and a second Activity called "Sub.java", now I press the Home-Button and the App disapears (everything okay until here).
If I'll now click on the Notification the "Main.java"-Activity is launched, the "Sub.java" seems to be lost.
Is there any posibility to reorder...
Is there a way to use startActivityForResult() in conjunction with the FLAG_ACTIVITY_NEW_TASK flag? I have a dialog activity that i want to be started new each time, however when i pass in the FLAG_ACTIVITY_NEW_TASK flag, then the onActivityResult() method of the calling activity is not called when i return from the child activity (usin...
Hi,
the AndroidManifest.xml contains the version name of the application, something like
android:versionName="1.0"
Now the question - is it somehow possible to access this version name in the source code, so that I can display it for example in an About Dialogue?
thanks in advance,
Martin
...
It appears that android's Spinner class (and possibly ListView in general, although I don't know for sure) calls your OnItemSelectedListener's onItemSelected() method after you call setAdapter(), even if the user hasn't explicitly selected anything yet.
I can see how this would be useful in many situations, but there are times when I on...
So i'm starting a application and the first thing to do is make a description of a city when the city is selected. I can show the description but it make the description of all the cities on the same time and it don't come out when i select another city : it add more and more .
this is my code :
public class Main extends Activity imple...
Is there a simple way to obtain the x,y coordinate whenever someone touches the screen while my app is running? Just looking to store them in some integers.
...
I need to obtain the screen resolution, width & height, how do I do that?
Solution:
Display d = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
width = d.getWidth();
height = d.getHeight();
...
Is this possible to interchange a TextView and an EditText. Like display the text when needed, but allow editing when needed. Is there a method (as in NON-XML) way of editing a TextView or non-editing a EditText?
...
Hi guys, im having a hard time trying to indent .xml files using XMLSerializer. I've tried serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);. I've tried to append \n into FileWriter but the output is the \n's and \t's at the beginning of the file and not in the right place. I've tried setPropery with t...
I need to have a listview like it is having for the following android application
Since I cannot post the image this is how it should be
INAGE Over here | Some Free text
| User name etc
Here is your task
Task 1 >
Task 2 >
Task 1 & Task 2 are the list which would be dy...
My app has a TabHost with 3 tabs (checked, unchecked, all). Each of the tabs has a function called fillData() which loops through database records populating a ScrollView. If a user clicks a checkbox on one tab the record will move to the next tab (changing it from checked to unchecked, or vice versa). As it's designed right now the r...