private File pdf = null;
private final String PDF_PATH = "/sdcard/download/B.pdf";
private Intent intent;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.pdf);
pdf = new File(PDF_PATH);
if(pdf.exists() && pdf.isFile() && pdf.canRead()){
intent = new Intent(Intent.ACTION_DEFAULT);
intent.setType("application/pdf");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(Environment.getExternalStorageDirectory() + PDF_PATH));
startActivity(intent);
}
}
Subscribe to this blog via RSS.
[메모] Compose Foundation Modifier.styleable() Deprecated 및 styleResolver 전환
Posted on 25 Nov 2026[요약] Type safe keep rules and DEX optimization (Android Dev Summit '26)
Posted on 19 Nov 2026[요약] Building reliable text editing experiences in Compose (Android Dev Summit '26)
Posted on 12 Nov 2026[요약] Agentic engineering with Claude Code and Android CLI (Android Dev Summit '26)
Posted on 05 Nov 2026