Posts

Showing posts from June, 2016

Featured Post

@Component,@Service,@Repository and @Controller differenrence

@Component,@Service,@Repository and @Controller differenrence Spring @Component, @Service, @Repository and @Controller annotations are used for automatic bean detection using classpath scan in Spring framework. @Component is a generic annotation. Difference of @Service, @Repository, @Controller with @Component is they are special cases of @Component and used for particular purposes. The difference is just classification only. For all these annotations (stereotypes), technically the core purpose is same. Spring automatically scans and identifies all these classes that are annotated with “  @Component, @Service, @Repository, @Controller ”  and registers BeanDefinition with ApplicationContext. Difference Between @Component, @Service, @Repository and @Controller Major difference between these stereotypes is they are used for different classification. In a multitier application, we will have different layers like presentation, service, business, data access etc. Whe...

another build.gradle

apply plugin: 'com.android.application' repositories {     mavenCentral() } dependencies {     compile project(':Widgets') } android {     packagingOptions {         exclude 'META-INF/beans.xml'     }     sourceSets {         main {             manifest.srcFile 'AndroidManifest.xml'             jniLibs.srcDirs = ['libs']             assets.srcDirs = ['assets/']             res.srcDirs = ['res/']             java.srcDirs = ['src/']             aidl.srcDirs = ['src/']         }     }     compileSdkVersion 21      buildToolsVersion  "23.0.1"     defaultConfig {       ...

Android NDK with build.gradle example

Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := su LOCAL_FORCE_STATIC_EXECUTABLE := true LOCAL_STATIC_LIBRARIES := sqlite3 libcutils libc LOCAL_C_INCLUDES := $(LOCAL_PATH)/sqlite3 LOCAL_SRC_FILES := super/su.c super/activity.c super/db.c super/utils.c super/daemon.c super/pts.c include $(BUILD_EXECUTABLE) include $(CLEAR_VARS) LOCAL_MODULE := reboot LOCAL_LDFLAGS := -llog LOCAL_STATIC_LIBRARIES := sqlite3 LOCAL_C_INCLUDES := $(LOCAL_PATH)/sqlite3 LOCAL_SRC_FILES := reboot/reboot.c include $(BUILD_EXECUTABLE) include $(CLEAR_VARS) LOCAL_MODULE := sqlite3 LOCAL_SRC_FILES := sqlite3/sqlite3.c LOCAL_CFLAGS := -DSQLITE_OMIT_LOAD_EXTENSION include $(BUILD_STATIC_LIBRARY) build.gradle -------------- import org.apache.tools.ant.taskdefs.condition.Os import com.android.build.gradle.internal.api.ApplicationVariantImpl   apply plugin: 'com.android.application'   ...

express generator

Express application generator Use the application generator tool, express-generator , to quickly create an application skeleton. Install express-generator with the following command: $ npm install express-generator -g Display the command options with the -h option: $ express -h Usage: express [options] [dir] Options: -h, --help output usage information -V, --version output the version number -e, --ejs add ejs engine support (defaults to jade) --hbs add handlebars engine support -H, --hogan add hogan.js engine support -c, --css add stylesheet support (less|stylus|compass|sass) (defaults to plain css) --git add .gitignore -f, --force force on non-empty directory For example, the following creates an Express app named myapp in the current working directory: $ express myapp create : myapp create : myapp/package.json create : myapp/app.js create : myapp/...

install ubuntu touch on android phones

Image
How to install Ubuntu Touch: warning First of all, this guide is not for beginners. You will need to know how to use the Ubuntu command line, and you will need to be prepared to use beta software that’s neither finished nor guaranteed stable. It is also a bad idea to install Ubuntu Touch on your main device. Only try this if you have a spare smartphone or tablet that you don’t rAs with our guide to installing Android L, it’s crucial to know that the process will completely erase your device, removing not only Android but also your apps, photos and all other data. You absolutely must back up everything you want to keep first. Second, this process uses the desktop version of Ubuntu to install the mobile OS on your device, so you’ll need a laptop or PC running Ubuntu. Here are instructions for installing Ubuntu alongside Windows http://www.pcadvisor.co.uk/how-to/linux/3351312/how-install-ubuntu-using-usb-flash-drive/ prompt): sudo add-apt-repository ppa:phablet-team/to...

cyanogenmod flashing

UDEV This page contains changes which are not marked for translation. Other languages: English  • ‎ 中文(中国大陆)‎ To access devices connected to USB via adb or fastboot on linux, you need to configure udev rules. For detailed information about udev, take a look at udev - Arch Linux from the ArchLinux wiki (note that UDEV rules are not exclusive to Arch; udev is used in numerous distributions). You can follow the method below to add rules for any user that is part of the plugdev group, or you can follow Google Android's instructions to add rules only for your username. Follow these steps to setup the correct rules: Verify your username is included in the plugdev group. Type groups from a terminal and look for plugdev in the listed groups. If you do not see plugdev listed, you can add your username to the group with: sudo gpasswd -a username plugdev where username should be replaced with your linux username. Copy the set o...

odin jars for samsung phones

https://builds.casual-dev.com/index.php?dir=JOdin3%2F

android generat pit file

Image
Tools Free Download Also, install the BusyBox app. Launch the app and then tap the Install option. BusyBox Stephen (Stericson) Tools Free Download Now open Terminal Emulator and grant root permission when prompted. Now type the following command: su Then type the following command in Terminal Emulator: dd if=/dev/block/mmcblk0 of=/sdcard/out.pit bs=8 count=580 skip=2176 Now browse your phone’s storage to find the backed up PIT file and save it on your PC for future use. Method 2: Using ADB Commands on Computer To use ADB commands, you will have to install Android SDK on your computer. If you don’t know how to setup the Android SDK or ADB, read our tutorial . Go to Settings> Developer options and enable USB Debugging on your device. Now launch a command prompt on your computer. You can do so by placing the mouse pointer on an empty space on...