infoliks

Thursday, May 30, 2013

To build great apps, you need great tools. The folks at Mountain View are giving us those tools


After this morning's epic three-hour Keynote event, it was just a quick trip next door to see Xavier Ducrohet and Tor Noybe give what is always one of the most popular developer sessions of the conference -- What's New in Android Developer Tools. 
If you were paying attention during the Keynote, we got a quick look at Android Studio, seeing how the new IDE can make the life of a hard working Android dev easier. Based on IntelliJ IDEA, Android Studio is a free and open source IDE specifically designed for building Android apps. Complete with templates, wizards, and some awesome WYSIWYG-style layout editing, it looks like someone at Mountain View is very serious about devs getting the tools they need.
Eclipse isn't gone, and in fact there's still plenty that has not made it's way to Android Studio just yet. But clearly, this is the future of Android app development. It's great to see the tools developers need to build the next set of great apps! If you're a developer or just want to have a look at things, visit the link below to check out an Earl Access Preview of Android Studio.

Saturday, December 22, 2012

Call or Consume a SOAP web service in android


REST Web Service Demo

Call or Consume web service in android  

This easy way to call or consume a soap webservice in android,We can call ith with the help of a kSoap   library which will help us to consume and get result easily.
A ksoap is a library of reading http request and response from the browser and the library will give the final result for us in the form of a result. Then we can parse it to our own format with the help of parser like XML parser etc,.....

SAMPLE WEBSERVICE LINK
http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit

http://www.w3schools.com/webservices/tempconvert.asmx?op=FahrenheitToCelsius


Webservice sample screen in the xml format.






The source code will be here to get the correct file.please follow the link to download it

Monday, December 10, 2012

Earn from Android app

 


Wow....Amazing...!!! Now we can earn money from android also.The question is "How is na?"
Here is the solution for you.The actual method is the publicity of advertisement through our application.

-->
The advertisers are waiting to show their ads to the people to increase their sales or service to the public.There are a lot of team that act as mediators, they are arranged a platform to combine all these advertisers and publishers together.And they are making some money from that also.
And we will get money from the publicity of ads through our app.
Some examples of the mediators are

1. www.revmob.com

2. www.leadbolt.com/BestAdNetwor

3. www.airpush.com

4. www.vdopia.com

These companies are the mediators for android application.
Some examples

An option to earn is http://Earnyouth.com/?ref=78258

Tuesday, December 4, 2012

Making a Splash in Android

A splash is a screen that displays at the time of application launch.It can be set custom for each application what we need for. Normally all people are using their logo for the applications. It must be a good look and feel for the app.so customers will wonder for the design and they will always keep the app.TO keep the app in phone need a good functionality also.Some sample are here you can download t eh code.

Eg splash screens are......

iPhone Screenshot 1

Monday, December 3, 2012

connect with wifi and share files in android

Android app can share their sd card fiels.This is a heavy facility available in both iphone and android.The user can their private folder through wifi and they can manage them also.This is a simple code available in internet.no one know the searching keyword.They only search for the keyword file sharing. and no results gets.The keyword is must be used is HTTP SERVER for iPhone and android.here is a sample add that i will give you a link .get it from https://github.com/charlieCollins/android-httpserver
 through http server and can show the sd card files easily.
Http server
Always we need to share our files to make transferr the data.This wifi port making and ip creations are the good way to share files and you can do anyting with this.
If you are making a text file and making editable it in the browser then we can edith the contents in the browser and save it to our phone.Its a good way to keep our personal data in our secured folder.







Saturday, November 3, 2012

Toast- Popup message in android

Toast- Popup message in android



Here is an option to display a popup message for a certain time in android just like a message box,but not like that.It displays for a certain amount of time and automatically hides away.


Some example screens are here....and you can download the sample source code here also.



android toast example



Custom Toast 



Android Toast example

The above is a custom toast message for a sample app.You can place this code in your app also.



Popup Message in android or Custom Dialogue

Popup Message in android or Custom Dialogue



Here is an example for the custom dialogue boxes in android.You can place this code to get your dialog boxes in your view.
Create custom dialog using AlertDialog.Builder, by inflating XML
Create a XML file of custom layout, /res/layout/mylayout.xml.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<AnalogClock
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    />
<Button
 android:id="@+id/idButton"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Button"
    />
</LinearLayout>





package com.AndroidCustomDialog;
 
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
 
public class AndroidCustomDialogActivity extends Activity {
     
    void openCustomDialog(){
     AlertDialog.Builder customDialog
      = new AlertDialog.Builder(AndroidCustomDialogActivity.this);
     customDialog.setTitle("Custom Dialog");
 
     LayoutInflater layoutInflater
  = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View view=layoutInflater.inflate(R.layout.mylayout,null);
 
  Button btn = (Button)view.findViewById(R.id.idButton);
  btn.setOnClickListener(new Button.OnClickListener(){
 
   @Override
   public void onClick(View arg0) {
    // TODO Auto-generated method stub
    Toast.makeText(getApplicationContext(), "Button Pressed", Toast.LENGTH_LONG).show();
   }});
   
  customDialog.setPositiveButton("OK", new DialogInterface.OnClickListener(){
 
   @Override
   public void onClick(DialogInterface arg0, int arg1) {
    // TODO Auto-generated method stub
     
   }});
   
  customDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener(){
 
   @Override
   public void onClick(DialogInterface arg0, int arg1) {
    // TODO Auto-generated method stub
     
   }});
 
        customDialog.setView(view);
        customDialog.show();
    }
 
 /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        openCustomDialog();
    }
}



Create custom dialog using AlertDialog., with your own content.


Share It