My Nexus is rooted, so as keianhzo points out, perhaps that has
something to do with it. Or perhaps doing 'adb root' first would
suffice.
Anyway, from the External Tools launch configuration in Eclipse:
Name: hierarchyviewer
Location: ${workspace_loc:/Tools/android-sdk-windows/tools/
It seems you have quite unrealistic expectations of the community, and
aren't even willing to help yourself.
Let's see here:
1) Your sysadmins block direct web access to the Internet
2) You route your web requests through some unknown piece of software
using one of several protocols to forward
not very easy to add more DOF.
If you have any ideas we'd be happy to hear your thoughts on the app's
google group
]http://groups.google.com/group/elenhos
Any ideas would be more than welcome.
Nicholas
On Feb 6, 4:43 pm, Bob Kerns r...@acm.org wrote:
Just a thought -- why only 3 degrees
When I change the SDK version for a project, it hangs. I end up
killing Eclipse and restarting, then doing a Clean, and all is fine.
(I have to start remembering to turn off the automatic build in these
cases).
Perhaps you're seeing something similar? Maybe if a build tool gets an
error at the
I presume you're setting this up in the Application, right? Indeed,
passing in the application at that point is just what I was about to
suggest.
Actually, I see nothing at all wrong with doing this. Just post it to
the main thread's Handler, and do everything except interception
there.
Just
I must be missing something. What do you mean by the expansion of
google market?
I presume you're referring to Google's Marketplace? If you go to
flurry.com or admob.com, you can find nice charts of the explosive
growth in the Google Marketplace.
New apps are added at a very high rate.
So I'm
Never say never -- it would be appropriate for a mySQLAdmin tool, say,
talking over wifi.
Anyway, my answer to Mr. L. Newbie's question, is:
1. You could probably find and/or port such a thing. MySQL's Connector/
J is pure Java. It might rely on some standard J2SE stuff that's not
present on
??? I use it on my Nexus One all the time. Perhaps it doesn't work on
older devices?
On Feb 14, 8:36 am, Mark Murphy mmur...@commonsware.com wrote:
If you can find an APK with the smaller tabs, you can always toss that
into an emulator and use hierarchyviewer to try to figure out how they
Thanks for the jdwpspy suggestion; I'll collect some more data when I
get a chance. Debugging-the-debugger is just my cup of tea, though
normally I have the sources at hand. (Grabbing the full Android
sources is on my to-do list).
However, your test case isn't one that I would expect to
:48 pm, Dianne Hackborn hack...@android.com wrote:
On Thu, Feb 11, 2010 at 11:01 AM, Bob Kerns r...@acm.org wrote:
Yeah, it's a good idea to leave R completely untouched. That includes R
$string, R$drawable, R$id, etc. etc. There are things look at that
those via reflection, so the names
Hmm, curiously curious must be a reference to me... :)
Is it known which specific Proguard optimization is at fault, so it
can be disabled as a less drastic workaround than disabling
optimization entirely?
On Feb 12, 1:24 pm, fadden fad...@android.com wrote:
For the curious: sdphil was kind
Ye gads, I hope not!
On Feb 12, 5:00 am, Boris boris.tarasev...@gmail.com wrote:
Hi!
Is there some way to reset android device programatically?
I'm looking need some way to delete any private data (contacts,
calendar items, media) from the phone.
Thanks,
Boris
--
You received this
I meant to reply to this earlier.
I've seen this before as well, long before Android. So it was one of
the first things I checked; I initially expect it to be the problem!
As you surmised, I had the right one.
On Feb 12, 3:11 pm, fadden fad...@android.com wrote:
(1) I've seen Eclipse display
in the 1970's -- running on my Nexus
One. I've recently acquired a snapshot of the necessary ITS
directories, and hope to get MacLisp up and running on my Nexus One --
faster than on the original systems!
On Feb 10, 7:36 pm, fadden fad...@android.com wrote:
On Feb 9, 7:09 pm, Bob Kerns r...@acm.org
While Fadden addresses what you did to annoy the verifier, let's
consider what you can do to get past it.
I'd start with asking yourself WHY are you using Proguard? What are
you prioritizing -- size reduction, speed, or obscurity?
Proguard has a number of options to control just what it does to
Obfuscation shouldn't cause verifying errors (which is what the OP was
reporting), it should cause ClassNotFoundExceptions and related stuff.
Yeah, it's a good idea to leave R completely untouched. That includes R
$string, R$drawable, R$id, etc. etc. There are things look at that
those via
Yeah, come to think of it, there's probably no need for my XSLT script
idea. Thanks.
On Feb 11, 8:51 am, Lance Nanek lna...@gmail.com wrote:
Class names referenced in the manifest and other XML files are
probably what most of those -keep public class * extends
android.app.Activity like
Yes, but it's much less useful, because it always gets tagged with
system.out. It really should be discouraged, especially in production
code.
Imagine if you've got a dozen things running (I've got more), and they
all used System.out instead of Log?
On Feb 10, 7:39 am, intbt in...@tacberry.com
The four stages of Android UI Enlightenment:
0) You dutifully use getApplicationContext() his Activity to pass
along to the SDK.
1) You realize you don't NEED to call getApplicationContext() from
your Activity to pass along, 'this' should work.
2) You realize it is WRONG to call
If you are in the debugger, either at a breakpoint or having stepped
over some code that justs threw an exception, I have yet to see a case
where, after stepping through using the Step Over button, you don't
eventually come to a frame that has the exception in it.
You can then use the Display
You don't need to worry about which kind of memory. It's really a
question of which kind of device. I wish manufacturers and resellers
were more consistent about terminology.
SDHC is an update to SD that allows higher capacity (HC). Anything
over 4 GB has to be SDHC -- unless it's over 32 GB, in
Frank, could this be the little snag I just encountered in replying to
RustingInSeattle? Where it doesn't catch RuntimeExceptions thrown from
the low level (or maybe any level), unless there's an exact match of
class?
Can you try your scenario again, this time once you identify the
exception
Your code is incorrect if you're relying on ordering. I'll get to
that, but first some background which may come in handy:
HashMaps are unordered. If you want to preserve order, there's
LinkedHashMap, which retains the order, so when you iterate over the
map, you get the order in which they were
I forgot about your last sentence by the time I got finished
(descending order keys), so you'll be able to apply the simpler
approach:
On Feb 9, 10:26 pm, Bob Kerns r...@acm.org wrote:
But you can iterate over the keys you get back with JSONObject.keys(),
and store the keys in a TreeSet, sorted
The broken pipe exception means the process on the other end is
gone.
This won't give a SecurityException, because it's not Java that's
checking the permissions.
Connect to the phone via 'adb -d shell' and type 'su' followed by
Enter.
What happens? (You may need to add the tools directory from
The Ant manual is here:
http://ant.apache.org/manual/index.html
Unfortunately, I can't link directly to the javac task without losing
the navigation panes, but it's under Core Tasks / javac
You want the encoding= attribute on the javac task.
Why on earth someone would put encoding=ascii on a
Actually, I believe you should go further, and say it has a POSITIVE
impact on the user.
It takes time to tear down and recreate a process that may be reusable
a short time later. And Android can possibly do the teardown at a less
busy moment.
The only downside I see is that we developers will
Before you go and follow TreKings excellent suggestion (he beat me to
it), you might try in an else clause, setting the visibility to GONE.
I bet you're seeing recycling of the item views. Which underlying item
from the LispAdapter a particular View instance is using can change,
as they get
Good advice -- always be on the lookout for cleanup that can be done
in a finally, even if you don't see it as strictly necessary!
Actually, you can usually simplify this slightly:
Cursor c = ...;
try {
dostuff(c); // Do something with the cursor
} finally {
c.close();
}
There's no timing
Sounds likely -- though actually profiling your performance would be a
good idea.
Why not collapse them into a single overlay?
On Feb 8, 8:17 am, ian stilbit...@gmail.com wrote:
As I add successive overlays to track my progress over a map. the
performance slows. Anybody know if this likely due
I haven't tried it, but you might be able to copy gmail from a rooted
2.x device. It came pre-installed on my Nexus One. I'm guessing that
the reason it's not normally present on the emulators is that reading
your mail on an emulator isn't generally something you'd want to be
testing, rather than
Which one to use is a matter of taste and convenience. Just make it as
easy on yourself to do it as possible, so you'll always do it!
That IOException in stream.close() is very important. Consider a
buffered stream. Until you do a close(), some of your output is still
in your buffer. If that
It doesn't work for me, either, but I've got to get my daughter to bed
so can't look at it in detail at the moment. (I *will* have to tackle
this shortly, however, to get my own product out the door!)
One thing to keep in mind: Once an ant property is set, it can NEVER,
EVER be changed.
(There
In addition to the comment/correction by Streets of Boston...
It's unclear from your description just where you're storing your non-
static variables. The right way would appear to be in your
ServerConnection instance, since that's the static singleton. Your
activity will have a much shorter
This error indicates that some router along the path (possibly your
local machine) has no route to the network you're trying to reach.
If you're running on a rooted phone, you can run traceroute host to
see the route to the host, if you have it; the busybox version works
well. This will show
Is the entire application disappearing, or is it just this activity?
onDestroy() doesn't necessarily get called in the former case.
On Feb 6, 1:31 am, sdphil phil.pellouch...@gmail.com wrote:
I recently got the Nexus One Update which provides amongst other
things - pinch gestures.
One other
The right thing to do is to adjust your 9patch with the 9patch tool to
indicate what the padding should be. Those are those pixels on the
right and bottom.
I haven't actually tried setting them to be wider than the stretchable
area, but I'd expect it to work.
But the other issue I've found is
Along those lines, you can persist it, keyed by a unique ID based on
the handset, externally in an activation server.
But I agree with Frank about emphasizing the value and making the user
WANT to purchase, rather than focusing on a customer going to lengths
to steal it. They probably weren't
That is what I firmly believed -- until extensive testing convinced me
otherwise: that NinePatchDrawable's are, unlike everything else, drawn
in the foreground.
I recognize it's an extraordinary claim, requiring extraordinary
evidence.
However -- my testing indicated that, no matter HOW I
I can assure you that's what I believed, expected, and still want to
believe! And yet, supplying, at the same line of code, to the exact
same view, an BitmapDrawable vs a NinePatchDrawable, produced
dramatically different results.
You'll have to see a demo app to believe it. Hopefully, I'll just
gah, meant to reply to this part, too:
Please refer to the documentation:
http://developer.android.com/intl/de/reference/android/graphics/NinePatch.html
Normally, the middle is transparent so that the patch can provide a
selection about a rectangle.
As you can see, I didn't make it up.
Just a thought -- why only 3 degrees of freedom? You've got these nice
accelerometers...they can do more than sense a gravitational field...
I've bookmarked it to have a look at your code. I'll keep you in mind
if I have anything to contribute at some point.
On Feb 5, 7:07 pm, Jubei
completely different
networks that work in completely different ways, it is a protocol
converter.
- Mike
NAVTEQ Network for Developershttp://NN4D.com
Disclaimer: I work for NAVTEQ and these are my personal opinions which
do not necessarily reflect NAVTEQ’s views
On 4 Feb, 07:13, Bob Kerns r
! My apologies
for that, I actually can't remember pushing the Send button three
times :P
On 3 feb, 19:02, Bob Kerns r...@acm.org wrote:
Yeah, that's not what I mean by a test case.
Seehttp://junit.orgasa starting point.
(The Android SDK includes some limited version of JUnit I don't
on the resolv.conf
file (if it is configured there) if i try and send a request to atlanta.com?
On Wed, Feb 3, 2010 at 10:55 PM, Bob Kerns r...@acm.org wrote:
I didn't mean that to be harsh, BTW. Knowing that an approach is out
in left field, and why, is useful information. Some of the most
Ah, given that both sides are loopback, TCP/IP doesn't really even
enter into it in a meaningful way. I think the problem pretty much has
to be with your client.
I began suspecting that once you mentioned that closed connections
stayed open until you killed the process. A RST on one should
Are there any SSH clients that DON'T support RSA keys and port
forwarding?
--
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
I didn't see a redirect bug -- but gmail failed to include the final
')' in the link, so the anchor survived, but failed.
So what is it with these redirects, anyway? It's always sending me to
some random locale -- fr one day, de today. Fortunately -- they're all
in English.
I'm using Chrome, on
ideas?
- Dan
On Tue, Feb 2, 2010 at 10:25 PM, Bob Kerns r...@acm.org wrote:
This is expected behavior. TCP connections time out if the connection
is lost, or either side dies. That way, you don't have systems
drowning in dead connections.
The RST packet is telling you that the server
Well, you' have to modify your routing tables. I see there's /system/
bin/route, and it worked to add a default gateway, running as root.
You WILL have to be root; if you haven't rooted your phone, you will
need to.
/system/bin/route seems to lack many of the normal features -- the
BusyBox one
try to look at the exception thrown I will see several
variables but StackTrace will be null...
On 3 feb, 06:17, Bob Kerns r...@acm.org wrote:
While I would expect your second approach to work, it's important to
note that IT IS NOT REQUIRED TO WORK.
The XML standard does not require
Then you are doing something VERY strange.
DNS is a service provided to hosts (systems, i.e. your phone) by the
network. It is not something that is under the control of the
application. Generally, a DHCP server (or the wireless carrier) will
supply you with your IP address, default router, DNS
I didn't mean that to be harsh, BTW. Knowing that an approach is out
in left field, and why, is useful information. Some of the most useful
information you can get, as a beginner, since it narrows the focus of
what you have to learn, a lot!
On Feb 3, 9:21 am, Bob Kerns r...@acm.org wrote
We have a lot of questions here of a fairly basic, non-Android-
specific nature.
I think it would be helpful to compile a list of resources on various
topics, that we could refer people to (and try to get them to look at
before asking here -- yeah, I know...)
Areas I see:
* TCP/IP and
is that the whole system I am using is based on the ISO
norm and cannot be changed to UTF-8 in a short period of time...
Or am I misinterpreting your test cases and test suite ? And if so
how should it have been interpreted ?
On 3 feb, 13:26, Bob Kerns r...@acm.org wrote:
Well, you found one way
You're reinventing the wheel here, back before they invented circles.
SFTP uses the same port as SSH (22 is the standard, but you can
substitute if you want to throw off port-scanners) -- you would not be
opening another port.
FTP is *extremely* problematic in the modern world. Originally, it
This is the standard result when trying to do active FTP and the
server cannot connect to the random port the client is listening on.
Yes, in standard FTP, the client must act as a server.
On Feb 3, 9:15 am, mericksonj mericks...@gmail.com wrote:
This works just fine on the Droid, and I am
While that is indeed a useful tool to have in reserve in one's toolbox
-- generally, as in this case, it's better to set a breakpoint in the
debugger, and have a look around.
Even better, in this case, would be to ALSO set a method entry
breakpoint on View.invalidate(int, int, int, int) -- and
Ah, the difference between theory and practice is that in theory,
there IS no difference, but in practice, there IS.
What platform did you do this on?
I was afraid getCount() was going to turn out to be slow. But I'm
puzzled that it's slow, but SELECT COUNT(*) FROM TABLE is relatively
quick.
It sounds like you've narrowed it down a fair bit -- and that your
problem isn't really FTP, if your observations actually match reality.
(Always a concern...so much time wasted...shudder...)
Are we talking about a TCP/IP timeout exception? That won't be
affected by delays in crypto, etc. That
-data port 20.
The problem is you cannot access from inside packet filtering network.
If you open passive ports, you have to tell which ports to open to
the server like PassivePorts xxx in for example /etc/proftpd.conf.
Ryu
Bob Kerns wrote:
You're reinventing the wheel here, back before
This isn't correct, or is misleading. It's kind of like saying
ethernet doesn't use TCP/IP or WiFi doesn't use TCP/IP or dialup
modems don't use TCP/IP or DSL doesn't use TCP/IP or Cable doesn't
use TCP/IP.
If you drop below the level of TCP/IP, to how the data is physically
moved, then yes, you
I can partially answer your question.
1) It happens automatically. With WiFi on, no IP routes are present
for the 3G network. The 3G network adaptor is disabled. Turn off WiFi,
and the WiFi network adaptor is disabled, and the 3G adaptor is
activated.
To my modest surprise, the networks are not
You have to create a NinePatch from the bitmap, and then a
NinePatchDrawable from the NinePatch.
http://bit.ly/9nS9xm
http://bit.ly/cL5sR2
You're just treating it as a graphic, rather than a NinePatch. The
resource system does this for you automatically if it recognizes the .
9.png filename;
I think you want:
http://bit.ly/9LfmQ0
The framework supplies two values, VideoSource.CAMERA and
VideoSource.DEFAULT. If you're developing this device, I think you
should take CAMERA to mean default camera, probably with a way for
the user to select which is the default. Other values (i.e.
I'm a little unclear on why you'd want to do this you can access
the first partition from Windows already.
But anyway -- why not format the second partition from Windows? That
is, hook the SD card directly to a Windows box (or a Linux box, or a
Mac, or any less-limited environment!) and
This is expected behavior. TCP connections time out if the connection
is lost, or either side dies. That way, you don't have systems
drowning in dead connections.
The RST packet is telling you that the server has forgotten about the
connection. The client may even report it directly, if it
First, I hope you're not actually talking about FTP. FTP is not
secure, no matter WHAT you do. SFTP -- FTP over SSH -- on the other
hand, can be done securely.
This is one of the use cases for using certificates. Rather than a
username/password in the code, you embed an X.509 certificate, which
While I would expect your second approach to work, it's important to
note that IT IS NOT REQUIRED TO WORK.
The XML standard does not require XML processors to support anything
other than UTF-8 or UTF-16.
In this day and age, I would STRONGLY discourage use of anything other
than UTF-8, or,
On Feb 2, 2:00 pm, Mark Murphy mmur...@commonsware.com wrote:
...
A Cursor represents the entire result set. If you run a query for
20K rows
and 5 columns, you will instantiate 100K objects at the time the
query is
actually run.
...
Actually, that shouldn't be quite right. (I know you know
Um, this is a University, and they require permission from a company
to teach about their products???
Seriously, you (or maybe who you are talking to) must be
misinterpreting their policy. Sure, they don't want any bootleg
software. For purchased software, an invoice, license key, etc. But
for
I don't understand. Why not just supply your own CookieStore -- why
rewrite so much? http://bit.ly/cymmRg
I don't recall having used this -- when I last used HttpClient, I
didn't have any need to share cookies. So maybe I'm missing some
problem.
HttpClient is complex because HTTP is complex.
How are you parsing the XML? It's the XML parser's job to understand
this stuff, not yours.
If you're taking the XML as text and trying to understand it -- don't.
For example, DOM gives you getData() on a Text node, SAX informs you
via a characters(...) method call, and XMLPull offers you
I think this is an excellent suggestion. There's a product that does
something like this on the Mac. Another model is Windows Error
Reporting.
I think it would do well as an open-source project.
Unfortunately, there's no good way for products to depend on it --
that is, to cause it to be
from your webservice or are
you getting the full correct text back to android then android
is omitting stuff?
On Mon, Feb 1, 2010 at 1:51 PM, Bob Kerns r...@acm.org wrote:
How are you parsing the XML? It's the XML parser's job to understand
this stuff, not yours.
If you're taking the XML
The ones you're not allowed to change are defined here:
http://developer.android.com/intl/de/reference/android/provider/Settings.Secure.html
The ones you ARE allowed to change (with
android.permission.WRITE_SETTINGS permission) are defined here:
You know, the sad thing is that you'd find it surprising that 8th-
graders would know Java well enough to program apps for Android.
So very rare are schools and teachers who actually GET that kids can
learn to program, and properly taught, are empowered and excited by
it.
Seymour Papert was
They can readily inline them in the same class (so all private methods
qualify). Otherwise, you don't really know what the code will be until
the class is loaded. A sufficiently-clever classloader can do amazing
things, but usually this sort of trick is done later, Just-In-Time
compilers that
See below.
On Jan 29, 3:47 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
I'm not sure about DalvikVM, but some compilers take advantage of
'final'.
E.g.
Final variables can be put in registers of the CPU without worrying
that they may change during execution (constantly moving
Definitely good advice, if we're confusing 'field' and 'variable'. If
not, then you're stating a tautology, which is even better! :)
On Jan 29, 3:48 pm, Kevin Duffey andjar...@gmail.com wrote:
you might use method declared variables to help with scope... if you know a
variable is only used in
Yes, or given the background of the language designers, CPA. And the
compiler has to figure this out in order to give the error message --
and even in the error case, there are several trivial ways to
transform the code to be equivalent. (It's a mite more difficult to
make sure debuggers know what
Excuse me for responding in English -- I'm betting you'll understand
my English better than my Spanish! Besides, others may be able to
offer suggestions.
(Basically, he's got an app that works on the G1, but on a Nexus One
(which he doesn't have), it fails, when changing views (or changing
In addition to the other comments -- if you just need to make the
media quiet -- you can temporarily turn the volume down for the
AudioManager.STREAM_MUSIC audio stream type. See
AudioManager.setVolumeStream().
This won't stop playback, but at least it will be silent playback.
On Jan 28, 8:22
The IP addresses will be whatever the DHCP server on that subnet says
they should be. Often, the DHCP server role will be handled by your
router to the internet, but in a corporate environment, things may be
more complicated.
When a device connects to an IP network, it usually broadcasts who am
This looks perfectly normal and correct to me. The application is
already up-to-date on the device, and you already have the activity
running, so it just brings it to the front.
If you kill the task, using some task manager app, or rebooting your
phone, or just wait for Android to get rid of the
Atif, the various layout classes are *intended* to be a generic
solution, making minor adjustments for minor changes.
Using different resource folders is intended for making major
readjustments to layout. If you design a good layout with the layout
classes, you may not need them at all!
801 - 886 of 886 matches
Mail list logo