Hi,
i want to display an image from URL,i found one example from forum
.but it doing nothing. i m sending the code plz suggest me what to do
package com.example.urlImage;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLExc
Hi,
In my program i'm using sqlite database.
After using that Sqlite program when i'm using some other layout it
is showing the below exception.
02-06 14:17:59.320: INFO/dalvikvm(853): Uncaught exception thrown by
finalizer (will be discarded):
02-06 14:17:59.371: INFO/dalvikvm(853): Ljava/lang
Possible reason for this could be the cursor going out of limits.
--
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
android
Thank U Manoj.
I will try it and then i will inform u.
On Sat, Feb 6, 2010 at 2:33 PM, Manoj wrote:
> Possible reason for this could be the cursor going out of limits.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to th
Hi,
i try to understand how to bind the im status using
ContactsContract.StatusUpdates with the name of a contact. Can anyone
help me please.
thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to androi
Hi,
Can anyone please let me know where is the xml file located for
inflating the QSB with Text Search filed(Text View) and the default string
"Quick Search Box" getting displayed in it.
I wanted to change some attributes in the text view which gets displayed to
enter the text for search.
I recently got the Nexus One Update which provides amongst other
things - pinch gestures.
One other unlucky surprise I got is that the app I am writing behaves
differently. When I call finish() my activity's onDestroy() should be
getting called. On 1.5, 1.6, 2.0 and 2.1 (before the nexus update)
I had trouble with this too. The solution is to use support-screens to
enable anyDensity=true. Simply setting "targetSdkVersion" to something
>= 4 also works, since this makes anyDensity=true the default.
I would have assumed that the SDK that you build against automatically
is considered the targ
Hi ,
I am trying to connect to server through
HttpUrlConnection, but after sometimes it throws Socket.Net
Exception :Network Unreachable. I tired alarm manager to wake up the
phone and get the wifi lock but none seems to work .
Tell me what to do what should i check and alternative
"AICOM Global Knowledge Workforce™
AICOM® (ey-kom) Corporation is a Top-100 Global Outsourcing company
that provides diversified solutions and services by leveraging on our
key strength -- our Global Knowledge Workforce.
>From our offshore center in the Philippines to onsite teams in US and
Canad
Hi ,
I am trying to connect to server through
HttpUrlConnection, but after sometimes it throws Socket.Net
Exception :Network Unreachable. I tired alarm manager to wake up the
phone and get the wifi lock but none seems to work .
Tell me what to do what should i check and alternative
Hi,
I'm using Textview with editable.
I'm giving a default value to textview.
After executing the program when i try to erase the default value it is not
deleting? why?
--
Thanks & Regards
Sasikumar.S
--
You received this message because you are subscribed to the Google
Groups "Android Develop
Please help me i am stuck on this and need to resolve this immediately.
--
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
Hi,
I have been told my some customers that on nexus one when they try to
run my app from the main menu they see the message "application is not
installed on your phone"
but when running from the market place is runs fine.
Any help please?
--
You received this message because you are subscribe
Also this runs fine on all other android versions
--
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
android-developers+unsu
Hi,
There is no one to help me ?
--
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
android-developers+unsubscr...@googlegr
Ok, so if I use plain simple trigonometry there is some inaccuracy. I
can live with that.
Thank you Frank
Frank Weiss wrote:
It's that simple unless you want to account for latitude compression or
obstacles. Latitude compression is usually negligible if the latitude
bounds are small (<0.2 deg
hi,all
there is an article in android document(Dev Guide/Publishing/Signing
Your Applications/Signing Strategies)
"Application modularity – The Android system allows applications that
are signed by the same certificate to run in the same process, if the
applications so requests, so
Hey guys,
I seriously need help with a quite strange problem. I created a client
which communicates with a server. Therefore, I have three classes. An
activity providing a nice dialog to configure some data, a background
service which checks the connection status periodically and a server
class whi
pa018 wrote:
> hi,all
> there is an article in android document(Dev Guide/Publishing/Signing
> Your Applications/Signing Strategies)
>
> "Application modularity – The Android system allows applications that
> are signed by the same certificate to run in the same process, if the
> appli
Rohit wrote:
> I have an application that plays music. I want the application to
> get notified when the user plays a YouTube video so that I can pause
> the music in my own app. Is there a listener I can setup or a
> Broadcast receiver that I can setup to get notified of when the video
> is p
I have tried the same thing as per the documentation. But nothing
worked.
Can someone say whether is this possible or not?
Thanks,
Parveen
On Feb 3, 6:56 pm, Matt wrote:
> Hi all.
>
> We would like to enable or disable widgets via code. When we say
> "disable" we mean that awidgetwhich is regi
Can anyone help? Thanks!
On Feb 2, 7:42 pm, andrew android wrote:
>
> xmlns:android="http://schemas.android.com/apk/res/android";
> android:layout_width="wrap_content"
> android:layout_height="wrap_content">
>
> android:layout_height="fill_parent"android:enabled="true"android:clickabl
Bear in mind that speed (DOM v SAX) may not be much of an issue for
parsing smaller amounts of XML, or where for some reason you can't use
the parsed data until you've parsed the entire XML document anyway:
SAX shines where you can (and need to) use data (e.g. to update a GUI)
as soon as it's parse
Hi Guys,
Can anyone point me to an example of how to blur a Canvas or Bitmap?
Thank you,
Armond
--
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 t
On Feb 6, 3:02 pm, "Armond Avanes" wrote:
> Hi Guys,
>
> Can anyone point me to an example of how to blur a Canvas or Bitmap?
>
> Thank you,
> Armond
actually you blur Paint object that is used for drawing on Canvas
pskink
--
You received this message because you are subscribed to the Google
I've an App which performs a potentially large download in background
thread. When the orientation changes or the keyboard is opened the App
lifecycle system invokes the start/stop/pause/resume etc calls - is
there any strategy available to resume the download rather than just
set a flag so the new
Carl Whalley wrote:
> I've an App which performs a potentially large download in background
> thread. When the orientation changes or the keyboard is opened the App
> lifecycle system invokes the start/stop/pause/resume etc calls - is
> there any strategy available to resume the download rather tha
On Sat, Feb 6, 2010 at 2:56 AM, Yaya wrote:
> Hi,
> There is no one to help me ?
See http://code.google.com/p/android/issues/detail?id=2454
-T
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android
I have a user complaining about a FC on my app and they were kind
enough to post the stacktrace. It's a class that I cannot find
anywhere and it sounds like it is related to multi-touch. I don't
specifically call this class, MapView does so I don't have any control
over it. It kind of looks like
I don't if it was a typo or not, but shouldn't this code be like
this?:
public static ServerConnection getInstance() {
if(m_connection == null)
m_connection = new ServerConnection();
return m_connection;
}
(added 'm_connection = ' to the second line of the function's body)
I have no idea how it differs from the original version (as shipped in
the SDK). :-)
The original version just didn't work and i ported a C-version (google
it) into Java. And this seems to work for my app and other developers'
apps.
On Feb 5, 11:22 pm, Tim Newsham wrote:
> Could you explain how
Hi,
I'm registering an intent-filter on an activity to listen for url
clicks from a certain domain:
this works, but is there a way to filter out certain urls from my
domain? For example, my app can only do something useful for the user
if it gets a url like:
Hi,
When i have a text editor in the bottom of screen, i would like to
move the IM to the top. I can easily do this in windows mobile. Is
there a way in Android?
thanks
guich
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to
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 lifes
guich wrote:
> When i have a text editor in the bottom of screen, i would like to
> move the IM to the top. I can easily do this in windows mobile. Is
> there a way in Android?
No, but you can use various techniques to have your text editor appear
above the IME, for IMEs where that is possible.
h
Mark Wyszomierski wrote:
> Hi,
>
> I'm registering an intent-filter on an activity to listen for url
> clicks from a certain domain:
>
>
> action>
>category>
>category>
>data>
>
>
>
> this works, but is there a way to filter out certain urls from my
> doma
Hi,
I want to add a flag that will tell how much time my application is
running. This flag will have to stay even after the application is
removed. And, if its installed back, i must have a way to recover this
flag.
What's a way to implement this?
thanks
guich
--
You received this message
I opened a bug report on this:
http://code.google.com/p/android/issues/detail?id=6502
Could you run my test case (http://www.thenewsh.com/~newsham/unproj/
unproj-tracer.java)
with the original unproject function (already there) and with your
unproject
function and compare the results?
I also tri
guich wrote:
> I want to add a flag that will tell how much time my application is
> running. This flag will have to stay even after the application is
> removed. And, if its installed back, i must have a way to recover this
> flag.
>
> What's a way to implement this?
It is not possible.
The clo
Thanks. Do you know how to *programatically* force the inputmethod to
be shown in fullscreen?
regards
guich
--
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 uns
Hi Mark,
Very strange that Android don't support shareware applications. Note
that, then, is fairly easy that the user installs a 30-day trial
application, remove it and install again.
guich
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
guich wrote:
> Thanks. Do you know how to *programatically* force the inputmethod to
> be shown in fullscreen?
I don't see an option to do that in InputMethodManager -- you can find
out if it is fullscreen, but you can't force it.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://tw
guich wrote:
> Very strange that Android don't support shareware applications. Note
> that, then, is fairly easy that the user installs a 30-day trial
> application, remove it and install again.
You're looking at the glass being half empty.
Users who feel like attacking their Windows PCs with sle
Ok thanks, looks like the preFix attribute does what I need:
Thanks
On Feb 6, 9:53 am, Mark Murphy wrote:
> Mark Wyszomierski wrote:
> > Hi,
>
> > I'm registering an intent-filter on an activity to listen for url
> > clicks from a certain domain:
>
> >
> > > action>
> > > cate
I have a LinearLayout that I set a background to a 9-patch drawable.
It appears that the LinearLayout is somehow forcing its contents to
display within the center space defined by its background. This is
really creating problems as the content is being "scrunched" or
compressed to a much smaller s
After a quick search I saw some comments of "what not to do"... but in
my case it WORKED PERFECT. Rather than setting the layout background
in the xml as I had originally done (and what I would have preferred
to do). I took a little of the code from another post and set the
background in code. Th
Uh yeah, that's why they added that particular crazed hack - an
undocumented call to #startUsingNetworkFeature(int, String).
On 3 Feb, 09:31, Anonymous Anonymous
wrote:
> --
>
> MMS cannot be sent over wi-fi.Carriers network is mandatory to send/recv.
> The MMSC need t
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 to
see the route to the host, if you have it; the busybox version works
well. This will show where the
On Feb 5, 5:45 am, "Emre A. Yavuz" wrote:
> Hi,
>
> We need to convert XML messages to a stream or string which can then be sent
> via sockets.
You can read one XML input with XmlPullParser (or DOM or SAX) and
write it at the same time to another stream with XMLSerializer - see
XmlPullParserFac
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 wrote:
> I recently got the Nexus One Update which provides amongst other
> things - pinch gestures.
>
> One other unlucky surprise I got i
Hi,
I coded an AppWidget the user can add to his homescreen. There are a
bunch of images (ImageView) in it that perform different actions like
starting Activities on click (realised with PendingIntents). To make
it easier to navigate through the AppWidget I'd like to use the
trackball (as it works
You can really only discourage a determined person from using a time-limited
application, unless you use more sophisticated DRM-like approaches. There
are a couple of simple things you can do. Add a nag dialog that periodical
reminds the user the trial expires in x days, or expired x days ago, alon
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 tha
Wasn't sure where to post this, so i'm starting here; confident
someone will re-direct as appropriate.
I've got a stock My-Touch-3G (i.e. not rooted/jail-broken). Recently
the response to standard buttons changed drastically:
*Regardless of applicat state (awake, sleep, active application, ...)
t
Sorry, that doesn't work either
On Feb 1, 5:31 pm, Romain Guy wrote:
> scrollHorizontally enables user scrolling for editable text fields. If
> you want automatic scrolling, use android:ellipsis="marquee"
Generating R.java / Manifest.java from the resources...
...\res\layout\main.xml:67: ERROR
Tried to post this the last two days (hopefully problem with this list
is now resolved).
I haven't given up on figuring out how to display a single line of
text that is wider than the view. More observations and questions:
(1) ellipsize="marquee" is not allowed for EditText (generates
exception)
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 goin
It seems you are not going to get a call to onNewIntent() because in
ayanir's example Activity A (the activity launched by the home screen)
is not on top of the task stack.
Apparently the market application is sending an intent for
action.MAIN, category.LAUNCHER. Maybe you would need some kind of
It makes sense that getCount() on the cursor might involve reading all
the rows even if it probably doesn't actually instantiate all the
objects as Bob Kerns correctly points out.
A work around is to do a seperate "select count(*)" with the same
where clause but this is only an estimate of the num
FWIW, the following unproject code seems to line up properly for me.
Notice that I had to map view coordinates to (-1.25,1.25) instead of
from (-2,2). I got these numbers empirically and have no idea why
this would be so or how close to the correct values I am.
static void fixW(float[] v) {
oops, I meant to (-0.625,0.625) rather than (-1,1)
On Feb 6, 10:22 am, Tim Newsham wrote:
> FWIW, the following unproject code seems to line up properly for me.
> Notice that I had to map view coordinates to (-1.25,1.25) instead of
> from (-2,2). I got these numbers empirically and have no idea
jk-bk-vk wrote:
> Wasn't sure where to post this, so i'm starting here; confident
> someone will re-direct as appropriate.
Directly emailing core Android developers (per your CC) is not polite.
Please bear in mind that there are millions of Android device users, and
the core Android development te
Hi,
I'm using an intent-filter on URLs for my activity:
the launchMode attribute is set to "singleTop", but it looks like a
new activity is created every time I click a matching url. I thought
that if the activity is already alive somewhere, it would simply be
brought to t
Mark Wyszomierski wrote:
> Hi,
>
> I'm using an intent-filter on URLs for my activity:
>
>android:name=".ActivityTest"
> android:launchMode="singleTop"
> >
>action>
> category>
> category>
>
>
>
>
> the launchMode attribute is set to "singleTop", but it looks like
I've done some more research on this problem, which seems to me to be
pretty important. I do not see how anyone is going to be able to
incorporate full OAUTH into their applications, and use the new
AccountManager functionality.
Looking at my situation more, I think that what I'm actually seeing
a
Why don't you just edit your 9patch image to remove the padding that
you put in there?
On Sat, Feb 6, 2010 at 10:15 AM, Mark Nuetzmann
wrote:
> I have a LinearLayout that I set a background to a 9-patch drawable.
> It appears that the LinearLayout is somehow forcing its contents to
> display with
Without seeing your code it's hard to know what's going on, but
background drawables are never drawn in the foreground.
On Sat, Feb 6, 2010 at 11:39 AM, Bob Kerns wrote:
> The right thing to do is to adjust your 9patch with the 9patch tool to
> indicate what the padding should be. Those are those
ScaleGestureDetector is a class that was added in the latest update of
the Nexus One. If your user is using a Droid, it looks like he's been
trying to update his Droid manually, using binaries that were not
meant for his phone.
On Sat, Feb 6, 2010 at 9:14 AM, jeffro wrote:
> I have a user complai
Hi,
We already have the application working this way in many other
platforms. Its just very strange that Android don't allow such
approach.
Is the sd card the only way? I guess that the SharedPreferences is not
a good place...
thx
guich
--
You received this message because you are subscrib
guich wrote:
> We already have the application working this way in many other
> platforms.
All of whose users will suffer as applications leave crap behind.
> I guess that the SharedPreferences is not
> a good place...
Anything stored in on-board flash for the app (shared prefs, files,
database
Ahhh..thanks. The joy of custom ROMs.
On Feb 6, 1:13 pm, Romain Guy wrote:
> ScaleGestureDetector is a class that was added in the latest update of
> the Nexus One. If your user is using a Droid, it looks like he's been
> trying to update his Droid manually, using binaries that were not
> meant
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 supplie
I can assure you that NinePatchDrawables are NOT drawn in the foreground.
> The only reason I can see this hasn't provoked an uproar (besides
> possible hallucinations on my part, which I haven't quite ruled out),
> is that the advice is to leave the center center tile transparent.
There is absol
Hi,
I think i found the solution: a call to
ArrayAdapter.notifyDataSetChanged fixed the problem.
Thierry.
2010/2/3 Thierry Legras
> Hi,
>
> I saw several people reporting an issue with Spinner.setSelection that does
> not seem to work as expected on the second call: the item selection is
> co
Hi,
I'm opening the ImputMethod to be able to catch keys into my app.
When the user press standard keys, its ok. I get things like:
0 33 101
1 33 101
(action type, keycode, unicode)
However, when i long-press a char like A and choose à (ã), i
get only:
2 0 0
Any tips of what's going on?
thanks
I got it the marquee TextView working after all !
A bit of a mystery about the combination of attributes that works so
maybe I am relying on undocumented behavior.
For some reason adding android:focusableInTouchMode="true" causes the
marquee to activate. Why is that?
android:focusable="true" is
Thanks Mark !!
1. ack on the protocol/etiquette mistake -- my apologies to everybody
2. i will pursue with T-Mobile and return here just to finalize/report
"their soln" so anybody stumbling on this thread will know where/what/
how.
I did want to make sure on one inference I'm making from your
res
Did you send me an email? I didn't get any.
Why don't you post the layout here?
On Feb 6, 1:40 pm, haric zhu wrote:
> Have you got my layout file, and if you have any other problem about this
> issue, please email me:)
>
> 2010/2/6 NoraBora
>
>
>
> > In 'list_selector_background'
>
> > you can
I'm seeing that some users are downloading data via my application and
their connection is dropped because the WiFi is going to sleep.
Could I somehow take control over WiFi to keep it alive and once I'm
done I return it to it's default state?
Thanks,
-Moto!
--
You received this message because
Got it working... All I had to do was convert the file using hprof-
conv :)
Thanks guys for the help!
-Moto!
On Feb 4, 8:47 pm, Xavier Ducrohet wrote:
> On Wed, Feb 3, 2010 at 8:18 PM, Moto wrote:
> > Any ideas? I just used the "Dump HPROF file" button, and picked it up
> > from the sdcard an
Ok, after a few hours, found the answer:
public boolean onKey(View v, int keyCode, KeyEvent event)
{
switch (event.getAction())
{
case KeyEvent.ACTION_DOWN:
eventThread.pushEvent(KEY_PRESS, event.getUnicodeChar(),
keyCode,0,convertMeta(event),0);
@bob
I think i used connect to another website that sends news in order to
check whether it is wrong at network side or in my code.
Also my question is , can we really implement a service that runs in
background indefinitely and give us update if it is available .If yes,
then what parameters we sh
jk-bk-vk wrote:
> 2. i will pursue with T-Mobile and return here just to finalize/report
> "their soln" so anybody stumbling on this thread will know where/what/
> how.
Particularly if the problem is indeed the provisioning bit getting
flipped back, T-Mobile may have a way to re-provision it at th
Moto wrote:
> I'm seeing that some users are downloading data via my application and
> their connection is dropped because the WiFi is going to sleep.
>
> Could I somehow take control over WiFi to keep it alive and once I'm
> done I return it to it's default state?
There's a WifiLock you can hold
You Can do it by acquiring wifilock but for this you need to wake up
the phone using Alarm manager.
I suggest you to see Alarm Manager and wifilick
On Feb 6, 5:01 pm, Moto wrote:
> I'm seeing that some users are downloading data via my application and
> their connection is dropped because the Wi
Re your question about implementing a service that polls for updates, please
look at some of the sample code. For example, Romain Guy's Photostream demo
application has a background service that polls the Flikr API webservice for
updates and displays a notification in the notification bar. AFAIK wh
Thanks for this discussion Bob. Based on this discussion, I have
implemented a DNS client at the application and tested it out too.
It works well.
On 2/4/10, Bob Kerns wrote:
> Ah, this provides a lot more context -- but not all of it!
>
> Normally, this sort of thing is handled through DHCP or
@frank
Thank you very much let me look at those sample then i will let you
know.
once again thanx
On Feb 6, 7:14 pm, Frank Weiss wrote:
> Re your question about implementing a service that polls for updates, please
> look at some of the sample code. For example, Romain Guy's Photostream demo
>
@frank
Can you please tell me where i can find that sample code.
thanks
On Feb 6, 9:28 pm, himanshu jain wrote:
> @frank
>
> Thank you very much let me look at those sample then i will let you
> know.
>
> once again thanx
>
> On Feb 6, 7:14 pm, Frank Weiss wrote:
>
> > Re your question about
Love seeing posts about outsourcing jobs while we keep seeing more jobs
being lost all the time. Can someone remove this please.. I fail to see how
it's relevant to android development help.
On Sat, Feb 6, 2010 at 1:58 AM, The AllSetter wrote:
> "AICOM Global Knowledge Workforce™
>
> AICOM® (ey-
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 e
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.
Anywa
Good news that the build.xml ant script now comes with a built-in
"clean" target. This is in 2.0.1. Not sure when this was added (it
wasn't there in 1.5). This will remove a major source of confusion
with resource id's as discussed in this old post.
http://groups.google.com/group/android-develop
94 matches
Mail list logo