This file contains 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 class customViewGroup extends ViewGroup { | |
public customViewGroup(Context context) { | |
super(context); | |
} | |
@Override | |
protected void onLayout(boolean changed, int l, int t, int r, int b) { | |
} |
This file contains 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
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
sudo npm install -g phonegap | |
___ | |
build | |
___ | |
curl -sL https://deb.nodesource.com/setup | sudo bash - |
This file contains 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
https://groups.google.com/forum/#!topic/android-porting/yK17XZXkupI/discussion |
This file contains 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
http://www.slideshare.net/pickerweng/android-camera-architecture-8098156 |
This file contains 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
1. download depot-tools | |
2. unzip it | |
3. export PATH=$PATH:"your path" | |
4. even if step 3 failed, use "your full path"/depot_tools/fetch webrtc_android | |
5. step 4 would create "src" folder in your currently setted up folder | |
>> now you have sources of your webrtc copy | |
6. go to README.md | |
7. | |
8. | |
9. |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.genyware.whereareyou" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="15"/> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.WAKE_LOCK"/> | |
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> |
This file contains 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.genyware.core; | |
//missed | |
public class App extends Application implements Bus.Subscriber { | |
public static TManager tm; | |
private static App self; | |
public static App getInstance() { |
This file contains 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
>>ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView | |
Romain Guy said: | |
The item view type you are returning from | |
getItemViewType() is >= getViewTypeCount(). | |
from http://stackoverflow.com/questions/2596547/arrayindexoutofboundsexception-with-custom-android-adapter-for-multiple-views-in | |
>>Creating ViewHolders for ListViews with different item layouts |
This file contains 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
/* | |
* Copyright 2014 Julian Shen | |
* | |
* 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 to in writing, software |
This file contains 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
scroll.setOnTouchListener(new OnTouchListener() | |
{ | |
private int mLastY; | |
public boolean onTouch(View v, MotionEvent event) | |
{ | |
switch (event.getAction()) | |
{ | |
case MotionEvent.ACTION_DOWN: //the user places his finger on the screen | |
mLastY=(int)event.getY(); //to get the "y" position starting | |
break; |