This file contains hidden or 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
| Intent email = new Intent(Intent.ACTION_SEND); | |
| email.setType("message/rfc822"); | |
| email.putExtra(Intent.EXTRA_EMAIL, new String[]{"[email protected]"}); | |
| email.putExtra(Intent.EXTRA_SUBJECT, "subject"); | |
| email.putExtra(Intent.EXTRA_TEXT, "message"); | |
| startActivity(Intent.createChooser(email, "Choose an Email client :")); |
This file contains hidden or 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
| PackageManager manager = this.getPackageManager(); | |
| PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0); | |
| Toast.makeText(this, | |
| "PackageName = " + info.packageName + "\nVersionCode = " | |
| + info.versionCode + "\nVersionName = " | |
| + info.versionName + "\nPermissions = " + info.permissions, Toast.LENGTH_SHORT).show(); |
This file contains hidden or 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
| // In the onCreate() | |
| Intent intent = getIntent(); | |
| if (Intent.ACTION_VIEW.equals(intent.getAction())) { | |
| Uri uri = intent.getData(); | |
| Log.i(TAG, "Started by a user clicking " + urlStr); | |
| doSomethingWithTheUrl(uri.toString();); | |
| } |
This file contains hidden or 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
| <uses-permission android:name="android.permission.WAKE_LOCK" /> |
This file contains hidden or 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
| package pro.schmid.android.secureapp; | |
| import android.app.Activity; | |
| import android.graphics.Color; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.view.View.OnClickListener; | |
| import android.view.ViewGroup; | |
| import android.view.ViewGroup.LayoutParams; | |
| import android.view.WindowManager; |
This file contains hidden or 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
| <uses-permission android:name="android.permission.GET_TASKS" /> |
This file contains hidden or 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
| using System.Collections.Generic; | |
| using System.Text.RegularExpressions; | |
| using Nancy; | |
| namespace NancyComponents | |
| { | |
| public class PostArrayHandler | |
| { | |
| public static object GetFormWithArrays(dynamic form) | |
| { |
NewerOlder