Posts

android - How to create ExpandableListView -

i want create expandablelistview. contains 2 rows, row children textviews & imagebutton & toggle button. on click of imagebutton childviews should displayed particular selected row. how should expandablelistview? my problem have set 2 rows in 1 line , should keep in loop.. how should expandablelistview.? every row has again 2 rows. dynamically adding... done tablelayout, not getting proper result per requirement. so people suggested in forum, better use listview instead of tablelayout.. can please me..? you can use layout inflaters set many rows want. don't have dynamically, think.

maven - mvn clean install, mvn install:install-file order? -

i learning maven , trying understand order of things. understand, mvn clean install builds repository default jars, install produces .zip need later. i want use custom jars call mvn install:install-file , when run before install , cannot find symbol errors. assuming custom jars (which don't contain these classes) overwrites default jars? can't find these classes anywhere on filesystem, assuming packaged in 1 of default jars. how can around this? also, order should things? want final .zip, includes custom jars? mvn install -- builds , packages source code , copies ( installs ) artifact local repository $user_home/.m2/repository it's hard what's happening there without looking @ command typed in, , error trace received. said, install-file copy artifact local repo @ appropriate hierarchy. it's nothing more that. correct syntax be: mvn install:install-file -dfile=<path-to-file> -dgroupid=<group-id> \ -dartifactid=<artifact-...

Retrieving BIO information in LastFM API and PHP -

i'm trying artist bio information lastfm api i'm having trouble. i'm using php , curl request that's returning result xml. if use url gets sent curl , load in browser show's desired. however, result returned curl in php script missing properties of xml. for example: artist->bio->summary there no content. you can replicate i'm doing ill copy basic concepts here: open in browser: http://ws.audioscrobbler.com/2.0/artist/cher/info.xml copy , paste php file , open: $url = 'http://ws.audioscrobbler.com/2.0/artist/cher/info.xml'; $ch = curl_init(); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_timeout, 20); curl_setopt($ch, curlopt_header, 0); curl_setopt($ch, curlopt_ssl_verifypeer, false); $retdata = curl_exec($ch); curl_close($ch); echo '<pre>'; echo $retdata; echo '</pre>'; you'll see returned results similar missing content in c...

How to use new freebase api (api search) in java? -

i cant understand api. have downloaded (maven) google-api-services-freebase , test have tried code: jsonhttprequestinitializer initializer = new googlekeyinitializer("my key"); httptransport httptransport = new nethttptransport(); jsonfactory jsonfactory = new jacksonfactory(); freebase freebase = freebase.builder(httptransport, jsonfactory).setjsonhttprequestinitializer(initializer).build(); now want this: https://www.googleapis.com/freebase/v1/search?query=cardiff&lang=en&type=university and next, want parse json output. please, method in freebase object?. see freebase.mqlread , freebase.text cant find method similar api search (http://wiki.freebase.com/wiki/apisearch). unfortunately, java api client doesn't support freebase search yet. here's how search using apache httpclient instead. httpclient httpclient = new defaulthttpclien...

java - Running REST with cxf-jax rs -

jun 05, 2012 8:55:57 pm org.apache.catalina.core.aprlifecyclelistener init info: apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: /usr/java/jdk1.7.0_04/jre/lib/i386/server:/usr/java/jdk1.7.0_04/jre/lib/i386:/usr/java/jdk1.7.0_04/jre/../lib/i386:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.3/jre/lib/i386/client:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.3/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/lib jun 05, 2012 8:55:57 pm org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.jee.server:web' did not find matching property. jun 05, 2012 8:55:58 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["http-bio-8080"] jun 05, 2012 8:55:58 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["ajp-bio-8009"] jun 05, 2012 8...

sonarqube - Sonar can be accessed locally but not accessed elsewhere -

just tried install standalone sonar 2.0.5 in win xp. setting : ip : 127.0.0.1 port : 9000 webcontext : / it can accessed locally. when tried access other computer, cant accessed. tried change setting port 8080 ( tomcat port ) , shutdown tomcat. still not accessible. tomcat ( port 8080, if running ) accessible via network. windows firewall off. any idea why happens? you've configured sonar bind local loopback address. try changing ip address "0.0.0.0". see following more details: difference between 0.0.0.0 , 127.0.0.1

Android NDK & FFMPEG build -

Image
i'm trying build ffmpeg library android application using ndk. have downloaded source code it's website , think build (it's first try working ndk , ffmpeg). have created build.sh file i'm using execute command line on mac os x. have few questions... first things know need android.mk file can use builded library in application,but don't know how reasons told above. after run build.sh android folder few folders , libraries. first question is, how can build android.mk file need...and maybe if can explain me why need it. my second question need libraries ffmpeg able use them app, after build can't see them in source tree. know have enable them in build.sh , think did,but can't see them. kind of information build file helpful me understand how configure it. here how looks : #!/bin/bash ###################################################### # usage: # put script in top of ffmpeg source tree # ./build_android # generates binary following archite...