«android» 태그된 질문

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

7
기본 소리 알림에 Uri?
Notification.Builder 를 사용하여 알림 을 작성합니다. 이제 다음과 함께 기본 소리 알림을 사용하고 싶습니다. builder.setSound(Uri sound) 그러나 기본 알림에 대한 Uri는 어디에 있습니까?

12
비 활동 클래스에서 getResources () 사용
비 활동 클래스에서 getResources 메서드를 사용하려고합니다. 리소스 폴더에 저장된 xml 파일에 액세스 할 수 있도록 "리소스"개체에 대한 참조를 얻으려면 어떻게해야합니까? 예: XmlPullParser xpp = getResources().getXml(R.xml.samplexml);

8
Android-카메라 미리보기가 옆으로 표시됨
카메라가 화면에 보는 것을 표시하기 위해 미리보기를 사용하고 있습니다. 모든 것이 잘 작동하고 표면이 생성되고 표면이 설정되고 표면이 표시되도록 할 수 있습니다. 그러나 세로 모드에서는 항상 잘못된 90도 각도로 그림을 표시합니다. 그림에서와 같은 : 다음 코드를 사용하면 그림이 똑바로 설정된다는 것을 알고 있습니다. setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); 그러나 다른 요소가있는 활동 내에 미리보기가 …


1
dequeueBuffer : 버퍼 수를 설정하지 않고 여러 버퍼를 대기열에서 빼낼 수 없습니다.
WebView 앱 Android 4.4.2 Moto X 2013에서 아래 오류가 발생합니다 Rhomobile 5.0.2. 앱은 SDK 19및 minAPI 17. 몇 가지 조사 결과 다음과 같은 문제가있는 것 같습니다 Snapdragon 800 / Adreno GPU devices. 여기 와 여기 에 Google 문제 추적기 에서이 문제에 대한 링크가 있습니다. 하드웨어 가속을 비활성화하는 것은 WebView를 매우 …

10
CardView layout_width =“match_parent”가 상위 RecyclerView 너비와 일치하지 않습니다.
나는 layout_width = "match_parent"와 함께 RecyclerView를 포함하는 조각이 있습니다. <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity$PlaceholderFragment" /> RecyclerView의 항목은 layout_width = "match_parent"도있는 CardView입니다. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/card_view" android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="20dp" card_view:cardCornerRadius="4dp"> <TextView android:layout_gravity="center" android:id="@+id/info_text" android:layout_width="match_parent" android:gravity="center" android:layout_height="match_parent" android:textAppearance="?android:textAppearanceLarge"/> </android.support.v7.widget.CardView> 다음과 같이 항목보기를 부풀립니다. public MyAdapter.ViewHolder …

11
런타임시 Android보기의 크기 결정
내 활동이 생성 된 후 Android 앱의보기에 애니메이션을 적용하려고합니다. 이렇게하려면 뷰의 현재 크기를 확인한 다음 현재 크기에서 새 크기로 크기를 조정할 애니메이션을 설정해야합니다. 뷰가 사용자의 입력에 따라 다른 크기로 조정되므로이 부분은 런타임에 수행해야합니다. 내 레이아웃은 XML로 정의됩니다. 이것은 쉬운 작업처럼 보이며 분명히 내 문제를 해결하지 못했지만 이것에 관한 많은 질문이 …


12
Android 읽기 텍스트 원시 리소스 파일
상황은 간단하지만 예상대로 작동하지 않습니다. 원시 리소스로 추가 된 텍스트 파일이 있습니다. 텍스트 파일에는 다음과 같은 텍스트가 포함됩니다. b) 관련 법률에서 소프트웨어와 관련하여 보증을 요구하는 경우 이러한 모든 보증은 배송일로부터 90 일로 제한됩니다. (c) 가상 오리엔 티어, 그 딜러, 유통 업체, 대리인 또는 직원이 제공 한 구두 또는 서면 정보 …
123 android  text  resources 


12
webview에서 html 콘텐츠를 얻는 방법?
웹뷰에서 html 코드를 얻는 가장 간단한 방법은 무엇입니까? stackoverflow 및 google에서 여러 가지 방법을 시도했지만 정확한 방법을 찾을 수 없습니다. 정확한 방법을 말씀해주세요. public class htmldecoder extends Activity implements OnClickListener,TextWatcher { TextView txturl; Button btgo; WebView wvbrowser; TextView txtcode; ImageButton btcode; LinearLayout llayout; int flagbtcode; public void onCreate(Bundle savedInstanceState) { …

7
FragmentPagerAdapter getItem이 호출되지 않았습니다.
FragmentPagerAdapter에서 조각을 재사용 할 수 없습니다 .. destroyItem () 메서드를 사용하여 조각을 삭제하지만 여전히 getItem ()을 다시 호출하지 않습니다 .. 이미지가 2-3 개이므로 FragmentStatePagerAdapter 대신 FragmentPagerAdapter를 사용하고 있습니다. public class ExamplePagerAdapter extends FragmentPagerAdapter { ArrayList < String > urls; int size = 0; public ExamplePagerAdapter(FragmentManager fm, ArrayList < String > …


6
메뉴 항목 클릭 이벤트 처리-Android
메뉴 항목을 클릭하면 새 활동을 시작하는 인 텐트를 만들고 싶지만이 작업을 수행하는 방법을 모르겠습니다. 나는 안드로이드 문서를 읽었지만 내 구현이 정확하지 않으며 올바른 방향에 대한 지침이 도움이 될 것입니다. 아래에 내 코드를 나열하고 문제 영역에 주석을 달았습니다. 잘못된 메서드를 호출 한 것 같습니다. package com.jbsoft.SimpleFlashlight; import android.app.Activity; import android.content.Intent; import …

9
프로그래밍 방식으로 전화를 거는 방법은 무엇입니까?
번들로 호출 할 번호를 액티비티에 전달합니다. 그런 다음 이러한 활동에서 해당 번호로 전화를 걸 수있는 버튼이 있습니다. 코드는 다음과 같습니다. callButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(bundle.getString("mobilePhone"))); } }); 버튼을 눌러도 아무 일도 일어나지 않기 때문에 뭔가 잘못되었습니다. 내가 뭘 잘못하고 있죠? PD …

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