«android» 태그된 질문

Android는 Google의 모바일 운영체제로 디지털 기기 (스마트 폰, 태블릿, 자동차, TV, 마모, 유리, IoT)를 프로그래밍하거나 개발하는 데 사용됩니다. Android 관련 주제의 경우 android-intent, android-activity, android-adapter 등과 같은 Android 관련 태그를 사용하십시오. 개발 또는 프로그래밍 이외의 질문이지만 Android 프레임 워크와 관련된 질문은 다음 링크를 사용하십시오. https : // android.stackexchange.com.

11
notifyDataSetChanged 후 Android ListView가 새로 고쳐지지 않음
내 ListFragment 코드 public class ItemFragment extends ListFragment { private DatabaseHandler dbHelper; private static final String TITLE = "Items"; private static final String LOG_TAG = "debugger"; private ItemAdapter adapter; private List<Item> items; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.item_fragment_list, container, false); return view; …

6
변수는 내부 클래스 내에서 액세스됩니다. 최종 선언 필요
그래서 제목은 모든 것을 말합니다. 내 .NET 내부에서 컴파일 오류가 발생 onClick합니다. 여기에 코드가 있습니다. public class fieldsActivity extends Activity { Button addSiteButton; Button cancelButton; Button signInButton; /** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // to create a custom title …
116 java  android 

3
arrays.xml 파일에서 문자열 배열을 얻는 방법
내 .NET Core에있는 배열의 목록을 표시하려고합니다 arrays.xml. 에뮬레이터에서 실행하려고하면 강제 종료 메시지가 표시됩니다. Java 파일에 배열을 정의하면 String[] testArray = new String[] {"one","two","three","etc"}; 작동하지만 사용할 때 String[] testArray = getResources().getStringArray(R.array.testArray); 작동하지 않습니다. 내 Java 파일은 다음과 같습니다. package com.xtensivearts.episode.seven; import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; public class Episode7 extends ListActivity …
116 java  android  arrays 

3
정수 열의 기본값 설정 SQLite
Android에서 SQLite 데이터베이스를 만들고 있습니다. db.execSQL("CREATE TABLE " + DATABASE_TABLE + " (" + KEY_ROWID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + KEY_NAME + " TEXT NOT NULL, " + KEY_WORKED + " INTEGER, " + KEY_NOTE + " INTEGER);"); KEY_NOTE생성 된 모든 행에 대해 기본값 (정수)을 0(0)으로 설정할 …

16
툴바 텍스트 및 뒤로 화살표 색상을 설정하는 방법
툴바 배경은 어두운 색입니다. 텍스트와 뒤로 화살표를 흰색으로하고 싶습니다. 다음을 시도했지만 작동하지 않습니다. <style name="Theme.MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/blue</item> <item name="colorPrimaryDark">@color/blue_darker</item> <item name="colorAccent">@color/purple</item> <!-- item name="android:textColorPrimary">@color/white</item--> // I don't want to set this, changes everywhere. <item name="android:textColorSecondary">@color/white</item> <item name="android:toolbarStyle">@style/AppTheme.ToolbarStyle</item> <item name="toolbarStyle">@style/AppTheme.ToolbarStyle</item> <item name="drawerArrowStyle">@style/AppTheme.DrawerArrowStyle</item> </style> <style name="AppTheme.ToolbarStyle" parent="Base.Widget.AppCompat.Toolbar"> <!--<item name="actionOverflowButtonStyle">@style/AppTheme.OverflowButtonStyle</item>--> <item name="android:textColor">@color/white</item> …

5
포함 태그를 사용하는 Android 데이터 바인딩
업데이트 참고 : 위의 예는 적절히 작동 해제 1.0 RC4 때문에, 고정 불필요한 가변 필요의 문제. 원래 질문 : 문서에 설명 된대로 정확히 수행하지만 작동하지 않습니다. main.xml : <layout xmlns:andr... <data> </data> <include layout="@layout/buttons"></include> .... buttons.xml : <layout xmlns:andr...> <data> </data> <Button android:id="@+id/button" ...." /> MyActivity.java : ... binding = …

7
참조 (테마) 일 때 프로그래밍 방식으로 색상 값 가져 오기
이걸 고려하세요: styles.xml <style name="BlueTheme" parent="@android:style/Theme.Black.NoTitleBar"> <item name="theme_color">@color/theme_color_blue</item> </style> attrs.xml <attr name="theme_color" format="reference" /> color.xml <color name="theme_color_blue">#ff0071d3</color> 따라서 테마 색상 은 테마에 의해 참조됩니다. 프로그래밍 방식으로 theme_color (참조)를 얻으려면 어떻게해야합니까? 일반적으로 나는 사용 getResources().getColor()하지만이 경우에는 참조되기 때문에 사용 하지 않습니다!

11
알림을 클릭 한 후 애플리케이션 열기
내 앱에 다음 코드가있는 알림이 있습니다. //Notification Start notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); int icon = R.drawable.n1; CharSequence tickerText = "Call Blocker"; long when = System.currentTimeMillis(); //now Notification notification = new Notification(icon, tickerText, when); Intent notificationIntent = new Intent(context, Main.class); PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0); Context context = getApplicationContext(); …

11
창을 추가 할 수 없습니다. android.os.BinderProxy 토큰이 유효하지 않습니다. 활동이 실행 중입니까?
Facebook API를 통해 Facebook에 연결하려고합니다. 다음 예제를 따릅니다. https://github.com/facebook/facebook-android-sdk/tree/master/examples/simple 모든 것이 정상이지만 일부 코드를 편집하려고 할 때 로그인이 성공한 후 다음과 같이 대화 상자 게시 메시지를 표시하고 싶습니다. public void onAuthSucceed() { mText.setText("You have logged in! "); //This is the code to call the post message dialog. mFacebook.dialog(Example.this, "feed",new SampleDialogListener()); …
116 android  facebook 

10
안드로이드 레이아웃 :이 태그와 그 자식은 하나의 <TextView />와 복합 드로어 블로 대체 될 수 있습니다.
특정 XML 파일에서 레이아웃을 실행하면 다음과 같은 결과가 나타납니다. This tag and its children can be replaced by one &lt;TextView/&gt; and a compound drawable 다음 xml 코드에 대해 수행해야하는 변경 사항 : &lt;LinearLayout android:id="@+id/name_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:background="@drawable/grouplist_single_left_grey_area" &gt; &lt;ImageView android:id="@+id/photo_image" android:layout_width="@dimen/thumbnail_width" android:layout_height="@dimen/thumbnail_height" android:paddingBottom="5dip" android:paddingTop="5dip" android:paddingRight="5dip" android:paddingLeft="5dip" android:layout_marginRight="5dip" android:clickable="true" android:focusable="true" …
116 android  layout 


5
오류 : 해당 속성 없음 : 클래스에 대한 GROUP : org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
내 프로젝트에서 RecyclerViewLib 를 사용하고 싶습니다.이를 위해 다운로드하여 빈 "hello world"Android 프로젝트에 모듈로 가져 왔습니다. sdk 관리자 v24를 사용하여 android studio v1.0.1을 사용하고 있으며 이것은 내 app / build.gradle입니다. apply plugin: 'com.android.application' android { compileSdkVersion 17 buildToolsVersion "19.1.0" defaultConfig { applicationId "com.example.mk.dragdrop4" minSdkVersion 14 targetSdkVersion 17 versionCode 1 versionName "1.0" …

17
Genymotion,“VirtualBox 엔진을로드 할 수 없습니다.” 매버릭스에. VBox가 올바르게 설정되었습니다.
다음과 같은 오류가 계속 발생합니다. Genymotion을 다시 작동시키기 위해 재설치, 삭제 및 모든 것을 시도했습니다. 필요한 장치는 없지만 Genymotion은 작업에 완벽했습니다. Mavericks가 업데이트 될 때까지 다시 작동하기 위해 싸우고있었습니다. MacBook Pro, Retina 13 형, 2013 년 초반. i5, 8gb. OS x 용 버전 1.3.1을 실행하고 있습니다. Oracle_VM_VirtualBox_Extension_Pack-4.3.0-89960.vbox-extpack과 함께 Virtualbox 4.3도 …

8
Android에서 요청을 통해 JSON 개체를 보내는 방법은 무엇입니까?
다음 JSON 텍스트를 보내고 싶습니다. {"Email":"aaa@tbbb.com","Password":"123456"} 웹 서비스에 연결하고 응답을 읽습니다. JSON을 읽는 방법을 알고 있습니다. 문제는 위의 JSON 객체를 변수 이름으로 보내야한다는 것 jason입니다. Android에서 어떻게 할 수 있습니까? 요청 객체 생성, 콘텐츠 헤더 설정 등과 같은 단계는 무엇입니까?

13
Android Studio 0.4 APK META-INF / LICENSE.txt에 복사 된 중복 파일
내 Studio를 0.3.7에서 0.4.0으로 업데이트 한 후 프로젝트를 컴파일 할 수 없습니다. stackoverflow에 대한 해결책을 찾았습니다. 중복 파일 복사 (Android Studio 0.4.0) 내 프로젝트를 0.7. + gradle로 업데이트했지만 다음 문자열을 어디에 넣어야하는지 모르겠습니다. android { packagingOptions { exclude 'META-INF/LICENSE.txt' } } 내 logcat : 로그 Execution failed for task ':Prog:packageDebug'. …

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.