To generate a pom.xml file just run gradle writeNewPom
If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")
| /* | |
| * Author: Felipe Herranz ([email protected]) | |
| * Contributors:Francesco Verheye ([email protected]) | |
| * Israel Dominguez ([email protected]) | |
| */ | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.concurrent.atomic.AtomicBoolean; | |
| import android.os.Handler; |
| /* | |
| * Copyright (C) 2014 Antonio Leiva Gordillo. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| package se.marteinn.ui; | |
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.widget.ScrollView; | |
| /** | |
| * Triggers a event when scrolling reaches bottom. |
| public class MyAsyncTask extends AsyncTask<Void, Void, Cursor> { | |
| @Override | |
| protected Cursor doInBackground(Void... params) { | |
| DatabaseHelper helper = new DatabaseHelper(MainActivity.this); | |
| return helper.getReadableDatabase().rawQuery("SELECT * FROM myTable", null); | |
| } | |
| @Override |
| #!/bin/bash | |
| # Android 4.3+ changes app's internal directory permissions and you can not just pull your | |
| # databases to your computer, so I did this as a workaround to extract my databases. | |
| # I only use it for debug, use it under your responsability. | |
| package=$1 | |
| db_name=$2 | |
| path="/data/data/$package/" |
| public class ListFragment extends Fragment { | |
| //DAO datasource; | |
| //List<Joke> values; | |
| public ListFragment(){} | |
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
| Bundle savedInstanceState) { | |
| View rootView = inflater.inflate(R.layout.test_fragment_list, container, false); |
| /* | |
| * Copyright 2013 Evelio Tarazona Cáceres <evelio@evelio.info> | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
To generate a pom.xml file just run gradle writeNewPom
If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")
| Typeface face = Typeface.createFromAsset(getAssets(), "yourfont.ttf"); |
| package robotograph; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.PorterDuff; | |
| import android.graphics.PorterDuffXfermode; | |
| import android.util.AttributeSet; |