Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="12"> | |
<profile kind="CodeFormatterProfile" name="Android" version="12"> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectCodeStyleSettingsManager"> | |
<option name="PER_PROJECT_SETTINGS"> | |
<value> | |
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" /> | |
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" /> | |
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND"> | |
<value /> | |
</option> |
package com.seafile.seadroid2.transfer; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import com.seafile.seadroid2.SeadroidApplication; | |
import com.seafile.seadroid2.data.DataManager; | |
import java.io.File; |
package com.seafile.seadroid2.transfer; | |
import android.content.ContentValues; | |
import android.database.Cursor; | |
import android.database.DatabaseUtils; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.util.Log; | |
import com.google.common.collect.Lists; | |
import java.util.List; |
public class DatabaseHelper extends SQLiteOpenHelper { | |
//The Android's default system path of your application database. | |
private static String DB_PATH = "/data/data/test.test/databases/"; | |
private static String DB_NAME = "TestDatabase"; | |
private static final int DB_VERSION = 1; | |
private SQLiteDatabase myDatabase; |
private static final int VER_LAUNCH = 21; | |
private static final int VER_SESSION_FEEDBACK_URL = 22; | |
private static final int VER_SESSION_NOTES_URL_SLUG = 23; | |
private static final int DATABASE_VERSION = VER_SESSION_NOTES_URL_SLUG; | |
... | |
@Override | |
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { |
import android.os.Bundle; | |
import android.support.v4.app.DialogFragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.AbsListView; | |
import android.widget.ListView; | |
import com.actionbarsherlock.app.SherlockListFragment; | |
import com.actionbarsherlock.view.ActionMode; | |
import com.actionbarsherlock.view.Menu; |
/** | |
* Attempts to open a file for viewing. | |
* | |
* @param fileholder The holder of the file to open. | |
*/ | |
public static void openFile(FileHolder fileholder, Context c) { | |
Intent intent = new Intent(android.content.Intent.ACTION_VIEW); | |
Uri data = FileUtils.getUri(fileholder.getFile()); | |
String type = fileholder.getMimeType(); |