Android :: Scalable Vector Graphics
Jun 26, 2009
Does the current API support scalable vector graphics? If so which file formats? If not, will it be added in the future? I ask because I'd like my animations to based off of SVGs - in order to better support different screen resolutions while reducing file size.
View 2 Replies
Mar 31, 2009
I want to show off how good opengl es can display on my G1. Does anyone know a game with good 3D graphics that I should install for this?
View 13 Replies
View Related
Feb 9, 2010
How to draw a scalable rectangle around a bitmap And such that
1) The rectangle should scale based on the size of my bitmap.
2) The colour of my rectangle should change on my input.
View 2 Replies
View Related
Feb 9, 2010
To draw a scalable rectangle around a bitmap
And such that
1) The rectangle should scale based on the size of my bitmap
2) The colour of my rectangle should change on my input
View 2 Replies
View Related
Feb 24, 2012
There are many launchers with the featuring allowing resizing of widgets.
But I have yet to find a launcher that allows scaling of icons. I can't resize my application icons to 2x2 size, then change it to a custom image since the default icon would be blurry by the resizing.
Any launcher that does that?
View 2 Replies
View Related
Sep 3, 2010
I have the current code...
How would i put a vector into my array_spinner?
View 1 Replies
View Related
Aug 20, 2010
I've started to write a small app for android. It looks very nice, but there is one thing I don't understand.I've created a new intent in the activity A and I've added a serialized vector intent.putExtra("key", vector).
View 3 Replies
View Related
Aug 25, 2010
b = this.getIntent().getExtras();
s = this.getIntent().getStringExtra("DEFAULTTEXT");
public void onClick(View v)
{
String a = "http://152.226.152.156:1010/jsp-examples/test1";
URL url = null;
HttpURLConnection httpurlconnection = null;
try {
url = new URL(a);
httpurlconnection = (HttpURLConnection) url
.openConnection();
httpurlconnection.setDoOutput(true);
httpurlconnection.setRequestMethod("POST");
Toast.makeText(Booking.this, a, Toast.LENGTH_SHORT).show();
Toast.makeText(Booking.this, "Toast1", Toast.LENGTH_SHORT).show();
ObjectOutputStream dos = new ObjectOutputStream(httpurlconnection.getOutputStream());
SendVEctor.add(txtArrivalTime.getText().toString());
SendVEctor.add(txtFerry.getText().toString());
SendVEctor.add(txtStatus.getText().toString());
SendVEctor.add(txtDestination.getText().toString());
SendVEctor.add(s.toString());
dos.writeObject(SendVEctor);
dos.close();
s would be my intent and how would i put it into my SendVEctor?
View 2 Replies
View Related
May 18, 2010
I need to calculate a rotation vector out of the data i get from Sensor.TYPE_ORIENTATION. The sensor data is defined like this: the values have to be recalculated to become a correct 3d position: values[0]: Azimuth, angle between the magnetic north direction and the Y axis, around the Z axis (0 to 359). 0=North, 90=East, 180=South, 270=West values[1]: Pitch, rotation around X axis (-180 to 180), with positive values when the z-axis moves toward the y-axis. values[2]: Roll, rotation around Y axis (-90 to 90), with positive values when the x-axis moves away from the z-axis need all three values like the Z axis value (from 0 to 360 degree). I tried a lot but cant figure out how to do this :/ So i bet there is a simple solution how to recall the values of sensor.TYPE_ORIENTATION to make them a 3d rotation vector, but i just dont know how to do it. If you know the answer please tell me. Code...
View 3 Replies
View Related
Feb 1, 2010
how to load dynamic array from vector in android?
View 1 Replies
View Related
Sep 7, 2010
how to display the contents of a vector in android?do i need to use TextView?
View 2 Replies
View Related
Sep 1, 2010
I need to store an retrieve a vector of an unknown number of objects in an android sqlite database. Essentially, the setup is this: I am developing a task management app, where the user can add as many notes as they like to their tasks. My current setup uses one database, with one row per task. This presents a problem when I need to associate multiple notes and their associated information with one task. I can see two approaches: try to store an array of notes or a vector or something as a BLOB in the task's row, or have another notes database in which each row contains a note and it's info, as well the id of the task which the note belongs to. This seems a little easier to implement, as all I would have to do to retrieve the data would be to get a cursor of all notes matching a particular id and then iterate through that to display them to the user. However, it seems a little inefficient to have a whole new database just for notes, and it makes syncing and deleting notes a little more difficult as well. What do you think? Is it worth it to have a separate notes database? Should I use a BLOB or go for the separate database? If a BLOB, are there any good tutorials out there for storing and retrieving objects as BLOBs?
View 2 Replies
View Related
Aug 12, 2010
What vector graphic formats can be used to display the in a view in an android application? As I understand, PDF is not an option at the moment, so what other options are there for storage and display of complex text+graphics? Unfortunately, I cannot use embedded browser with Flash because I need this app to work on Android versions before 2.2.
View 1 Replies
View Related
Sep 14, 2010
I'm am working on a basic augmented reality application on Android. What I did so far is detect a square with opencv and then using cvFindExtrinsicCameraParams2() I calculated a rotation and translation vector. For this I used 4 object points, which are just the corners of a square around (0,0,0) and the 4 corners of the square in the image.
This yields me a pretty good rotation and translation matrix. I also calculated the rotation matrix with cvRodrigues2() since using this is easier than the rotation vector. As long as I use these to draw some points in the image everything works fine. My next step is however to pass these vectors and the matrix back to java and then use them with OpenGL to draw a square in an OpenGLView. The square should be exactly around the square in the image which is displayed behind the OpenGLView.
My problem is that I cannot find the correct way of using the rotation matrix and translation vector in OpenGL. I started of with exactly the same object points as used for the openCV functions. Then I applied the rotation matrix and translation vector in pretty much any possible way I could think of. Sadly none of these approaches produce a result which is anyway near what I hoped for. So my question is can anyone tell me how to use them correctly?
So far the "closest" results I have gotten, was when randomly multiplying the whole matrix with -1. But most of the time the squares still look mirror inverted or rotated for 180 degrees. So I guess it was just a lucky hit, but not the right approach.
View 1 Replies
View Related
Sep 26, 2009
For an application I am working on, I need to display custom raster image tiles (not vector based, probably from satellite imagery), and I need to do so offline. I would like to use the MapView, but I cannot see a way to tell it to use custom, offline map tiles instead of pulling down data from google's servers.
I've seen a few alternatives, but none seem appropriate to my need MapDroyd Seems to only support vector-based maps. mapdroyd.com/ OSMDroid Appears to use Open Street Maps; I don't see any documentation anywhere stating that you can use custom map tiles. code.google.com/p/osmdroid/ There was a third alternative, but my post got eaten and I can't find it in my history. Am I going to have to bite the bullet and 'roll my own'?
View 4 Replies
View Related
Feb 26, 2010
I have rectangle white box. on cliking the rectangle I will draw a toolbar beneath the box and also call relayout to accomodate the toolbar ( size+100) ( i used surfaceview and in secondary thread i draw the toolbar) on click again on rectangle box it will disappear the toolbar and also has to resize the layout to original size (ie size-100) this is where I get stuck. I can disappear the toolbar however I cant call relayout either from secondary thread (says cant call from secondary thread). So I created a while loop in onlayout( this is where i create a thread to draw the toolbar) if i call requestlayout after while loop ends it doesnt do anything it doesnt call onmeasure etc.
View 4 Replies
View Related
Jan 14, 2010
I created a 2d game in java that runs as an applet, and i am now trying to translate this over to the android. As the android doesnt used paint() methods, i am thinking that i will have to import images of the game instead of drawing it, but i cannot find out how to do this. Anybody know how to add images to the folder and call them in the app? Also, how can i call a screen repaint() in the android?
View 2 Replies
View Related
May 16, 2009
I want use the methods in android.graphics to draw one board (board chess,)
View 2 Replies
View Related
Oct 27, 2010
Is there any way to add the x-graphics in the android Editbox like the of iPhone.So that by clicking on that x graphic it can clear all the values in the Editbox.Is there any way to listen weather i touch a specific part of an edit text
View 1 Replies
View Related
Sep 1, 2009
I want to do some programs using graphics can anyone send me sample programs about graphics package
View 5 Replies
View Related
Apr 26, 2009
I'd like to build an activity that is mixing layouts with 2D graphics. So for example, would like to introduce an edittext with an integer value and based on that value the size of a circle is dynamically adjusted and drawn. Any idea how to do this?
For plain graphics I am using this approach here - but how can it be expanded to cover Android layouts (buttons, editboxes, textviews, radiobuttons, etc.)?
CODE:..............
View 2 Replies
View Related
Aug 2, 2010
1. What size should graphics intended to promote your app in the Market be designed for?
2. What about the larger graphics that depict screenshots of the app in the Market?
3. What size should app icons for devices be?
View 2 Replies
View Related
Feb 2, 2010
I have doubts while doing some 2D Graphics and animation. Here is what i have done and what i want to do further: An application starts with a 2D object [ball] rotating and execising in a particular fashion, and after a particular point in time the object [ball] scrolls out of vision. After this point i want to invoke a new activity with a different UI. I m stuck up while trying to transit from this View to a new activity.
View 3 Replies
View Related
Aug 21, 2009
How can I know the length of the each character of word. Actually, I am trying some thing like this:I will show some set of lines on the screen. Later after some time, I would like to set the color to each character in the line at a frequent interval. Now I want to set the color to each and every character of the drawn string.
View 2 Replies
View Related
Sep 2, 2009
In my application, I will get a instance of android.graphics.picture which is populated by user. Then I use writeToStream to save. After save, I have to check the file size. If the size is too large, then I should delete this file.
I think this save-check-delete operation is not reasonable. I prefer to check the size of android.graphics.picture. If the size is too large, I should not save to local. But I checked android.graphics.picture, it only have getHeight and getWidth member functions.
Could I get the size of android.graphics.picture?
View 2 Replies
View Related
Dec 13, 2009
I have some transparent graphics in my game. Up through 2.0.0 they have looked fined. Since Android 2.0.1 though, some parts of the fully transparent regions of the graphics are instead slightly opaque (e.g. a circular gradient that goes to 100% transparency will have a faint halo around it).
I have tried putting my graphics in ../raw/ but that did not help (as described at http://developer.android.com/guide/topics/graphics/2d-graphics.html#d...)
I have also tried exporting the Adobe Illustrator graphics at 16-bit pngs (instead of 8bit), but that did not help either.
View 2 Replies
View Related
Oct 13, 2009
I have much experience with Java, and am quickly getting to grips with Android. But I have very little experience with graphics... most of my work has been logical, back end web development. The last time I did any proper screen drawing was in the good old days of Applets (years ago).
I can see that Android has a very complex graphical interface, but I don't know where to start. I've looked at some of the sample apps that come with the SDK, but it's slow progress.
For example, I'm trying to learn by developing a simple rolling ball. Currently I'm using onDraw(Canvas canvas), a paint object, and path.addCircle() to draw a circle, which I then update frequently. However the result is jerky, and slow - I want to see it flying around the screen! Clearly this isn't the right way to go about it.
So two questions I suppose: 1) What graphics tools would you recommend to implement my example? 2) Where can I learn more about the graphics capabilities of android?
View 3 Replies
View Related
Aug 18, 2009
I was disappointed to discover that OpenGL ES, the flavor of OpenGL implemented in Adroid, doesn't appear to support the usual techniques for drawing graphics involving curves. I'd be happy with either OpenGL's low-level Bezier evaluators, or the more advanced NURBS approach, but AFAICS neither is supported - only straight-line graphics are possible. Does anyone know, am I missing something basic here? Is there a way to generate curves of any sort in Android's OpenGL implementation? I am still fairly new to Android development, so that's certainly possible. Note that I'm not talking about functions related to Canvas - I know about drawOval, for example - but I specifically need 3D.
View 2 Replies
View Related
Jun 12, 2009
When you turn on the phone, after the G1 screen, there's a black screen with the word Android in blue, and a glossy shine running across it. Can you tell me how imitate that effect? Maybe point me in the right direction, like what classes to look at?
View 2 Replies
View Related
May 10, 2010
I've been working on an Android app in Eclipse, and so far, my program hasn't really grown past midget size. However I've already run into an issue with an Out of Memory error. You see, I've been using graphics comprised solely of bitmaps and PNGs in this program, and recently, when I tried to add a little bit more functionality to the program (mainly including a few more bitmaps and causing an extra sprite to be created), it started crashing in the graphics thread's constructor -> sprite's constructor. When I tracked the problem down, it turned out to be an Out of Memory error that is seemingly caused by adding too many picture files to the program and creating Drawables out of them.
This would be a problem, as I really don't have that many picture resources worked into that program...maybe 20 or so. I haven't even started to include sound yet. These images aren't all that fancy. My questions are this:
1) Are programs for the Android phone really that limited on how much memory they can employ, or is it probably something other than the 20-30 resource pictures causing that error?
2) If the memory for Android apps is so awful it can't even handle 20-30 picture resources being loaded into Drawables that exist at the same time, then how in the world are you supposed to make decent graphics and sound for that thing?
View 4 Replies
View Related