This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
... | |
package="net.tekhnokracy.intentredirect.app" | |
... > | |
<application ... > | |
<activity | |
android:name="net.tekhnokracy.intentredirect.app.DummyActivity" | |
android:exported="false" > | |
<intent-filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OAUTH_TOKEN = '<YOUR ACCESS TOKEN>' | |
OAUTH_SECRET = '<YOUR ACCESS TOKEN SECRET>' | |
CONSUMER_KEY = '<YOUR API KEY>' | |
CONSUMER_SECRET = '<YOUR API SECRET>' | |
# seconds | |
INTERVAL = 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View decorView = getWindow().getDecorView(); | |
int actionBarViewId = decorView.getContext().getResources().getIdentifier("android:id/action_bar", null, null); | |
View actionBarView = getWindow().getDecorView().findViewById(actionBarViewId); | |
actionBarView.setClickable(true); | |
actionBarView.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
Toast.makeText(v.getContext(), "ActionBar is clicked", Toast.LENGTH_LONG).show(); | |
} | |
}); |
NewerOlder