<activity android:name=".PackageInstallerActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" />
<data android:scheme="file" />
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
static final String AB = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | |
static SecureRandom rnd = new SecureRandom(); | |
public static String randomString( int len ){ | |
StringBuilder sb = new StringBuilder( len ); | |
for( int i = 0; i < len; i++ ) | |
sb.append( AB.charAt( rnd.nextInt(AB.length()) ) ); | |
return sb.toString(); | |
} |
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
ObjectMapper mapper = new ObjectMapper(); | |
List<MaterialRequestSubFO> materialLst = mapper | |
.readValue(data, TypeFactory.defaultInstance() | |
.constructCollectionType(List.class, MaterialRequestSubFO.class)); | |
System.out.println("Lst Size---->"+materialLst.size()); |
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
<a href="complexDownload" download="MyResume.docx" onclick="this.href='MyResume.docx';" class="white-text">My Resume</a> |
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
private boolean checkMyPermission(boolean isSecondTimeCheck) { | |
String dialogTitle = "need WRITE_SETTINGS permission"; | |
if (isSecondTimeCheck) dialogTitle = "you deny the permission"; | |
String btnTitle = "ok", if (isSecondTimeCheck) btnTitle = "try again"; | |
if (Build.VERSION.SDK_INT >= 23) { | |
if (!Settings.System.canWrite(this)) { | |
new AlertDialog.Builder(mContext).setMessage(dialogTit le).setPositiveButton(btnTitle, new DialogInterface.OnClickListener() { | |
@override |
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
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { | |
if (Settings.System.canWrite(context)) { | |
RingtoneManager.setActualDefaultRingtoneUri( | |
context, | |
RingtoneManager.TYPE_RINGTONE, | |
newUri | |
); | |
}else{ | |
Log.e(TAG, "newUri: --------------------------------not granted this permission: android.permission.WRITE_SETTINGS" ); | |
} |
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
@Override | |
public void onBackPressed() { | |
new AlertDialog.Builder(this).setIcon(R.drawable.ic_alert).setTitle("Exit") | |
.setMessage("Are you sure you want to exit?") | |
.setPositiveButton("Yes", new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialog, int which) { | |
finish(); | |
System.exit(0); | |
} |
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
<resources> | |
<style name="Theme.Transparent" parent="android:Theme"> | |
<item name="android:windowIsTranslucent">true</item> | |
<item name="android:windowBackground">@android:color/transparent</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowIsFloating">true</item> | |
<item name="android:backgroundDimEnabled">false</item> | |
</style> | |
</resources> |
This file has been truncated, but you can view the full file.
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
BEGIN TRANSACTION; | |
CREATE TABLE thirukkural ( | |
`Number` INT, | |
`Line1` VARCHAR(50) , | |
`Line2` VARCHAR(34) , | |
`Translation` VARCHAR(364) , | |
`mv` VARCHAR(158), | |
`sp` VARCHAR(436) , | |
`mk` VARCHAR(362) , | |
`explanation` VARCHAR(210), |