text
stringlengths
3
1.18M
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
package org.curiouscreature.android.shelves.activity; import java.util.Date; import org.curiouscreature.android.shelves.R; import org.curiouscreature.android.shelves.util.CookieStore; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import andr...
/* * Copyright (C) 2009 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 The Android Open Source Project, Romain Guy * * 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 req...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Google Inc. * * 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 agree...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 The Android Open Source Project, Romain Guy * * 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 req...
/* * Copyright (C) 2008 Romain Guy * * 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...
package org.curiouscreature.android.shelves.util; import android.os.Handler; import android.os.Looper; import android.os.Message; public class MessageHandler extends Handler { public MessageHandler(Looper looper) { super(looper); } @Override public void handleMess...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
package org.curiouscreature.android.shelves.util; import org.curiouscreature.android.shelves.R; import org.curiouscreature.android.shelves.activity.AddBookActivity; import org.curiouscreature.android.shelves.provider.BookStoreFactory; import org.curiouscreature.android.shelves.provider.BooksManager; import org.c...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 The Android Open Source Project, Romain Guy * * 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 req...
/* * Copyright (C) 2008 The Android Open Source Project, Romain Guy * * 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 req...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 The Android Open Source Project, Romain Guy * * 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 req...
package org.curiouscreature.android.shelves.activity; import java.util.ArrayList; import java.util.List; import org.curiouscreature.android.shelves.R; import org.curiouscreature.android.shelves.provider.BookStoreFactory; import org.curiouscreature.android.shelves.provider.BooksManager; import org.curiouscreat...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
/* * Copyright (C) 2008 Romain Guy * * 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...
package org.curiouscreature.android.shelves.activity; import java.util.Date; import org.curiouscreature.android.shelves.R; import org.curiouscreature.android.shelves.util.CookieStore; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import andr...
/* * Copyright (C) 2009 Romain Guy * * 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...
package com.beyondsoft.dao; import java.util.ArrayList; import java.util.List; import com.beyondsoft.model.Book; import android.content.ContentResolver; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.util.Log; public class DBManager { pu...
package com.beyondsoft.dao; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import com.beyondsoft.model.Book; import com.beyondsoft.provider.Da...
package com.beyondsoft.provider; import java.util.ArrayList; import java.util.List; import com.beyondsoft.model.Book; import android.content.ContentResolver; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.util.Log; public class DBManager { ...
package com.beyondsoft.provider; import android.database.ContentObserver; import android.os.Handler; import android.widget.Toast; public class MyContentObserver extends ContentObserver{ public MyContentObserver(Handler handler) { super(handler); // Toast.makeText(this, "", 1).show(); } }
package com.beyondsoft.provider; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; ...
package com.beyondsoft.provider; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DatabaseHelper extends SQLiteOpenHelper { private static String database_name = "books_database.db"; private static int database_ver...
package com.beyondsoft.model; public class Book { private int id; private String book_name; private String author; private String isbn; private String cover; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getBook_name() { return book_name; ...
package com.beyondsoft.activity; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.net.Uri; import android.os.Bun...
package com.beyondsoft.activity; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.os.Bundle; import android.util...
package com.beyondsoft.activity; import android.content.Context; import android.widget.Toast; public class UIUtil { public static void showToast(Context context, String str) { Toast.makeText(context, str, 1).show(); } }
package android.textIt.util; import java.util.List; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.telephony.TelephonyManager; import android.textIt.backend.dao.UserDao; import android.textIt.backend.m...
package android.textIt.backend.model; import java.io.Serializable; import java.util.Date; import android.database.Cursor; import android.textIt.backend.database.DatabaseHelper; public class Message implements Serializable { private static final long serialVersionUID = 2058011989636841724L; protecte...
package android.textIt.backend.model; import android.database.Cursor; public class Group extends Contact { private static final long serialVersionUID = 412351700219301683L; //1 == yes, 0 == no private int isTemporary; public Group() { } public Group (long id){ this.id = id; ...
package android.textIt.backend.model; import android.database.Cursor; public class User extends Contact { private static final long serialVersionUID = 2272556664127354658L; private long phone = 000000000; private int isTextItUser = 0; private long iGroup = -1; public User() { } public...
package android.textIt.backend.model; import java.io.Serializable; import android.database.Cursor; public class Status implements Serializable { private static final long serialVersionUID = -4293233369647807265L; private Integer id; private String status; public Status(){ } publ...
package android.textIt.backend.model; import java.io.Serializable; public abstract class Contact implements Serializable { private static final long serialVersionUID = 4771704977772399794L; protected long id; protected String name; protected long reference_id = -1; /** * @return the id ...
package android.textIt.backend.database; import java.sql.Timestamp; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android...
package android.textIt.backend.database; public class DBProperties { public final static String USER_TABLE = "users"; public final static String GROUP_TABLE = "groups"; public final static String USER_GROUP_TABLE = "user_group"; public final static String STATUS_TABLE = "status"; public final static...
package android.textIt.backend.dao; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.c...
package android.textIt.backend.dao; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.c...
package android.textIt.backend.dao; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.c...
package android.textIt.backend; public class Properties { public final static String SERVER_URL = "http://10.0.2.2:8080/TextApp"; // public final static String SERVER_URL = "http://128.237.122.204:8080/TextApp"; public final static boolean useServer = true; }
package android.textIt.frontend.activity; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.textIt.R; import android.textIt.backend.dao.GroupDao; import android.textIt.backend.dao.UserDao; import android.t...
package android.textIt.frontend.activity; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.textIt.R; import android.textIt.backend.d...
package android.textIt.frontend.activity; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.textIt.R; import and...
package android.textIt.frontend.activity; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.speech.Recogni...
package android.textIt.frontend.activity; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.TabActivity; import android.content.DialogInterface; import android.content.Intent; import android.databa...
package android.textIt.frontend.adapter; import java.util.List; import android.content.Context; import android.textIt.R; import android.textIt.backend.model.User; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android....
package android.textIt.frontend.adapter; import java.util.List; import android.content.Context; import android.textIt.R; import android.textIt.backend.model.Message; import android.textIt.frontend.activity.MainActivity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGr...
package android.textIt.frontend.adapter; import java.util.List; import android.content.Context; import android.textIt.R; import android.textIt.backend.model.Message; import android.textIt.backend.model.User; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import...
package android.textIt.frontend.adapter; import java.util.List; import android.content.Context; import android.textIt.R; import android.textIt.backend.dao.GroupDao; import android.textIt.backend.model.Group; import android.textIt.util.TextItUtil; import android.view.LayoutInflater; import android.view.View;...
package android.textIt.frontend.adapter; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.textIt.R; import android.textIt.backend.model.User; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.A...
package android.textIt.frontend.adapter; import java.util.List; import android.content.Context; import android.textIt.R; import android.textIt.backend.model.User; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android....
package android.textIt.frontend.broadcast; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsM...
package android.textIt.frontend.broadcast; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.textIt.backend.dao.UserDao; import android.textIt.util.Te...
package net.hanjava.test; import android.app.Activity; import android.os.Bundle; public class TouchActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TouchView v = new...
package net.hanjava.test; public class TouchData { public float x; public float y; public float r; }
package net.hanjava.test; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; public class TouchView extends View { public static final int QUEUE_CAPACITY = 20; public static final...
package mobile.android.Hotel; import java.util.ArrayList; import mobile.android.Hotel.Hotel; import mobile.android.Hotel.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import an...
package mobile.android.Hotel; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import android.sax.Element; import android.sax.EndElementListener; import android.sax.EndTextElementListener; import android.sax.RootElement; impo...
package mobile.android.Hotel; public class Hotel { //int id; String name; int lv; String prince; String add; String phone; String web; String logo; /*public int getId() { return id; } public void setId(int id) { this.id = id; }*/ public String getLv()...
package mobile.android.Hotel; import java.util.ArrayList; import mobile.android.Hotel.R; import mobile.android.Hotel.ExpandableListAdapter; import mobile.android.Hotel.Hotel; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Expandab...
package mobile.android.Hotel; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitm...
package mobile.android.Hotel; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import andro...
package com.styp152.Android.File.TakeNote; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; impo...
package com.styp152.Android.File.TakeNote; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import...
package com.styp152.Android.Preferents; import java.io.InputStream; import java.util.ArrayList; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import android.app.ListActivity; import and...
package org.cyrano.draw; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; /** * @author Demián Gutierrez */ public class DrawActivity extends Activity { private CustomDrawView customDrawView; // -------------------------------------------------------------------------------...
package org.cyrano.draw; import java.lang.reflect.Method; /** * @author Demián Gutierrez */ public class Hwh { public static int getW(Object obj) { Class<?> clazz = obj.getClass(); try { Method method = clazz.getMethod("getWidth", new Class<?>[0]); return ((Number) method.invoke(obj, new Obj...
package org.cyrano.draw; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; /** * @author Demián Gutierrez */ public clas...
package hello.world; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; /** * @author Demián Gutierrez */ public class HelloWorld extends Activity { // -------------------------------------------------------------------...
package org.cyrano.anim; import android.graphics.PointF; /** * @author Demián Gutierrez */ public class CircleSprite { private PointF coord; private PointF speed; private int color; private int rad; // -------------------------------------------------------------------------------- public CircleSpr...
package org.cyrano.anim; import android.app.Activity; import android.os.Bundle; /** * @author Demián Gutierrez */ public class AnimActivity extends Activity { private CustomDrawView customDrawView; // -------------------------------------------------------------------------------- public void onCreate(Bund...
package org.cyrano.anim; import java.lang.reflect.Method; /** * @author Demián Gutierrez */ public class Hwh { public static int getW(Object obj) { Class<?> clazz = obj.getClass(); try { Method method = clazz.getMethod("getWidth", new Class<?>[0]); return ((Number) method.invoke(obj, new Obj...
package org.cyrano.anim; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.PointF; import android.view.View; /** * @author Demián Gutierrez */ public class CustomDr...
package com.styp152.Android.Diccionario; import java.io.InputStream; import java.util.ArrayList; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import android.app.ListActivity; import an...
package com.totsp.androidexamples; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import java.util.List; public class EjemploDB extends Activity { private TextView output; private DataHelper dh; @Override public void onCreate(...