[Tutorial] Programming for Sony Products [Xperia SmallApp][SourceCode]

Search This thread

Geeks Empire

Senior Member
Aug 29, 2014
1,201
1,252
Nashville
GeeksEmpire.net
Programming for Xperia Smartphones (SmallApps)
Featured By XDA


One of the most interesting feature in Xperia phone is Small Apps. So I begin with a Sample code for Small Apps.
You can get quick access to several small apps at any time using the small apps bar. A small app only takes up a small area of your screen, so you can interact with a small app and another application at the same time on the same screen. For example, you can have a webpage open and then open the Calculator small app on top of it and perform calculations.
Read More...
Example of SmallApps;
- CameraW [Xperia] on XDA [Code Available]
- CompassHD+ [Xperia] on XDA [Code Available]
- Keep Note [Xperia] (Play Store)
- Barcode Scanner (Play Store)

### Let Start ###
What you need is ability to create Hello World! project ;)

1. Install Sony Add-On SDK
- Open Android SDK Manager
- Tools > Manager Add-on Sites > User Defined Sites > New
- Now Enter this URL
HTML:
http://dl-developer.sonymobile.com/sdk_manager/Sony-Add-on-SDK.xml
- Close the Add-on Tools
- Relaunch SDK Manager & Go to Android API-19 section & Download
HTML:
Sony Add-on SDK-3.0
***
Ready to Programming for Xperia

^-^-^
2... (Click On Tutorial Link)
3. Download Sony SDK Library File
How To Use:
Android Studio:
Go to File > Project Structure > Click on Module > Dependencies > Add File Dependency

Eclipse:
Right Click on Project Explorer & Select Add External


Tutorial to Start Programming for Xperia SmallApps
:Sample Codes:
# Task & Process
# Image Picker [Xperia]
# CompassHD+ [Xperia]
#ScreenTest [SmallApp]



Tutorial & Sample Codes for

- SmartWatches (AndroidWear)
Coming Soon...


Don't forget to Hit Thanks
 

Attachments

  • PickImage-XperiaSmallApp.rar
    7.8 MB · Views: 427
  • pickimg1.jpg
    pickimg1.jpg
    90.7 KB · Views: 1,079
  • pickimg2.jpg
    pickimg2.jpg
    186.1 KB · Views: 752
  • pickimg3.jpg
    pickimg3.jpg
    102.7 KB · Views: 704
  • pickimg4.jpg
    pickimg4.jpg
    91.6 KB · Views: 680
  • pickimg5.jpg
    pickimg5.jpg
    104.8 KB · Views: 672
  • pickimg6.jpg
    pickimg6.jpg
    72.6 KB · Views: 658
  • CurrentProcess.rar
    1.5 MB · Views: 146
  • CurrentProcess.apk
    294.3 KB · Views: 99
  • process1.jpg
    process1.jpg
    185.3 KB · Views: 537
  • process2.jpg
    process2.jpg
    111.8 KB · Views: 538
  • process3.jpg
    process3.jpg
    131.9 KB · Views: 581
  • ScreenTestSmallApp-1.010.3i-VC3.rar
    3.3 MB · Views: 167
Last edited:

Geeks Empire

Senior Member
Aug 29, 2014
1,201
1,252
Nashville
GeeksEmpire.net
Tutorial to Start Programming for Xperia SmallApps

2. Starting...
- Create New Android Project (Alt + Shift + N)
* Minimum Requirement: API 16
* Target: API 19/20
* Compile with: Sony Add-on SDK 3.0 (API-19)
{If you want to add SmallApp to your current Application Follow from Here.}

- from Bottom to Top
* Open Manifest Add SmallApp Permission
Code:
<uses-permission android:name="com.sony.smallapp.permission.SMALLAPP" />
* Inside Application Part Add required uses-library
Code:
<uses-library android:name="com.sony.smallapp.framework"   />
* SmallApp itself is not an activity, so remove the activity if you want to create only a SmallApp & Add this
Code:
<service
            android:name="YourPackageName.YourSmallAppClass"
            android:exported="true" >
            <intent-filter>
            <!-- This is the SmallApp Service that will appear on SmallAppDrawer 
                    So if you want to have another SmallApp Service Don't add this Intent filter -->
                <action android:name="com.sony.smallapp.intent.action.MAIN" />

                <category android:name="com.sony.smallapp.intent.category.LAUNCHER" />
            </intent-filter>
</service>
+ If you want that your Application support Xperia Themes (Colors, Shape of Switches & etc.)
In Application Add this;
Code:
android:theme="@android:style/Theme.DeviceDefault"
Save Manifest & Close it.
* In res there is no different between SmallApp & Normal Apps
But If you want to create custom theme you can use this
Code:
 getWindow().setWindowTheme(resId);
+ If want to create custom view for Minimized View (Like the Sample Code)
you should remember it is just 48dp*48dp
* Now Coding...
Open the .java file
To declare your class as SmallApp you should extend it as SmallApplication
After you need to remove Bundle elements + Also onCreateOptionMenu
these two created by default But not support in SmallApplication Class.
Now you have this...

Code:
public class SmallMain extends SmallApplication{
     @Override
      public void onCreate() {
           super.onCreate();
           setContentView(R.layout.main);
            //Title of SmallApp Window By default it will show the app name
           setTitle(R.string.app_name);
           //if you don't set any custom view it will show the app icon by default
           setMinimizedView(R.layout.activity_mini);
    }
}
+ (ctrl + shift + O) to import required packages
Code:
import com.sony.smallapp.SmallAppWindow;
import com.sony.smallapp.SmallAppWindow.WindowState;
import com.sony.smallapp.SmallApplication;


3.
Check This Figure to Understand Small Apps Lifecycle


small_apps_architecture.jpg

Unlike Normal Android Activity There is No Bundle predefined so if you want to use Bundle you need to define it.


For Android Activities When you quit the activity it will go to onPause() & then onDestroy
But onStop does not recognize the Minimized State of SmallApps.
There is Predefine Function in SmallApplication class that can do this as follow;
Code:
            getWindow().setOnWindowStateChangeListener(new SmallAppWindow.OnWindowStateChangeListener() {
            @Override
            public void onWindowStateChanged(WindowState state) {
                Toast.makeText(getApplicationContext(), "State Change Listener:\n" + state, Toast.LENGTH_SHORT).show();
               /*
                [B]WindowState.MINIMIZED[/B]  >> When Minimize the App
                [B]WindowState.NORMAL[/B]  >>  When App back to normal state
                [B]WindowState.FITTED[/B]  >>   When App Maximized
              */
            }
        });
+ There is another function that can recognize when user focused on SmallAppWindow Or Not.
Code:
getWindow().setOnWindowFocusChangeListener(new SmallAppWindow.OnWindowFocusChangeListener() {
            @Override
            public void onWindowFocusChanged(boolean hasFocus) {
                Toast.makeText(getApplicationContext(), "State Focus Listener:\n" + hasFocus, Toast.LENGTH_SHORT).show();

                /*[COLOR=Blue][B]# Example for Usage of these two function;[/B][/COLOR]
               Check if SmallAppWindow is in Fitted state & User unfocused from SmallApp automatically minimize the App.*/
                  WindowState state = getWindow().getWindowState();
                  if(state == WindowState.FITTED && hasFocus == false){
                      getWindow().setWindowState(SmallAppWindow.WindowState.MINIMIZED);
                 }
            }
        });
4. To set your default Attributes for SmallAppWindow
* Create Resources attrs.xml file in res > values & Add dimensions

Code:
<resources>
        [I]Minimum Dimensions for SmallAppWindow[/I]
    <dimen name="min_width">140dp</dimen>
    <dimen name="min_height">200dp</dimen>
      
      [I] Dimensions for First launch of SmallApp
       After first launch SmallAppFramework launch last dimensions that change by user [/I]
    <dimen name="width">220dp</dimen>
    <dimen name="height">300dp</dimen>
</resources>
5. Now You Have an SmallApp Standalone or with your Activities
* If you want to Open SmallApps throw you Activities Or to response from another Applications
* For example if you want to get Shared Image (Like Sample Code) & Display it in SmallApp
You need An Activity to Handle Intent-Filters & then open the smallapp class.
Code below shows how to open SmallApp from Android Activity.
Code:
          //As you can see this ability is not available in old xperia phones
          // it s since SDK 3.0 and needs VERSION.API_LEVEL >= 2 so you need to check this
         // or set minimum android requirement to API > 16 
         if (SdkInfo.VERSION.API_LEVEL >= 2) {
            Intent intent = new Intent();
            intent.setClass(this, SmallMain.class);
            try {
                SmallApplicationManager.startApplication(this, intent);
            } 
            catch (SmallAppNotFoundException e) {
                                 //
            }
        } else {
            Toast.makeText(this, "Device Not Supported", Toast.LENGTH_SHORT).show();
        }


NOTE: Android Studio need an attention on build.gradle for Phone App
Code:
android {
    compileSdkVersion '[B]Sony:Sony Add-on SDK 3.0:19[/B]' //Sometimes It will set to API-19 So you have to edit it manually
...
}

^^^
^^^
*** Sample Codes ***

These are sample codes,
It means I put some codes together for simple & easy functionality.
you can use some of those codes to your applications.
OOOOOOO

# Image Picker [Xperia] DOWNLOAD SourceCode
Code:
*What this Sample can do...
- Share Image to see it on Small App Window on top of other apps.
- Open App & Pick Image Directly through this app.
- Long Press on Image to Share it to Current App (App Under Small App Window).
- When you minimize the App it will show picked image on minimized view.
Code:
*What you get from this code...
- Create Small Apps
- Create Custom View
- Intent & Clipboard & etc.
ScreenShots Description;
Fig1.Click on Top to Open Xperia Album (It will First start OnResult Activity then this activity will launcher pick action to open Xperia Album)
Fig2. Xperia Album to Select Image (The Result will set to onActivityResult of OnResult class) & Then pass to SmallApp
Fig3. SmallApp get Data from OnResult Activity and set image uri to ImageView.
Fig4. Minimized View with custom imageView will show the selected image that pick from Xperia Album
Fig5. Long-Press on Image View to Share current Image to the Application that is under the SmallApp (for example gmail)
Fig6. It shows the Shared Image from SmallApp that attached to gmail
If you just wanna test the App DOWNLOAD .APK
OOOOOOO

# CompassHD+ [Xperia] DOWNLOAD SourceCode/Apk
To Read Description & Abilities of This SourceCode Please check out its thread.
The CompassHD+ was First Compass App for SmallApps. (Playing with Sensors in SmallApps ;))
So it is not just Sample Code, you can Download it from Play Store or Compile its SourceCode & Use it as a compass application. Check out One of the most famous Small App :cowboy:
Code:
*What you get from this code...
- Working With Sensors
- NavDrawer (Swipe Menu)
- Setting XML
- Custom View
OOOOOOO

# Task & Process DOWNLOAD SourceCode
Code:
*What this Sample can do...
- Show List of All Installed Application (Label & Icon)
- Show Current Process List
- Create Current App List
Code:
*What you get from this code...
- How to Work with Package-Manager classes
- & Activity-Manager classes
- Make Task Switcher Application
- Communicate Directly to Activities of other Apps
ScreenShots Description;
Fig1. Current Process: It shows list of Current Process. ZERO is the App which currently on Top. Keep Note App in this shot.
Fig2. Current App: Each time you Click it will ADD Top Application in list. In this shot First I was on Xperia Home launcher then opened the Firefox Browser, Play Store & XDA App. After opening each app you should click. (you can do this automatically by defining a broadcast receiver)
Fig3.
All Apps: It shows list of All Installed packages (app).
NOTE: In this Sample there is no action for clicking on items to open apps. It is just sample code for working with Activity-Manaer & Package-Manager.

If you just wanna test the App DOWNLOAD .APK


OOOOOOO

# CameraW [Xperia] DOWNLOAD SourceCode/APK
To Read Description &To Read Description & Abilities of This SourceCode Please check out its thread.
The CameraW [Xperia] is not just sample code it s Source Code of Real App from Play Store.
An Application That uses lots of unique feature in SmallApps
Code:
*What you get from this code...
- Camera API (Standalone Camera)
- File Saving (Capturing Pictures & Video)
Note: The Video Recording is not available in the App itself But Code Sample is available.

OOOOOOO

# ScreenTest [SmallApp] DOWNLOAD SourceCode
Code:
*What you get from this code...
- Working more with GUI of Activity & SmallApplication
(Full Screen: No NotificationBar, Nav Bar & another control)

OOOOOOO

The explanations of codes are available inside each classes.

If you find any mistake Or issue in my codes Please inform me.

Don't forget to Hit Thanks
 
Last edited:

Geeks Empire

Senior Member
Aug 29, 2014
1,201
1,252
Nashville
GeeksEmpire.net
Info

@Geeks Empire

Can small app use intent to open an activity class? and can you add the method wherein the state of the small app will not change when the screen orientation changes. thanks.!!:good:

SmallApp are defined as Service & when u want to open Activity from outside of Activity you need to set NEW_TASK Flag
Code:
Intent i= new Intent(Small.this, Activity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);

and here is where you can handle configuration when Screen Orientation changed...
Code:
Override
    public boolean onSmallAppConfigurationChanged(android.content.res.Configuration newConfig){
        super.onSmallAppConfigurationChanged(newConfig);
                
        return false;
    }

Good Luck
:good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Programming for Xperia Smartphones (SmallApps)
    Featured By XDA


    One of the most interesting feature in Xperia phone is Small Apps. So I begin with a Sample code for Small Apps.
    You can get quick access to several small apps at any time using the small apps bar. A small app only takes up a small area of your screen, so you can interact with a small app and another application at the same time on the same screen. For example, you can have a webpage open and then open the Calculator small app on top of it and perform calculations.
    Read More...
    Example of SmallApps;
    - CameraW [Xperia] on XDA [Code Available]
    - CompassHD+ [Xperia] on XDA [Code Available]
    - Keep Note [Xperia] (Play Store)
    - Barcode Scanner (Play Store)

    ### Let Start ###
    What you need is ability to create Hello World! project ;)

    1. Install Sony Add-On SDK
    - Open Android SDK Manager
    - Tools > Manager Add-on Sites > User Defined Sites > New
    - Now Enter this URL
    HTML:
    http://dl-developer.sonymobile.com/sdk_manager/Sony-Add-on-SDK.xml
    - Close the Add-on Tools
    - Relaunch SDK Manager & Go to Android API-19 section & Download
    HTML:
    Sony Add-on SDK-3.0
    ***
    Ready to Programming for Xperia

    ^-^-^
    2... (Click On Tutorial Link)
    3. Download Sony SDK Library File
    How To Use:
    Android Studio:
    Go to File > Project Structure > Click on Module > Dependencies > Add File Dependency

    Eclipse:
    Right Click on Project Explorer & Select Add External


    Tutorial to Start Programming for Xperia SmallApps
    :Sample Codes:
    # Task & Process
    # Image Picker [Xperia]
    # CompassHD+ [Xperia]
    #ScreenTest [SmallApp]



    Tutorial & Sample Codes for

    - SmartWatches (AndroidWear)
    Coming Soon...


    Don't forget to Hit Thanks
    7
    Tutorial to Start Programming for Xperia SmallApps

    2. Starting...
    - Create New Android Project (Alt + Shift + N)
    * Minimum Requirement: API 16
    * Target: API 19/20
    * Compile with: Sony Add-on SDK 3.0 (API-19)
    {If you want to add SmallApp to your current Application Follow from Here.}

    - from Bottom to Top
    * Open Manifest Add SmallApp Permission
    Code:
    <uses-permission android:name="com.sony.smallapp.permission.SMALLAPP" />
    * Inside Application Part Add required uses-library
    Code:
    <uses-library android:name="com.sony.smallapp.framework"   />
    * SmallApp itself is not an activity, so remove the activity if you want to create only a SmallApp & Add this
    Code:
    <service
                android:name="YourPackageName.YourSmallAppClass"
                android:exported="true" >
                <intent-filter>
                <!-- This is the SmallApp Service that will appear on SmallAppDrawer 
                        So if you want to have another SmallApp Service Don't add this Intent filter -->
                    <action android:name="com.sony.smallapp.intent.action.MAIN" />
    
                    <category android:name="com.sony.smallapp.intent.category.LAUNCHER" />
                </intent-filter>
    </service>
    + If you want that your Application support Xperia Themes (Colors, Shape of Switches & etc.)
    In Application Add this;
    Code:
    android:theme="@android:style/Theme.DeviceDefault"
    Save Manifest & Close it.
    * In res there is no different between SmallApp & Normal Apps
    But If you want to create custom theme you can use this
    Code:
     getWindow().setWindowTheme(resId);
    + If want to create custom view for Minimized View (Like the Sample Code)
    you should remember it is just 48dp*48dp
    * Now Coding...
    Open the .java file
    To declare your class as SmallApp you should extend it as SmallApplication
    After you need to remove Bundle elements + Also onCreateOptionMenu
    these two created by default But not support in SmallApplication Class.
    Now you have this...

    Code:
    public class SmallMain extends SmallApplication{
         @Override
          public void onCreate() {
               super.onCreate();
               setContentView(R.layout.main);
                //Title of SmallApp Window By default it will show the app name
               setTitle(R.string.app_name);
               //if you don't set any custom view it will show the app icon by default
               setMinimizedView(R.layout.activity_mini);
        }
    }
    + (ctrl + shift + O) to import required packages
    Code:
    import com.sony.smallapp.SmallAppWindow;
    import com.sony.smallapp.SmallAppWindow.WindowState;
    import com.sony.smallapp.SmallApplication;


    3.
    Check This Figure to Understand Small Apps Lifecycle


    small_apps_architecture.jpg

    Unlike Normal Android Activity There is No Bundle predefined so if you want to use Bundle you need to define it.


    For Android Activities When you quit the activity it will go to onPause() & then onDestroy
    But onStop does not recognize the Minimized State of SmallApps.
    There is Predefine Function in SmallApplication class that can do this as follow;
    Code:
                getWindow().setOnWindowStateChangeListener(new SmallAppWindow.OnWindowStateChangeListener() {
                @Override
                public void onWindowStateChanged(WindowState state) {
                    Toast.makeText(getApplicationContext(), "State Change Listener:\n" + state, Toast.LENGTH_SHORT).show();
                   /*
                    [B]WindowState.MINIMIZED[/B]  >> When Minimize the App
                    [B]WindowState.NORMAL[/B]  >>  When App back to normal state
                    [B]WindowState.FITTED[/B]  >>   When App Maximized
                  */
                }
            });
    + There is another function that can recognize when user focused on SmallAppWindow Or Not.
    Code:
    getWindow().setOnWindowFocusChangeListener(new SmallAppWindow.OnWindowFocusChangeListener() {
                @Override
                public void onWindowFocusChanged(boolean hasFocus) {
                    Toast.makeText(getApplicationContext(), "State Focus Listener:\n" + hasFocus, Toast.LENGTH_SHORT).show();
    
                    /*[COLOR=Blue][B]# Example for Usage of these two function;[/B][/COLOR]
                   Check if SmallAppWindow is in Fitted state & User unfocused from SmallApp automatically minimize the App.*/
                      WindowState state = getWindow().getWindowState();
                      if(state == WindowState.FITTED && hasFocus == false){
                          getWindow().setWindowState(SmallAppWindow.WindowState.MINIMIZED);
                     }
                }
            });
    4. To set your default Attributes for SmallAppWindow
    * Create Resources attrs.xml file in res > values & Add dimensions

    Code:
    <resources>
            [I]Minimum Dimensions for SmallAppWindow[/I]
        <dimen name="min_width">140dp</dimen>
        <dimen name="min_height">200dp</dimen>
          
          [I] Dimensions for First launch of SmallApp
           After first launch SmallAppFramework launch last dimensions that change by user [/I]
        <dimen name="width">220dp</dimen>
        <dimen name="height">300dp</dimen>
    </resources>
    5. Now You Have an SmallApp Standalone or with your Activities
    * If you want to Open SmallApps throw you Activities Or to response from another Applications
    * For example if you want to get Shared Image (Like Sample Code) & Display it in SmallApp
    You need An Activity to Handle Intent-Filters & then open the smallapp class.
    Code below shows how to open SmallApp from Android Activity.
    Code:
              //As you can see this ability is not available in old xperia phones
              // it s since SDK 3.0 and needs VERSION.API_LEVEL >= 2 so you need to check this
             // or set minimum android requirement to API > 16 
             if (SdkInfo.VERSION.API_LEVEL >= 2) {
                Intent intent = new Intent();
                intent.setClass(this, SmallMain.class);
                try {
                    SmallApplicationManager.startApplication(this, intent);
                } 
                catch (SmallAppNotFoundException e) {
                                     //
                }
            } else {
                Toast.makeText(this, "Device Not Supported", Toast.LENGTH_SHORT).show();
            }


    NOTE: Android Studio need an attention on build.gradle for Phone App
    Code:
    android {
        compileSdkVersion '[B]Sony:Sony Add-on SDK 3.0:19[/B]' //Sometimes It will set to API-19 So you have to edit it manually
    ...
    }

    ^^^
    ^^^
    *** Sample Codes ***

    These are sample codes,
    It means I put some codes together for simple & easy functionality.
    you can use some of those codes to your applications.
    OOOOOOO

    # Image Picker [Xperia] DOWNLOAD SourceCode
    Code:
    *What this Sample can do...
    - Share Image to see it on Small App Window on top of other apps.
    - Open App & Pick Image Directly through this app.
    - Long Press on Image to Share it to Current App (App Under Small App Window).
    - When you minimize the App it will show picked image on minimized view.
    Code:
    *What you get from this code...
    - Create Small Apps
    - Create Custom View
    - Intent & Clipboard & etc.
    ScreenShots Description;
    Fig1.Click on Top to Open Xperia Album (It will First start OnResult Activity then this activity will launcher pick action to open Xperia Album)
    Fig2. Xperia Album to Select Image (The Result will set to onActivityResult of OnResult class) & Then pass to SmallApp
    Fig3. SmallApp get Data from OnResult Activity and set image uri to ImageView.
    Fig4. Minimized View with custom imageView will show the selected image that pick from Xperia Album
    Fig5. Long-Press on Image View to Share current Image to the Application that is under the SmallApp (for example gmail)
    Fig6. It shows the Shared Image from SmallApp that attached to gmail
    If you just wanna test the App DOWNLOAD .APK
    OOOOOOO

    # CompassHD+ [Xperia] DOWNLOAD SourceCode/Apk
    To Read Description & Abilities of This SourceCode Please check out its thread.
    The CompassHD+ was First Compass App for SmallApps. (Playing with Sensors in SmallApps ;))
    So it is not just Sample Code, you can Download it from Play Store or Compile its SourceCode & Use it as a compass application. Check out One of the most famous Small App :cowboy:
    Code:
    *What you get from this code...
    - Working With Sensors
    - NavDrawer (Swipe Menu)
    - Setting XML
    - Custom View
    OOOOOOO

    # Task & Process DOWNLOAD SourceCode
    Code:
    *What this Sample can do...
    - Show List of All Installed Application (Label & Icon)
    - Show Current Process List
    - Create Current App List
    Code:
    *What you get from this code...
    - How to Work with Package-Manager classes
    - & Activity-Manager classes
    - Make Task Switcher Application
    - Communicate Directly to Activities of other Apps
    ScreenShots Description;
    Fig1. Current Process: It shows list of Current Process. ZERO is the App which currently on Top. Keep Note App in this shot.
    Fig2. Current App: Each time you Click it will ADD Top Application in list. In this shot First I was on Xperia Home launcher then opened the Firefox Browser, Play Store & XDA App. After opening each app you should click. (you can do this automatically by defining a broadcast receiver)
    Fig3.
    All Apps: It shows list of All Installed packages (app).
    NOTE: In this Sample there is no action for clicking on items to open apps. It is just sample code for working with Activity-Manaer & Package-Manager.

    If you just wanna test the App DOWNLOAD .APK


    OOOOOOO

    # CameraW [Xperia] DOWNLOAD SourceCode/APK
    To Read Description &To Read Description & Abilities of This SourceCode Please check out its thread.
    The CameraW [Xperia] is not just sample code it s Source Code of Real App from Play Store.
    An Application That uses lots of unique feature in SmallApps
    Code:
    *What you get from this code...
    - Camera API (Standalone Camera)
    - File Saving (Capturing Pictures & Video)
    Note: The Video Recording is not available in the App itself But Code Sample is available.

    OOOOOOO

    # ScreenTest [SmallApp] DOWNLOAD SourceCode
    Code:
    *What you get from this code...
    - Working more with GUI of Activity & SmallApplication
    (Full Screen: No NotificationBar, Nav Bar & another control)

    OOOOOOO

    The explanations of codes are available inside each classes.

    If you find any mistake Or issue in my codes Please inform me.

    Don't forget to Hit Thanks
    2
    Info

    Source Code of CompassHD+ [Xperia]
    &
    .APK of ImageView (Sample Code) >> Added to Main Post.

    Feel Free to Ask for New Sample Code Or SourceCodes of my Applications...
    :good:
    2
    I moved the tutorial right under the OP for easier maintenance. Shoot me a PM if you want to have it back at #10.
    2
    Info

    Source Code of CameraW [Xperia] Added to Main Post

    Don't forget to Hit Thanks