How open native call details screen for a particular call log in Samsung and HTC android device using intent? -


i developing android application show call logs in list , when user taps on call log, need open native app's call details screen tapped call log.

i have tried following code snippet , works fine in emulator (pure android os.)

intent mdetailsintent = new intent(intent.action_view); mdetailsintent.settype(android.provider.calllog.calls.content_type);  uri muri = uri.withappendedpath(android.provider.calllog.calls.content_uri, string.valueof(mcalllog.getid()));  mdetailsintent.setdata(muri);  startactivity(mdetailsintent); 

but when run on samsung device, shown last recent call log's details screen each time regardless of call log id.

and htc devices, throws activitynotfoundexception.

following log cat htc device.

**03-10 14:19:00.772: d/logsfragment(20947): call log details uri==>content://call_log/calls/62  03-10 14:19:00.782: w/system.err(20947): android.content.activitynotfoundexception: no activity found handle intent { act=android.intent.action.view dat=content://call_log/calls/62 }  03-10 14:19:00.792: w/system.err(20947):    @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1638)  03-10 14:19:00.792: w/system.err(20947):    @ android.app.instrumentation.execstartactivity(instrumentation.java:1510)  03-10 14:19:00.792: w/system.err(20947):    @ android.app.activity.startactivityforresult(activity.java:3258)  03-10 14:19:00.792: w/system.err(20947):    @ android.support.v4.app.fragmentactivity.startactivityfromfragment(fragmentactivity.java:833)  03-10 14:19:00.792: w/system.err(20947):    @ android.support.v4.app.fragment.startactivity(fragment.java:856)  03-10 14:19:00.792: w/system.err(20947):    @ com.cwiker.fragments.logsfragment.onitemclick(logsfragment.java:219)  03-10 14:19:00.792: w/system.err(20947):    @ android.widget.adapterview.performitemclick(adapterview.java:292)  03-10 14:19:00.792: w/system.err(20947):    @ android.widget.abslistview.performitemclick(abslistview.java:1099)  03-10 14:19:00.792: w/system.err(20947):    @ android.widget.listview.performitemclick(listview.java:4758)  03-10 14:19:00.792: w/system.err(20947):    @ android.widget.abslistview$performclick.run(abslistview.java:2556)  03-10 14:19:00.792: w/system.err(20947):    @ android.widget.abslistview$1.run(abslistview.java:3223)  03-10 14:19:00.792: w/system.err(20947):    @ android.os.handler.handlecallback(handler.java:608)  03-10 14:19:00.802: w/system.err(20947):    @ android.os.handler.dispatchmessage(handler.java:92)  03-10 14:19:00.802: w/system.err(20947):    @ android.os.looper.loop(looper.java:156)  03-10 14:19:00.802: w/system.err(20947):    @ android.app.activitythread.main(activitythread.java:4987)  03-10 14:19:00.802: w/system.err(20947):    @ java.lang.reflect.method.invokenative(native method)  03-10 14:19:00.802: w/system.err(20947):    @ java.lang.reflect.method.invoke(method.java:511)  03-10 14:19:00.802: w/system.err(20947):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784)  03-10 14:19:00.802: w/system.err(20947):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551)  03-10 14:19:00.802: w/system.err(20947):    @ dalvik.system.nativestart.main(native method)** 

please me solve problem.

thanks.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -