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
try { | |
ByteArrayOutputStream output = new ByteArrayOutputStream(); | |
output = createPDF(); | |
response.addHeader("Content-Type", "application/force-download"); | |
response.addHeader("Content-Disposition", "attachment; filename=\"yourFile.pdf\""); | |
response.getOutputStream().write(output.toByteArray()); | |
} | |
catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
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
body { | |
background: url(http://subtlepatterns.com/patterns/scribble_light.png) ; | |
} | |
#wrapper { | |
width: 90%; | |
max-width: 1100px; | |
min-width: 800px; | |
margin: 50px auto; | |
} |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<forkMode>pertest</forkMode> | |
<!-- this is what triggers the problem, having it to "never" works also --> | |
<systemProperties> | |
<property> | |
<name>log4j.configuration</name> | |
<value>file:target/test-classes/log4j.xml</value> |
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 -Dmaven.surefire.debug test |
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 |
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
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
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
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
mvn help:describe -Dplugin=appengine |
OlderNewer