This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Wednesday, November 14, 2012

How To Show The Options Menu In Android

If you have a wide target audience, it is important to take note that there is a big possibility that your audience will have a wide range of screen sizes. Android’s design accommodates these different screen sizes and that’s why it implemented the Options Menu. This menu comes up when the user presses on the menu button on a mobile phone. If your mobile application has quite a number of functionalities where you need to create buttons then designing the UI (User Interface) of your application can be quite a challenge. And there are a number of options such as laying these buttons in a horizontal manner, enabling your layout scrollable, etc. Another way is off course to create just a menu button on the Activity. Although it can quite redundant because there is a physical menu button on most mobile phones, having a menu button on the Activity itself will just make it user friendly – especially those who aren’t aware of a menu button.

So to add a menu button perform the following steps:

1. Add a button view to your layout as declared in main.xml. (Partial code shown)

<Button    android:id="@+id/btnMenu"    android:layout_width="fill_parent"    android:layout_height="wrap_content"    android:text="@string/menu_text"  />

2. Declare the text value of your button in your resources file (string.xml).

<?xml version="1.0" encoding="utf-8"?><resources>  <string name="menu_text">Menu</string></resources>

3. And in your Activity.java file add the following codes:

// -- code to run when button is clicked --Button btnMenu = (Button) findViewById(R.id.btnMenu); btnMenu.setOnClickListener(new View.OnClickListener() { 		@Override		public void onClick(View view) {			openOptionsMenu();		}});

4. Run the program. When the Menu button is clicked, the options menu will appear.

Related Posts:

Tags: android tutorial


Source : htmlpress[dot]net

Friday, November 9, 2012

How To Simulate Sending SMS Text In An AVD

If you are developing an Android mobile application that requires receiving sms text, then you can use features in Android’s SDK to simulate this process. And it is fairly easy to do.

If you are using linux / ubuntu, just follow the steps below:

1. Bring up the Terminal window
2. In the Terminal window type: telnet

3. Then type: o localhost 5554
4. If successful you should get the message: Connected to localhost.
5. Then type: sms send 123456 hello
6. You should get a notification on your AVD when this sms text has been received.

Note: If you are using Windows, the steps you should be similar to that above.

Related Posts:

  • No Related Posts

Source : htmlpress[dot]net

jPanelMenu: Slick Navigation-Sidebar With CSS Animations And jQuery

jPanelMenu is only a few days old, but you already know the operating principle from your favorite smartphone or tablet using Android or iOS. Most likely you will use either the Facebook or the Google+ app, which both implement an off-canvas slide-in navigation. A small list icon in the upper left corner symbolizes the availability of a navigational menu at a tap of your finger. It is exactly this principle jPanelMenu transports into your webdesigns.


Source : internetwebsitedesign[dot]biz