This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| { | |
| Uri selectedUri = data.getData(); | |
| // can post image | |
| String[] proj = {MediaStore.Images.Media.DATA}; | |
| Cursor cursor = managedQuery(selectedUri, proj, null, null, null); | |
| int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); | |
| cursor.moveToFirst(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cube.bec; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.view.Window; | |
| public class BECShareApp extends Activity | |
| { | |
| @Override protected void onCreate(Bundle savedInstanceState) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <dirent.h> | |
| int main(); | |
| char *str_replace(char *search , char *replace , char *subject); | |
| int main() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| maxLatitude = Math.max((int)(lat * 1E6), maxLatitude); | |
| minLatitude = Math.min((int)(lat * 1E6), minLatitude); | |
| maxLongitude = Math.max((int)(lng * 1E6), maxLongitude); | |
| minLongitude = Math.min((int)(lng * 1E6), minLongitude); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Intent splashScreen = new Intent(mContext, FASplashView.class); | |
| splashScreen.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |
| splashScreen.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); | |
| splashScreen.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); | |
| splashScreen.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
| startActivity(splashScreen); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //====== GLOBAL VARIABLES ====== | |
| protected int minLatitude = Integer.MAX_VALUE; | |
| protected int maxLatitude = Integer.MIN_VALUE; | |
| protected int minLongitude = Integer.MAX_VALUE; | |
| protected int maxLongitude = Integer.MIN_VALUE; | |
| //====== WHEN LOOPING THROUGH EACH POINT ====== | |
| maxLatitude = Math.max((int)(point.getDouble("lat") * 1E6), maxLatitude); | |
| minLatitude = Math.min((int)(point.getDouble("lat") * 1E6), minLatitude); | |
| maxLongitude = Math.max((int)(point.getDouble("long") * 1E6), maxLongitude); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create re-hashable password for the device | |
| String deviceId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID); | |
| deviceId = deviceId == null ? "NOID" + System.currentTimeMillis() : deviceId; | |
| // Now we hash it and b64 it | |
| String deviceHash = CacheManager.getHash(deviceId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Intent intent = new Intent(android.content.Intent.ACTION_VIEW, | |
| Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345")); | |
| startActivity(intent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class ARCMainView extends ARCFragmentActivity implements OnDownloadListener | |
| { | |
| private ViewPager mViewPager; | |
| private TabsAdapter mTabsAdapter; | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) | |
| { | |
| super.onCreate(savedInstanceState); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| boolean isDebuggable = (0 != (getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE)); | |
| Debug.setDebugMode(isDebuggable); |