Thank that has sorta worked.
I used getChildAt(int x);
On 7/11/2010, at 6:52 PM, Sarava Kumar wrote:
> 1. store those each two elements inside single parent such as LinearLayout
> 2. you can get that ImageView's parent node by calling is getParent like
> method
> 3. then get those parent's(Lin
1. store those each two elements inside single parent such as LinearLayout
2. you can get that ImageView's parent node by calling is getParent like
method
3. then get those parent's(LinearLayout) second child by getChild(1)..
I hope this help you...
On Sun, Nov 7, 2010 at 11:18 AM, Kumar Bibek
You can first get the parent of the ImageView and then get whichever child
you want. But, I am not sure if you can get it directly.
On Sun, Nov 7, 2010 at 11:15 AM, Julius Spencer wrote:
> Hi,
>
> I have a layout that includes an ImageView and a CheckBox and I am
> implementing onClick for the I
Hi,
I have a layout that includes an ImageView and a CheckBox and I am implementing
onClick for the ImageView. I would like to alter the state of the CheckBox
when the ImageView is 'clicked'. The state I am storing fine, but I would like
the CheckBox to change. Is there a way I can get access
And I told you that they are both signed with the same cert. I
deleted BOTH apps from the emulator (in fact I deleted ALL the apps)
and still I cannot install either. I can take the EXACT same .apk
files and install them on the new clean emulator and they both install
properly and can read each o
Right, that increases the size but it doesn't tell me where and how I
should set up the file system so that I can place music on it. I need
it to work just like a Samsung Vibrant for instance which has 8GB of
internal storage that's available for media storage. I need to place a
bunch of music file
Umm, have you tried adding elements to the top/bottom of the list when the
user starts scrolling up or down? That should work. And initially, query and
fetch, say, 10 results from your DB based on the "search string". And keep
adding elements to the top or bottom of the list accordingly.
On Sun, N
Hi,
Saw this as well -
http://www.androidzoom.com/android_applications/communication/kws-android-web-server_hlfb.html
Implementing a simple / custom webserver / appserver is pretty
straight forward, don't understand why you'd need Tomcat (java
servlet) capabilities ?
Regards
On Nov 6, 3:17 pm,
Since the views are all different sizes, the various ListViews,
GridViews, and Adapters don't work. Part of the secret sauce of my app
is the algorithm for arranging the views in the most compact way to
present the maximum amount of information in the screen space
available. The main benefit of the
G'day mate,
I think you are looking for the emulator option -partition-size maybe.
You can simply use your existing virtual device and invoke it like so:
~/android-sdk-linux_86/tools/emulator -avd MyEmulator -partition-size 1024
That creates a 1GB partition.
On Sun, Nov 7, 2010 at 12:45 PM,
Hi I am working on an application where i will track the movement
of the android device inside a building... suppose i display a map of
the building in the android emulator... Now,i need to simulate the
movement of the android device is there a way in which i can
control the movement of the
If you are saying you are doing this on one of the children views of the
list view -- do NOT do this. The ListView class *very* carefully manages
its children itself. Trying to do things to them will break it.
On Sat, Nov 6, 2010 at 1:30 AM, Dev Android wrote:
> i've list view and i'm trying to
I would strongly suggest not handling configuration changes yourself. The
default behavior for them is to restart your activity. Let that happen.
Turning that off, then trying to replicate the behavior, is just not going
to work.
If you have code separate from the activity that needs to do some
I have an app that pulls album art from the media store. It works fine
on my N1 and other devices with external SD cards. However, I need to
get it working on devices with internal storage and I don't have such
a device to test on. How can I set up the emulator to reproduce such a
device? I did a s
1, By default, if android system configuration is changed, only top activity is
restarted (onDestroy is invoked, then onCreate is invoked) immediately, and
other activities in history stack will defer to be restarted once they are
resumed.
2, I need to do extra works once configuration changed,
G'day guys,
I am hoping to create my own protocol handler for urls in a webview.
I have tried two approaches already. The first was to attempt
something similar to the approach defined here to create a customer
protocol handler.
http://java.sun.com/developer/onlineTraining/protocolhandlers/
Sure, I can do this. I am working on implementing a dictionary. The
dictionary-database is a file that has an index, where each entry
points to a concrete database record. What I do now is to search the
index for a word, then get the result that points a database record
with the dictionary-data. We
I am sure that there can be better approaches to the problem. And, I think
ListView indeed will be able to handle this situation. May be you can
explain your requirement more clearly, and how are you trying to implement
it.
On Sun, Nov 7, 2010 at 4:38 AM, Rutton wrote:
> Hello there,
> I
Hello there,
I am working on some sort of record lookup for a database. My code
allows to search for some kind of string within an index (of that
database) and returns the database-position of the found thing . With
this found position my programm is then able to move to adjacent
records fro
Well I thought this... however
I have
Devices
(which has a custom which opesn up Device Configuration)
Config
(which is empty)
Locale
(which has ANY)
and then a theme selector
but thats it...
On Sat, Nov 6, 2010 at 6:43 PM, Kumar Bibek wrote:
> On the layout editor, you will find an option t
On the layout editor, you will find an option to change the orientation, a
drop down at the top
On Sun, Nov 7, 2010 at 4:08 AM, Greg Mort wrote:
> Hello
>
> I want to know how to change the orientation of my layout inside of eclipse
>
> in my manifest I have
>
> android:screenOrientation="landsc
Hello
I want to know how to change the orientation of my layout inside of eclipse
in my manifest I have
android:screenOrientation="landscape"
in my layout xml I have
android:orientation="horizontal"
but when I click the "layout" button it still shows it as a vertical layout
Thank You
--
Y
I realize you may be doing this because you want to but are you aware
there is an app that does guitar tuning already on the market?
On Oct 18, 2:30 am, Dave wrote:
> I am looking for some help. I'm new to android, and java
> developement. I've got a pretty good handle on the basics, but I'm
>
I have an activity in my application that shows a listview of items
with icons next two each item. I would like to lazy load icons for
each item from the Internet using in memory caching and SD caching
(very common Android use case).
I have been using this code from the Google Android developers b
Hi all,
I am currently looking into developing an application for the android
platform. I was wondering if there was a way in order to perform an
action when the phone is connected via usb. I want it to perform an
action depending on the connection state, i.e. do action A if not
connected to PC, d
No exception thrown? Are you sure your logcat doesn't say anything?
I suspect, you might be getting OutOfMemoryException.
Have you considered scaling your image? Or, do you have to preserve
this resolution?
If you can scale your images, perhaps, you can avoid it.
On Nov 6, 9:32 pm, darrinps wrot
On Sat, Nov 6, 2010 at 4:08 PM, Romain Guy wrote:
> Have you thought about using a ListView instead btw?
Agreed. Or any other AdapterView. Or writing your own AdapterView.
Anything to reduce your heap and stack consumption.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.c
Well, if you were to show 1000s views on the screen, you would obviously
need more memory. Try creating a list view (a dumb one which returns a new
view every-time) and see if the amount of memory is substantial.
Delay is fine, but I cannot think of a situation where someone might have to
bring up
You can display a progress bar or even a progress dialog and still stream
the UI. Have you thought about using a ListView instead btw?
On Sat, Nov 6, 2010 at 1:05 PM, Bret Foreman wrote:
> In what way is it too much? I'm not using much memory and the delay is
> only a few seconds. It will all be
In what way is it too much? I'm not using much memory and the delay is
only a few seconds. It will all be fine if I can figure out how to
present the user a progress dialog or other indication that work is in
progress.
On Nov 6, 12:58 pm, Kumar Bibek wrote:
> 1000's of views I guessThats too
A walkthru over your code could reveal something.
On Nov 6, 3:44 am, Bret Foreman wrote:
> I've got a progress dialog that I'm unable to dismiss and I can't
> figure out why. The first time through the code, it shows the dialog
> and dismisses it perfectly. The second time through it fails to
> d
1000's of views I guessThats too much...
On Sun, Nov 7, 2010 at 1:27 AM, Bret Foreman wrote:
> My Moto Droid builds the Views in a few seconds and everything else
> works great - scrolling is fast and pretty, memory utilization is
> modest. The _only_ problem is how to handle the brief delay
My Moto Droid builds the Views in a few seconds and everything else
works great - scrolling is fast and pretty, memory utilization is
modest. The _only_ problem is how to handle the brief delay while the
Views are built. I'm not sure what you mean by sensible.
On Nov 6, 12:44 pm, Mark Murphy wrot
On Sat, Nov 6, 2010 at 3:29 PM, Bret Foreman wrote:
> A few hundred Views in a typical case but it could be up to a couple
> thousand in some cases.
And what makes you think that "a couple thousand" is sensible, on any platform?
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://git
Oh, thanks. I've tried this already but i guess, i've misconfigured
it. Works like a charme :-)
On Nov 6, 5:18 pm, Mark Murphy wrote:
> On Sat, Nov 6, 2010 at 12:13 PM, mattelacchiato
>
> wrote:
> > i have published a free app on the market. Now i want to create a
> > second "pro" (paid) app. Ac
A few hundred Views in a typical case but it could be up to a couple
thousand in some cases.
On Nov 6, 12:19 pm, Mark Murphy wrote:
> On Sat, Nov 6, 2010 at 3:10 PM, Bret Foreman wrote:
> > I've used Traceview extensively on this code - it used to take 20
> > seconds and now it's down to 3, all
Some facts:
All HTC phones up until the Incredible and EVO had the old synaptics
touch screen which did not support discrete touch points. The new
high end phones (including the incredible and EVO) have much better
screens.
Motorola Droid, Droid 2 and Droid X all support discrete touch points.
S
On Sat, Nov 6, 2010 at 3:10 PM, Bret Foreman wrote:
> I've used Traceview extensively on this code - it used to take 20
> seconds and now it's down to 3, all of which is in the View
> constructors and the code where I set various drawing parameters.
Most Views take next to no time to set up. How
I've used Traceview extensively on this code - it used to take 20
seconds and now it's down to 3, all of which is in the View
constructors and the code where I set various drawing parameters. It's
just a lot of Views and there is no smoking gun where a lot of time is
being spent. I thought about cr
On Sat, Nov 6, 2010 at 3:04 PM, Bret Foreman wrote:
> Streaming the UI creates an added complication - in what way should I
> notify the user that the UI is finished drawing? Partial data is going
> to confuse the user unless they know that more is coming. Since this
> is a limitation imposed by t
Streaming the UI creates an added complication - in what way should I
notify the user that the UI is finished drawing? Partial data is going
to confuse the user unless they know that more is coming. Since this
is a limitation imposed by the Android framework, others must have
encountered it. Is the
On Sat, Nov 6, 2010 at 2:51 PM, Bret Foreman wrote:
> The time
> taken is just in building the view hierarchy itself - creating and
> initializing the Views takes a few seconds.
Use Traceview and find where your performance issue lies. "Building
the view hierarchy itself" is a very broad statemen
I see. Well, I'm not doing much in the way of computations. The time
taken is just in building the view hierarchy itself - creating and
initializing the Views takes a few seconds. So it looks like I'll have
to stream the UI with a Handler as I build it. It's a shame that the
framework imposes so mu
On Sep 16, 3:12 pm, Chaitanya Gupta wrote:
Hi,
> There is a weird behaviour withXMLHttpRequestthat I have noticed in
> the default browser on Android 2.1: if the server takes a long time to
> respond to an AJAX request (more than 14 seconds), then the browser
> sends another request to the serve
She did not suggest you crated the Views themselves in background thread,
but that your computations were done in a background thread. You need to
split the creation of the Views and whatever you are doing that's taking a
long time to compute. You can also stream the UI by adding Views one after
th
I should point out, by the way, that Dianne Hackborn recommended my
current approach in this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/8c3fe5692fb6b0b0/79c04e8bf41843?q=#0079c04e8bf41843
--
You received this message because you are subscribed to the Google
Gr
What is the best way to handle the case where drawing takes a few
seconds? I need to put up some sort of progress dialog while I work on
building the screen.
On Nov 6, 11:18 am, Romain Guy wrote:
> You should NEVER create or draw Views from a background thread. The UI
> toolkit (and the framework
You should NEVER create or draw Views from a background thread. The UI
toolkit (and the framework in general) is not thread safe.
On Sat, Nov 6, 2010 at 10:21 AM, Bret Foreman wrote:
> It takes some time to draw my views so I want to put up a progress
> dialog while I do it. I set up the code lik
It takes some time to draw my views so I want to put up a progress
dialog while I do it. I set up the code like this:
public class MyActivityClass {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(
I have an application that works fine with smaller images (say
1024x768 or so) but when you rotate the phone into a different
orientation (say landscape to portrait) mode with a larger image on
the screen, and then call ImageView.setImageUri() it goes into the
BitmapFactory.class and never returns!
On Sat, Nov 6, 2010 at 12:13 PM, mattelacchiato
wrote:
> i have published a free app on the market. Now i want to create a
> second "pro" (paid) app. According to
>
> http://developer.android.com/guide/publishing/licensing.html#app-publishing
>
> i have to publish the new paid app with a different
Hi,
i have published a free app on the market. Now i want to create a
second "pro" (paid) app. According to
http://developer.android.com/guide/publishing/licensing.html#app-publishing
i have to publish the new paid app with a different package name.
Is there a way to share the same code for bot
On Sat, Nov 6, 2010 at 9:04 AM, adithya <24adit...@gmail.com> wrote:
> I still haven't got any further from here..Can anyone please help me
> out ??
Instructions for downloading all of the source code can be found here:
http://source.android.com/source/download.html
Or, use Google Code Search:
I still haven't got any further from here..Can anyone please help me
out ??
-Adithya
On Nov 4, 9:09 am, adithya <24adit...@gmail.com> wrote:
> No..I searched in the downloaded directories and found 'base\core\java
> \com\android\internal\os' but couldn't find ServiceManager.java inside
> the fold
I had this problem, triggered by running out of disk space. Deleting
the apps that downloaded but didn't install helped those, but didn't
fix the NPE when you try to cancel the stuck downloads.
I managed to google up a solution. Go into Settings / Applications /
All Applications / Market and clear
On Sat, Nov 6, 2010 at 8:23 AM, Antonello wrote:
> 1) Is possible to start the emulator and pass through the lock screen?
Not that I am aware of.
> 2) There is a key combination (in the computers keyboard) that I can
> use to
> unlock the screen? (I'm using an Apple machine).
I just use the mou
Hi,
I'm trying to test my App in several resolutions and screens
densities, so I
managed to create some non standard AVD configurations, like 240x400
resolution with screen density of 120dpi. By doing this the emulator
shows
only the screen and not the skin with the fake "hardware" keyboard.
The
p
Hi,
Sorry but it's not only the nexus or the desire, it's all the htcs and
some other.
The answer to your question is in the market : Almost no games are
multitouch because it is so broken.
Mine(Armaboing) which is as simple as it can gets is using a massive
amount of logic and took me a massive
here is my game engine demo, require android 2.1 or higher
download from android market, search "cocos2d" or "wiengine"
view by cyrket
http://www.cyrket.com/p/android/com.wiyun.engine/
I don't have enough device, so glad to hear some result from different rom,
different model, different brand, e
Hi,
so there's the multitouch issue with the Nexus One and HTC Desire. Is
there some documentation on what other devices have this hardware
error and what the total market share is?
If you had a game idea that needs massive multitouch gestures, would
you go for it on Android or would it currently
i've list view and i'm trying to change the order using bringchildtofront
function. But i don't know whether it changes the order permanently or i
need to change it again when scrolling is performed on the list.
On Mon, Nov 1, 2010 at 10:50 PM, TreKing wrote:
> On Sat, Oct 30, 2010 at 11:55 AM,
On 6 November 2010 00:21, John Gaby wrote:
> As an update, I created a new clean emulator, and I am able to get
> both apps to install, and they seem to be able to read each other's
> data. However, on the first emulator, I still cannot install either
> one, even if I delete all of the app first.
Yes, its possible only custom build ROM, you can try cyanogenmod
On Nov 6, 10:40 am, Kumar Bibek wrote:
> Well, if you have to change that, you will have to have your own build
> installed on your own device. There's no other way.
>
> On Sat, Nov 6, 2010 at 5:34 AM, Kavinder Dhaliwal wrote:
>
>
>
63 matches
Mail list logo