New to the group and VoteReport app

by Nathan Freitas » Thu, 30 Oct 2008 16:36:12 GMT


Sponsored Links
 Hi there. I am new to this group, and proud to say I just built my
first Android app in about 10 hours... including uploading it for
release in the Market! Fortunately, it is a fairly simple application
and I am not crazy, just working against the deadline of November 4th.
More on this...

I am part of a group working something called TwitterVoteReport.com
(also known as  http://VoteReport.us ) Twitter Vote Report is an all-
volunteer network of software developers, designers, and other
collaborators have teamed up with the award-winning blog techPresident
to launch this effort. The only resources contributed to this project
are the participantstime and expertise! Using Twitter Vote Report,
voters will be able to share their experiences and resources with one
another to solve problems quickly (e.g. on come now, the line is
too long. These messages will then be aggregated and mapped so that
we can eevoting problems around the country in real-time.

Since there was an effort to create an iPhone application underway, I
decided to "port" that work to Android. I've been involved in mobile
software and Java for a long time, and thought this seemed like a
fantastic application that made a lot of sense. After a full day of
hacking yesterday, and a few hours of testing (I promise), the first
release of the app was done. I hate calling things 1.0, so I didn -
VoteReport for Android 0.9.4 is released and available in the Android
Market. If you have a T-Mobile G1, just open the Market application
and search for otereportor simply browse under the Productivity
category. You can also download it direct at: 
 http://openideals.com/android/VoteReport.apk. 
Code will be up soon (this is an open source effort).

This is very simple app with a powerful concept, but it does do some
more complicated things under the cover (location lookup, web
integration, REST calls, etc). I am working on a GeoRSS parser (for
 http://votereport.us/reports.atom ) to generate a MapView overlay, but
that might take a few more hours.

Read on if you'd like at: 
 http://openideals.com/2008/10/30/votereport-for-android-094/ 
Otherwise, if you are in the US, please check out the entire project:
 http://twittervotereport.com 

Best,
  Nathan

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Source Code for HelloGoogleMaps Tutorial

Hello Developers,

I am new at Android development and I work through the tutorials.
The HelloGoogleMaps Tutorial

http://developer.android.com/resources/tutorials/views/hello-mapview.html

does not work on my phone. The map is shown but not the marker. So I
want to ask if someone has a working source code of the tutorial?
I can not understand that Google does not provide!

Thank you in advance.

-- 

2. onDraw not getting called for a custom view derived from view in layout.

Hello All,

I have a custom view
.........

package com.yasir.canvasTest;


import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.util.Log;
import android.view.View;


public class GraphView extends View {

    private static final String TAG = "GraphView";
    public static boolean BAR = true;
    public static boolean LINE = false;

    private Paint paint;
    private float[] values;
    private String[] horlabels;
    private String[] verlabels;
    private String title;
    private boolean type;
    public Canvas tmpCanvas = null;

    public GraphView(Context context, float[] values, String title, String[]
horlabels, String[] verlabels) {
        super(context);
        //setScrollContainer(true);
        Log.v(TAG,"On GraphView==>");




        paint = new Paint();

        setWillNotDraw(false);
        requestLayout();
        invalidate();
    }

    @Override
    protected void onDraw(Canvas canvas) {




        Log.v(TAG,"<==On Draw");

/// drawing code here
        invalidate();
    }

    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        Log.v(TAG,"On onMeasure==>");
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);

        int parentWidth = MeasureSpec.getSize(widthMeasureSpec);
        int parentHeight = MeasureSpec.getSize(heightMeasureSpec);
        setMeasuredDimension(
                parentWidth * 2, parentHeight);
    }

}
...............
Activity: onCreate
...............
    setContentView(R.layout.horscroll);



        HorizontalScrollView hsView = (HorizontalScrollView)
findViewById(R.id.hzsv);

        LinearLayout ll = (LinearLayout) findViewById(R.id.linearParent);
        ll.removeAllViews();


        // create custom view and add to laywout
        GraphView graphView = new GraphView(this, values,
"GraphViewDemo",horlabels, verlabels, GraphView.LINE);


        hsView.requestLayout();
        hsView.setWillNotDraw(false);

        ll.requestLayout();
        ll.setWillNotDraw(false);
        ll.addView(graphView);

.....................
Xml
....................
<?xml version="1.0" encoding="utf-8"?>

<HorizontalScrollView
 android:id="@+id/hzsv"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/linearParent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"></LinearLayout>
 </HorizontalScrollView>
..................


Regards,
Yasir Perwez

-- 

3. Maven and Emma

4. problem for send sms

5. Monkeyrunner extension library

6. I'm trying to build Library(libwebcore.so) that works on emulator and target(Nexus s).

7. Custom view and horizontal scrolling