how to promote my app?

by Xian Chen » Fri, 05 Jun 2009 03:06:31 GMT


Sponsored Links
 What's the effective way to promote an app?

What's your experience?

Thanks

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How can I select or click on an item in a ListView?

As I mentioned in the email subject,
I want to select an item (e.g. Department of Human Resource Management) in
my ListView.
And you can see that:
I had try to use
setClickable(true), setChoiceMode(ListView.CHOICE_MODE_SINGLE),
setFocusable(true), setFocusableInTouchMode(true),
no matter I use touch screen to click on the item or use the scroll ball on
my mouse to select the item, it also doesn't work.
Is there any mistakes in my coding?
I hope someone can give me some ideas what I should do.
because I am a beginner for developing Android application.

And the following is my coding:
package com.example.abc;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class DeptList extends ListActivity {
 int position;
 /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle bund) {
        super.onCreate(bund);

        setListAdapter(new ArrayAdapter<String>(this,
          android.R.layout.simple_list_item_1, DEPARTMENTS));
        getListView().setTextFilterEnabled(true);
        getListView().setClickable(true);
        getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
        getListView().setFocusable(true);
        getListView().setFocusableInTouchMode(true);
        getListView().setOnClickListener(selectItem);
    }

    private OnClickListener selectItem = new OnClickListener()
    {
     public void onClick(View v)
     {
      position = getListView().getCheckedItemPosition();
      if(position == 2)
      {
       Intent contactlist = new Intent();
       contactlist.setClass(DeptList.this, Meeting.class);
       startActivity(contactlist);
      }
      else
      {
       Intent contactlist1 = new Intent();
       contactlist1.setClass(DeptList.this, OfficeMap.class);
       startActivity(contactlist1);
      }
     }
    };

    static final String[] DEPARTMENTS = new String[] {
     "Department of Accounting",
     "Department of Marketing and Sales",
     "Department of Human Resource Management",
     "Department of Computing"
    };
}

-- 

2. Can't run or debug my app on Eclipse

This is the error that eclipse gives with the latest Android SDK:

!ENTRY org.eclipse.core.jobs 4 2 2009-11-05 11:18:45.061
!MESSAGE An internal error occurred during: "Launching android".
!STACK 0
java.lang.NullPointerException
        at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch
(Unknown Source)
        at
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch
(Unknown Source)
        at
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch
(Unknown Source)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch
(LaunchConfiguration.java:853)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch
(LaunchConfiguration.java:703)
        at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch
(DebugUIPlugin.java:866)
        at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run
(DebugUIPlugin.java:1069)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Environment:

Linux myubuntu 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24
UTC 2009 i686 GNU/Linux

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

Any clues on how to solve this error?

Thanks in advance

-- 

3. No internet connection in emulator

4. Displaying Text such as score in an OpenGL game

5. Android 2.0 (eclair) source

6. Screen Sizes with 1.5, 1.6 and 2.0

7. Viewing logs on native android