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
void showMessage(String text) | |
{ | |
new AlertDialog.Builder(this) | |
.setTitle(text) | |
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int which) { | |
dialog.dismiss(); | |
} | |
}) | |
.show(); |
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"?> | |
<bitmap | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:src="@drawable/square" | |
android:tileMode="mirror" | |
android:dither="true" | |
android:antialias="true" /> |
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
class AsyncUpload { | |
void request(final String token, final String url, final int method, final Map<String, String> params, final Bitmap bitmap) | |
{ | |
VolleyMultipartRequest volleyMultipartRequest = new VolleyMultipartRequest(method, url, | |
new Response.Listener<NetworkResponse>() { | |
@Override | |
public void onResponse(NetworkResponse response) { | |
try { |
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
<activity | |
android:name=".SplashActivity" | |
android:theme="@style/SplashTheme" | |
android:configChanges="keyboardHidden|orientation" | |
android:screenOrientation="portrait" | |
android:label="@string/app_name"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</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
public class EmailActivity extends Activity { | |
String EMAIL_ADDRESS = "info@example.com"; | |
String EMAIL_SUBJECT = "Information"; | |
String EMAIL_SUBMIT = "Send"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); |
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
public class HandlerActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
handler.post(runnable); | |
} | |