google maps - After update of Eclipse gives activitynotfoundexception -


for strange reason

android.content.activitynotfoundexception: no activity found handle intent {       act=android.intent.action.view dat=geo:0,0?q=fitness24seven, malmö } 

this application worked before updated eclipse. tried searching similiar issues without luck. may manifest intent filter, don't understand how (if issue).

here code:

package se.projektledningett.studentimalmo; import android.annotation.targetapi; import android.app.activity; import android.content.intent; import android.net.uri; import android.os.build; import android.os.bundle; import android.support.v4.app.navutils; import android.view.menu; import android.view.menuitem; import android.view.view; import android.view.window;  public class fitness24sevenscreen extends activity {  @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     this.requestwindowfeature(window.feature_no_title);     setcontentview(r.layout.activity_fitness24_seven_screen);     // show button in action bar.     //setupactionbar(); }  /**  * set {@link android.app.actionbar}, if api available.  */ @targetapi(build.version_codes.honeycomb) private void setupactionbar() {     if (build.version.sdk_int >= build.version_codes.honeycomb) {         getactionbar().setdisplayhomeasupenabled(true);     } }  @override public boolean oncreateoptionsmenu(menu menu) {     // inflate menu; adds items action bar if present.     getmenuinflater().inflate(r.menu.fitness24_seven_screen, menu);     return true; }  @override public boolean onoptionsitemselected(menuitem item) {     switch (item.getitemid()) {     case android.r.id.home:         // id represents home or button. in case of         // activity, button shown. use navutils allow users         // navigate 1 level in application structure.         // more details, see navigation pattern on android design:         //          navutils.navigateupfromsametask(this);         return true;     }     return super.onoptionsitemselected(item); }  public void openfitness24sevenwebpage(view view){     uri uriurl = uri.parse("http://www.fitness24seven.com");     intent launchbrowser = new intent(intent.action_view, uriurl);     startactivity(launchbrowser); }  public void openfitness24sevenmap(view view){     uri uri = uri.parse("geo:0,0?q=fitness24seven, malmö");      intent intent = new intent(intent.action_view, uri);     startactivity(intent); } } 

below manifest:

<activity         android:name="se.projektledningett.studentimalmo.fitness24sevenscreen"         android:label="@string/title_activity_fitness24_seven_screen"         android:parentactivityname="se.projektledningett.studentimalmo.fitnesstrainingscreen2" >         <meta-data             android:name="android.support.parent_activity"             android:value="se.projektledningett.studentimalmo.fitnesstrainingscreen2" />     </activity> 

i don't understand why occured after update. getting frustrated strange errors randomly apperas eclipse, code , environment. not want see more android once stupid project of mine finished. if isn't solved fail miserably. why did work before update?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -