in android application have 4 buttons facebook , viber , telegram , whatsapp , want share different content based on each button. for example if user clicks on viber button want user action_send share content viber only. i found this explains how facebook , twitter seems it's calling specific class name of application don't know applications wanna use except facebook. all android apps have unique id, first have check if these apps installed in user's device , can pass unique id via intent sharing. according below: unique ids different apps : viber : com.viber.voip telegram : org.telegram.messenger whatsapp : com.whatsapp check if these apps installed , if installed send messages through intent. private void sendmessage(context context,string message, string appids) { final boolean isappinstalled =isappavailable(context, appids); if (isappinstalled) { intent myintent = new intent(intent.action_send); myintent.settype("text/p...
i'm getting following output when running virtualenv newvenv . traceback (most recent call last): file "/usr/local/bin/virtualenv", line 5, in <module> pkg_resources import load_entry_point file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727, in <module> add_activation_listener(lambda dist: dist.activate()) file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 700, in subscribe callback(dist) file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727, in <lambda> add_activation_listener(lambda dist: dist.activate()) file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2227, in activate self.insert_on(path) file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2334, in insert_on self.check_version_conflict() file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2373, in check_version_conflict...
i newbie hbase & phoenix. trying connect hbase via phoenix jdbc driver using squirrel client. somehow seem strange error runtime complains of nosuchmethod exception. have included relevant client jar phoenix-4.4.0-hbase-1.0-client in lib folder of squirrel , have registered driver succesfully. when try connect exception seems bit weird. have xtracted jar , seen indeed method getcurrentuser() exists in org/apache/hadoop/security/usergroupinformation.class file. java.util.concurrent.executionexception: java.lang.runtimeexception: java.lang.nosuchmethoderror: org.apache.hadoop.security.usergroupinformation.getcurrentuser()lorg/apache/hadoop/security/usergroupinformation; @ java.util.concurrent.futuretask.report(futuretask.java:122) @ java.util.concurrent.futuretask.get(futuretask.java:202) @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand.awaitconnection(openconnectioncommand.java:132) @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnec...
Comments
Post a Comment