Posts

android - How can I open a Fragment under the open NavigationDrawer with defining the Drawer in a separate fragment? -

android - How can I open a Fragment under the open NavigationDrawer with defining the Drawer in a separate fragment? - my app opens navigationdrawer @ start. when user clicks on item in fragment beingness replaced. for every item in navigation drawer have separate fragment. when user not take of options in navigationdrawer , closes it, main activit layout beingness shown. i want 1 of own fragments brought when user closes side menu. (navigation drawer) npe when seek change setcontentview(r.layout.activity_main); with setcontentview(r.layout.my_fragment); (because cannot find navigation_drawer since defined in activity_main) i don't set navigationdrawer in 1 of fragments, neither re-create fragment elements main.xml (it messy design :( ). supposed do? how supposed open desired fragment underneath navigationdrawer?? here oncreate in mainactivity: @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate);...

gradle - How to download a non-dependency artefact as part of buildScript block for Semantic Versioning -

gradle - How to download a non-dependency artefact as part of buildScript block for Semantic Versioning - first off, have no code show since i'm stumped one. bad form question apologize - worked entire yesterday on related build script couldn't useful show this. i working on build script part of jar task (or rather dolast {} closure) verify current jar against previous published jar own artifactory using semver api. else have works except downloading previous version of project; can't seem able devise working script. my approach far based on reasoning gradle uses ivy dependency management scheme should able phone call of ivy's ant tasks right parameters - same current project have access group, name , current version - , path downloaded artefact file , utilize input aforementioned semver api. beingness bit of gradle newbie , not have used ivy few years struggle revealed me @ point have no thought how in clean way. 1 of major hurdles has far been gradle...

php - My Laravel 4 app shows errors when uploaded to my website -

php - My Laravel 4 app shows errors when uploaded to my website - i new laravel 4. when upload app website shows errors. how should configure prepare it? warning: require(__dir__/../bootstrap/autoload.php) [function.require]: failed open stream: no such file or directory in /home/a4651312/public_html/laravel/public/index.php on line 21 php error message fatal error: require() [function.require]: failed opening required '__dir__/../bootstrap/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4651312/public_html/laravel/public/index.php on line 21. i set app (name laravel) in public_htmt , sent link default.html public. php laravel-4 laravel-routing

c# - Get url address from url file -

c# - Get url address from url file - i'm pretty new c# (only month of experience). i'm working on project url address .url file have no thought how go doing so. i've tried googling maintain getting "text url", not other way around. help awesome! input in advance! i'm new site, if need reply more questions, please allow me know! edit: basically, i'm trying convert net shortcuts in favorites folders addresses. example, turn "google" shortcut http://www.google.com. hope helped. will quite easy think, seek like: string line = file.readlines(filename).skip(1).take(1).first(); string url = line.replace("url=",""); url = url.replace("\"",""); url = url.replace("base",""); kind of ugly works, advise using regular expressions validate resulting url. c# string url text

android - How to set an image to the really top of app? -

android - How to set an image to the really top of app? - i seek set image top of android app. but there space left/right/top if margin zero. code: <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="0dp" android:layout_marginbottom="0dp" android:layout_marginleft="0dp" android:layout_marginright="0dp" android:layout_marginstart="0dp" android:layout_margintop="0dp" android:background="@drawable/bgcolor" android:gravity="top" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:c...

android.view.InflateException Caused by: java.lang.OutOfMemoryError -

android.view.InflateException Caused by: java.lang.OutOfMemoryError - this issue seems occur on little number of devices crashes entire app users. the app loads 2 images @ once, 1 original, 1 blurred re-create scrolling effect. i'm using picasso load in images reduced issues still occurs select few. a new set of images (original & blurred) loaded every time app opened. the images initialised in oncreateview method follows: nonblurimageview = (imageview) layoutview.findviewbyid(r.id.orginal_image); picasso.with(getactivity()).load(getresources().getidentifier(bgnum, "drawable", getactivity().getpackagename())).into(nonblurimageview); blurredimageview = (imageview) layoutview.findviewbyid(r.id.blured_image); picasso.with(getactivity()).load(getresources().getidentifier(bgnum+"_blur", "drawable", getactivity().getpackagename())).into(blurredimageview); the stack trace starts android.view.inflateexception: binary...

android - How to create Parcelable code for object that contains GregorianCalendar -

android - How to create Parcelable code for object that contains GregorianCalendar - i haven't understood how create code needed implement correctly parcelable object contains gregoriancalendar objects. e.g. object user contains string name; , gregoriancalendar creationdate; , effort this: @override public int describecontents() { homecoming 0; } @override public void writetoparcel(parcel dest, int flags) { dest.writestring(this.name); dest.writeparcelable(this.creationdate, flags); } private user(parcel in) { this.name = in.readstring(); this.creationdate = in.readparcelable(gregoriancalendar.class.getclassloader()); } public static final creator<user> creator = new creator<user>() { public user createfromparcel(parcel source) { homecoming new user(source); } public user[] newarray(int size) { homecoming new user[size]; } ...