Skip to content

Instantly share code, notes, and snippets.

View morristech's full-sized avatar
🔴
"What I cannot create, I do not understand"

Wade morristech

🔴
"What I cannot create, I do not understand"
View GitHub Profile
apply plugin: 'android-library'
repositories {
mavenLocal()
}
dependencies {
compile 'com.google.android:support-v4:r7'
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#e5e5e5">
<ListView
android:id="@+id/cardListView"
DropboxAccess.setConsumerKey(...);
DropboxAccess.setConsumerSecret(...);
DropboxAccess.getInstance().showAuthentication(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
if(evt.getSource() != null) {
showDropboxFilePicker(true);
}
}
});
private void showDropboxFilePicker(final boolean fileMode) {
final Form previous = Display.getInstance().getCurrent();
Form dropBoxFilePicker = new Form("Dropbox");
dropBoxFilePicker.setScrollable(false);
dropBoxFilePicker.setLayout(new BorderLayout());
Button cancel = new Button("Cancel");
dropBoxFilePicker.addComponent(BorderLayout.SOUTH, cancel);
TreeModel model = new TreeModel() {
public Vector getChildren(Object parent) {
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.custom;
import com.codename1.ui.events.ActionEvent;
import com.codename1.ui.events.DataChangedListener;
import com.codename1.ui.events.SelectionListener;
import com.codename1.ui.util.EventDispatcher;

LogShark is a simple utility to collect logs from an Android device.

I created this to help Android developers collect information from their app's users. This information can be very useful for debugging purposes.

From Android version 4.1 (Jelly Bean) onwards, it has become difficult to collect this information through the device itself. Hence the need for an app that runs on the PC.

Note that the collection of information is entirely voluntary. Moreover, the user can (and should) review the information before sending it to developers or other people.

Pre-requisites

LogShark is a simple utility to collect logs from an Android device using a PC.

I created this to help Android developers collect information from their app's users. This information can be very useful for debugging purposes.

From Android version 4.1 (Jelly Bean) onwards, it has become difficult to collect this information through the device itself. Hence the need for an app that runs on the PC.

Note that the collection of information is entirely voluntary. Moreover, the user can (and should) review the information before sending it to developers or other people.

Pre-requisites

import android.view.animation.Interpolator;
/**
* Created with IntelliJ IDEA, best IDE in the world. User: castorflex Date: 06/06/13 Time: 22:18
*/
public class CustomBounceInterpolator implements Interpolator {
@Override
public float getInterpolation(float t) {
return -(float) Math.abs(Math.sin((float) Math.PI * (t + 1) * (t + 1)) * (1 - t));
@morristech
morristech / TODO
Created September 24, 2013 19:25 — forked from adamstac/TODO
* Review this article and add new steps as needed: http://blog.therubymug.com/blog/2010/05/20/the-install-osx.html