Hello all,
I can construct an Activity that utilized OpenGL to draw a square, set
properties, and
make it rotate around a fixed point by implementing
android.opengl.GLSurfaceView,Renderer
and configuring:
public void onSurfaceCreated(GL10 gl, EGLConfig config) {}
public void onDrawFrame(GL10 gl)
Hi mot12,
i was fighting with similar problem few days ago and succesfully
solved. so my solution which may help you too ...
String lang = Settings.getLanguage();
Resources res = activity.getResources();
DisplayMetrics dm = res.getDisplayMetrics();
Configuration config = res.getConfiguration();
Hi,
We are facing 2 issues on the nexus 1 using opengl ( under NDK ) :
1) glNormalPointer(GL_BYTE, x , y); does no work, there no lighting
done on any model using normals stored using byte, the same code is
working properly on a motorola droid/milestone.
2) Changine Lighting state
Btw glNormalPointer(GL_SHORT, x , y); too is broken, just GL_FLOAT
are working, that's not helping the bandwidth saving for the nexus 1
On Feb 14, 5:16 pm, Carlo wrote:
> Hi,
>
> We are facing 2 issues on the nexus 1 using opengl ( under NDK ) :
>
> 1) glNormalPointer(GL_BYTE, x , y);
http://groups.google.com/group/android-developers/browse_thread/thread/9677b73c0b571f5a/20b06ff6e135adec
On Feb 14, 3:06 am, joshbeck wrote:
> Hello all,
>
> I can construct an Activity that utilized OpenGL to draw a square, set
> properties, and
> make it rotate around a fixed point by implement
You can follow the same model we use for input methods, app widgets, live
wallpapers, and other things (none of which are fundamentally kinds of
things in the platform, but built on top of the fundamental generic
activity, receiver, service, and provider components):
1. Pick the kind of component
Hi,
I understand you want to show a splash screen.
Here is how i do it.
I have a relativelayout containing my UI in a framelayout.
The background of the framelayout is set to the picture for the
splash.
I have an animation on the relativelayout from 0 alpha to 1 alpha with
a startoffset of 2 se
Hello Carlo,
Im using the NDK, but I don't think this makes a difference
1) glNormalPointer(GL_BYTE, x , y); does no work, there no
> lighting
> done on any model using normals stored using byte, the same code is
> working properly on a motorola droid/milestone.
>
>
GL_FLOAT seems to
I'll look at the examples, and try that.
Thanks.
On Feb 14, 11:07 am, Dianne Hackborn wrote:
> You can follow the same model we use for input methods, app widgets, live
> wallpapers, and other things (none of which are fundamentally kinds of
> things in the platform, but built on top of the fun
Hey i want to write a program in android to press menu button or end
button or answer button automatically. Please help me if you can.
though i got some links like
http://davanum.wordpress.com/2007/12/19/android-simulate-key-strokes/
BUT i am getting error because of using import
android.os.Servi
Hi Menion,
Thank you so much for responding. You saved my weekend :). That's
exactly what I was looking for.
Martin
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
T
I was afraid you might say that:
I've gone through and incorporated GLWallpaperService per his
instructions, but specifically I'm getting hung up here:
--QUOTE--
In your GLEngine subclass, instantiate your Renderer, configure it and
set it using setRenderer(Renderer) and setRenderMode(int).
--/QUOT
Menion,
Ok, now I feel silly because I thought I could figure it out from your
post.
1) Settings.getLanguage() is from your own preference settings?
It is no android.provider.Settings, right?
2) When my app loads, I read the language preference from my own app
preference settings and set the loca
How to do it at build time?
On Feb 13, 12:52 am, Frank Weiss wrote:
> A fairly straight forward way do it at build time with xslt. Chances are the
> strings.xml is not available at run time.
>
> On Feb 12, 2010 8:23 AM, "CMF" wrote:
>
> Hi all, I would like to write a program to parse the nodes
Rogerio,
What do you mean by using a service instead? Should the service
initiate the receiver, e.g. using registerreceiver() ?
On Feb 12, 9:35 pm, Rogério de Souza Moraes
wrote:
> Hi askPrins,
>
> you can implement this using a service class instead of an activity class.
> So you don't need the
Menny wrote:
> So you suggest that I'll have a pre-define resource which will hold
> all the information I need (let's say it is an XML resource) for
> creating the external keyboard. This sounds OK.
> The only problem is how to query for packages which have this
> resource?
I'm not sure if there
saru wrote:
> Hey i want to write a program in android to press menu button or end
> button or answer button automatically.
You can't, sorry.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Consulting/App Development: http://commonsware.com/consul
I'm using the Eclipse plugin to view log output using LogCat. I want
to use a filter all messages with the tag:
com.whatever.blah.*
But it doesn't work, how can I do this?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this gr
OK, thanks. I'll try that.
On Sun, Feb 14, 2010 at 14:15, Mark Murphy wrote:
> Menny wrote:
> > So you suggest that I'll have a pre-define resource which will hold
> > all the information I need (let's say it is an XML resource) for
> > creating the external keyboard. This sounds OK.
> > The onl
Menny Even Danan wrote:
> OK, thanks. I'll try that.
Actually, I hadn't seen Ms. Hackborn's response before replying --
definitely consider following her guidance in this area.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Consulting/App Developme
Eurig Jones wrote:
> I'm using the Eclipse plugin to view log output using LogCat. I want
> to use a filter all messages with the tag:
>
> com.whatever.blah.*
>
> But it doesn't work, how can I do this?
It doesn't look like log filtering supports prefixes or wildcards.
You'll need to set up sepa
Thanks for reply, that's nice to know that problem with IOException is
a bug, not my fault :)
Regarding certificate - mentioned links shows how to get certificate
from my server. Unfortunetly server which I connect with, it's not my
server.
On 11 Lut, 17:00, joebowbeer wrote:
> 3) Bob Lee explain
Another way to have a start up image is to use a theme with a
background image. The theme image loads first, and once the UI
develops, the theme is covered. There are downsides to splash screens
as they waste memory and resources but the upside is it keeps the user
from wondering if the app started
I'm going to post my entire source code as it stands right now in the
hope that someone with more experience than I can
get me pointed in the right direction. I've been trying lots of
different things. Feel free to use caps lock when expressing
discontent
with my code :')
/*
* Copyright (C) 2009
What I would try is to create a KeyEvent object and dispatch it to the
UI thread.
Something like this (I haven't tried this; code below only to sketch
this up on the conceptual level):
KeyEvent.Callback callbackReceiver = new KeyEvent.Callback(...) { //
callback code };
KeyEvent.DispatcherState di
Ok, I definitely do not see how to make this work.
I don't grasp how the wrapping method here in any way spares the 1.5
runtime environment from having references to text-to-speech things.
A 1.5 user tried my test build and gets a force close. I redoubled my
efforts to manually select a 1.5 emula
Of course, 2 minutes after posting this, I see the twisted path of how
to specify the 1.5 target.
I get, however, an exception (VerifyError) on a call to my TTS
wrapper. I think this might be because I modified the nature of this
slightly, and in a way that alters the delicate balance of the
examp
Hey Kevin,
It's not just Motorola, HTC are playing the same game. I have a HTC
Hero (UK on 3) that is still stuck at the 1.5 (cupcake is it called?)
release. No clue when going to upgrade to the infamous 2.1
There is no information about this on either the HTC main site, their
bulletin boards (wh
Congratualtions, It's a great feeling isnt it, seeing your application
up and running :D
On Feb 12, 3:45 pm, didu wrote:
> Hey,
> While I have started to work on android ,I have faced lots of
> problem on Eclipse IDE, Android SDK, but finally I have developed my
> 1st "Hello World" progam.
>
Hi all!
I want to create an application that uses small tabs, such as the one
the Android's facebook official app uses.
Does anyone know how these kind of tabs can be created? Do I need to
extend the TabHost class in order to customize it, or is there a more
general easier approach?
Thank you fo
Juan David Trujillo C. wrote:
> I want to create an application that uses small tabs, such as the one
> the Android's facebook official app uses.
> Does anyone know how these kind of tabs can be created? Do I need to
> extend the TabHost class in order to customize it, or is there a more
> general
>public GLSurfaceView mGLSurfaceView;
...
>mGLSurfaceView = new GLSurfaceView(this);
...
>mGLSurfaceView = new GLSurfaceView(MyLiveWallpaper.this);
Remove the lines above. Any use of GLSurfaceView in this is wrong.
>public Engine onCreateEngine() {
>return new GLEngine();
>}
You are supposed to
The strange thing in my case was that I had apparently been approved
as I posted several times with minimal group display latency. Then
everything started getting directed to /dev/null. Contacted the
moderator, never heard back, but now its all good. I did change the
email associated with my subscr
Hello,
i have a problem with my mapView. my app reads "some" gps points out
of a file and i want to draw a route (drawing lines between the gps
point). If my file contains many gps points, my app works really slow.
i think its working slow, because i draw all overlays.
now i want to check, whether
I think I got it working. Thanks for the direction.
My mistake had been moving the boolean that reflected the availability
of the TTS function INTO my wrapper class (where code design sort of
suggests it would like to be) and this would cause me VerifyError
exceptions. So there was indeed a met
Please don't keep a service running just to register a receiver...! Publish
the receiver in your manifest, so that the system will launch your app when
needed and not have to keep it running all of the time.
On Sun, Feb 14, 2010 at 3:44 AM, askPrins wrote:
> Rogerio,
> What do you mean by using
G1, myTouch, and Passion use a Synaptics screen. Droid uses one from
another company (I can't recall).
Even for a particular company, there are a wide variety of screens you will
encounter. For example here is what I found for Synaptics:
http://www.synaptics.com/solutions/products/clearpad
On
On Sun, Feb 14, 2010 at 1:00 PM, Stefan wrote:
> so i have to get the mapCenter and Lat/lon span
> (getLatitudeSpan,..) !?
>
Yes.
> how and where must i save my points and how can i check all my points
> (after my mapCenter has changed for example).
> Shall I save my points in a list (in my Ov
I'm having an annoying issue when developing my app within Eclipse +
ADT...
Application already deployed. No need to reinstall.
If I've changed my code it doesn't recognise the change unless I clean
the project. It then uploads a new apk! I didn used to have to do this
after a change!. "Build aut
I also am getting a crash occasionally with this stack trace:
02-14 10:08:56.618: ERROR/AndroidRuntime(326): at
android.widget.AbsListView.obtainView(AbsListView.java:1266)
02-14 10:08:56.618: ERROR/AndroidRuntime(326): at
android.widget.ListView.makeAndAddView(ListView.java:1668)
02-14 10
Hi,
I'm trying to query the list of favorite contacts. I use the line
below:
Cursor cur = this.getContentResolver().query(People.CONTENT_URI, null,
People.STARRED + "=?", new String[] { "1" }, null);
However, this doesn't work because NULL data is returned, even though
my list of favorite contac
run adb uninstall in a shell.
On Feb 14, 11:23 am, Eurig Jones wrote:
> I'm having an annoying issue when developing my app within Eclipse +
> ADT...
>
> Application already deployed. No need to reinstall.
>
> If I've changed my code it doesn't recognise the change unless I clean
> the project.
But that will just uninstall my app!
On Feb 14, 9:20 pm, OldSkoolMark wrote:
> run adb uninstall in a shell.
>
> On Feb 14, 11:23 am, Eurig Jones wrote:
>
> > I'm having an annoying issue when developing my app within Eclipse +
> > ADT...
>
> > Application already deployed. No need to reinstall
I guess I really should have posted an example, huh? Here's the
structure that works:
public class MyWallpaperService extends GLWallpaperService {
public MyWallpaperService() {
super();
}
public Engine onCreateEngine() {
MyEngine engine = new MyEngine();
return engine;
}
/
The problem that you were having is that you weren't creating the
engine in the right spot and then in the engine, you need to be
setting the renderer in the constructor.
The big difference between this and GLSurfaceView is that all of your
traditional "Activity" or "View" code goes into your Engi
I fixed this by recreating my project for a freshly created android
project in eclipse. This now seems to install the apk and recognise i
modified something!
On Feb 14, 9:59 pm, Eurig Jones wrote:
> But that will just uninstall my app!
>
> On Feb 14, 9:20 pm, OldSkoolMark wrote:
>
> > run adb un
Bumpy de bump
On Feb 3, 10:42 pm, TonyDoc wrote:
> [ro.build.description]: [U8220-user 1.5 CRB17 20091126.110223 ota-rel-
> keys,relea
> se-keys]
> [ro.build.fingerprint]: [T-Mobile/U8220/U8220/U8220:1.5/
> CRB17/20091126.110223:us
> er/ota-rel-keys,release-keys]
>
> On Jan 24, 9:13 pm, TonyDoc
I can see that now and I thank you for the response.
Really, your directions were very clear and your GL service
is incredible. I hope to see it incorporated in the official 2.2 API.
You deserve it, and I thank you!
Nancy, thanks also. --Your directions are what I was able
to follow in order to fi
Check www.dealebooks.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
Great! I'm glad you got it to work. I need to finish my submission
to the platform. I actually worked out most everything including a
few iterations of design and javadocs but never finished setting up my
build environment so I can't do some of the final stuff to get it in.
I'll try to get that
Hi,
I am running mysql server (on remote machine) and I can able to connect to
it from my host machine. I written a java code to connect and read some
table values.
Now I compiled the same java code in Android and on running it in emulator
it is unable to connect to server.
I believe I need to d
There were some times this past week when almost all messages were
dropped even for long time members of the group - mst of the message
gettinr through were from google employees. You could see the number
of messages drop from a dozen an hour to a 1 an hour (or roughly that
ratio). I tried posti
Thanks for your feedback :)
Do you push optimized triangle list indexed, triangle list or strip in
your scene ?
well, from our experience here, If you have a common setting that you
do not change we do not see this problem, let's say you have 1 light
set and keep it this way, however if you have
Can I receive a broadcast event in an activity? I've seen this done in
broadcast receivers but not in an activity. In particular I would like
to receive an event when a bluetooth device is found.
ACTION_DISCOVERY_FINISHED.
Do I need to declare that in the activity intent filters? Should I be
using
Indu wrote:
> Can I receive a broadcast event in an activity? I've seen this done in
> broadcast receivers but not in an activity. In particular I would like
> to receive an event when a bluetooth device is found.
> ACTION_DISCOVERY_FINISHED.
>
> Do I need to declare that in the activity intent fi
??? I use it on my Nexus One all the time. Perhaps it doesn't work on
older devices?
On Feb 14, 8:36 am, Mark Murphy wrote:
> If you can find an APK with the smaller tabs, you can always toss that
> into an emulator and use hierarchyviewer to try to figure out how they
> pulled it off. Alas, hier
Bob Kerns wrote:
> ??? I use it on my Nexus One all the time. Perhaps it doesn't work on
> older devices?
I just tried the Android 2.1 SDK hierarchyviewer on the Nexus One and
DROID, and hierarchyviewer refuses to work with either of them. Romain
Guy pointed out mid-2009 that hierarchyviewer does
Mark Murphy wrote:
> I just tried the Android 2.1 SDK hierarchyviewer on the Nexus One and
> DROID, and hierarchyviewer refuses to work with either of them.
I should point out that I've tried these from a Linux host. Perhaps
Windows works better for this. I never bothered trying another host,
afte
ok guys..thanks for your responses...
On Feb 10, 6:29 pm, Sean Hodges wrote:
> You can't playvideoinside an AppWidget.
>
> On Wed, Feb 10, 2010 at 12:42 PM, Narendra Bagade
>
>
>
> wrote:
> > I want to playvideo,how can i achieve?
> > I tried this code but ,it is playing only audio means i can h
If the snapdragon chip follows suit with the MSM7200, GL Lights will
cause the CPU to be involved in calculations, which is why you'll see
a big performance hit.
Check out all of these brew whitepapers from Qualcomm. They talk
about lots of that stuff:
http://www.brewconference.com/brew_2004/pdf
All orders get this error
Message sent to customer: Order canceled due to internal error in
Market.
Why is this?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To uns
Hi TreKing..
Thanks for the reply..sorry im using EditTexts to enter the data..the
information is not retained.
i will send both XML file and .java file and let me know the bug in my
files.
On Feb 11, 11:36 pm, TreKing wrote:
> On Thu, Feb 11, 2010 at 2:55 AM, uday kiran wrote:
> > What i want
Hi jotobjects
thanks for the reply..
actually im using EditTexts not TextView.. sorry for the wrong
information.
On Feb 13, 1:24 am, jotobjects wrote:
> Possibly setting android:freeezesText resolves this issue?
>
> http://developer.android.com/reference/android/widget/TextView.html#a...
>
> On
Why do i get this when i go to my Market page
"Failed to load application list. Try again later."
Could somebody help please?
On Feb 15, 1:49 am, Andrei wrote:
> All orders get this error
> Message sent to customer: Order canceled due to internal error in
> Market.
> Why is this?
--
You receive
Little confused.. are you trying to allow your mobile app connect across the
network to your database?
On Sun, Feb 14, 2010 at 4:12 PM, linux newbie wrote:
> Hi,
>
> I am running mysql server (on remote machine) and I can able to connect to
> it from my host machine. I written a java code to conn
65 matches
Mail list logo