프로그래밍119 Android intent ACTION_VIEW valid url check /** * 유효한 주소에 한해 웹페이지를 호출 * @param context * @param url */ public static void showWebPage(Context context, String url) { boolean isValidUrl = URLUtil.isValidUrl(url); if(isValidUrl) { Uri uri = Uri.parse(url); Intent intent = new Intent(Intent.ACTION_VIEW, uri); context.startActivity(intent); } else { Log.e(TAG + " showWebPage()", "Uri invalid"); } } 참고(https://developer.android.com/training/bas.. 2015. 2. 17. Android Load More ListView 1. LoadMoreListView.classpublic class LoadMoreListView extends ListView implements OnScrollListener { private static final String TAG = "LoadMoreListView"; /** * Listener that will receive notifications every time the list scrolls. */ private OnScrollListener onScrollListener; private LayoutInflater inflater; // footer view private RelativeLayout footerView; // private TextView mLabLoadMore; pri.. 2015. 2. 12. Android ExpandableListView 순서 1. class 2. xml 1. classpublic class ActScrap extends ActBase { private Context context; private ExpandableListView expandableListView; private AdapScrap scrapAdapter; private ArrayList groupList; // 1차 분류 private ArrayList childList; // 2차 분류 private ArrayList childContentList; // 2차 분류 내용 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC.. 2015. 2. 5. Android create keyhash from debug.keystore and release.keystore 카카오 문서를 참고하였음 OS X와 리눅스 : Eclipse "ADT > Preferences > Android > Build > Default debug keystore" 에서 확인 가능합니다.예 : ~/.android/debug.keystoreWindows : Eclipse "Window > Preferences > Android > Build > Default debug keystore" 에서 확인 가능합니다.Windows Vista와 Windows 7 예: C:\Users\\.android\debug.keystoreWindows XP 예 : C:\Documents and Settings\\.android\debug.keystorekeytool : $JAVA_HOME/bin 아래에 존재합니다.ope.. 2015. 1. 30. Android create keyhash 2가지 방법이 있다. 1. 첫번째 방법In order to generate key hash you need to follow some easy steps.1) Download Openssl from: here.2) Make a openssl folder in C drive3) Extract Zip files into this openssl folder created in C Drive.4) Copy the File debug.keystore from .android folder in my case (C:\Users\SYSTEM.android) and paste into JDK bin Folder in my case (C:\Program Files\Java\jdk1.6.0_05\bin)5) Open com.. 2015. 1. 26. 이전 1 ··· 14 15 16 17 18 19 20 ··· 24 다음