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
sqliteDatabase.delete(Databaseconnector.TABLE_TEMPLET, "TEMPLET = ?", new String[] { templet }); |
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
// insert template in to DB(query) | |
public long insertdata(Model model) { | |
String sql = "INSERT INTO " + Databaseconnector.TABLE_TEMPLET | |
+ "(UNIQUEID,TEMPLET) VALUES (?,?)"; | |
SQLiteStatement objStmt = sqliteDatabase.compileStatement(sql); | |
objStmt.bindString(1, Commonvariable.getUniqueID()); | |
Log.d("tempValue", ""+model.getTemplet()); | |
string=templetOb.getTemplet(); | |
objStmt.bindString(2, templetOb.getTemplet()); | |
long longValue = objStmt.executeInsert(); |
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
import android.app.Activity; | |
import android.os.AsyncTask; | |
import android.util.Log; | |
import com.google.gson.Gson; | |
import com.hestabit.rqchat.connect.Connect; | |
import com.hestabit.rqchat.models.SignUp; | |
import org.apache.http.NameValuePair; |
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
" " | |
& & | |
' ' | |
< < | |
> > | |
\u0020 " " |
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
[ | |
{ | |
"name": "Afghanistan", | |
"alpha-2": "AF", | |
"alpha-3": "AFG", | |
"country-code": "004", | |
"iso_3166-2": "ISO 3166-2:AF", | |
"region-code": "142", | |
"sub-region-code": "034" | |
}, |
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
in Application class | |
@Override | |
public void uncaughtException(Thread thread, Throwable throwable) { | |
//throwable will tell you the resion of crash | |
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), 0, | |
new Intent(this, WelcomeActivity.class), PendingIntent.FLAG_CANCEL_CURRENT);//pass Activity that you want to start at fatal. | |
AlarmManager mgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE); | |
mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 500, pendingIntent); | |
System.exit(2); |
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
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.os.Bundle; | |
import android.provider.MediaStore; | |
import android.support.v7.widget.Toolbar; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import com.goparties.gpuser.util.CropImageView; | |
import java.io.IOException; | |
import butterknife.Bind; |
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 FontChangeCrawler | |
{ | |
private Typeface typeface; | |
public FontChangeCrawler(Typeface typeface) | |
{ | |
this.typeface = typeface; | |
} | |
public FontChangeCrawler(AssetManager assets, String assetsFontFileName) |
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
package com.app.pointme.voicenotificaction; | |
import android.app.DialogFragment; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.Window; | |
import android.view.WindowManager; | |
import android.widget.Button; |
OlderNewer