Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Monday, January 9, 2017

Privacy Policy - GKproggy Video Poker

Effective date: January 9, 2017

Welcome to GKproggy Video Poker ("GKproggy Video Poker", "We"). GKproggy Video Poker was designed to protect yourself and your property.

  • Our Privacy Policy explains how we collect, use, and protect information in relation to our mobile application in connection with GKproggy Video Poker, and your choices about the use of your information.
  • By using GKproggy Video Poker you understand and agree that GKproggy Video Poker is a fantasy poker card game.

1. INFORMATION WE COLLECT

If using Google Play Game Services through GKproggy Video Poker, analytics are collected by Google in-regards to usage of access keys generated for GKproggy Video Poker by Google. GKproggy Video Poker does not collect any personal information.

Log file information:

Google Play collects information for any exceptions generated by GKproggy Video Poker. Logs are provided via Google Play portal and shows device information, android version, and exception logs.

2. HOW WE USE YOUR INFORMATION

Anonymous information/analytics gathered by Google Play Game Services is used to improve stability of GKproggy Video Poker. We do not collect any personal information.

3. SHARING OF YOUR INFORMATION

We do not share any data with any third party.

4. HOW WE STORE YOUR INFORMATION

GKproggy Video Poker does not store any private information. Analytics collected by Google is not stored by GKproggy Video Poker.

5. YOUR CHOICES ABOUT YOUR INFORMATION

If you do not agree with anonymous analytics/information collected by Google services in the use of GKproggy Video Poker, you agree to uninstall GKproggy Video Poker from the device.

6. CHILDREN'S PRIVACY

GKproggy Video Poker does not knowingly collect or solicit any information from anyone under the age of 13 or knowingly allow such persons to use GKproggy Video Poker. GKproggy Video Poker is not directed at children under the age of 13.

7. HOW TO CONTACT US

If you have any questions about this Privacy Policy, please email us to apps@gkproggy.com

8. CHANGES TO OUR PRIVACY POLICY

We may modify or update this Privacy Policy from time to time, so please review it periodically. Your continued use of GKproggy Video Poker after any modification to this Privacy Policy will constitute your acceptance of such modification.

Privacy Policy - ReCam

Effective date: January 9, 2017

Welcome to ReCam ("GKproggy", "ReCam", "We"). ReCam was designed to protect yourself and your property.

  • Our Privacy Policy explains how we collect, use, and protect information in relation to our mobile application in connection with ReCam, and your choices about the use of your information.
  • By using ReCam you understand and agree that ReCam is not meant to be used to invade anyone's privacy or to be used for any other nefarious purposes.

1. INFORMATION WE COLLECT

If using Google Drive or YouTube to upload video or audio collected by ReCam, the content is made private under the user account selected when configuring recording job. Analytics are collected by Google Drive and YouTube in-regards to usage of access keys generated for ReCam by Google. ReCam does not collect any personal information.

Log file information:

Google Play collects information for any exceptions generated by ReCam. Logs are provided via Google Play portal and shows device information, android version, and exception logs.

2. HOW WE USE YOUR INFORMATION

Anonymous information/analytics gathered by Google Play, Google Drive, and YouTube is used to improve stability of ReCam. We do not collect any personal information.

3. SHARING OF YOUR INFORMATION

We do not share any data with any third party.

4. HOW WE STORE YOUR INFORMATION

ReCam only stores configuration for recording job on device in the shared preferences of mobile device in use. No personal information is stored on mobile device using ReCam. Analytics collected by Google is not stored by ReCam.

5. YOUR CHOICES ABOUT YOUR INFORMATION

If you do not agree with anonymous analytics/information collected by Google services in the use ReCam, you agree to uninstall ReCam from the device.

6. CHILDREN'S PRIVACY

ReCam does not knowingly collect or solicit any information from anyone under the age of 13 or knowingly allow such persons to use ReCam. ReCam is not directed at children under the age of 13.

7. HOW TO CONTACT US

If you have any questions about this Privacy Policy, please email us to apps@gkproggy.com

8. CHANGES TO OUR PRIVACY POLICY

We may modify or update this Privacy Policy from time to time, so please review it periodically. Your continued use of ReCam after any modification to this Privacy Policy will constitute your acceptance of such modification.

Saturday, June 18, 2016

ReCam 1.8 is out!

Many great optimization and new features!

It has been a while since my last update, but it brings me great pleasure to release this update
Release Notes:
  • File path of saved files now appear on in ReCam's File Browser
  • Updated UI problems with Android Marshmallow.
  • Fixed issue with scheduling on Android Marshmallow when device is asleep (Power saving mode).
  • Share Option available to content. (Long press on files on the ReCam file browser view and select share)
  • Storage Location for saving to YouTube and Google Drive. Google Play Services needs to be installed from Google Play Store in order to get Option.

It is easy to automatically upload videos after recording. Just select the option YouTube or Google Drive under the storage location, pick the account, and content will be uploaded when recording is finished. Once upload is done, the file is removed from device, this way you keep precious free space. All the content is private on initial upload to either services. To make public, just log into YouTube or Google Drive and set the content up for public viewing. FYI, on initial setup of YouTube or Google Drive, Google will confirm permissions with you to allow ReCam to upload on your behalf.

Happy Recording!

Download on Google Play!

Free (10 sec. Recording limit): Premium:

Thursday, May 14, 2015

ReCam Updated!

ReCam has been updated with the new feature to Record on Demand! Spy lovers rejoice! Just pull out your phone and hit start recording. Once the recording begins, you can continue to use your phone incognito ;). You can also place the device on the table or in some hidden location. What you record is all up to you. Very good for keeping an eye on your property and surroundings.

In addition, UI has been improved.

Check it out on Google Play!

Pro Version also Available!

Monday, March 2, 2015

ReCam v1.0 Released!

Ever wanted to use your phone or tablet to record Video or Audio at a certain time for a few seconds or minutes without you pressing camera and record? ReCam is there to help. ReCam gives you the ability to use your mobile or tablet as an automated recording device. You can set various schedules with varying duration. Recording jobs will run in the background which means you can still use your device even if a recording is in progress. You can schedule recordings to execute once or repeat every day or week.

Install the free Demo version now available at on Google Play:

The full-version is also available on Google Play

Tuesday, July 30, 2013

GKproggy Video Poker 2.0 is out on Google Play

The new version of 2.0 features:
  • Custom bet option to enter any amount. 
  • Google Play Game Services is available for you to play and unlock achievements as well as post your tournament score to show off your winnings on the leader board. Check it out on Google Play



Saturday, January 26, 2013

Draw Text on Canvas with Font Size Independent of Screen Resolution - Android

I will show how to draw text with a font size independent of screen resolution on to a canvas.
First we need to create an XML and place it in res/values. Call the file myFontSize. The following is the content of the file


    20sp

Here is a sample use and how to implement.
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup.LayoutParams;

public class MainActivity extends Activity
{
 Paint paint;

 @Override
 protected void onCreate(Bundle savedInstanceState)
 {
  super.onCreate(savedInstanceState);
  paint = new Paint();
  View test = new TestView(this);

  setContentView(test);
 }

 public class TestView extends View
 {

  public TestView(Context context)
  {
   super(context);
   setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
  }

  @Override
  protected void onDraw(Canvas canvas)
  {
   int size = getResources().getDimensionPixelSize(R.dimen.myFontSize);
   paint.setColor(Color.BLACK);
   paint.setTextSize(size);
   canvas.drawText("HELLOOOOOOOOOOOOOO!", 0, size, paint);
   super.onDraw(canvas);
  }
 }
}

The magic happens on the call to getResources().getDimensionPixelSize(..). This function grabs your set font size (in this case 20sp) and returns it as an appropriate size to give to your paint. Paint is the attributes which will tell the canvas what to do to the provided text.

You should see the following on different resolutions



Monday, September 24, 2012

Mount System folder of an Android device to force push APK or force remove APK

There is a way to install an apk by doing adb install <the name of your apk>. The problem is sometimes when you do this, you get permission denied or failed to install and there can be various reasons for that. If you want to manipulate the System folder yourself, we need to have root access on your Android device and then we need to mount /System.


  1. Set your phone to USB debugging and then plug USB
  2. Bring up command line in Windows
  3. Go to directory of android sdk -> platform tools (if you set your environmental variables then skip this, if you type 'adb devices' and you get an error, then you haven't)
  4. type adb shell
  5. You should see a prompt change to $
  6. Type su and hit enter. You should now see a prompt #
  7. Type mount. You should see a list of items you can mount. On that list look for and item that says '/dev/block/<something> /system ......     <something> can be anything, just find one which resembles this.
  8. Once you found it, type mount -o remount,rw /dev/block/<something> /system

Now the folder should be mounted. We can now navigate to the device to system/app. type cd system/app and now we can remove any apks and push anything we want.

Tuesday, June 19, 2012

Tuesday, June 5, 2012

RSS News Reader Application Now Available @ Google Play

Hey everyone, I have released a new application I worked on my free time on Google Play. The application is a simple RSS news reader. Check it out: Google Play Link

Thanks

Saturday, May 5, 2012

Android - Switch Tabs in TabHost within a Listview by Swipes using GestureDetector

Implementing a tabhost is a great way to add functionality to your app. Sadly, tabhost forces the user to click on the tabs to switch between screens. But thankfully we are programmers and can make our programs do what we want them to do. In this tutorial, Ill show you how to implement a GestureDetector to handle the left and right swipes from user to switch between tabs. Lets start with our XML layout of the main window:

main.xml

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:padding="5dp" >

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="4"
            android:padding="5dp" >

            <com.daish.viewtest.TestListView
                android:id="@+id/custom_list"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />
        </FrameLayout>
    </LinearLayout>
</TabHost>

Next we have our main activity. I created a method called switchTabs(boolean direction) to tell tabhost which direction to switch tabs. I also implemented a listener on tabchanged. Once a tab is changed, the listener is fired and I then change the content on listview.

import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.OnTabChangeListener;

public class ViewTestActivity extends TabActivity
{
 private TestListView testListView = null;
 private TabHost tabHost = null;
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState)
 {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  tabHost = getTabHost(); // The activity TabHost
  TabHost.TabSpec spec; // Resusable TabSpec for each tab

  spec = tabHost.newTabSpec("Tab 1 Tag").setIndicator("Tab 1")
    .setContent(R.id.custom_list);
  tabHost.addTab(spec);

  testListView = (TestListView) findViewById(R.id.custom_list);
  
  spec = tabHost.newTabSpec("Tab 2 Tag").setIndicator("Tab 2")
    .setContent(R.id.custom_list);
  tabHost.addTab(spec);

  //Done to make list update itself on a tab change
  tabHost.setOnTabChangedListener(new TabChangeListener());
  tabHost.setCurrentTab(1);
 }
 
 public void switchTabs(boolean direction) 
 {
  if (direction) // true = move left
  {
   if (tabHost.getCurrentTab() == 0)
    tabHost.setCurrentTab(tabHost.getTabWidget().getTabCount() - 1);
   else
    tabHost.setCurrentTab(tabHost.getCurrentTab() - 1);
  }
  else
  // move right
  {
   if (tabHost.getCurrentTab() != (tabHost.getTabWidget().getTabCount() - 1))
    tabHost.setCurrentTab(tabHost.getCurrentTab() + 1);
   else
    tabHost.setCurrentTab(0);
  }
 }

 private class TabChangeListener implements OnTabChangeListener
 {

  @Override
  public void onTabChanged(String tabId)
  {
   testListView.init(tabHost.getCurrentTab());   
  }
  
 }
}

Next we have the heart of the content; the listview. The goal is to allow the user to swipe left and right and our program would switch tabs. Although, we have to make sure we did not remove the functionality of clicking on an item and scrolling up and down on list. On my first attempt, I made an @Override onTouchEvent(MotionEvent event) and I tried to handle the swipes. The problem my implementation had was if the user swiped, the item on the next tab would automatically click after user lifted their finger. As such, I had to find an alternative. This is where GestureDetector came in. This class gave me the ability to analyze the touch event. I kept the original @Override onTouchEvent(MotionEvent event), except I passed the event to the GestureDetector and let the class handle the left and right swipes. If the GestureDetector analysis of the touch event appeared to be anything other than left or right swipes, let ListView handle it (ex. scroll up and down as well as clicks). The result was the functionality I was looking for.

import android.app.AlertDialog;
import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.GestureDetector.OnGestureListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class TestListView extends ListView
{
 Context context;
 private ArrayAdapter<String> test;
 String[] testItems = {"Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary"};
 String[] anotherTestItems = {"Homer", "Leslie", "Gary","Beaver","Homer", "Leslie", "Gary","Beaver","Homer", "Leslie", "Gary","Beaver","Homer", "Leslie", "Gary","Beaver"};
 
 //If built programmatically
 public TestListView(Context context)
 {
  super(context);
  this.context = context;
 }
 //This example uses this method since being built from XML
 public TestListView(Context context, AttributeSet attrs)
 {
  super(context, attrs);
  this.context = context;
 }
 
 //Build from XML layout 
 public TestListView(Context context, AttributeSet attrs, int defStyle)
 {
  super(context, attrs, defStyle);
  this.context = context;
 }
 
 public void init(int i)
 {
  if(i == 0)
   test = new ArrayAdapter<String>(getContext(),R.layout.row, R.id.label , testItems);
  else
   test = new ArrayAdapter<String>(getContext(),R.layout.row, R.id.label , anotherTestItems);
  setAdapter(test);
  setOnItemClickListener(new ListSelection());
 }
 
 //GestureDetector used to for analyze touch even from user
 private GestureDetector gesture = new GestureDetector(new GestureListener());
 
 //Method is called when ListView detects an onTouchEvent
 @Override
 public boolean onTouchEvent(MotionEvent event)
 {//Sends event to GestureDetector to see if we can use event
  boolean result = gesture.onTouchEvent(event);
  //if result is true, then we need to handle event, not listview
  //false means listview can handle event to pass it on
  if(result)
   return result;
  return super.onTouchEvent(event);
 }
 
 private float startX= 0;
 private float endX = 0;
 //Class which will analyze touch event and determine what user did
 private class GestureListener implements OnGestureListener
 {

  @Override
  public boolean onDown(MotionEvent e)
  {
   return false;
  }

  @Override
  public void onShowPress(MotionEvent e)
  {
  }

  @Override
  public boolean onSingleTapUp(MotionEvent e)
  {
   return false;
  }

  @Override
  public boolean onScroll(MotionEvent e1, MotionEvent e2,
    float distanceX, float distanceY)
  {
   return false;
  }

  @Override
  public void onLongPress(MotionEvent e)
  {
  }

  @Override
  public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
    float velocityY)
  {
   float x = velocityX < 0 ? -1*velocityX : velocityX;
   float y = velocityY < 0 ? -1*velocityY : velocityY;
   if(x > y)
   {
    System.out.println("Moving" + " " + (startX - endX));
    startX = e1.getX();
    endX = e2.getX();

    if ((startX - endX) < -120)
    {
     ((ViewTestActivity) context).switchTabs(true);
    }
    else if ((startX - endX) > 120)
    {
     ((ViewTestActivity) context).switchTabs(false);
    }
    return true;
   }
   return false;
  }
  
 }
 
 private class ListSelection implements OnItemClickListener
 {

  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position,
    long id)
  {
   AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
   builder.setMessage("You pressed item #" + (position+1));
   builder.setPositiveButton("OK", null);
   builder.show();
  }
  
 }
}

Hope this was helpful. Enjoy!

Thursday, May 3, 2012

Android - Creating a Tabhost with ListView and Button under ListView

I decided this was worthy of a post since I had a hard time figuring this out. Android has a cool TabActivity which allow us to add tabs to our application. Of course we have to declare an XML file for our main window which includes all the containers and widgets needed to create UI:

Main.xml

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:padding="5dp" >

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="4"
            android:padding="5dp" >

            <com.daish.viewtest.TestListView
                android:id="@+id/custom_list"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />
        </FrameLayout>

        <FrameLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0"
            android:padding="5dp" >

            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="BUTTON UNDER LISTVIEW!" />
        </FrameLayout>
    </LinearLayout>

</TabHost>

The XML layout includes a tabwidget, listview, and a button. The trick here is android:layout_weight="" which indicates which widget will take up portions of the screen. I also added a button which took up another portion. When it comes down to FrameLayouts, you have to indicate the weight to determine how much of the screen it will take up or else some widgets will appear to float infront of another, which is the nature of a framelayout. The problem is Tabhost needs to have a Framelayout for its content of the tabs and this was a way I found to add button. Linear Layout and Relative layout did not work for me. If someone has a better way, please feel free to share.

Here is my Main Activity Class:

import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;

public class ViewTestActivity extends TabActivity
{
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState)
 {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  TabHost tabHost = getTabHost(); // The activity TabHost
  TabHost.TabSpec spec; // Resusable TabSpec for each tab

  //tab creation
  spec = tabHost.newTabSpec("Tab 1 Tag").setIndicator("Tab 1").setContent(R.id.custom_list);
  tabHost.addTab(spec);

  spec = tabHost.newTabSpec("Tab 2 Tag").setIndicator("Tab 2").setContent(R.id.custom_list);
  tabHost.addTab(spec);

  tabHost.setCurrentTab(1);

 }
}

Here is the Class which extends ListView:

import android.app.AlertDialog;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class TestListView extends ListView
{
 private ArrayAdapter<String> test;
 String[] testItems = {"Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary","Larry", "John", "Gary"};
 
 //If built programmatically
 public TestListView(Context context)
 {
  super(context);
  init();
 }
 //This example uses this method since being built from XML
 public TestListView(Context context, AttributeSet attrs)
 {
  super(context, attrs);
  init();
 }
 
 //Build from XML layout 
 public TestListView(Context context, AttributeSet attrs, int defStyle)
 {
  super(context, attrs, defStyle);
  init();
 }
 
 public void init()
 {
  test = new ArrayAdapter<String>(getContext(),R.layout.row, R.id.label , testItems);
  setAdapter(test);
  setOnItemClickListener(new ListSelection());
 }
 
 private class ListSelection implements OnItemClickListener
 {

  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position,
    long id)
  {
   AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
   builder.setMessage("You pressed item #" + (position+1));
   builder.setPositiveButton("OK", null);
   builder.show();
  }
  
 }
}

Here is the result of code above. Enjoy!

Wednesday, January 11, 2012

Android - Extending ListView and Instantiate with XML and AlertDialogs for itemSelect

Was doing a bit of coding and decided to demonstrate a way to create your own class which extends ListView. I wanted to manage specific code in regards to this listview and didnt want the code to be all over the place. Anywho, here is the source of a quick ListView showing names.

When you click on the items an AlertDialog box appears indicating what you clicked on.


NOTE: the XML files below should go in res/layout folder of your project.


Main.xml Make sure to make change to package name!


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

 <com.daish.viewtest.TestListView
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"/>

</LinearLayout>

row.xml This layout defines how each row is going to look like. This has a picture and name


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal" >

    <ImageView
        android:id="@+id/icon"
        android:layout_width="22dp"
        android:layout_height="22dp"
        android:layout_marginLeft="4dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="4dp"
        android:src="@drawable/ic_launcher" >
    </ImageView>

    <TextView
        android:id="@+id/label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="20dp" >
    </TextView>

</LinearLayout>

MainActivity (beginning of program)


import android.app.Activity;
import android.os.Bundle;

public class ViewTestActivity extends Activity 
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

TestListView Class extending ListView


package com.daish.viewtest;

import android.app.AlertDialog;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class TestListView extends ListView
{
 private ArrayAdapter<String> test;
 String[] testItems = {"Larry", "John", "Gary"};
 
 //If built programmatically
 public TestListView(Context context)
 {
  super(context);
  init();
 }
 //This example uses this method since being built from XML
 public TestListView(Context context, AttributeSet attrs)
 {
  super(context, attrs);
  init();
 }
 
 //Build from XML layout 
 public TestListView(Context context, AttributeSet attrs, int defStyle)
 {
  super(context, attrs, defStyle);
  init();
 }
 
 public void init()
 {
  test = new ArrayAdapter<String>(getContext(),R.layout.row, R.id.label , testItems);
  setAdapter(test);
  setOnItemClickListener(new ListSelection());
 }
 
 private class ListSelection implements OnItemClickListener
 {

  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position,
    long id)
  {
   AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
   builder.setMessage("You pressed item #" + (position+1));
   builder.setPositiveButton("OK", null);
   builder.show();
  }
  
 }
}


The code above should give you this:

Sunday, August 15, 2010

Android Five Card Poker Game

During this past summer I have been learning Java along with the Android OS (double whammy). From both experiences, including GUI programming (only worked with command line proggies), I have coded a five card poker game. I originally made this game as a final for my class but coded in C++ along with PDCurses for graphics. It's nothing amazing; was just a productive project until Starcraft 2 came along :).

Screenshots:




Download: