Hi,
this is my getView method:
public View getView(final int position, View convertView, final ViewGroup parent) {
ViewHolder holder;
if(convertView == null){
holder = new ViewHolder();
convertView = inflater.inflate(R.layout.propviewlistrow, null);
holder.title = (TextView) conver...
Hi,
I am trying to change the content of the tab header but am struggling. I can see that it is possible to pass a View to the setIndicator() method. I tried this and got a removeParent() warning which I dont understand. Has anyone managed to do this successfully. If so can you explain how you did it please?
Clive
...
Hello all, Good day, could you please help me look and this code and tell me what am doing wrong. I have a listview from a Cursor Adapter but when i click on a row, it returns back the row above it and not the target row clicked. which leads to if you click on the first row, it crashes with a "cursor out of bound exception". But when i a...
I having an issue from my HTTP Post.
The code I'm using are working (have tested to post data to a guestbook form and it worked).
Now what I want. I have created two EditText forms, that holds values. I have a submit button there I post this data (like the test I wrote about before), but now I want to post it into a login.php page (tha...
I have a widget that when clicked opens an activity from same app as the widget. When the activity is closed/dismissed via a button, the user will see the full app window IF the app was previously open/in memory. Is there a way for the activity to finish and return to the home screen and not to an existing instance of the app?
Intent i ...
Im kinda new on developing for Android, and i've only completed apps like - hello world, paint pot etc.
I know how to design the layout, but when it comes to the "activity" I alwats messes things up..
So now to my question - I'm creating a app to show my school schedule so I have 5 buttons (monday tuesday wednesday etc.)
Then when I cl...
Hey guys,
thanks again for all the help I have received here!
I have written a Listener that detects when a call has ended.
Furthermore I want to detect wheter the receiver picked up or I ended up on the mailbox.
However, I just can't figure out how to it and can't find anything on the internet (probably searching for the wrong term, ...
I am trying to debug an android app on nexus one with an hierarchy viewer. I start hierarchy view on desktop, Under 'Devices', I see my phone, but when I click 'Start Server', I see
'version = 2
protocol = 2
version = 2' on the terminal of when I start hierarchy viewer.
But nothing else happens, 'Load Vie Hierarchy' remains disabled.
...
I want to have a configurable language settings in my app.
So, in onCreate of my activity, I call Resources.updateConfiguration
with the new locale.
However, after onCreate (at some time, I can't find it when), the
locale is set back to the default locale.
On the code example below, the strings shown in the main layout (as
inflated by...
I am very new to Android Development. I am trying a sample application and it is generating a button dynamically using Java and it is working fine.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
btn=new Button(this);
btn.setOnClickListener(this);
updateTime();
...
Intent emailIntent = new Intent(Intent.ACTION_SEND);
Uri U=Uri.parse("c:/logo.png"); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,"[email protected]");
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Test");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "This is email's message");
emailIntent.setType...
I already have a free app in the Android Market, but I want to add a paid-for version with better features. I can't upload the same up with some changed constants to unlock those features as the Market tells me I already have an app with that package name in the market.
What's the cleanest way of doing this?
...
Updated Android SDK tools 7 (for Eclipse, windows 7 32 bits). But I
got some problems:
Android looks changed some package name, For example, the
"android.intent…"was changed to “android.content.intent…”; the
“android.permission…” was changed to “android.Manifest.permission…”.
If I change the old package name to the new one, the emulato...
I'm am working on a basic augmented reality application on Android. What I did so far is detect a square with opencv and then using cvFindExtrinsicCameraParams2() I calculated a rotation and translation vector. For this I used 4 object points, which are just the corners of a square around (0,0,0) and the 4 corners of the square in the im...
In my app, user writes a phone number, and I want to find the contact name with that phone number?
I usually search the contacts like this:
Cursor cur = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);
But I do this to access all contacts... In this app I only want to get the ...
I have a parent activity (as ACTIVITY GROUP) and some child activity of this parent activity (as ACTIVITY).
I am just calling child1 now i want to move from child1 to child2 and just want to finish() child1.
But when i am calling finish() it is also finishing the parent activity.
Plz send me a solution for it.
...
I have an application and I would like to be able to restart it on the event of an error or a crash/app shutdown. I am familiar with how to register BroadcastReceivers, use alarms, etc.
Is there any signal I could intercept that the app sends out when it shuts down? Or that the OS sends out when any app shuts down?
...
Given a horizontal LinearLayout in Android, I'd like to create:
(1) a textbox which fills nearly the width of the screen, except leaving enough space for...
(2) a button on the right
So I create an EditText and a Button and they're both very small.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:...
friend's
i have to set an image has background for an linear layout,the background has been set well,but here the problem is the image has been shrinked its appearance.
here my xml code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawab...
I want to use Adobe Flash in the development of Android applications. But how do I install flash on the emulator so that I can test my software with flash?
...