android - call activity from a library project -
i have problem. have make android project library , want call activity inside library difference project. in different project have go properties , choose first project library.
the library project have packages. package name contains activity com.jwetherell.augmented_reality.activity -> demo.java
now in other project want call demo.java activity package com.mdl.cyrestaurants.guide -> mainactivity.java
i'm trying call this
public void nearme(view v) { startactivity(new intent("com.jwetherell.augmented_reality.activity.demo")); } but have problems. have write in androidmanifest? thank you.
yes, activity must listed in manifest.
something like:
<activity android:name="com.jwetherell.augmented_reality.activity.demo" /> or if package name 'com.jwetherell.augmented_reality' have specify this:
<activity android:name=".activity.demo" />
Comments
Post a Comment