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
SET foreign_key_checks = 0; | |
-- Drop tablesdrop table ... | |
-- Drop viewsdrop view ... | |
SET foreign_key_checks = 1; |
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
HttpPost request = new HttpPost(UriComponentsBuilder | |
.fromHttpUrl(restBaseUrl) | |
.pathSegment("auth", "request_token") | |
.build() | |
.toUriString()); |
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 CustomAdapterOptimize extends ArrayAdapter<Contatto> { | |
public CustomAdapterOptimize(Context context, int textViewResourceId, | |
List<Contatto> objects) { | |
super(context, textViewResourceId, objects); | |
} | |
@Override | |
public View getView(int position, View convertView, ViewGroup parent) { | |
return getViewOptimize(position, convertView, parent); |
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
<beans:bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" p:targetClass="org.springframework.security.core.context.SecurityContextHolder" | |
p:targetMethod="setStrategyName" p:arguments="MODE_INHERITABLETHREADLOCAL" /> |
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
mvn help:describe -Dplugin=appengine |
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
mvn archetype:generate -DarchetypeGroupId=com.google.appengine.archetypes -DarchetypeArtifactId=guestbook-archetype -DarchetypeVersion=1.7.4 |
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
yourTextView.setMovementMethod(new ScrollingMovementMethod()) |
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.os.Parcel; | |
import android.os.Parcelable; | |
public class Point implements Parcelable{ | |
private int x; | |
private int y; | |
public Point(int x, int y) { | |
this.x = x; |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<LinearLayout | |
android:id="@+id/buttons" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="2" | |
android:layout_alignParentBottom="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
First,make sure the emulator is running.Then follow below steps: | |
1. go to tools directory in command | |
2. adb shell | |
3. cd /data/app | |
4. ls (It will display all the .apk installed in your emulator) | |
5. rm ***.apk(which you want to remove) | |
6. exit |