I think you're right. It's probably a better idea to add the mapview
to the relativelayout. The layout is not necessary.
On Aug 27, 3:29 am, jokochi [EMAIL PROTECTED] wrote:
That's a neat solution. It works! Thank you, Amos.
I really know how to use RelativeLayout.
It's just a small question
I have the same problem with the same SDK/Plugin
http://groups.google.com/group/android-beginners/browse_thread/thread/bbc019fb99932a6f
Sometimes I see the error message in Eclipse's Problem panel
showing
Debug Certificate expired on
so I removed file debug.keystore in C:\Documents and
Hello all,
I setup the Android SDK along with the Eclipse development plug-in. I
found that the time from clicking the run button in Eclipse to the
time I was able to interact with the Android simulator was excessively
long. It seems to be related to the boot time for the Android
simulator.
Hi,
The startup time highly depends on your host machine. Please note that
you need to start the emulator only once. Once the emulator is
started, simply click the Run button again to redeploy/relaunch your
application, without closing the emulator.
On Tue, Aug 26, 2008 at 9:19 PM, kevinr
Do you use ItemizedOverlay or directly Overlay ?
I found that no one on the mailing list made ItemizedOverlay work,
included me.
I'll try to draw items myself like in the M5.
On 25 août, 09:05, 6real [EMAIL PROTECTED] wrote:
Hum hum. A am ashamed to say that I found the reason why :
actually
Hi.
I'm trying to use the abortBroadcast() method of the BroadcastReceiver
class, but it seems not to work.
Here's the situation:
a background service send an intent with action=X; a
BroadcastReceiver registered in the manifest catch this intent.
When the Activity Y is in foreground it
Im getting this :
PHP Parse error: syntax error, unexpected T_LOGICAL_OR in C:\Program
Files\PHP\
AndroidMapProxy.php on line 169
Please assist
On Aug 26, 2:20 pm, jokochi [EMAIL PROTECTED] wrote:
Hi Shan,
I did open two windows with cmd.exe.
And run php script in a window,
c:\ php
Ok, i found the error.
i was using sendBroadcast() instead of sendOrderedBroadcast().
Sorry!
On Aug 27, 11:20 am, Swanz [EMAIL PROTECTED] wrote:
Hi.
I'm trying to use the abortBroadcast() method of the BroadcastReceiver
class, but it seems not to work.
Here's the situation:
a background
Guillaume Perrot wrote:
Hi,
We're several developers on the mailing list having problems with
ItemizedOverlay in v0.9: items are not drawn.
Do you use ItemizedOverlay or Overlay ?
On 23 août, 02:29, Peter Stevenson [EMAIL PROTECTED] wrote:
hi
I trying to work out howOverlayworks,
Problem 2
-
I wanna to download image using HTTPConnection it say
java.net.SocketException: unknown error means???
Try to add
uses-permission xmlns:android=http://schemas.android.com/apk/res/
android android:name=android.permission.INTERNET/uses-permission
to your
I've been able to use the standard technique (extending Overlay and
overriding the onDraw handler) in 0.9, ItemizedOverlay doesn't seem to
be happening at the moment.
What problem are you having using Overlay?
Cheers
Reto
On 27 Aug, 11:56, Peter Stevenson [EMAIL PROTECTED] wrote:
Guillaume
Lonzo1968 wrote:
I got you book from commonsware.com. I like what you have done so far,
especially the detail on the layouts.
Thanks!
What is the best architecture for this ContentProvider situation?
Should I have a Provider for each table or muliple tables in a single
provider. Maybe I'm
april wrote:
I am doing a game, which needs to update server player's status. In my
code , I first put those information into database. Then I used a
service to read the information from DB and send to server.
Following are the document for sevice:
Note that services, like other
Wesley Sagittarius wrote:
Problem 1
those class already remove??? which class I can use on this case???
android.view.ViewInflate;
This is now LayoutInflater, as documented here:
http://code.google.com/android/migrating/m5-0.9/changes-overview.html
android.view.Menu.Item;
I'm still using ItemizedOverlay to benefit some mechanisms over
Overlay but I overrode the draw function, all work well now but I
manually draw...
onTap(int index) is actually called with the correct parameter even if
the overlay is not automatically drawn by the ItemizedOverlay.
On 27 août,
T_LOGICAL_OR means or operator in PHP, but there is no or operator
in the script.
Maybe you got a capture with needless line break in the script.
Please fix to be one line.
// add a protocol and a host address to be a full URI in a POST and/or
GET request.
I don't think other lines will cause
I've seen the same effect, but using a test provider does not help
either: I've registered a LocationListener and it gets called only
once, even if i change the position every x seconds. But registering a
listener seems to be the way to detect location changes
asynchronously.
Using the geo
Thanks Romain, that made things much faster.
On Aug 27, 3:12 am, Romain Guy [EMAIL PROTECTED] wrote:
Hi,
The startup time highly depends on your host machine. Please note that
you need to start the emulator only once. Once the emulator is
started, simply click the Run button again to
Hi,
I used java.util.logging for creating file Logging.
The code works perfectly fine,
As I did not find any word about this procedure of doing the logging,
just wanted to make sure, if this is the correct way of writing file
loggers.
package org.hsc.learning.helloAndroid;
import
I am trying to log data to my file.
try {
handler = new FileHandler(droid.log, 1000, 2);
logger.addHandler(handler);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Here is what i have done:
private void setTestLocation(double lat, double lng) {
Location location = new Location(gps);
location.setLatitude(lat);
location.setLongitude(lng);
locationManager.setTestProviderLocation(gps, location);
}
Hi
I'm trying to write a HttpClient 4.x application in which
a) I extract Cookies from a HTTP Response (following an initial HTPP
POST),
b) put the Cookie in the next outgoing request (another HTTP POST
method),
c) get the Cookie(s) from the resulting Response,
d) put the Cookie(s) in the next
How to control zoom steps:
In my application when I zoom in and out, I can't control how much
this will zoom but in the standard map application zooms less at
each step than in my application. I tried setZoomSpeed on ZoomControls
but it deals with the animation speed, not the zoom step.
On 27
Hi, I am working in an application that have several ListView.
Here is the thing, I have a ListView and every row have a button and
some text. I need that both events, push the button and select one
row, can be handler. I mean if I press the button make some things and
if I select one row make
Hi,
I'm trying to call Map Application trought an Intent, to pick a point
on the map, and return it to my own application.
The needs are :
- setting the current location of the map (to center it on, on Map
application startup)
- the user will pick a new location on the map
- the Map application
First, thank you for those quick replies.
You're right, my application is still running after I taught it was
closed. For people having similar problems, in Eclipse, we can see
active process under DDMS-- emulator.
I'll work on my bug and keep you informed.
Thanks.
On Aug 26, 3:48 pm,
I tested ApiDemos - 11. Multiple Choice Lists but clicking on an
item or pressing enter (or dpad_center) on an item does nothing
On Aug 26, 8:24 pm, Romain Guy [EMAIL PROTECTED] wrote:
Please refer to the ApiDemos, you will need to use a layout file for
your list items that supports the
A standard intent to pick a location is probably not available in this
SDK but you still can easily implement it:
- Extend MapActivity and edit the manifest file to include an intent
filter with ACTION_PICK and the geo pattern.
- Use a custom Overlay which overrides onTap (GeoPoint,MapView): when
Unfortunately the Android SDK contains an emulator, not a simulator.
That means the software emulates every CPU instruction and all the
hardware you would find in a phone. This requires a lot of host CPU
and RAM to work properly. This is not fast but this is as close as it
gets from real phones.
BTW, I tracked the fault down to a bug in the Android SDK. It is that
InputStreamReader.read(char[], int, int) doesn't always work across
buffer boundaries. Sometimes a NUL (0) gets inserted in the char[]
array. I changed my code so that it uses InputStreamReader.read()
repeatedly when I have to
This morning I ran into the following error when I initiated the first
build of the day:
Error generating final archive: Debug Certificate expired on 8/27/08
9:06 AM!
I try restarting Eclipse but that did not help. I'm stuck.
--~--~-~--~~~---~--~~
You received
SMS is probably problematic on more than one level.
There are HTTP api's and that's what you want. JAVA has an api and
Apache has one as well.
On Aug 26, 9:35 am, Cristina [EMAIL PROTECTED] wrote:
Hi!
We are designing an application for android phones. In our application
there is a
Seeing the process running doesn't mean anything.
Please read: http://code.google.com/android/intro/appmodel.html
On Aug 27, 8:13 am, bleucalme [EMAIL PROTECTED] wrote:
First, thank you for those quick replies.
You're right, my application is still running after I taught it was
closed. For
Hey Romain thanks for the answer,
So, in conclusion, I can have a focusable item or a focusable child
into the item but not both.
That means, for example, that if I want to have a list of songs, where
if I select one I play it, and each one have a button to add to one
playlist is not possible?
If you want to do high performance graphics, you probably want to use
OpenGL since that will be hardware accelerated. You can use OpenGL
for 2d as much as 3d graphics.
Otherwise, the high-level 2d APIs are very extensive; the main API is
android.graphics.Canvas, with a number of secondary
Thanks for helping.
in m5 :
client = new HttpClient();
pmethod = new PostMethod(posturl);
pmethod.addParameter(PacketNum, mStringPacketNumber);
...other parameters set here...
int statusCode = client.executeMethod(
Yeah, you're going to need to add it to your build path. You can do
that by right clicking on your project in the Package Explorer,
selecting Build Path - Configure Build Path, clicking on Libraries
then clicking Add JARs. If nothing is listed you need to add the
libraries to your project, you
Hello marielisacr,
That means, for example, that if I want to have a list of songs,
where
if I select one I play it, and each one have a button to add to one
playlist is not possible?
If I were you, I would go for standard select handler in order to play
the selected song and I would come up
So, in conclusion, I can have a focusable item or a focusable child
into the item but not both.
No, items in a ListView are not focusable by default, they are
selectable. So an item can be focusable (it gets focus or one of its
children gets focus) OR selectable, but not both. You can make the
I'm having the same problem today.
--~--~-~--~~~---~--~~
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,
hi,
i have an application running a background thread to do xml-parsing
while the ui-thread displays a progressdialog. the activity has a
handler to queue runnables from the other thread, mainly to display
messages. when the xml-thread is finished and the activity is left
using the back button
Is there a way for an Activity to restart itself, so that you go
trough a similar cycle that you get when there is a configuration
change?
U...not sure what you mean by configuration change, but if your
activity calls finish(), it will close up and exit the activity. At least
in M5, it
2008/8/26 android_dev [EMAIL PROTECTED]
Menu does not show up.
If the focus is on an EditText field with android:password=true,
then hitting the Menu key does not show the menu options for that
screen. If the focus is on some other field, then the menu shows up.
Bug?
I was not able to
Same problem here, i converted code normal overlay code that worked in
order to use the recommended ItemizedOverlay. Can anyone confirm
that this is a bug or are we just doing something wrong.
Thanks.
On Tue, Aug 26, 2008 at 9:52 AM, Guillaume Perrot
[EMAIL PROTECTED] wrote:
Hi,
I have the
You could have Activity A start Activity B and after starting B
calling finish(). Then have B, perhaps as the result of a button
press, start a new instance of A. Of course, finish() won't result in
onSaveInstanceState being called, which I believe is when a
configuration change (because
Please file a bug in the tracker. Also please specify which original
timezone, locale and your operating system in the bug report so that
we can try to reproduce it.
R/
On Wed, Aug 27, 2008 at 8:58 AM, Vittee [EMAIL PROTECTED] wrote:
Problem solved! Thanks :)
I tried your solution and I
I'm having trouble getting the new contact photo methods for 0.9 beta
to work correctly.
This is what I do currently:
private static boolean storePhoto(Context context, AndroidContact
ac,Uri personUri)
{
byte[] bytes =
Simply remove the debug.keystore in ~/.android and it will be
re-created with an updated expiration date.
R/
On Wed, Aug 27, 2008 at 9:21 AM, Gil [EMAIL PROTECTED] wrote:
This morning I ran into the following error when I initiated the first
build of the day:
Error generating final
I wrote a tool to generate extended RemoteCallbackList classes from an
AIDL interface for use in services that implement listeners.
The tool can be found here:
http://android-random.googlecode.com/svn/trunk/aidl-cblistsub/aidl-cbliststub.pl
With my full post here:
I fixed my problem. I had a thread that was still running when I
taught my application was closed. Closing this thread in OnDestroy()
workded (like LunarView example).
Thanks everybody
On Aug 27, 12:26 pm, hackbod [EMAIL PROTECTED] wrote:
Seeing the process running doesn't mean anything.
Please file a bug in the tracker with a little snippet of code to reproduce it.
R/
On Wed, Aug 27, 2008 at 9:06 AM, Jon Webb [EMAIL PROTECTED] wrote:
BTW, I tracked the fault down to a bug in the Android SDK. It is that
InputStreamReader.read(char[], int, int) doesn't always work across
I want to switch OpenGL on and off in my activity, because there are
moments that would really benefit from the acceleration, even if that
means re-starting the activity (my app goes through the cycle pretty
fast). But there are also moments where I can't use OpenGL because it
does not support
Thanks Ralf! That solved the problem.
--~--~-~--~~~---~--~~
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,
The problem with Contacts in mobile devices is that there are two
types of Contacts. One is what I call Personal Contacts (family and
friends) and the other is Virtual Contacts (social app friends/
multiplayer games). The Virtual Contacts don't go in the same place as
Personal Contacts. So where
I think you have put the cart a little before the horse here. :) I
wouldn't count on FEATURE_OPENGL speeding up your app... certainly,
until you are running on actual hardware with graphics acceleration,
you really can't know how much it will help. I would really suggest
on doing anything at
Also to mention that there should be big differences. Such as that
Virtual Contacts don't have a phone number. You may press a button to
put a virtual contact in your Personal Contacts though. Anyway, I
think this is very important. This was an issue with the GTalkService
problem I believe. But
webmonkey: I confirm the behavior you are describing. If the
application is started from Eclipse it behaves the way I described
above. Once I start it from the Home screen the problem goes away.
Justin: Given what webmonkey stated I removed all the launch flags
from all the activities in the
If you run the call in a separate thread it will work.
On Aug 27, 9:51 pm, androidETuser [EMAIL PROTECTED] wrote:
I am trying to make HTTP requests thru android APis. But I am getting
some error.
Did any one saw this error before? Can someone help me out here?
Here is the code I am
On Aug 27, 1:26 pm, jtaylor [EMAIL PROTECTED] wrote:
Also to mention that there should be big differences. Such as that
Virtual Contacts don't have a phone number.
It sounds to me like you are talking about a different kind of content
provider, not the normal contacts provider.
You may press
You can use the addSubMenu() method of Menu class, alternately you can
define submenus in XML.
http://code.google.com/android/reference/android/view/Menu.html
Also, see how its done in ApiDemosappMenu sample code.
2008/8/26 jalandar [EMAIL PROTECTED]
Hi
I am junior andriod developer.
In my
I know it is all software based in the emulator but to my surprise I
saw an small increase in speed when using Canvas.drawBitmapMesh with
FEATURE_OPENGL.
But as I mentioned, I can do without so it is not a big problem.
Thanks
On Aug 27, 10:21 pm, hackbod [EMAIL PROTECTED] wrote:
I think you
On Aug 27, 1:37 pm, Gil [EMAIL PROTECTED] wrote:
Justin: Given what webmonkey stated I removed all the launch flags
from all the activities in the manifest file. The behavior seems
correct now if I start the app from the Home screen but not if I
launch the app from Eclipse.
The behavior in
The behavior in Eclipse is correct. Each time you run from Eclipse,
you are uninstalling and reinstalling the app, so it will be started
completely fresh.
True, and I wouldn't expect Eclipse to go back to where you left. But
the fact still is that in this freshly started app the problem
Thanks hackbod, I understand that the app is uninstalled and then
reinstalled when started from Eclipse. I guess what I did not
understand is that when you launch the app from Eclipse the behavior
is different (as outlined in the sequence of steps to reproduce the
problem I posted earlier) than
Yes, that's the point, not to mix them. So two different contact
providers separates the two different types of contacts.
If the other type of contact provider (not for personal contacts)
called the Virtual Contacts Content Provider isn't provided, then
developers have to make their own content
Anyone has problem using third party JAR file? I can't use external
JAR, running into VerifyError.
08-27 00:08:20.312: WARN/dalvikvm(444): VFY: unable to find class
referenced in signature (Lorg/jivesoftware/smack/Roster;)
08-27 00:08:20.312: WARN/dalvikvm(444): VFY: unable to resolve virtual
Hi,
I'm building a reduced set of Tuscany modules to get a sample Tuscany
application running on Android. However, building results in the error shown
below. How can I pass the --core-library option to the compiler and would
this be a solution? The problem is arising when processing class files
The browser crash when opening www.sourceforge.net. Below is de logcat
output. Should I create a new issue in the tracker?
08-27 21:45:03.205: INFO/ActivityManager(51): Starting activity:
Intent { action=android.intent.action.VIEW
categories={android.intent.category.BROWSABLE} data=http://
Its undocumented and I guess its actually in an internal package in
android.jar. Either is an indication of an API that shouldn't be used.
Cheers,
Justin
Android Team @ Google
On Aug 26, 12:13 am, deviand [EMAIL PROTECTED] wrote:
Hi Justin!
I can't find android.awt anywhere (documentation or
p.s. I guess if there's time at this late date.
If not, then maybe the next version of Android since it's such a big
thing.
- Juan T.
On Aug 27, 5:20 pm, jtaylor [EMAIL PROTECTED] wrote:
Yes, that's the point, not to mix them. So two different contact
providers separates the two different
Please also use attach the output of 'adb bugreport' to the bug.
Cheers,
Justin
Android Team @ Google
On Aug 27, 3:08 pm, Megha Joshi [EMAIL PROTECTED] wrote:
Yes, I was able to reproduce this issue... please log it in the issue
tracker...
2008/8/27 qvark [EMAIL PROTECTED]
The browser
I added one simple line to the demo and it crashed with a null pointer
exception. Apparently I can't recreate a second Uri from an original
Uri.
private void readContact(Uri uri) {
ImageView i = (ImageView) findViewById(R.id.image);
Uri uri2 = Uri.parse(uri.getEncodedPath());
params aren't what you think they are, take a look at
http://code.google.com/android/reference/org/apache/http/params/HttpParams.html
.
You're looking for
http://code.google.com/android/reference/org/apache/http/HttpEntity.html
.
Cheers,
Justin
Android Team @ Google
On Aug 27, 10:03 am, Zack
You definitely don't need to store the URI, what are the first and second
URI values that you get?
2008/8/27 kingkung [EMAIL PROTECTED]
I added one simple line to the demo and it crashed with a null pointer
exception. Apparently I can't recreate a second Uri from an original
Uri.
private
If you try that code in your demo (and print out the Uri for
debugging), it will crash with a null pointer exception.
I also tried using Uri.Builder to rebuild the contact Uri, and that
didn't work either.
On Aug 27, 4:31 pm, kingkung [EMAIL PROTECTED] wrote:
/people/189 is the uri i get.
On
Yes it would crash, because then the Uri value you get does not include the
base contacts uri...which is content://contacts.
The uri value should be something like:
content://contacts/people/person_id
As long as the Uri value is in this format and the person_id is present in
the content provider
Xavier,
I'm using the English version of Windows XP (I never switched to any
another locale) and I'm in the Pacific timezone and yet I had this
problem this morning.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
Got it, thanks. I just did Uri.parse() on that a string containing
content://
It would certainly be nice if we didn't have to manually type that
entire URI address in... some way we could access the ENTIRE Uri for
People, Phones, etc. Even referencing People.CONTENT_URI.getPath()
fails to
You don't need to manually type the uris.. as I said before you can use
ContentUris.withAppendedId(People.CONTENT_URI, person_id)
More in the docs/examples here:
http://code.google.com/android/devel/data/contentproviders.html
Most of the times you could get the base URIs and use
Cool, gotcha, thanks.
On Aug 27, 5:12 pm, Megha Joshi [EMAIL PROTECTED] wrote:
You don't need to manually type the uris.. as I said before you can use
ContentUris.withAppendedId(People.CONTENT_URI, person_id)
More in the docs/examples
Anyone know the bases on what the verifier allows and now? I am
having problem with verifyError on certain classes. Anyone else have
faced this issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
Thanks Justin,
so is it correct that I need to set the HttpPost entity?
HttpPost postRequest = new HttpPost(posturl);
InputStream postEntityInStream;
HttpEntity postEntity = postRequest.getEntity();
postEntityInStream = postEntity.getContent();
Zack wrote:
I'm definitely missing something here. Seems like a catch 22 to me.
Can't setEntity w/o setContent w/o magically putting my data in the
InputStream which comes from the postEntity which comes from the
postRequest... I can't see how to put my sting variables in anywhere.
Forgive
Thanks for your help.
I tried according to your comments. Yes the context menu is what I
want. But there is another question. I can't get the item selected
event using the overrided function onContextItemSelected(MenuItem
item). This function will never be called.
On Aug 26, 8:11 pm, Mark
Can someone give me some direction on how to restore the emulators
preferences back to default? I'm afraid to just start deleting files
at random :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers
public void onCreateContextMenu(ContextMenu menu, View view,
ContextMenuInfo menuInfo)
{
Log.d(, create pop up menu);
Above log can be printed. And below log can not.
-
public boolean
public void onCreateContextMenu(ContextMenu menu, View view,
ContextMenuInfo menuInfo)
{
Log.d(, create pop up menu);
Above log can be printed. And below log can not.
-
public boolean
Hi Justin,
I've tried explicitly including the display name (and artist and
album) into the new ContentValue but still end up with exactly the
same error on the ContentResolver.insert call.
On Aug 27, 10:56 pm, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
Error:
08-24 19:27:18.675:
Hello Everyone,
i am new to android and i am trying to extract the metadata of the
mp3 file i have writtten piece of the code as per the follows but its
giving the tuntime error in the setDataSource so can anyone let me
know what could be the problem.
the code is follow:
Yes, I got the reason that I override below function.
onMenuItemSelected(int featureId, MenuItem item)
Default implementation of onMenuItemSelected(int, MenuItem) for
activities.
On Aug 28, 12:56 pm, Andrew [EMAIL PROTECTED] wrote:
public void
hi all,
any idea what class has been replace by this class??
android.app.ActivityPendingResult;
Wesley.
On Thu, Aug 28, 2008 at 9:50 AM, Wesley [EMAIL PROTECTED] wrote:
hi all,
Thanks for the reply...
I will try it out... Hopefully, I don't have to go for the worst worst
case(I mean
android.app.PendingIntent maybe?
R/
On Wed, Aug 27, 2008 at 10:39 PM, Wesley [EMAIL PROTECTED] wrote:
hi all,
any idea what class has been replace by this class??
android.app.ActivityPendingResult;
Wesley.
On Thu, Aug 28, 2008 at 9:50 AM, Wesley [EMAIL PROTECTED] wrote:
hi all,
92 matches
Mail list logo