Is there any release plan to provide following feature

by sushil » Sat, 19 Sep 2009 10:32:08 GMT


Sponsored Links
 Hello,
I want to log follwing events in Android.
1) URL typed in browser and also URL for redirected page, response
code of request.
2) Download initiated by browser, in that what is MIME type of
content, content size(Bytes)
3) Receive call back when Music , Video started , paused or stopped.
4) Log position of activity Icon in Launcher activity.

But currently there is no any API or system service is available.
Is there any plan to provide these API/Service ?
If Yes , when it will be available ?

Please provide answer to these questions,

Thanks in advance.

Regads,
Sushil



Other Threads

1. java.lang.IllgealArgumentException:OnCreateDialog did not create a dialog for id ..

Hello,guys!
I encountered a problem while I run the application below.The UI can
appear in the emulator screen normally,but while I click the button
the bug appears.Below I attach the source and the logcat:


the source code:

HelloDatePicker.java

package HelloDatePicker.pkg;
import java.util.Calendar;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.TextView;

public class HelloDatePickerAct extends Activity {
    /** Called when the activity is first created. */
        private TextView mDateDisplay;
        private Button mPickDate;
        private int mYear;
        private int mMonth;
        private int mDay;
        static final int DATE_DIALOG_ID=0x00000000;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        //capture our View elements
        mDateDisplay=(TextView)findViewById(R.id.DateDisplay);
        mPickDate=(Button)findViewById(R.id.PickDate);


        //get the current date
        final Calendar c=Calendar.getInstance();
        mYear=c.get(Calendar.YEAR);
        mMonth=c.get(Calendar.MONTH);
        mDay=c.get(Calendar.DAY_OF_MONTH);

        //display the current date
        updateDisplay();


        //add a click listener to the button
        mPickDate.setOnClickListener(new View.OnClickListener() {

                        @Override
                        public void onClick(View v) {
                                // TODO Auto-generated method stub
                                showDialog(DATE_DIALOG_ID);
                        }
                });
    }

    protected Dialog OnCreateDialog(int id){
        switch(id){
        case DATE_DIALOG_ID:
                return new DatePickerDialog
(this,mDateSetListener,mYear,mMonth,mDay);
        }
        return null;
        }
//updates the date we display in the TextView
    private void updateDisplay()
{
        mDateDisplay.setText(new StringBuilder()
        //Month is 0 based so add 1
        .append(mMonth+1).append("-")
        .append(mDay).append("-")
        .append(mYear).append(" "));
}

 // the callback received when the user "sets" the date in the dialog
    private DatePickerDialog.OnDateSetListener mDateSetListener =
            new DatePickerDialog.OnDateSetListener() {

                public void onDateSet(DatePicker view, int year,
                                      int monthOfYear, int dayOfMonth)
{
                    mYear = year;
                    mMonth = monthOfYear;
                    mDay = dayOfMonth;
                    updateDisplay();
                }
            };

}


main.xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/DateDisplay"
android:editable="false"></TextView>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/PickDate"
android:text="Change the date" android:clickable="false"></Button>
</LinearLayout>




I  debug step by step and while debugging at the breakpoint
onClick,the logcat  appears as below:
11-04 01:15:03.152: ERROR/AndroidRuntime(809): Uncaught handler:
thread main exiting due to uncaught exception
11-04 01:15:03.180: ERROR/AndroidRuntime(809):
java.lang.IllegalArgumentException: Activity#onCreateDialog did not
create a dialog for id 0
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.app.Activity.createDialog(Activity.java:869)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.app.Activity.showDialog(Activity.java:2408)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
HelloDatePicker.pkg.HelloDatePickerAct$2.onClick
(HelloDatePickerAct.java:49)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.View.performClick(View.java:2344)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.View.onTouchEvent(View.java:4133)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.widget.TextView.onTouchEvent(TextView.java:6504)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.View.dispatchTouchEvent(View.java:3672)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1202)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.os.Handler.dispatchMessage(Handler.java:99)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.os.Looper.loop(Looper.java:123)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
android.app.ActivityThread.main(ActivityThread.java:4203)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
java.lang.reflect.Method.invoke(Method.java:521)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
11-04 01:15:03.180: ERROR/AndroidRuntime(809):     at
dalvik.system.NativeStart.main(Native Method)
11-04 01:15:03.220: ERROR/dalvikvm(809): Unable to open stack trace
file '/data/anr/traces.txt': Permission denied



use it correctly and I can't get any help from the sdk docs,please
help!

I have another question about '11-04 01:15:03.220: ERROR/dalvikvm
(809): Unable to open stack trace file '/data/anr/traces.txt':
Permission denied' ,how to do with it?

3Q!





-- 

2. code stepping icons disabled

Hi, Stack.

I have just started with Android it runs on the Eclipse SDK. Eclipse
version: 3.5.1 and Android 2.0.1
I need to debug my code by stepping through it. However, the "step in"
and "step over" buttons are
disabled in the debug environment. How can I enable these buttons?

3. Keys don't work with SurfaceView

4. java.awt.font error when opening Android Layout editor

5. T-Mobile prepaid sidekick plan?

6. Centering ImageButtons within TableRow

7. Working in Windows 2000