Re: BP Album+ || New Features Requests and Discussion
Foxly,Keep up the great work…. if you can look into this ,your plugin could be large for mobile & twitter users!
Release an api for the album plugin so that devel can use it.
If you can create a plugin for twidroid is the industry-standard twitter client for android and among the most used twitter applications .
FYI http://twidroid.com/plugins
twidroid supports plugins to allow android developers extend the core functionality with features such as sharing with other services or integrating your own url shortener.
Sample:
BUILD YOUR OWN – BASIC API & PLUGIN INSTRUCTIONS
sending tweets from your own applications
### via web apps for android:
//<html>
//<h2>send a Message with twitter:// url handler</h2>
//<p>Send a message via Twidroid</p>
//</html>
###########
) creating plugins for twidroid
plugins for twidroid need to respond to the mime-type: application/twidroid-plugin.get
sample AndroidManifest.xml snippet from Google Maps 4 twidroid plugin:
<activity android:icon=”@drawable/tweet_geo” android:name=”LocationDialog”
android:label=”@string/chooser_label” android:theme=”@style/SpecialDialog”>
<intent-filter>
<category android:name=”android.intent.category.DEFAULT” />
<action android:name=”com.twidroidplugins.maps.LocationDialog”/>
<!– respond to mime-type application/twidroid-plugin.get –>
<data android:mimeType=”application/twidroid-plugin.get” />
<action android:name=”android.intent.action.GET_CONTENT” />
</intent-filter>
</activity>
the plugin can return the following data types back to twidroid:
Intent.EXTRA_TEXT use to return text to Twidroid
setData to return a URL
Extra Strings: “latitudeâ€, “longitude†to return location information
sample code snipped from Google Maps 4 twidroid plugin:
this snipped shows how the plugin returns an URL as well as location information back to twidroid.
Intent returnData = new Intent();
returnData.setData(Uri.parse(“http://maps.google.com?q=”
+ myLocationOverlay.getLastFix().getLatitude()+ “,”
+ myLocationOverlay.getLastFix().getLongitude() ));
returnData.putExtra(“latitude”, myLocationOverlay.getLastFix().getLatitude());
returnData.putExtra(“longitude”, myLocationOverlay.getLastFix().getLongitude());
setResult(RESULT_OK, returnData);
finish();
full source code for the Google Maps 4 twidroid plugin available at