- Create release branch:
git branch rb-<version>
- Update the master branch to the next -SNAPSHOT version:
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=-SNAPSHOT
Intent tweetIntent = new Intent(Intent.ACTION_SEND); | |
tweetIntent.putExtra(Intent.EXTRA_TEXT, "This is a Test."); | |
tweetIntent.setType("text/plain"); | |
PackageManager packManager = getPackageManager(); | |
List<ResolveInfo> resolvedInfoList = packManager. | |
queryIntentActivities(tweetIntent, PackageManager.MATCH_DEFAULT_ONLY); | |
boolean resolved = false; | |
for(ResolveInfo resolveInfo: resolvedInfoList){ |
/** | |
* Check if an Intent is available to use | |
* @param intent the Intent to check if is available | |
* @return true if is available, false otherwise | |
*/ | |
private boolean isIntentAvailable(Intent intent) { | |
List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, | |
PackageManager.MATCH_DEFAULT_ONLY); | |
return list.size() > 0; | |
} |
@Override | |
public Filter getFilter() { | |
Filter myFilter = new Filter() { | |
@Override | |
protected FilterResults performFiltering(CharSequence constraint) { | |
FilterResults filterResults = new FilterResults(); | |
if(constraint != null) { | |
List<GenericProduct> filteredProducts = new ArrayList<GenericProduct>(); | |
for(GenericProduct currentGenericProduct : genericProductList){ | |
if(currentGenericProduct.getName().contains(constraint)){ |
<img style="border-radius: 30px;" | |
src="http://static.myopera.com/community/graphics/speeddials/Opera-Background-Colored-Lights.jpg"/> |
import java.io.InputStream; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
public class BitmapHelper { | |
public static int calculateInSampleSize(BitmapFactory.Options options,int reqWidth, int reqHeight) { | |
// Raw height and width of image | |
final int height = options.outHeight; | |
final int width = options.outWidth; |
BitmapShader shader; | |
shader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); | |
Paint paint = new Paint(); | |
paint.setAntiAlias(true); | |
paint.setShader(shader); | |
RectF rect = new RectF(0.0f, 0.0f, width, height); | |
// rect contains the bounds of the shape |
git branch rb-<version>
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=-SNAPSHOT
# Imports the monkeyrunner modules used by this program | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
# Connects to the current device, returning a MonkeyDevice object | |
device = MonkeyRunner.waitForConnection() | |
# Installs the Android package. Notice that this method returns a boolean, so you can test | |
# to see if the installation worked. | |
device.installPackage('../app/target/gauges-android-1.0.apk') |
<%@page import="java.sql.*, javax.sql.*, javax.naming.*"%> | |
<% | |
DataSource ds = null; | |
Connection conn = null; | |
ResultSet result = null; | |
Statement stmt = null; | |
ResultSetMetaData rsmd = null; | |
try{ | |
Context context = new InitialContext(); | |
Context envCtx = (Context) context.lookup("java:jboss/datasources"); |
package com.example; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.webapp.WebAppContext; | |
/** | |
* This class launches the web application in an embedded Jetty container. | |
*/ | |
public class Main { | |