0
我正在做一個Android應用程序。ANDROID - 更新狀態鏈接(在應用程序的背景)
我有產品清單。
如果我當時選擇一個產品與Linkedin
產品共享與用戶名。
我想要這樣的下面的代碼(示例代碼的twitter分享)。我想要Linkedin
。
private final static Handler mTwitterHandler = new Handler();
private static SharedPreferences prefs;
public static boolean TWEET_LOGIN = false;
final static Runnable mUpdateTwitterNotification = new Runnable() {
public void run() {
}
};
public static void sendTweet(Context con, final String msj) {
prefs = PreferenceManager.getDefaultSharedPreferences(con);
Thread t = new Thread() {
public void run() {
try {
TwitterUtils.sendTweet(prefs, msj);
mTwitterHandler.post(mUpdateTwitterNotification);
} catch (Exception ex) {
ex.printStackTrace();
Log.d("dhaval-->send tweet:", ex.getMessage().toString());
}
}
};
t.start();
}
如果是的話可以或不可以如何?