
Search In
"Fat models, skinny controllers" has been the design style for Rails app development. However, with time this style has been outdated as with code growth the models become too fat to handle.
Why not use concerns?
ActiveSupport concern ca
In the below code I have created a spinner, when you add your name or text in edit text box and press Add Button your text data will be save on Spinner. Here first I have added a EditText, Button and Spinner with in activity_main.xml layout. In
In the below example I have created View Pager (View pager slider). Here I have added ViewPager in activity_main.xml layout, after that I have created slide_page xml layout, in that I have added a textview and in next step I have created four n
Here I have created Popup function , Popup function can be used to display menu item list, anchor text and listitem etc. In the below example when we clicked on menu button the popup will be open and if we click outside the popup it will disappears.
Using Google Cloud Messaging (GCM) we can send push notification from web server to the android devices that are registered.
This is how the process works:
1.Android device sends sender id to GCM server for registration.
2.GCM Server returns regist
Here is how we can create app shortcut icon on device's home screen after app installation:
There's only a few lines of code.
if(!MyUtility.getIsFirstTime(splash).equals("true"))
{
MyUtility.setIsFirstTime(splash, "true");
Important steps or points to be followed before posting any blog.
Creating a unique technological blog every time seems to be a question in everyone’s mind.
It is to be noted that just uploading codes doesn't count as good blogging. One needs to sup
Below is a simple android activity which shows you clearly how to open a particular url inside our native application. In here we have taken a single xml i.e. "show_web_view" which is used as a layout of this activity in which only a WebView is defin
Saving session in database is best practice for website security. so if we want more security then we need to save session in database.
Here are few steps to save session in database
step 1--> Create a table name as sessionsdata
step 2--> cr
Hi friends,
We have recently talked about auto_discovery_link_tag, that consumes RSS and Atom feeds. Now we are going into deep what is the atom feeds in Rails and how we can achieve that. Lets begin with a defining Atom Feeds.
Atom Feeds are XML -b
