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. problem while creating a local service.

Hi,

I am developing a media player which uses a local service. I am
getting JDI thread evaluation error, exception in async thread.
My code is as below:


This is in the Activity class :
I create a thread which starts my local service, binds the activity to
the service and then gets the media player current position and the
duration from the service till the end of the song.

mConnection = new ServiceConnection() {

                         public void onServiceConnected(ComponentName
className, IBinder service) {

                              mBoundService =
((IMusicService.LocalBinder)service).getService();
                             Log.i("LocalService","OnserviceConnected");

                         }

                         public void onServiceDisconnected(ComponentName
className) {

                                mBoundService = null;
                                Log.i("onservicedisconnected", "service getting
disconnected");

                         }
 };


new Thread(new Runnable() {
                 public void run() { //this will be execute by the new thread


                          boolean bind = bindService(i, mConnection,
Context.BIND_AUTO_CREATE);
                          startService(i);

                 while (! reached || isPlaying ) {
                          // mProgressStatus = setProgress();

                        if(bind){
                                if(mBoundService!=null){
                                        pBarPosition= 
mBoundService.getCurrentPosition();
                                        duration = mBoundService.getDuration();

                                        if((pBarPosition == duration)){
                                                reached = true;
                                                stopService(i);
                                                Log.i("stopped 
service","stopped service");
                                            }

                                        if (mProgress != null) {
                                            if (duration > 0) {
                                                mProgressStatus = (int)(100L * 
pBarPosition /
duration);
                                                
//Log.i("mProgressStatus","strings");
                                            }
                                        }
                              }
                            }
                            else
                           Log.i("service is null","service is null in this
thread");
                           pCurrentTime = stringForTime(pBarPosition);
                           pEndTime = stringForTime(duration);


        newHandler.post(new Runnable() {
                          public void run() {
 
mProgress.setProgress(mProgressStatus);
 
mEndTime.setText(pEndTime);
 
mCurrentTime.setText(pCurrentTime);


                          }
                  });


              }
          }
      }).start();


In my service I do the following:

public void onStart(Intent intent,  int startId) {
                //super.onStart(intent, startId);
                android.os.Debug.waitForDe{*filter*}();  // this was for debugging
                Bundle b = intent.getExtras();
                    path = b.getString("path");              // getting the url 
path
for the song to be played which I pass from my activity
                    Log.i("path",path);


         new Thread(new Runnable() {
                 public void run() { //this will be execute by the new
thread  - i create the mediaplayer and start it in this thread
                         try
                        {

                            mMediaPlayer.setDataSource(path);
                            mMediaPlayer.prepare();
                         }
                              catch (Exception e)
                                     {
                                  e.printStackTrace();
                             }

                          mMediaPlayer.start();
                          currentPosition = mMediaPlayer.getCurrentPosition();
                  duration        = mMediaPlayer.getDuration();
                  isPlaying       = mMediaPlayer.isPlaying();
                  playing = pausePressed();
                        mHandler.post(new Runnable() {
                        public void run() {                          //
here i return all the values calculated to the main service thread..
                        setCP();
                        setDuration();
                        setP();

                        }
                });

                  }
         }).start();


Please can anyone let me know if they encountered any such problems
while creating a local service where you need to pass values from the
activity to the service and vice versa.

Thanks,
Prajakta

-- 

2. Voice recognition API bug?

Hey

The voice recognition API and example (http://developer.android.com/
intl/de/resources/samples/ApiDemos/src/com/example/android/apis/app/
VoiceRecognition.html) says that the result intent of voice
recognition intent contains the list of words that recognizer "heard".
It I say few words all of them appear in one list position, not every
word separately on list positions. Is this behavior expected (if so,
when other list position could be filled?) or do I miss something?

-- 

3. Linux SDK

4. Cash for structured settlement

5. How to get the keys from ContentValues?

6. what can I make for Android?

7. adb error -- device not found