Use toast.
ashish ashish.a...@gmail.com wrote:
Hi,
I have a rooted device and i successfully capture the screenshot of current
screen.and use the below code.
Process process = Runtime.getRuntime().exec(su); DataOutputStream os = new
DataOutputStream(process.getOutputStream());
Make runtime strings and do not use array
--
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
Crash Launcher2 NullPointerException in onDetachedFromWindow()
Hi,
I'm developping an application on Nexus S that testing some Android API.
To do so, I need to pause/resume my application :
// Cause activity to be brought to front
void resumeActivity()
{
Intent intent = new
Hi,
export it as 32bpp (tried 3 differenty image editing tools).
It's strange you cannot get 32 bpp png. I use gimp every day and my
PNG with transparency
work very well.
(Take care : android downsampling PNG without transparency to 565)
Sorry this issue seems occurs only on 2.1
Here a
it is a pretty
serious flaw in android development. I think the compiler shall be
able to incorporate resources within JAR files into APK.
On May 13, 11:22 am,cg-devcharles.gorand@gmail.com wrote:
Hi,
If I understand well your issue :
What if I want to add some resources
Hi,
I face the same issue with opengl. My texture gradient were dirty due
to convertion.
So I embed libpng in my application using NDK.
Regards.
On 13 mai, 13:04, Ralf Schneider li...@gestaltgeber.com wrote:
Your image is probably convert to 565 and the back to 24bits.
This thread discusses a
Hi,
I face the same issue with OpenGL texture. I use gradient texture and
this one was damaged due to
convertion from 24bit = 565.
To solve this issue I embeded libpng in my application using NDK.
You said that the screen is 565 so we loose precision : Yes but in
OpenGL,
glEnable(GL_DITHER)
Hi,
If I understand well your issue :
What if I want to add some resources to the jar (e.g. a layout for
custom notification), is it possible ?
No as layout are XML files that are compress when building APK.
And there is no API to load an raw XML layout. (except if it changes
recently)
If
Hi,
As far as I know, I don't think you can put an image into a tag in a
standard way.
Check with Smart Poster Ndef tag type, maybe you can with this type.
If only your application need to read and write the image, you can
simply use Ndef type Text and put your image in a raw buffer.
Regards.
Hi,
your custom view should derives from a Viewgroup. (Viewgroup inherit
from View)
Then simply create the View you want to add and call
Viewgroup.addView().
Regards.
On 12 mai, 18:32, Kapil kapilsc...@gmail.com wrote:
Dear Developers,
My name is Kapil and I am trying to write a custom view
Hi,
Also the 3 textures loaded from jpg
There is no transparency in JPEG. You mean 2 jpeg and 1 png.
And for the png one, you didn't get transparency. Right ?
(Take care : android downsampling PNG without transparency to 565)
You can try other combination of parameters for this
I know, but in Eclair it's not working. If you put Bitmap option to RGBA.
You get a RGBA image but the image is altered.
Maybe I'm wrong, but I remember I face this issue on my Eclair phone and
take this workaround using libpng.
In eclair release, if the bitmap has no alpha it was converted
Hi all,
I'm trying to launch Google Latitude using Intent.
I'm using an URI found on the net :
latitude://latitude/friends/location/exam...@gmail.com
And this code :
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
Hi Johan,
Thank you very much for your reply :)
Rgds,
CG
On Apr 28, 5:38 pm, Johan Abramsson johan.abrams...@sonyericsson.com
wrote:
Hi,
Your phone does give you a correct answer. Zoom in the Camera API is
not supported right now.
It will be supoprted in the 4.0.x.y.z Version
Hi all,
I have a problem and hope that somebody who encountered this before
can give me some hints..
I am developing a app which use the camera on Sony Xperia Neo (http://
www.sonyericsson.com/cws/products/mobilephones/overview/xperia-neo?cc=gblc=en#view=features_specifications)
which support
Hi everybody!
First, sorry if my English is bad, usually i don't use it...
I am making a program witch have 2 java class. The first class is the
main activity and the second is a thread.
In the main activity i have some ImageViews, Textviews, CheckBox and
RadioButtons. My Problem is that when i
Hi,
We're developping a test activity using SingleLaunchActivityTestCase
and JUnit on Android 2.3.3
We face the following issue :
In JUnit view in eclipse we have the following function call order :
testActivityTestCaseSetUpProperly() - this one is built in android.
testA()
testB()
testC()
();
}
super.tearDown();
}
This : if (sTestCaseCounter == 1) should be replaced by if
(sTestCaseCounter == 0) ?
Regards.
On 4 mar, 11:41, cg-dev charles.gorand@gmail.com wrote:
Hi,
We're developping a test activity using SingleLaunchActivityTestCase
and JUnit on Android 2.3.3
We face
I am trying to simulate a touch on the soft keyboard, how do i do
that?
I try injectPointerEvent but it fail.
--
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
This should be a simple question because I couldn't get the answer
from Google .
I have ListView in a LinearLayout .
I need to handle the click event to allow user click on the
LinearLayout to trigger some function.
I try to add onClickListener to the LinearLayout , and it works only
when I
Murphy mmur...@commonsware.com wrote:
Clicking on a list item should be handled by the ListView and should
take action based upon what item the user clicked. I fear that your
proposed UI design will be very confusing to users.
On Tue, Jul 27, 2010 at 3:28 AM, CG learn@gmail.com wrote
);
v.setClickable(true);
v.setOnClickListener(flipPrevious);
}
// Do something
}
Thanks for your guide ... appreciate.
On Jul 27, 4:20 pm, Mark Murphy mmur...@commonsware.com wrote:
On Tue, Jul 27, 2010 at 4:13 AM, CG learn
Hi,
I answer to myself :
I update Acer liquid to official OTA update 2.1 the issue seems fixed.
Drivers issue maybe ...
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hello,
I'm developping a native application for android and I face to
artefacts when rendering the scene.
I can reproduce the issue with Java code.
While the following code running, I got a green screen.
But If I move the status bar up and down over the screen, I see some
red artefacts.
Here a
Sorry everyone; I didn't want to create any trouble here.
Thanks anyway for the TextWatcher solution; it works fine.
On Oct 2, 10:03 pm, Dianne Hackborn hack...@android.com wrote:
On Fri, Oct 2, 2009 at 8:16 AM, Hannes Steiger
hannes.stei...@googlemail.com wrote:
..seems as if some
On Sep 26, 8:39 pm, Dianne Hackborn hack...@android.com wrote:
IMEs perform their edits through the InputConnection interface. Apps should
generally watch for edits on the text view rather than catching key events.
Thanks for the quick answer. This approach looks somewhat different to
the
Dear all,
I'm writing a little dictionary application for Android 1.5, and I'd
like to catch the user's keystrokes in an EditText instance. The
following code recognizes all keys, which are typed in in the Android
emulator:
new EditText(this) {
@Override
public boolean onKeyUp(final int
Dear all,
I'm writing a little dictionary application for Android 1.5, and I'd
like to catch the user's keystrokes in an EditText instance. The
following code recognizes all keys, which are typed in in the Android
emulator:
new EditText(this) {
@Override
public boolean onKeyUp(final
This is indeed very annoying, sitting in Denmark and cannot bye or
sell aps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
or some bitmap buffer
mechanism to store the drawn text and then just place it on the Canvas
without overhead.
On Wed, Aug 26, 2009 at 12:24 PM, CG christian.glee...@gmail.com wrote:
Hi, I am creating an app that show some histograms off your traveling
speed in different time periods
I have now changed most of the strings to startup initialized char
arrays (missing 4)
and I am completely baffled by the perfomance gain.
I went from a comlpete render loop time on ~350-500 to 170-350
--~--~-~--~~~---~--~~
You received this message because you are
apparantly so,
I replaced 4 more string allocations in the drawing routine, the
strings are very dynamic, so i have to update the values each time.
public final char[] legendText = new char[] {'0', '0', '0', '%'};
public int legendOffset = 2;
public int legendLength = 0;
public void
Hi, I am creating an app that show some histograms off your traveling
speed in different time periods (histogram for the last minutte,
histogram for the last 2 minuttes etc.)
I would like to have an animation, and have discovered that drawing
everything takes arround 300-400ms. wich is to long
Surely seems faster then.
from 2051 samples. the mean delay is 507ms
and only 14 samples is above 600ms
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
You know what Paul,
I double checked my calculations, and for some embarasing reason, I am
not able to substract two number,
The HTC also have delays of 1000ms.
so you should multiply above numbers by 2, sorry for the confusion.
--~--~-~--~~~---~--~~
You received
Even tough the updates ticks with 500ms, it still takes about 3-4
seconds for the device to discover that I stopped moving.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
I have now measured the sample rate, and it is quite consistent with
500m/s between each sample.
I removed my filter, and the application became far more responsive,
but it still takers quite some time before I get accurate readings
after stopping.
Anyway, I am quite satisfied with the response
Hi, I am developing a small app that works as a speedometer with a
build in histogram.
But it is quite unresponsive, I test it by driving in my car, and when
i go from 80 to 0 it takes about 4-6 seconds before my needle is
updated.
For simple outlier removal, i use a 1x3 median filter on my
you can use
public static void distanceBetween (double startLatitude, double
startLongitude, double endLatitude, double endLongitude, float[]
results)
in the Location class
Hi Yusuf. Thanks for the answer.
and don't worry, I did read the guide. my concern was more what
required fewest cpu-cycles :)
I have done the following:
public void saveSampleSequense(FileOutputStream out) throws
IOException
{
DataOutputStream p = new DataOutputStream(out);
Hi I am new to this android stuff and SQLlite etc.
I am going to log some numbers at a certain interval, and will put
them into a dynamic histogram, by dynamic i mean that there will be a
maximum number of samples in the histogram, the histogram and age
stuff should be persisted either in db or
Thanks !
Actually I was calling this method but right after I called a
setAdapter ... So the selection was lost !
Thanks for your helpfull answer !
On 19 fév, 13:38, for android forandr...@gmail.com wrote:
listView.setSelection(position);
On Thu, Feb 19, 2009 at 5:55 PM, CG veloid.cont
Dear all,
I am facing a strange an issue that should simple to solve I suppose.
I wonder how can I automatically scroll to see an element in a list
view. Let's say I know that I want to see the element view number 6 in
my list view, how do I scroll my list to see this element ?
I look at the
Hi all,
I am facing an issue ...
I explain the behaviour I like to have :
I have several edittext views. Since they are in a overriden class
of Edit text, they have a specific look and feel.
I would like to have for them the customized LF when my application
starts and when people look at my
Dear all,
I don't really have an issue but I am just wondering what is the best
way to get a simple GPS position (no update required).
I just want to have the current position when my app is launched
By reading the documentation it seems really simple and this is what I
am doing :
Hey,
I try to play a local sound in a notification. The issue I meet is the
folowing : I am unable to load the file.
My code is :
Uri uri = Uri.parse(android.resource://com.xirgonium.android/raw/
beep);
mNotify.sound = uri;
The package name is the one described in my manifest.
I get the
Hi,
I'd like to create some custom zoom control in the mapview. I don't
know where to start.
I temporally did some stuff like this :
LinearLayout zoomView = (LinearLayout)
mapViewFromXML.getZoomControls();
zoomView.setLayoutParams(new
ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
Hello,
I am facing a strange issue. I suppose it is due to my bad
understanding of processes and compatibilities with processes.
So here is the behavior I'd like to have :
When I open my map, actions are done in background.
So I use a progress dialog. For that I need an separate thread.
But if
to put the Dialog display in the event
queue. Just have a look at the API docs.
On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:
Hello,
I am facing a strange issue. I suppose it is due to my bad
understanding of processes and compatibilities with processes.
So here is the behavior I'd
I just up the subject because it seems to be a bug or a mess in the
documentation.
Before trying to use the new preference mechanism I try my previous
preference storage (that worked perfectly under m5).
This mechanism worked before like that :
Restore :
public static void
Hi,
I'd just like to create to get a location (not tracking, just get the
last postion fixed), but for my mock location provider, I'd like this
fix change time to time.
I tried the old method by creating a new directory under the location
directory but it seems it does not work anymore (as
51 matches
Mail list logo