android start Dropbox activity -
i need access dropbox folders android app, select file , open in app. after having thought on integrating dropbox library android app, decided make easier. idea have "launch dropbox" button launch normal dropbox application. , then, using intent-filters, catch file selected , open in app.
the question is: how launch dropbox app? guess have construct intent:
intent intent = new intent(); intent.setcomponent(new componentname("com.dropbox???", ????)); startactivity(intent);
what should there instead of '???'?
i've looked package name of dropbox application phone. use these kind of operations.
packagemanager manager = getpackagemanager(); intent = manager.getlaunchintentforpackage("com.dropbox.android"); i.addcategory(intent.category_launcher); startactivity(i);
Comments
Post a Comment