How can I draw/move a point on screen ?!

by Diogo Salaberri » Fri, 20 May 2011 03:13:14 GMT


Sponsored Links
 Any tutorial ? Any link ?

Thanks, bye.

-- 
Atenciosamente;
Diogo Bonoto Salaberri
Bacharel em Cincia da Computao - UFPel

-- 



Re: How can I draw/move a point on screen ?!

by Nicholas Johnson » Fri, 20 May 2011 03:20:49 GMT


 Look at all the documentation on developer.android.com

-- 


Sponsored Links


Re: How can I draw/move a point on screen ?!

by Diogo Salaberri » Fri, 20 May 2011 04:46:57 GMT


 Some more especific !?

Thanks.

-- 
Atenciosamente;
Diogo Bonoto Salaberri
Bacharel em Cincia da Computao - UFPel

-- 



Re: How can I draw/move a point on screen ?!

by Kristopher Micinski » Fri, 20 May 2011 04:58:37 GMT


 What are you trying to do !? ...

You want to put a point on the screen?  Like, using the screen as a place to
draw an image?

Look at using the Canvas class.  You can grab a canvas associated with a
view, and you should be able to draw on it, and then move a point around by
using a drawing handler which simply moves the point around.  What are you
trying to do?

(I'm guessing that if you're a beginniner, and you didn't know to look for
the Canvas class, and you want to move something around, that you want to
make a game...)

Kris





-- 



Re: How can I draw/move a point on screen ?!

by Droid » Fri, 20 May 2011 04:59:23 GMT


 I think you have to use paint() - but I have the same problem and have
not got round to it yet. :(




-- 



Re: Re: How can I draw/move a point on screen ?!

by Diogo Salaberri » Fri, 20 May 2011 05:04:14 GMT


 I want to put a point on the screen and move him around it.

Thanks, I waiting.

-- 
Atenciosamente;
Diogo Bonoto Salaberri
Bacharel em Cincia da Computao - UFPel

-- 



Re: Re: How can I draw/move a point on screen ?!

by Kristopher Micinski » Fri, 20 May 2011 05:04:22 GMT


 


Wait, why is that a *problem*?

How else should it be done?

kris

-- 



Re: Re: How can I draw/move a point on screen ?!

by Kristopher Micinski » Fri, 20 May 2011 05:05:33 GMT


 


Good. Now google "graphics java tutorial 2d"

kris

-- 



Re: Re: How can I draw/move a point on screen ?!

by TreKing » Fri, 20 May 2011 05:11:36 GMT


 




What have you done so far?
Where exactly are you stuck?
What kind of answer are you expecting with such a statement that's
completely lacking in detail?

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 



Other Threads

1. Direct interaction between application and library

Hello,

I am working on a GPS library which needs to interact directly with an
application.
I am not supposed to change any framework code. Hence I have managed
to implement this solution using sockets.

The GPS library creates a new detached thread on startup, which opens
up a socket.
The application also connects to the same socket on onCreate() method.

However the problem is that this setup uses a lot of resources, and I
am looking for a way to solve this problem.
I am looking for a design which will create both the client and server
sockets on application startup, and destroy the same when the
application quits.
To make this happen, I have thought of one approach:

Implement JNI in the vendor directory and create a so, that will be
loaded, and this communicates with GPS library.
When the application is launched, call a function in the library which
opens the socket, and on onDestroy() call another method, which
destroys the socket connection.

But this also suffers from resource problem since the so it is a
process in memory.

Please suggest a method to overcome this problem.

-- 

2. Android Referral Tracking not working

I am attempting to get Android Referral tracking to work. I am
following the only documentation I have found here
http://code.google.com/mobile/analytics/docs/android/#referrals

I have the following in my android manifest file

<receiver
android:name="com.google.android.apps.analytics.AnalyticsReceiver"
android:exported="true">
        <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
</receiver>
<receiver android:name="com.package.Receiver" android:exported="true">
        <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
</receiver>
<uses-sdk android:minSdkVersion="4"/>

com.package.Receiver starts with:

public void onReceive(Context paramContext, Intent paramIntent) {
        String str1 = paramIntent.getStringExtra("referrer");
        Log.i("myapp", "action: '" + paramIntent.getAction() + "'
referrer string: '" + str1 + "'");

Also with a little bit of decompiling
com.google.android.apps.analytics.AnalyticsReceiver has the following
code in it:

public void onReceive(Context ctx, Intent intent)
/*     */   {
/*  24 */     String referrer = intent.getStringExtra("referrer");
/*     */
/*  26 */     if ((!
("com.android.vending.INSTALL_REFERRER".equals(intent.getAction())))
|| (referrer == null))
/*     */     {
/*  28 */       return;
/*     */     }
/*     */
/*  31 */     String formattedReferrer = formatReferrer(referrer);
/*     */
/*  33 */     if (formattedReferrer != null) {
/*  34 */       PersistentEventStore store = new
PersistentEventStore(ctx);
/*  35 */       store.setReferrer(formattedReferrer);
/*  36 */       Log.d("googleanalytics", new
StringBuilder().append("Stored
referrer:").append(formattedReferrer).toString());
/*     */     } else {
/*  38 */       Log.w("googleanalytics", "Badly formatted referrer,
ignored");
/*     */     }
/*     */   }

Note the two lines 36 and 38 that Log "googleanalytics"


I have tried pushing the above app to the market, downloading it on my
Nexus One (after uninstalling a previous version of the app). I have
generated a link using the google page I linked to at the beginning of
this post

http://market.android.com/search?q=pname:com.package.app&referrer=utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_term%3Drunning%252Bshoes%26utm_content%3Dcontent1%26utm_campaign%3Dslogan

I attached logcat to my Nexus One while I download the app, I do not
see any logs from "googleanalytics" or "myapp". The rest of the google
analytics library does work for my app. I.E. I see records on google
analytics about pages hits etc. However all the traffic sources are
"Direct Traffic". I am at a loss as to what is going on. Does anyone
have any insight into what I might be doing wrong?

-- 

3. Looking for ideas for Multipart Form Handling on Web Service

4. onDestroy() and finish()

5. (WTA) Aplikasi yg bisa Gtalk Voice

6. Nexus S as developer phone

7. 64bit ubuntu 10.04 build android error