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
| private void getCallDetails() { | |
| StringBuffer sb = new StringBuffer(); | |
| Cursor managedCursor = managedQuery(CallLog.Calls.CONTENT_URI, null, null, null, null); | |
| int number = managedCursor.getColumnIndex(CallLog.Calls.NUMBER); | |
| int type = managedCursor.getColumnIndex(CallLog.Calls.TYPE); | |
| int date = managedCursor.getColumnIndex(CallLog.Calls.DATE); | |
| int duration = managedCursor.getColumnIndex(CallLog.Calls.DURATION); | |
| sb.append("Call Log :"); | |
| while (managedCursor.moveToNext()) { | |
| String phNumber = managedCursor.getString(number); |
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
| public class MyActivity extends ActionBarActivity { | |
| SomsHelper somsHelper; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_my); | |
| somsHelper = new SomsHelper(this); |
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
| public class MyActivity extends ActionBarActivity { | |
| SomsDatabaseAdapter somsDatabaseAdapter; | |
| EditText userName,passWord; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_my); | |
| userName = (EditText) findViewById(R.id.edittext_username); |
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
| public class MyActivity extends ActionBarActivity { | |
| SomsDatabaseAdapter somsDatabaseAdapter; | |
| EditText userName,passWord; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_my); | |
| userName = (EditText) findViewById(R.id.edittext_username); |
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 com.soms.mytestingapplications; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.view.View; | |
| import android.widget.EditText; | |
| public class MyActivity extends ActionBarActivity { |
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
| /** | |
| * | |
| * Java program to reverse String in Java. There are multiple ways to reverse | |
| * String in Java, you can either take help of standard Java API StringBuffer | |
| * to reverse String in Java. StringBuffer has a reverse() method which return StringBuffer | |
| * with reversed contents. On the other hand you can also reverse it by applying your | |
| * own logic, if asked to reverse String without using StringBuffer in Java. By the way | |
| * you can also use StringBuilder to reverse String in Java. StringBuilder is non thread-safe | |
| * version of StringBuffer and provides similar API. You can use StringBuilder's reverse() | |
| * method to reverse content and then convert it back to String |
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
| for file in *.png.webp; do mv "$file" "${file%.png.webp}.webp"; done |
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
| { | |
| "name" : { | |
| "first" : "Joe" | |
| , "last" : "Sixpack" | |
| } | |
| , "gender" : "MALE" | |
| , "verified" : false | |
| , "userImage" : "Rm9vYmFyIQ==" | |
| } |
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
| ObjectMapper mapper = new ObjectMapper(); | |
| int one = 0; | |
| try { | |
| one = mapper.readValue("1", int.class); | |
| } catch (IOException e) { | |
| e.printStackTrace(); | |
| } | |
| Config.t(getBaseContext()," "+one); |
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
| <View | |
| android:layout_width="fill_parent" | |
| android:layout_height="2dp" | |
| android:background="#c0c0c0"/> |