Posts

Android: Control goes back to Splash Screen -

i have designed app splash screen sleep() s 3 seconds , displays home screen of app. can navigate app seamlessly , after come home screen, when button pressed control goes splash screen again instead of terminating app. please give me solution. :) finish splash activity before starting new one. onresume method of splash activity this: @override protected void onresume() { super.onresume(); new handler().postdelayed(new runnable() { @override public void run() { // finish splash activity can't returned splashactivity.this.finish(); // create intent start second activity intent mainintent = new intent(splashactivity.this, secondactivity.class); splashactivity.this.startactivity(mainintent); } }, 3000); // 3000 milliseconds }

how to include absolute css path using add_editor_style() in wordpress -

how include external css google font http://fonts.googleapis.com/css?family=lato using add_editor_style() ? when add add_editor_style('http://fonts.googleapis.com/css?family=lato'); , in source code show : <link rel="stylesheet" data-mce-href="http://203.223.152.159/~marineac/wp-content/themes/twentyten/http://fonts.googleapis.com/css?family=lato&amp;ver=342-201106301" href="http://203.223.152.159/~marineac/wp-content/themes/twentyten/http://fonts.googleapis.com/css?family=lato&amp;ver=342-201106301"> you should use mce_css filter. not tested: function so_17961871( $mce_css ) { if ( ! empty( $mce_css ) ) $mce_css .= ','; $mce_css .= 'http://fonts.googleapis.com/css?family=lato'; return $mce_css; } add_filter( 'mce_css', 'so_17961871' );

iphone - is it possible to not dealloc a view controller when the back button is pressed in a navigation controller? -

here issue: have tableview bunch of cells. core data loads task object cells using nsfetchedresultscontroller. right have each cell has detailviewcontroller, stored in dictionary so: -(void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath{ detailviewcontroller *detailvc; if (![self.detailviewsdictionary.allkeys containsobject:@(indexpath.row)]){ detailvc = [[detailviewcontroller alloc]initwithnibname:@"detailviewcontroller" bundle:nil]; [self.detailviewsdictionary setobject:detailvc forkey:@(indexpath.row)]; }else{ detailvc = self.detailviewsdictionary[@(indexpath.row)]; } tasks *task = [[self fetchedresultscontroller] objectatindexpath:indexpath]; detailvc.testtask = task; [[self navigationcontroller] pushviewcontroller:detailvc animated:yes]; } each detailviewcontroller has timer property gets time interval task object correlates cell @ given index path in tableview. h...

mobile - How to do image processing with Phonegap in JavaScript -

i want know how manipulate pixels can within c# code in javascript phonegap lib. i not sure whether possible. far have found nothing related image processing in phonegap library.(it provide image, capture helper something, it's not enough.) when manipulate pixels it's not simple methods crop, resize, rotate etc. should down level of having access of individual pixels in image more complicated computation can conducted. thank you. ps: guys thank leaving "-1", please give reasons @ same time. thx since javascript, done same on browser: using <canvas> here fastcanvas , phonegap plugin using it. haven't use it, hope useful.

objective c - UIActivityViewController Messenger not working on iOS Simulator -

Image
i'm getting following result when try initialize messenger component of uiactivityviewcontroller : i'm using code instantiate uiactivityviewcontroller : nsstring *texttoshare = @"text shared"; nsarray *itemstoshare = [[nsarray alloc] initwithobjects:texttoshare, nil]; uiactivityviewcontroller *activityvc = [[uiactivityviewcontroller alloc] initwithactivityitems:itemstoshare applicationactivities:nil]; activityvc.excludedactivitytypes = [[nsarray alloc] initwithobjects: uiactivitytypeprint, uiactivitytypecopytopasteboard, uiactivitytypeassigntocontact, uiactivitytypesavetocameraroll, uiactivitytypeposttoweibo,uiactivitytypeposttofacebook,uiactivitytypeposttotwitter, nil]; [activityvc setvalue:@"my subject text" forkey:@"subject"]; [self presentviewcontroller:activityvc animated:yes completion:nil]; i following error in logs when attempt send message launch services: unable find app identifier c...

Grails countrySelect tag - default value -

this code <g:countryselect name="country" value="${customerinstance?.country}" noselection="['':'-choose country-']"/> in show view(page) displays value, instead of want display selected option for example, -choose country- afghanistan albania here in above example want show page display option ("afghanistan") instead of value ("alg"), question me out of problem you have override countryselect tag or create own. import org.codehaus.groovy.grails.plugins.web.taglib.countrytaglib class formstaglib { static namespace = "bootstrap" closure countryselect = { attrs -> if (!attrs.from) { attrs.from = countrytaglib.country_codes_by_name_order } if (!attrs['valuemessageprefix']) attrs.optionvalue = { countrytaglib.iso3166_3[it] } attrs.optionkey = { countrytaglib.iso3166_3[it] } if (!attrs.value) { attrs.valu...

infinite loop of http redirect in asp.net mvc action filter -

i using asp.net mvc 3 developing web application. have written custom global action filter getting triggered whenever invoking of pages in mvc site. in filter, checking conditions, if conditions met, redirecting user "unavailable" page. working fine in cases expect one. it not working on home/index, default route. when first launch application can see home/index in fiddler status code 302 (redirect application/unavailable). browser tries redirect application/unavailable page. surprise can see 302 in fiddler page again home/index. keeps continue till time , getting below error in firefox "firefox has detected server redirecting request address in way never complete." i can see there infinite loop of 302 in fiddler. don't know why happening. doing wrong in routing? my code working other pages of website. here code: routes.maproute("application", "application/unavailable", mvc.application.unavailable()); routes.maproute(...