Posts

ios5 - iOs / Phonegap: Load external mobile site? -

so i've been looking @ ( iphone phonegap based app load external website made of componentone ) thread , wondering if same still holds true today? i'm planning on making ios app little more load external site created jquery mobile. idea of course use same site many plattforms possible. 1.) if apple still reject apps redirects, option create native ios app? and, 2) if not, what's simplest solution solve this? i've been testing pageinit fires changepage, isn't working. i'm pretty sure apple reject application if native shell redirects website. can same functionality creating book mark on home screen launches website. expect following rejection letter apple: "we've completed review of app cannot post version app store because experience provides not sufficiently different web browsing experience, incorporating native ios functionality. while app content may differ web site, experience provides not differ general experience...

android - How to get rid of click effect on custom row listview? -

i trying disable click effect on row. have used custom row have bind arrayadapter. have tried android:clickable="false", android:focusable="false" on listview, on textview, buttons, , imageview have used displaying in row. here "web_message_list.xml" <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/exclamation_feather_top" > <relativelayout android:id="@+id/titlearea" android:layout_width="match_parent" android:layout_height="40dp" android:background="@drawable/top_head"> <imageview android:id="@+id/btn_cancel" android:layout_width="wrap_content" android:layout_height=...

java - Calling Methods of Anonymous Inner Class in the parent class -

i got below doubt when surfing anonymous inner class here original code downloaded , working around (please refer below code questions). as per link above cannot overload & add additional methods in anonymous inner class. but when compile below working fine though not able call public methods outside inner class. initially surprised why not access public methods outside inner class realized object being held "father" class reference not know such function call. what changes can make in below code making calls overloaded method , new method outside inner class? class testanonymous { public static void main(string[] args) { final int d = 10; father f = new father(d); father fanon = new father(d){ // override method in superclass father void method(int x){ system.out.println("anonymous: " + x); method("anonymous: " + x); //this compil...

iphone - My application crashes if i get no records from SQLite -

i'm working sqlite first time.... discount in db, , every things works fine, until select "nothing". happens if amount (adnumbers) higher or lower specified in db. then when trying retrieve discount value db column error , application crashes. have tried make null check, doesn't seems help/work. i have tried use while( sqlite3_step(compiledstatement) == sqlite_row){ but don't returned @ all... please point me in right direction - how check if db returns records (adnumbers between values en db ) this method.. -(nsstring *) addisq:(nsstring *)strdisq:(nsinteger)adnumbers{ nsstring *strdiscount; strdiscount = @"00"; if(adstmt == nil) { const char *sql = "select id, discount_type, description, ad_from, ad_to, ad_disq discount " "where (((discount_type)=?) , ((?) between ad_from , ad_to))"; if(sqlite3_prepare_v2(database, sql, -1, &adstmt, null) != sqlite_ok) nsassert1(0, @...

facebook - App bookmark not visible on the left-side "Apps" section -

Image
my open graph enabled app not generate app bookmark on left side of facebook homepage (near "apps" section). the application in question located here: http://apps.facebook.com/lrytaslt/ it's in lithuanian, clicking on news link ask basic permissions , once approved redirect inner news page. time should added left side bookmark. not happen. can't see app under "more" link, app visible under "apps , games" link icon (with no way "favorite" regular bookmark link). is intended behavior? new facebook feature or bug? has run similar bookmark-related issues? edit: attached small screenshot issue: that app automatically redirects elsewhere when open it, that's why there's no bookmark - bookmarks available canvas apps according documentation - shouldn't redirect if want bookmark the bookmark added automatically after user continually uses canvas app few minutes

asp.net mvc 3 - Adding value to submitbutton with image -

Image
i have problem : have submit button defined follows : <input type="submit" name="actionname" value="search" /> <input type="submit" name="actionname" value="new" /> both submit buttons included in ajax beginform: @using (ajax.beginform("pfsearch", "payer", ajaxoptions)) in controller ... based on actionname string provided .. different actions based on value of button pressed within ajax befin form : if (actionname="search") { //do } and works charm .. until want add want add image class of submit button : <input class="search" type="submit" name="actionname" value="search" /> <input class="search" type="submit" name="actionname" value="new" /> my search tab looks : can see main impediment adding value ... text appears on image. how can make button act differentl...

objective c - Does either klazuka/Kal or EventKit handle multiple calendars? -

i have ipad app needs have multiple calendars, 1 each employee, , 1 giving consolidated view of of employee's calendars. does either kai or eventkit support requirement? if not, there calendar api will? event kit this... provided have ekeventstore called myeventstore, define calendar array so: nsarray *calendararray = myeventstore.calendars; and fetch events this nspredicate *fetchallevents = [self.myeventstore predicateforeventswithstartdate:[nsdate distantpast] enddate:[nsdate distantfuture] calendars:calendararray]; //you can modify predicate, keep calendar:calendararray nsarray *allevents = [self.myeventstore eventsmatchingpredicate:fetchallevents];