new site

TRENDING NOW





Why doesn't Youtube have a repeat button?
Many youtube users ask this question, so i bring you the solution,you can now Auto-Replay videos on YouTube. You don't need to change the link or create any Playlist anything like that to Replay the Video. You can Replay any Video Automatically on the YouTube by installing this extension.


Click me for link

Hi
Lately some slider revolution users have some alignment problems with texts.
in the new update the text-align option now located inside the new Spaces section, for more details,check the image below.




test app on real device android studio

Set up your device

1-Plug in your device  with a USB cable.

2- Enable USB debugging.


Set up the app on Android Studio

1-Click on edit configurations
edit configuration


2-On "Target Device" check "USB device"
usb device


3-Now run the app

And voilà :D that's it



android studio usb device not found
usb device not detected



The easiest way to add volley library to android studio :

1-download git from here and install it: https://git-scm.com/download/win

2-Create a folder under C: and name it  downloadVolley

3-open Git CMD and write  cd c:\downloadVolley  and hit enter button


4-Write this line :  git clone https://android.googlesource.com/platform/frameworks/volley  and hit enter button.



4-When the download is completed open android studio .

5- Click [File] --> [New] -->[Import Module]   and select the library under "c:\downloadVolley".



6-Open build.gradle in your project and add the dependency: compile project(":volley").

and that's it :D


Import Android volley to Android Studio
include ':app', ':volley'
compile project(":volley")
include ':app', ':3rd_party:volley'
compile project(":3rd_party:volley")
Best way to incorporate Volley (or other library) into Android Studio project
apply plugin: 'android-library'
dependencies {compile 'com.mcxiaoke.volley:library-aar:1.0.0'}
Add Volley to An Android Studio Project




Some times you want to test your website how it look in mobile on your local server but you can't
so after these steps you'll be able to do it .

1 -Edit httpd.conf file of Wamp server to fix 403 error


We need to edit httpd.conf file else we will get 403 forbidden error when we access the localhost through local network ip.

1 .Click on wamp server tray icon

2. OpenApache server sub menu

3. Select httpd.conf

4 .Search for " Possible values for the Options directive are "



    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Require local
 






add  "  Require all granted  "   under   Require local


Find your local network ip

1. open command prompt.

2 .type and enter ipconfig command.


Just type this ip on your mobile browser to display your localhost page successfully.



How do you access a website running on localhost from iPhone browser
How can I access my localhost from my Android device
Testing localhost on other devices
Accessing localhost From Anywhere
How I Test Locally Hosted Sites With Physical Devices
Remote Access to Your Local Site