http://developer.android.com/reference/android/view/View.html#onMeasure(int,
int)
On Sun, Apr 11, 2010 at 7:56 AM, Kumar Bibek coomar@gmail.com wrote:
I don't think you can get those before they are rendered. The final
bounds will be decided only after the view is rendered, which might be
Hi, I just tried reading a tutorial and created my app using SAX but
its not working for some reason and I have no idea why :)
Could some one try helping me
Thanks in advance,
raqz
On Apr 11, 12:23 am, raqz abdulraqee...@gmail.com wrote:
Hi,
Could some one please tell me the basic steps that
No way you can do this.
Thanks and Regards,
Kumar Bibek
On Apr 11, 10:01 am, sleith raysle...@gmail.com wrote:
Hi, i use the PhoneStateListener to listen for the call.
When i receive ringing state, i tried to launch an intent to run my
app.
but i noticed that my app is go behind the
Use this property for your ListView
android:cacheColorHint=#
Thanks and Regards,
Kumar Bibek
On Apr 10, 6:55 pm, EPecorari emanuele.pecor...@gmail.com wrote:
Hi,
I have a ListView with the fast scroll enabled. The background of the
listview is white and the text is black.
The box
Hi,
I find really hard to imagine that there's no way to know the actual
Views' size before they are displayed.
I was expecting a sort of callback method on the Activity class or any
listener on the View (or ViewGroup) to be implemeted so that I can get
the size of UI components.
Anyway, I found
I'm looking for cross-platform social gaming platforms, essentially
for high-scores and achievements but also for multi-player.
Basically I came across two solutions:
- ScoreLoop (http://www.scoreloop.com): lots of features but is closed
for new developers (temporarily?)
- Casmul
Mickey wrote:
I was expecting a sort of callback method on the Activity class or any
listener on the View (or ViewGroup) to be implemeted so that I can get
the size of UI components.
There are callbacks on View for this, onLayout() and onMeasure().
If you need to implement custom layout rules
I'm curious as to whether these are always the same, or generated for
us and unique to each SDK install, but I'm not going to look just now.
It definitely varies - I use several boxes for development (my older
laptop
retired to mother in law house ;) ) and I have to uninstall apps
compiled
Hi,
you probably heard similar problems before but i can't figure out how
to do this programatically. I have a vertical layout with FILL_PARENT
on both dimensions. In it i have multiple horizontal layouts with
FILL_PARENT width and WRAP_CONTENT height. In each of these horizontal
layouts i want
Hello everyone,
I am currently trying to figure out how to fix an annoying bug in
Sipdroid [1], which seems to be triggered by a power management
optimization in Android 2.1:
While a SIP (VoIP) call is in progress via WiFi, the data transfer
becomes unreliable (and basically stalls) as soon as
Hi raqz,
I saw your previous post in that you were sending lists of friends via
serialization and were advised to use xml instead.
Instead of XML you could also use JSON as it is more lightweight than
using XML and doesn't take long to implement.
I was using XML as my back end for my database to
Hello,
I use a thread for drawing to the canvas. By coincidence I recognized
that in the program always jumps into the finally part. After
view.onDraw(c); is reached it steps back to synchronized
(surfaceHolder) and then it steps into the finally part. This happens
every time. This means to me
Hi,
Just to interject. Mark explains this beautifully in his book
'Beginning Android', but even more in his PDF books and it is what I
use for my details page for items in my database.
Basically I have a front activity that shows a search box, that then
populates a listview with the headers. The
Hi,
A bit of misunderstanding on your part about the try-catch-finally :)
Finally is where you put code you want to execute no matter what
happened before, exception or not.
Catch is the code executed only when an exception occurs
Try is what you want to execute but might trigger an exception.
My android app is getting an Out of memory error without a useful
stack trace. It occurs after I have repeatedly re-invoked its main
logic through a menu interaction, which leads me to believe that
there's a memory leak somewhere.
I say that the stack trace isn't useful because it doesn't include
An Android application (APK) may consist of more than one Activity,
more than one Service.
Each Activity or Service can run in its own process, can share a
process or are run in the process of the calling Activity (and the
calling Activity may not even be part of your application: e.g. the
Contact
Maybe only a Googler can answer the following questions:
- Is some working on activating Google Checkout Merchant Accounts for
Swiss developers?
- If so, when will it be ready?
I have posted a similar question on the Android Market forum, without
an answer yet:
Hello,
Thanks for your answer, you are right. it seems that I forget Java
anyhow.
Best regards.
--
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
I tried many different ways to connect to this url link but android
keeps crashing saying the stack is corrupted, take a look. If anyone
got the time on their hands to give it a try or give me some tips
would appreciate it! :) Link does work try it on winamp or some music
app...
URL:
Can u try this:
String _url;
URL url;
url = new URL(_url);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
The above code works for me.
Thanks,
Prajakta
On Sun, Apr 11, 2010 at 7:36 AM, Moto medicalsou...@gmail.com wrote:
I tried many different ways to connect to
Hi,
I am trying to have a progress bar in every row of my list view. My
list is an iconic list view and have implemented it in the lazy
loading way..so i want to display a progress bar (spinning progress
bar) till the images are not loaded. My current approach is that i hv
placed the progress bar
Tapjoy (http://www.tapjoy.com) now supports Android. They look pretty
solid.
Rob
On Apr 11, 6:10 am, Maurício pmauricio.co...@gmail.com wrote:
I'm looking for cross-platform social gaming platforms, essentially
for high-scores and achievements but also for multi-player.
Basically I came
I'm also interested in this. I've been able to load a different image
in place of the initial image, and then replace it when the background
processing is completed. However, I would really like to show an
indeterminate progress bar instead of an image.
J
On Apr 11, 9:48 am, praj
With SDK 2.1 it is possible to get some additional signalstrength
information in the Phonestatelisteners onSignalStrengthsChanged event.
That works, but I need to monitor the signalstrength more accurate.
onSignalStrengthsCanged is only fired if one of the four signal bars
of the signalstrength
Yeah that code doesn't work... Are you testing on an emulator? I
used a Droid with 2.1 and when testing with a G1 with 1.6 it
gracefully gives me an http error code 403 Forbidden Access is
forbidden to the requested page
So my guess Android 2.1 has a bug handling http error codes..
Anyone
I'm trying to get a handle to an included LinearLayout to my
activities layout. Using the given id simply returns null.
Log.i(TEST,V: +this.findViewById(R.id.userAdvance));
I want to have control over the included layout so that I can set it's
view to GONE or VISIBLE.
shared layout
Dvalve! we called the heart of outsourcing world.
Dvalve.com is an online talent workplace that helps companies hire and
manage professionals online to get work done and grow their
businesses. Dvalve matches employers with a ready and qualified
workforce and rated, tested professionals with
OutofMemory errors are very rare and will pop up if you are really
creating too many variables in a short span of time, or you are
creating a really really large object, for instance, a Bitmap object
of a big image file, or while creating a DOM object of a really large
XML.
04-11 09:27:41.931:
On Apr 8, 6:59 pm, Guess Who, You Probably have my Number
nnarb...@gmail.com wrote:
I did. But I am know internet genius. Just me and a friend trying to
make a quick buck a while ago. Never thought it would actually work!
made a couple hundred. Called it quits. Working on other projects. My
Have you read the similar layout example at
http://developer.android.com/intl/de/resources/articles/layout-tricks-efficiency.html
?
- Greg
On Apr 11, 8:39 am, Teo [GD API Guru] teomina...@gmail.com wrote:
Hi,
you probably heard similar problems before but i can't figure out how
to do this
In my app, I'd like to define some static resources in an xml file
which can be accessed via a HashMap. I know I can do this at run time
in a manner similar to the one which is described here:
OOPS: I wrote aadb, above, but I meant to type aapt.
--
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
No, we're not arguing semantics, we're agreeing. We were both
responding to Miguel. (You did leave out being blocked in an IO call,
but that's a minor detail).
On Apr 10, 6:56 pm, Robert Green rbgrn@gmail.com wrote:
Bob,
Perhaps we're just arguing semantics. I was simply saying that you
You say: So, say I have the game loop logic in a thread like that,
using the
render fps average as a counter, I've noticed that the fps drops when
using more than one thread, even if it's just running in an empty
loop.
Um, ESPECIALLY if it's running in an empty loop. The point is, you
don't want
(Not disagreeing with or contradicting anything in Streets of Boston's
reply).
Applications on Android consist of zero or more components --
activities, services, and broadcast receivers.
Processes run components and applications. They're managed separately.
An application's components have to
I know a question which is often always popular with us Android
developers and users is when will device x get firmware y...
Well, I stumbled into an image on www.google.com/mobile from within
the UK earlier today, and well, anyone with a ADP2 will be very happy
with what they see!
Image one:
I see now he's asking about pitch roll and yaw velocity rather than
x,y and z velocity. The simple case of pitch and roll tilt is
detectable with a 3 axis accelerometer. Can't do yaw. That's what the
magnetometer is for. So if you can get pitch and roll 20 times a sec
(atan2(y,z) and atan2(x,z)),
Hello,
I experimented with frame animations to use them in a game. It seems
that it's obviously the easiest way to load all Bitmaps in an array of
Bitmaps and to draw every thread tick the next frame to the canvas.
Before I tried out making animations with AnimationDrawable. First of
all it is to
On Apr 11, 3:44 pm, HippoMan hippo.mail...@gmail.com wrote:
My android app is getting an Out of memory error without a useful
stack trace. It occurs after I have repeatedly re-invoked its main
logic through a menu interaction, which leads me to believe that
there's a memory leak somewhere.
I
Nothing for London, Grrr...
On Apr 10, 10:43 am, Thomas Riley tomrile...@googlemail.com wrote:
Still nothing for me in UK either.
From what Google have said via email, it's likely to be a few more
weeks. Worth the wait though ;)
On Apr 10, 9:28 am, dgoemans dgoem...@gmail.com wrote:
You should at least have an idea/logs on the methods which creates
OOM, you can encapsulate into a :
try {
bigMethod();
}
catch(java.lang.OutOfMemoryError e) {
all objects = null;
System.gc();
System.runFinalization();
}
Maybe you can also use
Hi,
I am writing an app to capture video. It am able to get the video in
the landscape mode but the portrait orientation does not work.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
shows the screen in the portrait but the preview is still landscape.
How can get it to record
Nothing for HongKong.
On 4月12日, 上午5时29分, Genc gmt...@gmail.com wrote:
Nothing for London, Grrr...
On Apr 10, 10:43 am, Thomas Riley tomrile...@googlemail.com wrote:
Still nothing for me in UK either.
From what Google have said via email, it's likely to be a few more
weeks. Worth the
Thanks to both of you. I'm now going to try what each of you
suggested.
--
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
More breaking news...
Jimmy Hoffa is still dead...
More at 11...
--
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
Dear all.
I would like to know max decoding resolution for each Android image
formats.
, like JPEG, BMP, PNG, GIF.
If anyone knows this, please share your information.
Thanks.
Best regards.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
I can careless about your pity nor do I need it. Good day.
On Apr 11, 2:19 pm, Edward Falk ed.f...@gmail.com wrote:
On Apr 8, 6:59 pm, Guess Who, You Probably have my Number
nnarb...@gmail.com wrote:
I did. But I am know internet genius. Just me and a friend trying to
make a quick buck a
Does anyone have any ideas or suggestions about this?
I know I can subclass TextView and then override the onMeasure()
method to retrieve the view's measured dimensions. However,
onMeasure() gets called _after_ I make a call to
setBackgroundDrawable() on my TextView object. I want to get the
Does anyone have any ideas or suggestions about this?
I know I can subclass TextView and then override the onMeasure()
method to retrieve the view's measured dimensions. However,
onMeasure() gets called _after_ I make a call to
setBackgroundDrawable() on my TextView object. I want to get the
I'll look into 9-patch images. I'm sure the learning curve will be
worthwhile.
Thank you!
--
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
On Sun, Apr 11, 2010 at 2:50 AM, raqz abdulraqee...@gmail.com wrote:
Hi, I just tried reading a tutorial and created my app using SAX but its
not working for some reason and I have no idea why :)
Could some one try helping me
Let me ask you this: if you, who wrote your project and have all
On Sun, Apr 11, 2010 at 6:08 AM, ko5tik kpriblo...@yahoo.com wrote:
It definitely varies - I use several boxes for development (my
older laptop retired to mother in law house ;) ) and I have to uninstall
apps compiled with debug keys before I can start them from other box.
I believe that
On Fri, Apr 9, 2010 at 7:47 PM, Tom Opgenorth opgeno...@gmail.com wrote:
So does this mean that we'd have to have three copies of the layout
file: one for my debug key, one for my colleagues debug key, and then
one for production?
If you both have the SDK installed in a folder that has the
Yep,
Use reflection on the R.string class for strings.
Or use reflection on the R.drawable class if you need to map strings
to drawables.
Query the (publicly) declared fields of R.string using reflection.
The code below doesn't follow your example mappings exactly, but
you'll get the idea:
Hello Everyone,
I want to select text from Webview and than Highlight it.
I am able to get the selected text using *emulateshiftHeld() *method but If
i try to search it in file and than Underline it the problem is that it
doesn't know the position of text so it underlines that word in whole
Hi Hehe,
I tried it but still it showing Null Pointer Exception.
On Sun, Apr 11, 2010 at 7:38 AM, HeHe cnm...@gmail.com wrote:
in case you still find no way to go, here is mine that you might like
to try if you can bear the fly in the ointment -- the thin white bar
of tabwidget is below
Hello,
Can anybody tell me how to apply apply different textures on different
faces of a cylinder?I am able to apply one texture which covers the
whole cylinder.But I want one texture for each face.
Thanks in advance!!!
--
You received this message because you are subscribed to the Google
After some days MotionEvent.ACTION_DOWN Or ACTION_UP stop working.
It is a livewallpaper and I try everything nothing works
Have you any idea?
Here is the logs:
Logs
-This log has no ACTION_UP--
04-12 08:11:15.972: INFO/SmartCube(24011):
mGestureDetector.onTouchEvent(
itself cannot cause program exception, i think.
you need to debug your apk and find out which object access causes np
exception.
On Apr 11, 9:22 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:
Hi Hehe,
I tried it but still it showing Null Pointer Exception.
On Sun, Apr 11, 2010 at
ok i will try it now.
On Mon, Apr 12, 2010 at 11:04 AM, HeHe cnm...@gmail.com wrote:
itself cannot cause program exception, i think.
you need to debug your apk and find out which object access causes np
exception.
On Apr 11, 9:22 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:
Hi Hehe,
Just what are you trying to achieve?
If you're actually wanting a hash map, efficiently populated on class
loading, then Streets of Boston's approach won't help you -- nor will
aapt.
To do what you actually ask for, you could write an XSLT script to
generate the necessary java code.
One of the
Hi all,
I want to create three button on the layout. But the default align of
the buttons is in a column like:
Button1
Button2
Button3
But I want to the three buttons align in a row in order to save space.
The align of the three buttons I need is :
Button1 Botton2 Botton3
Would you please tell
Draw your faces separately with different paint objects.
Thanks and Regards,
Kumar Bibek
On Apr 12, 10:15 am, kirti kaul kirti.k...@wipro.com wrote:
Hello,
Can anybody tell me how to apply apply different textures on different
faces of a cylinder?I am able to apply one texture which covers
Hi,
In the manifest file of both applications you have to give
permissions.
In the manifest file of application with content provider you have to
give the following permission
provider android:name=.
android:authorities=.
64 matches
Mail list logo