Hooking Chrome's share ?

by temsa » Fri, 05 Jun 2009 03:12:13 GMT


Sponsored Links
 Hi Community :)

I'm a very beginner on Android, doing my first test app using
PhoneGap, and I'm trying to figure out how to do a very stupid thing,
but after about 2 hours searching on different kind of android
documentation, I did not find what I'm looking for... but I'm pretty
sure it's about one or to lines of code ! :(

So, I would like to "hook" the "share" option of the Chrome browser. I
have currently 3 apps registered for this (are they ContentProvider,
something like that ?), gmail, sms and twitdroid, and I just want to
add mine to this list.

I'm very sorry for this stupid question but any help is welcome :)

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



Other Threads

1. Call Recording issue

Hi All,
        I am writing an application to record the call. I have created
an Activity for UI and a Service to start and stop record.

In Service to start record, the code is
////////////////////////
                MediaRecorder recorder=new MediaRecorder();
                File  root=Environment.getExternalStorageDirectory();
                File recordfile=new File(root,"call_file.3gp");

                Log.d(TAG,"FilePath::"+recordfile.getAbsolutePath().toString());
                recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
                recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
                recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
                //recorder.setOutputFile("/data/data/com.example.CallRecorder/
call_file");
                //this.getFilesDir();
                Log.d(TAG,"set path to sdcard........");
                recorder.setOutputFile("/sdcard/call_file.3gp");
                try {
                        recorder.prepare();
                } catch (IllegalStateException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
               recorder.start();
///////////////////////////

After executing a call and starting record, my app is hang and then
ANR alert is coming to close it.
Even i am destroying record service and release recorder , the app is
still hang. It seems that my app loose the control.

The logs coming in loop are:

01-12 11:21:13.159: WARN/AudioRecord(1955): obtainBuffer timed out (is
the CPU pegged?) user=00000000, server=00000000
01-12 11:21:14.164: WARN/AudioRecord(1955): obtainBuffer timed out (is
the CPU pegged?) user=00000000, server=00000000
01-12 11:21:15.169: WARN/AudioRecord(1955): obtainBuffer timed out (is
the CPU pegged?) user=00000000, server=00000000
01-12 11:21:16.173: WARN/AudioRecord(1955): obtainBuffer timed out (is
the CPU pegged?) user=00000000, server=00000000
01-12 11:21:17.173: WARN/AudioRecord(1955): obtainBuffer timed out (is
the CPU pegged?) user=00000000, server=00000000
01-12 11:21:18.180: WARN/AudioRecord(1955): obtainBuffer timed out (is
the CPU pegged?) user=00000000, server=0000000


Please help me to resolve the same.

Thank
Chetan Chauhna

-- 

2. BootStrapService

It's been about a year since I've done anything with
the .BootStrapService. Has anything changed? My service no longer
seems to set its alarm after the phone restarts -- it use to.

I have my broadcast receiver set:


        @Override
        public void onReceive(Context context, Intent intent) {
                BootStrapService.getLock(context).acquire();
                context.startService(new Intent(context, 
BootStrapService.class));
        }

and the service is defined in the manifest:

<service android:enabled="true" android:name=".BootStrapService" />

The build target is Google APIs 2.2 and the minSdkVersion=4.
BootStrapService class creates an alarm. Anything basic I've missed?

Ken

-- 

3. Theme.Dialog bug in 2.1?

4. Android Browser and filtering URLs

5. Can "package installer" access private file of an app

6. Separate assets - multiple apks

7. Testing an Android App