본문 바로가기

모바일개발(Mobile Dev)187

Button Event Case Button Event Case package com.example.administrator.eventhandlingapplication; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.view.Menu; import android.view.MenuItem; import android... 2016. 9. 9.
Layout Header View Modify 11down voteacceptedUpdate: With the release of Design Support Library 23.1.1, the following method has been added to address this issue:/** * Gets the header view at the specified position. * * @param index The position at which to get the view from. * @return The header view the specified position or null if the position does not exist in this * NavigationView. */ public View getHeaderView(int .. 2016. 9. 4.
camera permission confirmation Request the permissions you needIf your app doesn't already have the permission it needs, the app must call one of the requestPermissions() methods to request the appropriate permissions. Your app passes the permissions it wants, and also an integer request code that you specify to identify this permission request. This method functions asynchronously: it returns right away, and after the user r.. 2016. 9. 3.
how to change email textview in NavigationDrawer NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); navigationView.setNavigationItemSelectedListener(this); View header=navigationView.getHeaderView(0); /*View view=navigationView.inflateHeaderView(R.layout.nav_header_main);*/ name = (TextView)header.findViewById(R.id.username); email = (TextView)header.findViewById(R.id.email); name.setText(personName); email.setText(p.. 2016. 8. 15.
android studio project name all rename written by http://1004lucifer.blogspot.kr/2014/10/intellijandroid-package-name.html Android Studio 에서의 방법 확인버전: Android Studio 1.1.0 1. gradle 을 사용하는 경우 - Android Studio 에서 프로젝트를 만들거나 import 시 gradle 만들겠다고 체크한경우 1004lucifer 아래와 같이 gradle 파일에서 applicationId 를 변경해 주면 된다. (간단) PS. 주의 com.android.application 이 단말기에 설치되어 있는경우 위의 방법을 사용 시 AndroidManifest.xml 의 태그의 name 변경이 필요하다. Gradle 에서 applicationI.. 2016. 8. 14.
Android Login All written by http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/Android Login and Registration with PHP, MySQL and SQLiteby Ravi Tamada/ January 31, 2012/  3397 CommentsIn my previous article Android Login and Registration Screen Design I explained designing the login and registration interfaces. But it has no real time functionality. In this tutorial I am.. 2016. 8. 14.
android session mgmt written by http://www.androidhive.info/2012/08/android-session-management-using-shared-preferences/ InitializationApplication shared preferences can be fetched using getSharedPreferences() method.You also need an editor to edit and save the changes in shared preferences. The following code can be used to get application shared preferences.SharedPreferences pref = getApplicationContext().getShare.. 2016. 8. 13.
ListView SimpleAdapter MainActivity.javapackage com.example.listview_dynamic_test; import java.util.ArrayList; import java.util.HashMap; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.SimpleAdapter; public class MainActivity extends Activity { ListView listView;@Override protected void onCreate(B.. 2016. 8. 13.
SharedPreferences Usage For Saving written by http://www.tutorialspoint.com/android/android_shared_preferences.htm Android provides many ways of storing data of an application. One of this way is called Shared Preferences. Shared Preferences allow you to save and retrieve data in the form of key,value pair.In order to use shared preferences , you have to call a method getSharedPreferences() that returns a SharedPreference instanc.. 2016. 8. 7.