We aren't saying this isn't supported just to give you a challenge,
but because the kind of stuff you are doing is not supported, and you
can expect it to break across any changes to the system since you are
using non-public features. As such, this isn't something we are going
to help you do.
setContentView() replaces any existing views. If you want finer-
grained control, you can setContentView() a top-level layout manager,
which you can then add and remove views in as you desire.
On Sep 10, 2:40 pm, Billsen [EMAIL PROTECTED] wrote:
Hi,
How to remove a view added by
Thanks! I had the same problem.
On Aug 20, 8:45 am, roland [EMAIL PROTECTED] wrote:
Just found the problem is i didn't delete old package folder which is
compiled with the M5. Everything works fine now.
On 20 août, 17:00, roland [EMAIL PROTECTED] wrote:
In my application, i saved
hi,
I created a view and then I setFocusable(true) for the key press
purpose...
but,
some how when I key on case KeyEvent.KEYCODE_DPAD_CENTER
it seem like have a problem to map key or get the key...
it show(at logcat):
09-11 07:32:58.130: WARN/KeyCharacterMap(299): No keyboard for id 0
09-11
hi,
while my app is running...
but something suddenly got some weird exception show in logcat...
even it does not quit my app...
but I would like to know what is regards...
FYI, my app does not dealing with any sqldb thing at all...
Exception Show as below...
09-11 07:42:37.688:
hi,
while my app is running...
but something suddenly got some weird exception show in logcat...
even it does not quit my app...
but I would like to know what is regards...
FYI, my app does not dealing with any sqldb thing at all...
Exception Show as below...
09-11 07:42:37.688:
hi,
while my app is running...
but something suddenly got some weird exception show in logcat...
even it does not quit my app...
but I would like to know what is regards...
FYI, my app does not dealing with any sqldb thing at all...
Exception Show as below...
09-11 07:42:37.688:
ya... FYI, most of the times it happen is after I Invoke Touch screen
event... the onKeyDown seem not work because of the warning...
why???
any one know???
wesley.
On Thu, Sep 11, 2008 at 3:41 PM, Wesley Sagittarius [EMAIL PROTECTED]wrote:
hi,
I created a view and then I
Hi Justin,
the interesting enhancement wasn't the journey, but it was the
interpolation of route-points. One may now make a road of 2 points and
the mock-provider can make a route of arbitrary many points out of these
two.
So if one has a straight route between 2 cities, the provider creates a
Consider two ways to draw a rectangle:
//-
int x=10;
int y=10;
int w=2;
int h=2;
canvas.drawRect(x,y,x+w,y+h,p); // (1)
float[] lines=new float[]{
x,y,x+w,y,
x+w,y,x+w,y+h,
x+w,y+h,x,y+h,
x,y+h,x,y
};
How exactly float coordinates are mapped to pixels (provided that
there is no transformation)?
I guess they are rounded in a good old fashion way: (int)
(floatCoordiate+0.5f). Am I correct?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Correct
On Sep 11, 2008, at 8:27 AM, sahn0 wrote:
How exactly float coordinates are mapped to pixels (provided that
there is no transformation)?
I guess they are rounded in a good old fashion way: (int)
(floatCoordiate+0.5f). Am I correct?
Might be a bug. Can you put a more complete code snippet (including
how the paint (p) was setup) into the bug?
thanks,
mike
On Sep 11, 2008, at 8:20 AM, sahn0 wrote:
Consider two ways to draw a rectangle:
//-
int x=10;
int y=10;
int w=2;
int h=2;
Yes, p is Paint object set up as follows:
Paint p=new Paint();
p.setColor(0xFF80);
p.setStyle(Paint.Style.STROKE);
Style.STROKE is needed for drawRect to actually draw rect, issue with
right-bottom pixel shows itself independently of Style.
On 11 сент, 19:48, Mike Reed [EMAIL PROTECTED]
I also manually draw titles but I have problem with ordering them
because when calling super(), all bubbles are drawn at once, then (or
before) I can draw info window. What I want to do is draw a bubble
(super.draw) then an info window then another bubble then another info
window etc
It would
The general confusion is that the android graphics geometry is center-
line based, and consistent at all matrix transformations, while J2ME
linedrawing is more pen based.
As an example, when android draws a line, it basically constructs a
rectangle about the line, by moving parallel to the
/* oops, the rect example I gave is for (0,0) (2,0) */
On Sep 11, 2008, at 9:27 AM, Mike Reed wrote:
The general confusion is that the android graphics geometry is center-
line based, and consistent at all matrix transformations, while J2ME
linedrawing is more pen based.
As an example, when
In some ways, android.graphics renders more like Quartz/PostScript
than like QuickDraw/AWT
On Sep 11, 2008, at 9:41 AM, sahn0 wrote:
Thanks for the explanation.
Now I need to comprehend it :)
On 11 сент, 20:28, Mike Reed [EMAIL PROTECTED] wrote:
/* oops, the rect example I gave is for
I would refrain from using any javax.microedition.* classes.
You can set alignment via android.graphics.Paint.Align, however it
does not have the same top/bottom feature as J2ME.
http://code.google.com/android/reference/android/graphics/Paint.Align.html
On Sep 10, 8:51 pm, Sudha [EMAIL
Hello,
I am currently using a View Flipper to create views on the fly and
allow the user to move between views by performing a fling action on
the screen. But the way it currently works is that after the fling
action is performed, the changing of the view is triggered which uses
a move in and
True, android.graphics does not have the top/bottom feature, but with
Paint.getFontMetrics(), you can compute all sorts of interesting
vertical metrics for the font, and apply them to the baseline.
mike
On Sep 11, 2008, at 10:24 AM, JT wrote:
I would refrain from using any
I had thought the Android home screen was a single big view, as it is
one big background image that spans across the three slices, and the
icons on top are positioned individually (note that they scroll faster
than the background).
If I were to code it, I would displace the coordinates of all
The Home screen is made of two layers:
- The background (or Workspace) that shows the image; this layer
scrolls and draws the wallpaper with a different scroll value.
Workspace behaves more or less like a simplified horizontal layout
- The screens (or CellLayouts) that display the icons; this
By calling join() on the UI thread, you are blocking the UI thread.
It's as if you were not using a background thread. That's why the
ProgressDialog cannot be displayed.
On Thu, Sep 11, 2008 at 3:06 AM, roland [EMAIL PROTECTED] wrote:
Hello, i have a question of displaying a ProgressDialog by
The fling is implemented using a VelocityTracker, a Scroller and regular
View.scroll methods.
Wow.. I totally was not aware of VelocityTracker and Scroller. It
looks very useful, and I guess this could have saved me a lot of
headache.. Is there any (API) demo for how to use them?
Peli
I tried taking the /system/bin/sqlite3 from the M5 version and
installing it into 0.9_beta but it didn't work. I ran the M5-rc15
emulator with -wipe-data, used adb pull to get the program, ran the
0.9_beta emulator with -wipe-data, ran adb remount to make /system
read write, used adb push to
I have the samples setup within Eclipse 3.4 and the emulator will launch on
the samples but it doesn't do anything except show ANDROID_ on screen. I
have tried it on both my Mac and PC and get the same results. Any ideas?
Rich
--~--~-~--~~~---~--~~
You received
Hello all,
I hope this isn't a stupid question, but I've looked through the API
reference and can't seem to find what I'm looking for..
Basically I am wondering if there is any way to, from a background
application, save the current contents of the screen as a Bitmap, and
if there is a way to
Thanks Mark, I'll try it.
On 10 sep, 20:07, Mark Murphy [EMAIL PROTECTED] wrote:
This is my problem:
My application has a ListView and every row has a TextView and a
Checkbox.
Checkboxes work correctly, but TextViews can't be selected and thus
onListItemClick method is never called.
Hi,
I've an application whose flow should be like this:
1) Start Activity to listen to some telephony events
2) On receive of these events, display a menu to
3) get user input on the menu
4) perform some action
5) done go back to 1
I do this by creating a listener of events in Activity A. On
We are a product design studio with offices in New York and San
Francisco looking to hire 2-3 developers ASAP for a project destined
for World Mobile Congress in Barcelona this February. It's a very cool
product.
Please email [EMAIL PROTECTED] for details.
Thanks,
Andrew.
*** HELP ***
I followed Cheryl Sedota's sample code to reuse photo picker activity.
The activity showed up, but... there is no photos to verify it.
Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
Android repository so that Android photo pick activity can pick??
Thanks!
When I apply an animation to my SurfaceView, the animation does not
start.
I have to implement Animation methods to put animation working!!!???
Best Regards,
Diogo Júnior
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
2008/9/7 Huebi [EMAIL PROTECTED]
I am just wondering why the Geocoder does not return street names if I
do reverse geocoding. Will that be added somewhen? Will it be
available in the final version used on the phones?
The street names will be added soon to the resultsmostly they be added
Guillaume,
This is a really excellent question and there's a document written to
cover the application model that talks about tasks that you can read at
http://code.google.com/android/intro/appmodel.html . After looking over
over that, please come back with any specific questions you have.
In
In my content view, I have built in the ability to call a number via
the Dialer when the user presses the CALL button. The call works
fine, but when I back out of the Dialer and go back into my
application, the views and the redrawing mechanisms are completely
screwed up, and the application is
Eh, never mind, refreshing the screen on onStart() seems to have fixed
it for now, though I thought those lifecycle methods were less for UI
and more for reloading content/state variables...
On Sep 11, 11:30 am, kingkung [EMAIL PROTECTED] wrote:
In my content view, I have built in the ability
You can use the android.view.GestureDetector to detect gestures on a
view.
First, you can implement the GestureListener interface.
Second, you can create an instance of gesturedetector for your
activity, and in your activity's onTouch method, call the gesture
detector's instance's onTouchEvent
Wow.. I totally was not aware of VelocityTracker and Scroller. It
looks very useful, and I guess this could have saved me a lot of
headache.. Is there any (API) demo for how to use them?
You might want to have a look at the android.view.GestureDetector for
your Views.
You can detect all sorts
Hi Stunti,
I still am receiving errors, but it is slightly different: Host is
unresolved: www.google.com:443
Any thoughts?
On Sep 9, 7:34 am, stunti [EMAIL PROTECTED] wrote:
You need to modify the code of gdata.
The certificates used by HttpURLConnection are not available to
validate the
2008/9/11 Ed Burnette [EMAIL PROTECTED]
I tried taking the /system/bin/sqlite3 from the M5 version and
installing it into 0.9_beta but it didn't work. I ran the M5-rc15
emulator with -wipe-data, used adb pull to get the program, ran the
0.9_beta emulator with -wipe-data, ran adb remount to
Can you post your logcat output?
2008/9/11 Rich Tretola [EMAIL PROTECTED]
I have the samples setup within Eclipse 3.4 and the emulator will launch on
the samples but it doesn't do anything except show ANDROID_ on screen. I
have tried it on both my Mac and PC and get the same results. Any
Using animations with SurfaceView is not recommended. I'm not sure
you seeing it not work at all, but even if it did something the result
would probably not be all that great since SurfaceView is essentially
an overlay so you would effectively be trying to animate a separate
surface/overlay
For security reasons, applications are not allowed to get screen shots
of the display or inject key events in to other applications.
On Sep 11, 3:48 am, Malcolm Reynolds [EMAIL PROTECTED]
wrote:
Hello all,
I hope this isn't a stupid question, but I've looked through the API
reference and
The getRequestConnection method that was modified
http://pastebin.com/f5efc9f0d
Error:
http://pastebin.com/f6f115f2d
On Sep 11, 11:40 am, haig [EMAIL PROTECTED] wrote:
Hi Stunti,
I still am receiving errors, but it is slightly different: Host is
unresolved:www.google.com:443
Any thoughts?
Hi all,
I would like to develop an application that makes use of the wifi API
(android.net.wifi.*).
Is there any way that I can test my application within the emulator?
At the moment I am getting this error:
E/WifiService( 46): Failed to load Wi-Fi driver.
Which I kind of expected, as the
Hello,
I am developing such program,called android-screenshots,
yes,for security reasons,that is just for android developers only,I
think so too.
the android-screenshots programs will be avaiable after waiting
for a few more days.
Best Regards
PowerGUI
-
008/9/9 code_android_festival_way [EMAIL PROTECTED]
Thank you for you answer. I've added the additional parameter to the
values and this works now. But the problem with the restart and the
lose of meta information is still there. At the moment I am recording
something and the meta
For several Android projects I've needed a quick way of editing
database rows without building an entire GUI. In the 0.9 SDK, we saw
the introduction of the Preferences framework for storing simple
application data, along with the PreferenceActivity family of classes
for rapidly creating editable
Hi,
The WebView shows nothing the very first time, however, if you switch
to other TAB and return back, everything is displayed.
Here is my XML file:
++
?xml version=1.0 encoding=utf-8?
LinearLayout
Megha,
All is fine now. I just didn't realize that the emulator took so long to
boot up.
Rich
On Thu, Sep 11, 2008 at 4:38 PM, Megha Joshi [EMAIL PROTECTED] wrote:
Can you post your logcat output?
2008/9/11 Rich Tretola [EMAIL PROTECTED]
I have the samples setup within Eclipse 3.4 and the
elephantbug wrote:
The WebView shows nothing the very first time, however, if you switch
to other TAB and return back, everything is displayed.
Don't put WebView in a ScrollView. It does its own scrolling.
I don't know if that is your problem, but it is worth a try.
--
Mark Murphy (a
I wanted to make an application to run a poker site but im not sure
even where to start. Is there maybe a template you would know that
could run just an exe file through adroid?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I have looked at the SoundRecording API example, and it can save audio
to an sdcard.
I would like to save the audio in internal storage, like /data/data/
package/files/.
Is there a reason why this might not be possible? Any tips will help
--~--~-~--~~~---~--~~
The recommended practice is to only store : ringtones, alarm and
notification sound audio files in internal storage. Rest of the media files
should be stored on sdcard.
2008/9/11 haig [EMAIL PROTECTED]
I have looked at the SoundRecording API example, and it can save audio
to an sdcard.
I
Can this be implemented on a ListView? I've got a listview that takes
up the whole screen, so I'd like to be able to detect this on the
ListView itself.
Thanks for the insight though, looks straight forward on a regular
view.
On Sep 11, 3:25 pm, Kavi [EMAIL PROTECTED] wrote:
You can use the
2008/9/11 beflok [EMAIL PROTECTED]
I wanted to make an application to run a poker site but im not sure
even where to start. Is there maybe a template you would know that
could run just an exe file through adroid?
Can you explain a bit more, its not clear what you are trying to do. Do you
Can you explain a bit more, its not clear what you are trying to do. Do you
have a website that you want to view on android?
Or do you have an exe? You can't run a non-android exe ..you will have to
port your code to android.
well it would be just a regular exe. a regular windows xp exe.
2008/9/11 beflok [EMAIL PROTECTED]
Can you explain a bit more, its not clear what you are trying to do. Do
you
have a website that you want to view on android?
Or do you have an exe? You can't run a non-android exe ..you will have to
port your code to android.
well it would be just a
Mark,
I tried that. The problem still persists...
I even tried to some simple Html in onCreate method... nothing
displayed at all..
On Sep 11, 4:18 pm, Mark Murphy [EMAIL PROTECTED] wrote:
elephantbug wrote:
The WebView shows nothing the very first time, however, if you switch
to other
elephantbug, what kind of web page are you trying to display? Perhaps
http://www.google.com?
If you do try to show web pages using javascript like...above page,
you have to set-on javascript.
/** enabling js manually */
webView.getSettings().setJavaScriptEnabled(true);
hope this helps
On
Btw, the Geocoder works really awesome!
Grats to the Android Dev Team!
On 8 Sep., 23:42, plusminus [EMAIL PROTECTED] wrote:
Devices are getting closer and closer :(
On 6 Sep., 16:49, Megha Joshi [EMAIL PROTECTED] wrote:
You are right,getFromLocationName() with bounding box returns a
62 matches
Mail list logo