text stringlengths 3 1.18M |
|---|
package khh.android.resource;
import java.io.InputStream;
import khh.android.view.filter.ViewFilterUtil;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android... |
package khh.android.service;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
public class ServiceUtil {
// <service android:name="SmartLookService">
// <intent-filter>
// <action android:name="khh.android.look"/>
// <category andr... |
package khh.android.converting;
import android.location.Location;
import com.google.android.maps.GeoPoint;
public class ConveringUtil {
public static GeoPoint getGeoPoint(double lat, double lon){
return new GeoPoint((int)(lat * 1E6), (int)(lon*1E6));
}
public static GeoPoint getGeoPoint(Location locat... |
package khh.android.app;
import android.view.View;
public interface ActivityK_I {
int ACTION_SUCCESS=1;
int ACTION_FAIL=100;
void onBeforeProcessing(); //전처리.
void onViewSetting(); // 컴포넌트셋팅 setContentView(R.layout.layout_solarsimulation); 해라.ㅋ
void onDataSetting(); // 컴포넌트 내용싱크
void onAddLis... |
package khh.android.app;
import android.app.Activity;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
abstract public class ServiceK_Base extends Service{
protected final Service contex... |
package khh.android.app;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public abstract class BroadcastReceiverK_Base extends BroadcastReceiver {
// <receiver android:name=".LocationLoggerServiceManager"
// android:enabled="true"
// android:ex... |
package khh.android.app;
import java.util.List;
import android.app.ActivityManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
public class ApplicationUtil {
pub... |
package khh.android.app;
import java.util.HashMap;
import khh.android.intent.IntentUtil;
import khh.android.window.WindowUtil;
import khh.schedule.Scheduler;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.KeyEvent;
import andr... |
package khh.android.view;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.*;
import android.view.*;
import android.util.AttributeSet;
public class Compass extends View {
private Paint markerPaint;
private Paint textPaint;
private Paint circlePaint;
... |
package khh.android.view;
import android.app.Activity;
import android.graphics.Bitmap;
import android.view.View;
public class ViewUtil {
public static View getRootView(Activity activity){
return activity.getWindow().getDecorView().getRootView().getRootView();
}
public static Bitmap screenShot(View v... |
package khh.android.view.filter;
import android.graphics.ColorFilter;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
public class ViewFilterUtil ... |
package khh.android.system;
import android.os.Build;
public class SystemInfoUtil {
public static String getSystemInfo(){
String a="BOARD"+ Build.BOARD;
a+="BRAND"+ Build.BRAND;
a+="CPU_ABI"+ Build.CPU_ABI;
a+="DEVICE"+ Build.DEVICE;
a+="DISPLAY"+ Build.DISPLAY;
a+="FINGERPRINT"+ Buil... |
package khh.android.window;
import android.app.Activity;
import android.app.KeyguardManager;
import android.content.Context;
import android.view.Display;
import android.view.Window;
import android.view.WindowManager;
public class WindowUtil {
public static void setTitle(Activity context , String titlemsg... |
package khh.android.key;
import android.app.KeyguardManager;
import android.app.KeyguardManager.KeyguardLock;
import android.content.Context;
import android.view.Window;
import android.view.WindowManager;
public class KeyUtil {
//
public static void lockHomeKey(Window window){
window.setType(WindowMana... |
package khh.android.file;
import java.io.File;
import android.os.Environment;
public class FileUtil {
public static File getStorageDirectory(){
return Environment.getExternalStorageDirectory();
}
}
|
package khh.android.alert;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.Toast;
public class AlertUtil {
public static void showToast( Context context,String title){
showToast(context,title,Toast.LENGTH_SHORT);
}
public static void showToa... |
package khh.android.broadcast;
import khh.android.file.FileUtil;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
public class BroadCastUtil {
//이미지 리마운트
//브로드캐스트를 통해 새로운 파일을 검색하도록하여 갤러리에서 저장된 그림 파일을 확인할 수 있게 해준다.
// sendBroadcast(new ... |
package khh.android.setting.ring;
import android.content.Context;
import android.media.AudioManager;
public class RingUtil {
public static void setRingMode(Context context,int mode){
AudioManager mgr = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
mgr.setRingerMode(mode);
// AudioMana... |
package khh.android.setting;
import android.content.Context;
import android.provider.Settings;
public class SettingUtil {
}
|
package khh.android.setting.bright;
import android.content.Context;
import android.provider.Settings;
public class BrightUtil {
public static void setBrightness(Context context,int value){
// 0~255
// 밝기 값에 value 값을 적용한다. ( value : 0~ 255 값 )
setBrightnessMode(context,Settings.System.SCREEN_BRIGHTNES... |
package khh.android.setting.vibrator;
import android.content.Context;
import android.os.Vibrator;
public class VibratorUtil {
public static void setVibrator(Context context,long mms){
Vibrator vibe = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
vibe.vibrate(mms);
}
}
|
package khh.android.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Parcelable;
public class ActivityUtil {
public static void goActivity(Context context, Intent intent){
context.startActivity(intent);
}
public static void goActivityNewTask(Context context,... |
package com.domain;
public class Person {
private String name;
private String surname;
public Person(String name, String surname) {
super();
this.name = name;
this.surname = surname;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
/*
* Copyright 2011 The Android Open Source Project
*
* 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 applicab... |
package game.data;
public class JogoData {
// Consoles
public final static String PS3 = "PS3";
public final static String XBOX360 = "XBOX360";
public final static String WII = "WII";
public final static String PC = "PC";
// Estilos
public final static String FPS = "Tiro em primeira pessoa";
publi... |
package game.data;
public class Constante {
public static String NOME = "nome";
public static String PRODUTORA = "produtora";
public static String PROCESSADOR = "processador";
public static String VIDEOS = "videos";
public static String FOTOS = "fotos";
public static String ESTILOS = "estilos";
publi... |
package game.data;
public class JogoData {
// Consoles
public final static String PS3 = "PS3";
public final static String XBOX360 = "XBOX360";
public final static String WII = "WII";
public final static String PC = "PC";
// Estilos
public final static String FPS = "Tiro em primeira pessoa";
publi... |
package game.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class FavoritosOpenHelper extends SQLiteOpenHelper {
private static final int DATABASE_VERSION = 2;
private static final String DICTIONARY_NAME = "FAVOR... |
package game.data;
import java.util.Comparator;
import java.util.Date;
public class Triple {
final public String code;
final public String nome;
final public Date date;
final static public ComparadorOrdemAlfabetica comparadorOrdemAlfabetica = new ComparadorOrdemAlfabetica();
final static public Compara... |
package game.data;
public class Constante {
public static final String ORDEM_ALFABETICA = "ORDEM_ALFABETICA";
public static String NOME = "nome";
public static String PRODUTORA = "produtora";
public static String PROCESSADOR = "processador";
public static String VIDEOS = "videos";
public static String ... |
package game.data;
import java.util.Date;
public class Pair {
final public String nome;
final public Date date;
public Pair(String nome, String dia, String mes, String ano) {
this.nome = nome;
int d = Integer.valueOf(dia);
int m = Integer.valueOf(mes);
int a = Integer.valueOf(ano);
this.dat... |
package game.forum;
import game.data.Constante;
import android.app.Activity;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget... |
package game.forum;
import game.data.ProvedorDadosWEB;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
import android.... |
package com.ioiolab;
import ioio.lib.api.DigitalOutput;
import ioio.lib.api.IOIO;
import ioio.lib.api.IOIOFactory;
import ioio.lib.api.PwmOutput;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.api.exception.IncompatibilityException;
import android.app.Activity;
import android.os.Bundle;
impor... |
/** Automatically generated file. DO NOT MODIFY */
package com.ioiolab;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.ioiolab;
import ioio.lib.api.DigitalOutput;
import ioio.lib.api.IOIO;
import ioio.lib.api.IOIOFactory;
import ioio.lib.api.PwmOutput;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.api.exception.IncompatibilityException;
import android.app.Activity;
import android.os.Bundle;
impor... |
/** Automatically generated file. DO NOT MODIFY */
package com.ioiolab;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
package ioio.lib.api.exception;
/**
* The IOIO board does not have anymore of the requested resource. This
* exceptions do not need to be handled if the client guarantees that the limits
* on concurrent resource usage are never exceeded.
*/
public class OutOfResourceException extends RuntimeException {
pr... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
package ioio.lib.api;
public interface Closeable {
void close();
}
|
/*
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... |
package ioio.lib.util;
import ioio.lib.api.IOIO;
import ioio.lib.api.IOIOFactory;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.api.exception.IncompatibilityException;
import android.app.Activity;
import android.util.Log;
/**
* A convenience class for easy creation of IOIO-based ap... |
/** Automatically generated file. DO NOT MODIFY */
package ioio.lib;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.uav;
import java.io.IOException;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketAddress;
import java.util.Enumeration;
public class NetHelper {
/**
* Calculate the broadcast IP we need to send the packet along. If we send it
* to 255.255.255.... |
package com.uav;
import java.util.ArrayList;
import java.util.List;
public final class UAVState {
public static int RoutePoint_ActiveIndex;
public static ArrayList<RoutePoint> RoutePoint;
public static boolean Simulator_Active;
public static boolean Arming;
public static boolean Calibrated;
pub... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import android.location.GpsStatus;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationProvider;
import android.os.Bundle;
public class Sensor_GPS implements GpsSt... |
/**
*
*/
package com.uav;
import ioio.lib.api.DigitalOutput;
import ioio.lib.api.IOIO;
import ioio.lib.api.IOIOFactory;
import ioio.lib.api.PwmOutput;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.api.exception.IncompatibilityException;
/**
* @author M.Hefny
*
*/
public ... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import android.os.Environment;
public class GPSLogger {
private final static String SENSORS_FILENAME = "sensorsGPS.log";
prote... |
/**
* @author Mohammad Said Hefny: mohammad.hefny@gmail.com
*
**/
package com.uav;
import android.location.Location;
/**
* {@link http://www.movable-type.co.uk/scripts/latlong.html}
*
*
*/
public class GPSHelper {
protected static final double d2r = Math.PI / 180.0;
/**
* Ret... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
public class Sensor_Accelerometer implements SensorEventListener{
/////// Attributes
protected double ... |
package com.uav;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.EditTextPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.P... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
/*
* pls read http://www.workingfromhere.com/blog/2009/03/30/orientation-sensor-tips-in-android/
*/
pu... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.NetworkInterface;
import j... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import android.os.Environment;
public class Logger {
private final static String SENSORS_FILENAME = "sensors.log";
protected stat... |
package com.uav;
import android.content.SharedPreferences;
public class UAVPreferenceManager {
public static final String PREFS_COUNT = "MyPrefsFile";
/*-------------------------------------------------Read/Write Preference*/
/**
/* Read a boolean setting
**/
protected static Boolean Re... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
public class RoutePoint {
/////// Attributes
public String Id;
public double Longitude;
public double Latitude;
public double Altitude;
public double Speed;
public double MaxSpeed;
public double MinSpeed;
pub... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketTimeoutException;
import android.graphics.Color;
import android.net.wifi.Wifi... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.IOException;
public interface IHWControl {
void sentControls (double Throttle, double Rudder, double Aileron, double Elevator) throws IOException;
}
|
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.util.Date;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.location.Location;
import android.util.Log;
public class Senso... |
package com.uav;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;
import android.net.DhcpInfo;
import android.net.wifi.WifiManager;
import android.util.Log;
public ... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import... |
/*
* Author: Mohammad Said Hefny: mohammad.hefny@gmail.com
*
*/
package com.uav;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.MulticastSocket;
import java.net.NetworkInterfac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.