Creating an app to add a function to Browser's "Share Page"

by Thomas » Tue, 03 Mar 2009 02:52:34 GMT


Sponsored Links
 Hi everyone,

I'll start by saying that I'm very new Android and Java programing
altogether.  I'm really interested in learning it, and I have an idea
that's really driving me.

My previous phone had an option in Pocket IE to "Send Link" to and SMS
recipient.  I haven't been able to do this within Android.  I would
like to develop an app that will add a "Messaging" option to the
"Share Page" function in Browser that would hand the link off to an
SMS message rather than a Gmail message.  I currently have Twitteroid
and Beelicious installed and both add an option to "Share Page".

Any suggestions on what I will need to do this?

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



Creating an app to add a function to Browser's "Share Page"

by ANDROID_TECHIE » Fri, 06 Mar 2009 05:24:10 GMT


 Hi...

It's good to see someone who is a beginner like me.. i would
definitely like to be in touch with you to begin making new
applications.. sharing helps in learning .. i feel..
i m totally new to android platform but aware about java basics.. ..
working on a project to develop an application for Google phones
regarding booking of cabs..
i feel that by being in touch we both can help each other.. what do
you say??? right now , i m getting my basics right for android sdk
(eclipse)..
what is your status???
do reply...
c ya




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


Sponsored Links


Other Threads

1. LiveFolders Cursor-returned Intent not working

I'm trying to get a LiveFolder implementation working, but I can't
seem to be able to. I'm able to create the ContentProvider and the
items show up nicely. However, I can't seem to be able to return a
proper Intent in the Cursor from my ContentProvider to launch my
activity. Relevant bits of my code:

* Creating the LiveFolder:

        if (LiveFolders.ACTION_CREATE_LIVE_FOLDER.equals(action)) {
                setResult(RESULT_OK, createLiveFolder(this, CONTENT_URI,
"Favorites", R.drawable.ic_favorites_folder));
        }

        private static Intent createLiveFolder(Context context, Uri uri,
String name, int icon) {
                final Intent intent = new Intent();
                intent.setData(uri);
                intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_NAME, name);
                intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_ICON,
                                
Intent.ShortcutIconResource.fromContext(context, icon)
                        );
                intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_DISPLAY_MODE,
LiveFolders.DISPLAY_MODE_LIST);

                return intent;
        }

* From the provider (this is how I create the Intent I pass in the
LiveFolders.INTENT column):

        i = new Intent("com.myapp.intent.details");
        i.putExtra(MyApp.KEY_RESOURCE_NAME, name);
        i.putExtra(MyApp.KEY_RESOURCE_TYPE, type);

* From my Manifest:

        <activity android:name=".TasteKidDetails">
                <intent-filter>
                        <action android:name="com.myapp.intent.details" />
                        <category 
android:name="android.intent.category.DEFAULT" />
                </intent-filter>
        </activity>

When I click on an item I get a "Application not installed on your
phone" error. Logcat says:

        I/ActivityManager(   74): Starting activity: Intent
{ act=android.intent.action.VIEW dat=Intent
{ act=com.myapp.intent.details (has extras) } flg=0x10000000 }

Basically, for some reason, the Intent I return in the cursor is
passed as the data of the actual intent that it tries to fire, which
has a VIEW action. Why is this happening?

I tried to post as little and as relevant code I could. If you think I
should post more, let me know.

-- 

2. Can I compile an app in 1.6 and run it on a 1.5 device?



You will need to either use reflection or conditional class loading to
deal with APIs newer than the minimum.

Here is an example of using reflection:

http://github.com/commonsguy/cw-android/tree/master/APIVersions/Tagger2/

Here is an example of using conditional class loading:

http://github.com/commonsguy/cw-advandroid/tree/master/Contacts/Spinners/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

-- 

3. WTGive: Matrix Broadband 0814

4. I570EDXJC4 dah bisa didonlot

5. How to change the normal behaviour of a listview

6. aplikasi p--no (pic gallery)

7. CTS not detecting Zoom2 device