본문 바로가기

Android45

intent uri 모음 [Android] // 웹페이지 띄우기Uri uri = Uri.parse("http://www.google.com");Intent it = new Intent(Intent.ACTION_VIEW,uri);startActivity(it); // 구글맵 띄우기Uri uri = Uri.parse("geo:38.899533,-77.036476");Intent it = new Intent(Intent.Action_VIEW,uri);startActivity(it); // 구글 길찾기 띄우기Uri uri = Uri.parse("http://maps.google.com/maps?f=d&saddr=출발지주소&daddr=도착지주소&hl=ko");Intent it = new Intent(Intent.ACTION_VIEW,URI);startAc.. 2015. 12. 14.
공유 Intent [Android] Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(Intent.EXTRA_SUBJECT, "Sharing URL"); i.putExtra(Intent.EXTRA_TEXT, "http://www.url.com"); startActivity(Intent.createChooser(i, "Share URL"));If the app you want to share to is not installed on the user's device, for example - facebook, then you'll have to use Facebook SDK.If you want your Activity to handle text dat.. 2015. 12. 14.
Webview source [Android] package it.floryn90.webapp; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.os.Environment; import android.os.Parcelable; import android.provider.MediaStore; import android.support.v7.app.ActionBarActivity; import android.util.Lo.. 2015. 12. 14.
멀티 해상도 [Android] As it has been mentioned before, you do not want to check whether the device is a tablet or a phone but you want to know about the features of the device,Most of the time, the difference between a tablet and a phone is the screen size which is why you want to use different layout files. These files are stored in the res/layout- directories. You can create an XML file in the directoy res/values- .. 2015. 12. 11.