[android-developers] startService() runs the service in a seperate process?

2011-07-14 Thread prachi
Hi

I have a doubt...I dont know why i am getting confused!!!

I have a service in app A.Now my app B starts the service in app A.

Does the service starts in the same process as app B or does it run in
the different process?Assuming app A is jst installed and not
runnning.

My next question is that in android documantation i have read that
using boundservice we can do IPCCant we achieve the same with
start service concept?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Program to generate MD5 hash for apk

2011-07-14 Thread Rashmi
 Check if the hash value you have/received is the same as the one you 
calculated
using the actual file.

Value you have/received -  which value is this. 

Please explain me in detail, what are the two values to be compared and how 
to get those two values . 

Thanks,

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] android:layout_above does not work while android:layout_below does

2011-07-14 Thread Shri
I see a red rectangle above a blue rectangle with this layout using
layout_below on the lower blue rectangle.

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:layout_width=match_parent
  android:layout_height=match_parent 
  View android:id=@+id/id_red_view
android:layout_width=200dip
android:layout_height=100dip
android:background=# /
  View android:id=@+id/id_blue_view
android:layout_width=200dip
android:layout_height=100dip
android:layout_below=@+id/id_red_view
android:background=#ffff /
/RelativeLayout

However, with this layout using layout_above on the upper red
rectangle, I see just the blue rectangle. HierarchyViewer shows that
the red rectangle *is* above the blue rectangle, but its getHeight()
is 0.

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:layout_width=match_parent
  android:layout_height=match_parent 
  View android:id=@+id/id_red_view
android:layout_width=200dip
android:layout_height=100dip
android:layout_above=@+id/id_blue_view
android:background=# /
  View android:id=@+id/id_blue_view
android:layout_width=200dip
android:layout_height=100dip
android:background=#ffff /
/RelativeLayout

Setting android:minHeight on the red rectangle does not fix the
problem. I tried swapping the order of the views to avoid a forward
reference, but that does not help either. Any idea why this is
happening? Is layout_above just broken?

Thanks,
Shri

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Program to generate MD5 hash for apk

2011-07-14 Thread Nikolay Elenkov
On Thu, Jul 14, 2011 at 3:08 PM, Rashmi rashmi@gmail.com wrote:
 Check if the hash value you have/received is the same as the one you
 calculated
 using the actual file.

 Value you have/received -  which value is this.

What are you trying to do? To validate a file you need know the hash in
advance. Where you get it from, we have no way of knowing. Maybe
it is written on some web page, maybe you got it by email, maybe
your friend wrote it on a piece of paper. Once you have the hash
and the actual file, you calculate the hash of the file and compare
the two values. If they match, you can be reasonably sure you
got the right/unmodified file. To really understand why and how
this works, at least read some Wikipedia before trying to
implement it.


 Please explain me in detail, what are the two values to be compared and how
 to get those two values .

Please transfer my consulting fee to my account :) Thanks.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dialog boxes

2011-07-14 Thread TreKing
On Wed, Jul 13, 2011 at 10:53 PM, kypriakos demet...@ece.neu.edu wrote:

 For example, if I want to notify the user of an operation that a
 background process
 is about to perform and ask his/hers permission while blocking that
 process,
 would that be possible?


No. You would wait for the user to make the selection, then start your
process in response to the confirmation.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] question about ExpandableListView and a large string array

2011-07-14 Thread TreKing
On Wed, Jul 13, 2011 at 6:16 PM, Jim Graham spooky1...@gmail.com wrote:

 I have a string array containing, at present, 286 entries, all of
 which have matching entries (same int index in the other arrays)
 that contain data relative to the first.  In other words,
 position 1 in the first, has data in position 1 of the other
 arrays, and so on.  These are all split up by brand/grain names
 (e.g., Briess 2 Row and Briess Caramel 20).


First, I think that's asking for trouble. If this data is related it should
be in some common object or structure.
So instead of Brand[286] brands; and Grain[286] grains you'd have
SingleObjectWithBothDataElements[268]


 If I chose, instead of a simple ListView, to migrate this to an
 ExpandableListView (where group 1 would be individual brands),
 would I need to split all of those arrays[1], or would I merely
 add a list of brands, that would then point to ranges in the main
 list?  Or have I got all of this COMPLETELY wrong?


Maybe - I, for one, am not really following. An ExpandableList has a
Parent-ListChildren type relationship. So if I'm following your example,
you'd have a list of brands as the top level list, then within each of those
*each* would have a list of grains, or whatever the children are.

I think you'd have a maintenance headache if you start doing some kind of
crazy indexing into a giant array to determine the sub-lists.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to fill Android system Internal Memory

2011-07-14 Thread Hareef
Hi,

In Android, any tool is available to fill the Internal and External
Memory?

Thanks
Hareef

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Using GSM Cell Location?

2011-07-14 Thread Filip Havlicek
Hi,

did you mean this?

http://developer.android.com/reference/android/location/LocationManager.html#NETWORK_PROVIDER

Best regards,
Filip Havlicek

2011/7/13 DanielSchH dan...@schmitz-huebsch.net

 Hello,

 I´m working on a app which needs a location. I ran into some problems,
 that there are even no lastKnownPositions in the LocationProviders.
 On the one hand, I have read something, that there is a way to get the
 location from the GSM-Cell by sending the cell-id to a WS. On the
 other hand, I haven't found anything about this from Google directly.

 Are there any problems with this or is it forbidden to do so?

 Tanks a lot.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ANDROID_ID always null on devices

2011-07-14 Thread gjs
Hi,

Here's the thread you're looking for ...

http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

Regards

On Jul 14, 12:58 pm, Shereef Marzouk shee...@gmail.com wrote:
 the whole idea behind using the Android_ID is not having to set a permission
 read phone state
 it defeats the purpose Rampanda

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android - System Startup

2011-07-14 Thread Hareef
Hi,

In android, the system startup in the order of  1 .  Boot Loader,  2.
Kernal,  3. Init,  4. Zygote,  5. System Server, 6. Activity Manager,
7. Launcher.

I want to know in which order, the android system will start up the
application services??


Thanks
Hareef

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] AppXplore

2011-07-14 Thread Johan Abramsson
Hi Developers,
Some time ago  Sony Ericsson has released a utility tool called
AppXplore on Android market.
It is to be used by advanced users that wants to have a look inside
their android phones and check what the apps they have installed can
do to the phone with regards to permissions etc, and also find other
useful details of installed apps.

It can be downloaded for free from android market.
https://market.android.com/details?id=com.sonyericsson.androidapp.AppExplorefeature=search_result

Documentation is published on Sony Ericsson Developer World.
http://developer.sonyericsson.com/wportal/devworld/technology/android/analysis-tools/appxplore?cc=gblc=en

Questions and comments can be put as a reply on this news thread.
Kind regards
  /Johan

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ScrollView focus problem

2011-07-14 Thread Zsombor
I have a quite large form, with a bunch of EditText elements, inside a
ScrollView. It works as intended when I scroll directly (not
flinging) with the ScrollView.

But when I fling it, as soon as my finger leaves the screen's surface,
the ScrollView forces an EditText (or a focusable element) to gain
focus. This is quite annoying from a user's point of view, because the
form can't be scrolled around without some random focusable element to
gain focus, and have the on-screen keyboard to appear.

As a temporal solution I've put the whole form inside a header of an
empty ListView. That way it works as I'd like, but it's a bit hacky
solution.

How can I disable this behaviour with ScrollView (Android 3.0 and up)?

Thanks

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Program to generate MD5 hash for apk

2011-07-14 Thread Rashmi
Thank you.
I got it cleared. Some how I need get the MD5 hash of the apk and then 
generate hash for apk for comparing.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Maximum Size of APK File

2011-07-14 Thread Perumss Naren
Hi,

Any one know what is the *Maximum Size of APK File*

Regards,
Perumal.N

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] issue in xml parsing

2011-07-14 Thread vani reddy
Hi ,

How to check if a particular tag exists under a sub tag in the xml using sax
parsing in android for the below link.
http://magazine.ateemo.com/magazines/by_publisher/2
In the xml response, there is magazine tag under first category tag ,  and
the other category tags  dont have magazine tag at all.

-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: strange camera preview image buffer wrapping problem

2011-07-14 Thread gjs
Hi,

has anyone reported this issue before? anything that I
should do to correct this?

Not sure, but try setting the preview size to one of the supported
sizes for the device - query the Camera parameters to find out. Camera
Preview sizes are not always the same size as the display screen.

http://developer.android.com/reference/android/hardware/Camera.html#getParameters()

Regards



On Jul 14, 2:29 am, Qianqian Fang fan...@gmail.com wrote:
 hi

 I found a strange problem when processing the
 preview images grabbed from my Epic 4G phone
 camera (android 2.2.1).

 The image data were captured in a callback set up
 by setPreviewCallbackWithBuffer(). The pixelformat
 of the image were set to RGB565. For each callback,
 I simply dump the raw data via FileOutputStream and
 then add the buffer back.

 The 1st to 6th image frames are shown in the following
 link (plotted with matlab, I did not bother to decode it).

 http://nmr.mgh.harvard.edu/~fangq/temp/camera_preview_image_wrapping.png

  From this plot, you can see the image wraps around the
 y-axis: for each frame, the y boundary moves about 4
 pixels. My preview size was set to 480x320; the orientation
 was portrait.

 has anyone reported this issue before? anything that I
 should do to correct this?

 thanks

 Qianqian

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] issue in xml parsing

2011-07-14 Thread Filip Havlicek
Hello,

what is really your goal? To check if the magazine tag is there (ie if it is
a subtag of the first category tag) or to actually parse the XML?

Best regards,
Filip Havlicek

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi ,

 How to check if a particular tag exists under a sub tag in the xml using
 sax parsing in android for the below link.
 http://magazine.ateemo.com/magazines/by_publisher/2
 In the xml response, there is magazine tag under first category tag ,  and
 the other category tags  dont have magazine tag at all.

 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Unknown Camera-GPS Issue

2011-07-14 Thread gjs
Hi,

I'd suggest polling
http://developer.android.com/reference/android/location/LocationManager.html#getLastKnownLocation(java.lang.String)
to see if it receiving any updates - the timestamp shows how old the
last fix was. Also try using a NEMA listener as well (if possible - it
is not working on some devices) to see if it is getting updates.

http://developer.android.com/reference/android/location/LocationManager.html#addNmeaListener(android.location.GpsStatus.NmeaListener)

Regards

On Jul 14, 1:20 am, Bryan Glick b.rye@gmail.com wrote:
 I am working on an augmented reality-type application. I noticed an issue
 with GPS not updating as expected. I have put a counter on-screen so that I
 can keep track of how often onLocationChanged is being called.

 The GPS receives lock ok, and begins calling onLocationChanged. After some
 time (less than a minute) onLocationChanged will stop being called, and the
 GPS location is no longer being updated. This happens whether we are
 standing stationary or driving in a car. We can usually get the GPS to
 continue updating if we set the phone down on a surface with the camera
 sensor down (so the screen shows nothing but black). After that it will
 continue to update for some time before again stopping.

 We've produced two more applications to help debug this issue.
 One is this 
 application:http://developer.android.com/resources/samples/ApiDemos/src/com/examp...
 modified to work with Android 2.2. We've added a LocationListener and an
 on-screen onLocationChanged counter and nothing else. This application
 functions the same way as the augmented reality application, with
 intermittent stoppages in GPS updates.

 The other application is just a location listener and an on-screen counter,
 without using the camera. That application works perfectly fine. The
 location listener never stops updating, and functions exactly as we'd
 expect.

 We've tried requesting location updates with different time and distance
 parameters, but they don't seem to affect functionality.

 We've used two different HTC Inspire 4G phones to test this, and both
 function the same way. We've also tested on a Motorola Droid 2 that did not
 seem to have the same issue, although we were not able to test as thoroughly
 on the Droid 2. The HTC Inspires are running the stock HTC Android 2.2.1 OS.

 Any ideas? Is there any reason the GPS would work better when the camera
 sensor is covered and not letting any light in? That's the variable that
 seems to affect functionality the most (although it's not completely
 consistent).

 I've found a few threads that mention an issue with using GPS and the camera
 simultaneously, but all have been open-ended, unanswered questions.

 Thanks!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] question about ExpandableListView and a large string array

2011-07-14 Thread Jim Graham
On Thu, Jul 14, 2011 at 01:53:17AM -0500, TreKing wrote:
 On Wed, Jul 13, 2011 at 6:16 PM, Jim Graham spooky1...@gmail.com wrote:
 
 First, I think that's asking for trouble. If this data is related it
 should be in some common object or structure.

I started off heading that way, using SQLite.  I was advised here, and
not much later followed said advice, to use XML instead.  What took me
literally a few lines of code in Tcl, to open the database, query the
database, and print the results, started to take multiple screens of
Java code.  Once this started, I KNEW I was doing something seriously
wrong on the Java side, and abandoned that and went with the advice I'd
gotten here.

 Maybe - I, for one, am not really following. An ExpandableList has a
 Parent-ListChildren type relationship. So if I'm following your
 example, you'd have a list of brands as the top level list, then within
 each of those *each* would have a list of grains, or whatever the
 children are.

Thanks---that answered the question I was asking---what the docs in the
developer's guide and the examples in the API demos left me wondering
about.

 I think you'd have a maintenance headache if you start doing some kind
 of crazy indexing into a giant array to determine the sub-lists.

And normally, I'd agree, but with Tcl code being the original source,
it's a simple matter of letting a Tcl script grab the data, and then
split it out into the appropriate structure(s), first into their own
files, and then while editing strings.xml, just do a quick :r foo
for each of the resulting files and that's it...done.  The data could
either be in a SQLite database or in a structured Tcl script, where each
line would call a proc[1], where the args would be the data for each list.

In fact, as long as the data is in a standard format, it's trivial to
write a script to read it.  For JStrack, I was still a relative
beginner with Tcl (ca. 1996) when I wrote the script that reads
the NHC's FORECAST/ADVISORY (aka Marine Forecast) product and extracts
the data for JStrack's use.  To this day, the only significant changes
to that script have been to make it recognize  storm types that weren't
in there (extratropical storm, subtropical storm, etc.).  That file,
(read_fc.tcl), including lots of LONG blocks of comments, blank lines,
etc., is 358 lines long (according to a quick wc -l).  Given what I know
now, I could probably cut that in half...but as the old saying goes,
poor grammar and all, don't fix it if it ain't broke.  :-)

So no, in this case, re-formatting the data, re-structuring it, etc.,
is not an issue.  Nor is keeping it maintained.  Just a couple of days
ago, I nearly doubled the size of the data, from about 162 entries to
286.  It took FAR longer to do the research (hunting is more like it)
to find the data for the new malting companies, and then find their
typical analysis data, than the few minutes it took to add it all to
the master list.  :-)

Thanks for the info,
   --jim

[1] The script that sorts the data out looks something like this:

   # run these bits before the procedure to open files, etc.

   set nf [open namesfile.xml w] ;# repeat for other data, merge later
   puts $nf string-array name=nameslist ;# again, repeat...
   set allf [list $nf $v1f $v2f] ;# except with more readable var names


   # the actual proc, obviously, has more args  In this short
   # example, iv value2 is not specified, it's an empty string.

   proc addfoo {name value1 {value2 }} {
  puts $nf  item$name/item
  puts $v1f item$value1/item
  puts $v2f item$value2/item
  # and so on.
   }

   # run after the script to close the files
   foreach f $allf { puts $f /string-array ; close $f }

   # If I wanted to, from here, I could append all of these to
   # strings.tcl from this script.  I do that manually, though.


-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.com

   Someone ever tries to kill you, you try to kill 'em right back!
   --Mal (Firefly, 1x03, Our Mrs. Reynolds)

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] issue in xml parsing

2011-07-14 Thread vani reddy
Hi Filip,
I am very much comfortable with parsing xml..I want to check if the magazine
tag is there (ie if it is a subtag of the first category tag)...

On Thu, Jul 14, 2011 at 1:15 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Hello,

 what is really your goal? To check if the magazine tag is there (ie if it
 is a subtag of the first category tag) or to actually parse the XML?

 Best regards,
 Filip Havlicek

 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi ,

 How to check if a particular tag exists under a sub tag in the xml using
 sax parsing in android for the below link.
 http://magazine.ateemo.com/magazines/by_publisher/2
 In the xml response, there is magazine tag under first category tag ,  and
 the other category tags  dont have magazine tag at all.

 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] issue in xml parsing

2011-07-14 Thread Filip Havlicek
Hi,

if you are bound to the SAX parser and you know the XML is valid, you can
just check for the magazine tag in the startElement method and stop the
parsing if found with positive result and check for the category tag in the
endElement method and stop the parsing if found with negative result.

Best regards,
Filip Havlicek

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 I am very much comfortable with parsing xml..I want to check if the
 magazine tag is there (ie if it is a subtag of the first category tag)...


 On Thu, Jul 14, 2011 at 1:15 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 Hello,

 what is really your goal? To check if the magazine tag is there (ie if it
 is a subtag of the first category tag) or to actually parse the XML?

 Best regards,
 Filip Havlicek

 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

  Hi ,

 How to check if a particular tag exists under a sub tag in the xml using
 sax parsing in android for the below link.
 http://magazine.ateemo.com/magazines/by_publisher/2
 In the xml response, there is magazine tag under first category tag ,
 and the other category tags  dont have magazine tag at all.

 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: startService() runs the service in a seperate process?

2011-07-14 Thread kamiseq
services are running in different process, you can bind to it so any
activity could exchange data with it. start service just starts
service

hope that helped

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] question about ExpandableListView and a large string array

2011-07-14 Thread Kostya Vasilyev

As far as ExpandableListView data structures - well, there aren't any.

As usual, the mapping between the data and the view is done with an 
adapter - an ExpandableListAdapter or subclass.


http://developer.android.com/reference/android/widget/ExpandableListAdapter.html

It has to implement a handful of methods to get the number of groups, 
the number of children in each group, create group and child views, etc. 
The backing data structure and the logic behind these methods can be 
anything.


Now if you are looking at SimpleExpandableListAdapter, that's different 
in that it has very specific requirements about how the data is structured.


If your data isn't organized the way the SimpleExpandableListAdapter 
expects, I think it's easier to subclass ExpandableListAdapter and write 
those few methods yourself, rather than trying to massage your data for 
the Simple class.


-- Kostya

14.07.2011 11:56, Jim Graham пишет:

On Thu, Jul 14, 2011 at 01:53:17AM -0500, TreKing wrote:

On Wed, Jul 13, 2011 at 6:16 PM, Jim Grahamspooky1...@gmail.com  wrote:

First, I think that's asking for trouble. If this data is related it
should be in some common object or structure.

I started off heading that way, using SQLite.  I was advised here, and
not much later followed said advice, to use XML instead.  What took me
literally a few lines of code in Tcl, to open the database, query the
database, and print the results, started to take multiple screens of
Java code.  Once this started, I KNEW I was doing something seriously
wrong on the Java side, and abandoned that and went with the advice I'd
gotten here.


Maybe - I, for one, am not really following. An ExpandableList has a
Parent-ListChildren  type relationship. So if I'm following your
example, you'd have a list of brands as the top level list, then within
each of those *each* would have a list of grains, or whatever the
children are.

Thanks---that answered the question I was asking---what the docs in the
developer's guide and the examples in the API demos left me wondering
about.


I think you'd have a maintenance headache if you start doing some kind
of crazy indexing into a giant array to determine the sub-lists.

And normally, I'd agree, but with Tcl code being the original source,
it's a simple matter of letting a Tcl script grab the data, and then
split it out into the appropriate structure(s), first into their own
files, and then while editing strings.xml, just do a quick :r foo
for each of the resulting files and that's it...done.  The data could
either be in a SQLite database or in a structured Tcl script, where each
line would call a proc[1], where the args would be the data for each list.

In fact, as long as the data is in a standard format, it's trivial to
write a script to read it.  For JStrack, I was still a relative
beginner with Tcl (ca. 1996) when I wrote the script that reads
the NHC's FORECAST/ADVISORY (aka Marine Forecast) product and extracts
the data for JStrack's use.  To this day, the only significant changes
to that script have been to make it recognize  storm types that weren't
in there (extratropical storm, subtropical storm, etc.).  That file,
(read_fc.tcl), including lots of LONG blocks of comments, blank lines,
etc., is 358 lines long (according to a quick wc -l).  Given what I know
now, I could probably cut that in half...but as the old saying goes,
poor grammar and all, don't fix it if it ain't broke.  :-)

So no, in this case, re-formatting the data, re-structuring it, etc.,
is not an issue.  Nor is keeping it maintained.  Just a couple of days
ago, I nearly doubled the size of the data, from about 162 entries to
286.  It took FAR longer to do the research (hunting is more like it)
to find the data for the new malting companies, and then find their
typical analysis data, than the few minutes it took to add it all to
the master list.  :-)

Thanks for the info,
--jim

[1] The script that sorts the data out looks something like this:

# run these bits before the procedure to open files, etc.

set nf [open namesfile.xml w] ;# repeat for other data, merge later
puts $nfstring-array name=nameslist  ;# again, repeat...
set allf [list $nf $v1f $v2f] ;# except with more readable var names


# the actual proc, obviously, has more args  In this short
# example, iv value2 is not specified, it's an empty string.

proc addfoo {name value1 {value2 }} {
   puts $nf  item$name/item
   puts $v1f item$value1/item
   puts $v2f item$value2/item
   # and so on.
}

# run after the script to close the files
foreach f $allf { puts $f/string-array  ; close $f }

# If I wanted to, from here, I could append all of these to
# strings.tcl from this script.  I do that manually, though.




--
Kostya Vasilyev

--
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 

[android-developers] Re: How to know what internal process runs an application

2011-07-14 Thread rich friedel


I am an Android advanced developer and I have a good reason to spawn a 
new process.

Awesome so you should know all there is to know about how Android uses 
processes :) not sure why you came here then??? 

Do I really need to dig more in the 
Android source code? 

Yeah with your shitty attitude and rude, arrogant responses I would say that 
is your best route ;) 

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread Kostya Vasilyev
The mapping presumably exists in your data structures - where you can 
get an item by its position (available via 
DialogInterface.OnClickListener), then look up its id.


-- Kostya

14.07.2011 1:33, kamiseq пишет:

OK but still I cannot use the default adapter as I need map selected
item index to entry id!



--
Kostya Vasilyev

--
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] monkeyrunner script for scroll and touch

2011-07-14 Thread frank
Hi ,
I am writing monkeyrunner script to scroll screen, touch on
specific menu item, long touch on an item.

The script should haveonly touch operations as I am working with only
touch enabled device(NO keypad, Full touch device).

I came across one utility called androidlib.py which provides methods
to perform many actions on device. In that there is a scroll()
method,
which is not performing successfully.

path:   https://github.com/eing/moet/blob/master/common/androidlib.py

After first scroll(horizontally in home screen) , the focus went to
contacts shortcut at the bottom of screen and it can't proceed with
the second scroll.
(Note: is it possible to embed touchevent constants like
ACTION_SCROLL
in that method?)

I also tried with MonkeyDevice.drag() api, which requires hardcoded
values of x, y screen coordinates which may not perform operation
when
the script runs on emulator or other device.

Can you please help me with solution or any alternative for the same.

Thanks in advance.
frank

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Strange behavior when launching app from Market

2011-07-14 Thread Alan Jeon
Market app seems to be using getLaunchIntentForPackage from PackageManaer. 
You need to add activity that have CATEGORY_INFO to handle launch from 
market notification. :) 
Check reference from 
linkhttp://developer.android.com/reference/android/content/pm/PackageManager.html#getLaunchIntentForPackage(java.lang.String)
 

Have fun!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Honeycomb: Isochronous endpoint type (currently not supported), When?

2011-07-14 Thread Mark Murphy
u, Jul 14, 2011 at 1:13 AM, Devomat mo...@2aba.de wrote:
 Anyone?  Anywhere? I need it for an USB Audio Device :)

Google does not announce stuff like this in advance. You find out when
we all find out, if and when it ships.

 On 8 Jul., 23:27, Devomat mo...@2aba.de wrote:
 Hello, I need the Isochronous endpoint type for my newest project.
 I've read that it is not implemented yet (API 12: Isochronous endpoint
 type (currently not supported).

 When it will be implemented?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android - System Startup

2011-07-14 Thread Mark Murphy
Questions regarding the firmware should be asked on a discussion list
related to the firmware. See the Community tab on
http://source.android.com

On Thu, Jul 14, 2011 at 3:12 AM, Hareef toar...@gmail.com wrote:
 Hi,

 In android, the system startup in the order of  1 .  Boot Loader,  2.
 Kernal,  3. Init,  4. Zygote,  5. System Server, 6. Activity Manager,
 7. Launcher.

 I want to know in which order, the android system will start up the
 application services??


 Thanks
 Hareef

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Maximum Size of APK File

2011-07-14 Thread Mark Murphy
For distribution on the Android Market, 50MB, IIRC.

On Thu, Jul 14, 2011 at 3:27 AM, Perumss Naren peru2...@gmail.com wrote:
 Hi,

     Any one know what is the Maximum Size of APK File

 Regards,
 Perumal.N

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Maximum Size of APK File

2011-07-14 Thread Perumss Naren
Hi Mark Murphy,

 Thanks for your time and for the information.

Regards,
Perumal.N

On Thu, Jul 14, 2011 at 3:44 PM, Mark Murphy mmur...@commonsware.comwrote:

 For distribution on the Android Market, 50MB, IIRC.

 On Thu, Jul 14, 2011 at 3:27 AM, Perumss Naren peru2...@gmail.com wrote:
  Hi,
 
  Any one know what is the Maximum Size of APK File
 
  Regards,
  Perumal.N

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Parsing issue

2011-07-14 Thread vani reddy
Hi friends,
When i am parsing the xml from the attached file and printing the image urls
in the log.below is the log:
The second imageurl is only half printed.

IMAGE URL
http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
IMAGE URL http://magazine.ateemo.
 IMAGE URL
http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



Why is this  like this??Please reply..
-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: NFC Secure Element

2011-07-14 Thread Fernando Miguélez Palomo


  Have somebody activate the Card Emulation with UICC?

 Yes.

  I tryed it, with SmartMX SE it was no problem Card Emulation was
  running.
  When I tried the ID of my UICC in the Method doSelectSecureElement
  from NFC Service,
  then the Card Emulation was not running, Reader dont detect a Tag.
  
  Somebody knows why doSelectSecureElement Method dont working with
  UICC?

 If the UICC supports SWP, the doSelectSecureElement method works just
 fine here. (ID is 11259376 for UICC)


 Hi Michael,

I am new to this forum and I am impressed of the level your mastership and 
the rest of the members.

Do you mean you could enable card emulation mode from UICC? Could you read 
the contents of a smartcard through an external reader and also from an 
android application?
 

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: web view

2011-07-14 Thread Ahmed Shoeib
how i can download it by myself

do you mean after invoking intent to open this pdf/doc
i will save it on device ??? or what ?

thaks for reply

On Jul 11, 9:36 pm, Kumar Bibek coomar@gmail.com wrote:
 WebView cannot render doc/pdf. You should be launching intents when
 someone hits those links. Moreover, the applications installed on the
 devices might not be able to (in some cases) download and render these
 files. In such scenarios, you would need to download the files
 yourself and then launch the respective intents.

 On Jul 10, 7:52 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:







  hi ,

  now i have awebview

  wv.setWebViewClient(new WebViewClient() {
                                    @Override
                                    public boolean 
  shouldOverrideUrlLoading(WebViewview, String
  url)
                                    {
                                     view.loadUrl(url);
                                      return true;
                                    }
                                  });

                                  wv.loadUrl(file:///android_asset/t2.html);

  t2.html may contain doc/pdf links

  i want to open this links in webview
  or i need another solution to open it

  please help

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Fwd: Parsing issue

2011-07-14 Thread vani reddy
-- Forwarded message --
From: vani reddy vani.reddy.bl...@gmail.com
Date: Thu, Jul 14, 2011 at 4:14 PM
Subject: Parsing issue
To: android-developers@googlegroups.com


Hi friends,
When i am parsing the xml from the attached file and printing the image urls
in the log.below is the log:
The second imageurl is only half printed.

IMAGE URL
http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
IMAGE URL http://magazine.ateemo.
 IMAGE URL
http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



Why is this  like this??Please reply..
-- 
Regards,
Vani Reddy




-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=enpreview_images

image
iid1/iid
image_name10-1.jpg/image_name
mime_typeimage/jpeg/mime_type


image_urlhttp://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081/image_url
 /image

 image
iid2/iid
image_name11-1.jpg/image_name
mime_typeimage/jpeg/mime_type


image_urlhttp://magazine.ateemo.com/uploads/issue_images/2/11-1.jpg?1307133103/image_url
/image

image
iid3/iid
image_name16-1.jpg/image_name
mime_typeimage/jpeg/mime_type


image_urlhttp://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115/image_url
/image

/preview_images

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
You probably have some error in your code.

2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the image
 urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] google map not display

2011-07-14 Thread arun kumar
Hello all,
I want to develop  one application. ie using google map want to display
current location. i register google map api key properly and run exact
coding but in emulator its display only squares in emulator and device.
anybody please help me!!! thanks in advance

manifest file


?xml version=*1.0* encoding=*utf-8*?

manifest xmlns:android=*http://schemas.android.com/apk/res/android;
*

package=*com.bogotobogo.hellogooglemaps
*

android:versionCode=*1
*

android:versionName=*1.0*

uses-permission

android:name=*android.permission.ACCESS_FINE_LOCATION* /

uses-permission

android:name=*android.permission.ACCESS_COARSE_LOCATION* /

uses-permission android:name=*android.permission.INTERNET* /

uses-permission android:name=*android.permission.ACCESS_MOCK_LOCATION*/
uses-permission

application android:icon=*@drawable/icon* android:label=*
@string/app_name*

activity android:name=*.HelloGoogleMaps
*

android:label=*@string/app_name
*

android:theme=*@android:style/Theme.NoTitleBar*

intent-filter

action android:name=*android.intent.action.MAIN* /

category android:name=*android.intent.category.LAUNCHER* /

/intent-filter

/activity

uses-library android:name=*com.google.android.maps* android:required=*
true*/

/application

uses-sdk android:maxSdkVersion=*11* android:minSdkVersion=*1*
android:targetSdkVersion=*7*/

/manifest







main xml file



?xml version=*1.0* encoding=*utf-8*?

com.google.android.maps.MapView

xmlns:android=*http://schemas.android.com/apk/res/android*

android:id=*@+id/mapview*

android:layout_width=*fill_parent*

android:layout_height=*fill_parent*

android:clickable=*true*

android:apiKey=*0lK9PMVN2h5NBY3EwsKPBBSV7TTpIZZGG5JDRiA
*

/







code



package com.bogotobogo.hellogooglemaps;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;

import android.os.Bundle;

public class HelloGoogleMaps extends MapActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
}

@Override
protected boolean isRouteDisplayed() {
 return false;
}
}

whats wrong in my coding?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] google map not display

2011-07-14 Thread nageswara rao rajana
Hi,

   try this

http://mobiforge.com/developing/story/using-google-maps-android

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread vani reddy
Hi,
The same code is working fine on android emulator but its not working on the
device..

On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 You probably have some error in your code.

 2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the image
 urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] why sysfs interface of RTC is not working on android?

2011-07-14 Thread rao
Hi,
I'm trying to set alarm on my development board with honeycomb.

root@...#   ./adb shell echo   /sys/class/rtc/rtc0/wakealarm
root@...# ./adb shell echo +20  /sys/class/rtc/rtc0/wakealarm
root@...# ./adb shell echo standby  /sys/power/state

However, am not seeing any alarm getting set either in the UI or by
doing cat.

Is this a known issue?

Thanks,
Rao

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
Can't help unless you show the code.

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working on
 the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 You probably have some error in your code.

 2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the image
 urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] google map not display

2011-07-14 Thread arun kumar
hello i refer this web site also. but its not working. in log cat couldn't
get connection factory client error will occur what can i do ? please help
me?
On Thu, Jul 14, 2011 at 4:29 PM, nageswara rao rajana nagu.raj...@gmail.com
 wrote:

 Hi,

try this

 http://mobiforge.com/developing/story/using-google-maps-android

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread kamiseq
heh, ok, but first you need to get array(list) of Element objects from
db with ids) then rewrite it to array of CharSequence and when user
clicks on item search for Eleement object in first list. this
should be far easier ;]

thanks for answers!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] google map not display

2011-07-14 Thread nageswara rao rajana
Did you follow each and every step along with Google Map key.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread arun kumar
hello vani  ithink that picture got corrupted otherwise change the picture
extension like png to jpg or jpg to png. then it works fine
On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working on
 the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek havlicek.fi...@gmail.com
  wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the image
 urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] google map not display

2011-07-14 Thread arun kumar
yes i follow step by step but its not working

On Thu, Jul 14, 2011 at 4:56 PM, nageswara rao rajana nagu.raj...@gmail.com
 wrote:

 Did you follow each and every step along with Google Map key.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] google map not display

2011-07-14 Thread nageswara rao rajana
On what api level are you working, and tell me your target avd.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] why sysfs interface of RTC is not working on android?

2011-07-14 Thread Mark Murphy
Questions regarding the firmware are best asked on a list that
actually pertains to the firmware. Visit http://source.android.com and
click on the Community tab.

On Thu, Jul 14, 2011 at 7:11 AM, rao venubyravar...@gmail.com wrote:
 Hi,
 I'm trying to set alarm on my development board with honeycomb.

 root@...#   ./adb shell echo   /sys/class/rtc/rtc0/wakealarm
 root@...# ./adb shell echo +20  /sys/class/rtc/rtc0/wakealarm
 root@...# ./adb shell echo standby  /sys/power/state

 However, am not seeing any alarm getting set either in the UI or by
 doing cat.

 Is this a known issue?

 Thanks,
 Rao

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread vani reddy
Hi Arun,
Its not the picture its the image_url i.e a string value..

On Thu, Jul 14, 2011 at 4:57 PM, arun kumar hariarun2...@gmail.com wrote:


 hello vani  ithink that picture got corrupted otherwise change the picture
 extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working on
 the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the image
 urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] google map not display

2011-07-14 Thread Mark Murphy
On Thu, Jul 14, 2011 at 7:28 AM, arun kumar hariarun2...@gmail.com wrote:
 yes i follow step by step but its not working

My guess is that your emulator or device does not have Internet
access. If this is the emulator, you will probably see that you have
zero bars of signal strength. Try restarting the emulator. If this
persists, there may be something with the network in your office that
is preventing the emulator from working properly.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Need Help regrading sound meter

2011-07-14 Thread Amritesh
Hello Guys,

I need help seriously as I am in middle of this app. and   I am stuck
at this point.
I am making an application which will play songs from phone and also
it has four tracks which allows user to record and play that vocal
records exactly at the time vocals has been recorded while playing
songs.
Now I have also the sound meter for every song player and the vocal
records, but I don't have any idea how to implement the sound meter
functionality as well as the  UI  part of that sound meter .
Guys plz help me out.
I am new to android as well as media thing and I am really stuck at
this time.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: audio output level?

2011-07-14 Thread Amritesh

Hey did u get any solution I need the same thing .
Plz post if you have the solution.
On May 22, 2:43 am, cjl cjl...@gmail.com wrote:
 Is there a way to determine the audio output level of a currently
 playing sound? I found examples of getmaxamplitude when recording from
 the microphone, but couldn't find anything that discussed a playing
 sound's amplitude. Let's say I wanted to create an audio meter or move
 a sprite based on the amplitude of playing sound. Can anyone point me
 in the right direction?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread Kostya Vasilyev

Use your own adapter then:

AlertDialog.Builder.setAdapter

And get the elements directly from a Cursor, or from any other data 
structure.


-- Kostya

14.07.2011 15:25, kamiseq пишет:

heh, ok, but first you need to get array(list) of Element objects from
db with ids) then rewrite it to array of CharSequence and when user
clicks on item search for Eleement object in first list. this
should be far easier ;]

thanks for answers!



--
Kostya Vasilyev

--
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: NFC Secure Element

2011-07-14 Thread Michael Roland
Hallo,

 Do you mean you could enable card emulation mode from UICC? Could you
 read the contents of a smartcard through an external reader and also
 from an android application?


Yes, I managed to enable card emulation mode with a SWP-UICC as secure
element. As the NFC controller allows only external card emulation for
secure elements connected through SWP, I could only access the smartcard
from an external reader but not through an Android app.

br
Michael

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] MMS on Network

2011-07-14 Thread A N K ! T
Any one..

On Wed, Jul 13, 2011 at 12:24 PM, A N K ! T ankit.awasth...@gmail.comwrote:

 Thanks Kirubakaran,

 I have tried that. i dont want to open dialog of available apps. i Just
 want to send it through Messaging Client.

 any clue?


 On Tue, Jul 12, 2011 at 3:02 PM, kirubakaran S 
 kirubakaran1...@gmail.comwrote:

 Hi,
   Use the same intent. Attach the message content in extras field of
 Intent. Intent is the best way to
 send MMS.

 On Tue, Jul 12, 2011 at 2:50 PM, A N K ! T ankit.awasth...@gmail.comwrote:

 Hi All,

  I have an issue.  I want to send MMS. if i use Intent then it is
 starting application which can send MMS.

 I need to sent it by default. I have gone through the code of MMS native
 app there is a Class called MMSMessageSender which is responsible for
 sending mms(I think). but dont know how to use that class or which code
 should i use to do the task.

 --
 Thanks  Regards,
 Ankit Awasthi

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 cheers
 Kirubakaran.S
 http://kirubakaran-blessedblogger.blogspot.com/


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en








-- 
Thanks  Regards,
Ankit Awasthi

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] google map not display

2011-07-14 Thread Raghav Sood
Are you sure the api key for Google maps corresponds with whatever
certificate you are currently signing your app with? If the key does not
match the map tiles won't be displayed.

On Thu, Jul 14, 2011 at 5:03 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Jul 14, 2011 at 7:28 AM, arun kumar hariarun2...@gmail.com
 wrote:
  yes i follow step by step but its not working

 My guess is that your emulator or device does not have Internet
 access. If this is the emulator, you will probably see that you have
 zero bars of signal strength. Try restarting the emulator. If this
 persists, there may be something with the network in your office that
 is preventing the emulator from working properly.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
Add || localName.equalsIgnoreCase(image_url) to the other image_url
condition, otherwise works fine for me.

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


 On Thu, Jul 14, 2011 at 4:57 PM, arun kumar hariarun2...@gmail.comwrote:


 hello vani  ithink that picture got corrupted otherwise change the picture
 extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek havlicek.fi...@gmail.com
  wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working on
 the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the
 image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread vani reddy
Hi Filip,
Did you mean to do this,

if(qName.equalsIgnoreCase(image_url) ||
localName.equalsIgnoreCase(image_url));
 {
 System.out.println(IMAGE URL :: +currentValue);
 }
in the endElement method??
For me its not working on the device.Did u try running this code on the
device??

On Thu, Jul 14, 2011 at 5:56 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Add || localName.equalsIgnoreCase(image_url) to the other image_url
 condition, otherwise works fine for me.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


 On Thu, Jul 14, 2011 at 4:57 PM, arun kumar hariarun2...@gmail.comwrote:


 hello vani  ithink that picture got corrupted otherwise change the
 picture extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working
 on the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the
 image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at

[android-developers] Add custom effects to Android Camera

2011-07-14 Thread Shashank
Hi,

Android provides MediaRecorder Class for Video Recording use case. It
also provides a dedicated Camera class to configure video capture.
This Camera class by default provides a huge list of color filters and
effects.  By appropriately setting the Camera parameters one can do
video recording with effects.

Now, i want to add custom effects to video recording. I dont see any
plug-in-able facility in either MediaRecorder or Camera. If there is,
do let me know.

Other option is to get hold of capture buffers containing
raw(uncompressed) data, apply effects and use custom media recorder
engine.
But again I don't see any API for the same. (though preview buffers
are available through callback)

So the second question is, how to access capture buffers.

regards
Shashank

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
Yes, works fine on the device.

Try to put those two lines in the beginning of your characters(...) method

String chars = new String(ch, start, length).trim();
if (chars.equals()) return;

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 Did you mean to do this,

 if(qName.equalsIgnoreCase(image_url) ||
 localName.equalsIgnoreCase(image_url));
  {
  System.out.println(IMAGE URL :: +currentValue);
  }
 in the endElement method??
 For me its not working on the device.Did u try running this code on the
 device??


 On Thu, Jul 14, 2011 at 5:56 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 Add || localName.equalsIgnoreCase(image_url) to the other image_url
 condition, otherwise works fine for me.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


 On Thu, Jul 14, 2011 at 4:57 PM, arun kumar hariarun2...@gmail.comwrote:


 hello vani  ithink that picture got corrupted otherwise change the
 picture extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working
 on the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the
 image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 You received this message because you are subscribed to the Google
 

[android-developers] What is this soc.io mall thing?

2011-07-14 Thread Jim Graham
I just got an e-mail (spam?) from something called soc.io mall.  Does
anyone know if this is legit?  Spam?

Later,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W
Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.com

   Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread vani reddy
Hi Filip,
I tried implementing what u said ,bu its not working..Can u please send me
the MyXMLHandler.java file?

On Thu, Jul 14, 2011 at 6:32 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Yes, works fine on the device.

 Try to put those two lines in the beginning of your characters(...) method

 String chars = new String(ch, start, length).trim();
 if (chars.equals()) return;


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 Did you mean to do this,

 if(qName.equalsIgnoreCase(image_url) ||
 localName.equalsIgnoreCase(image_url));
  {
  System.out.println(IMAGE URL :: +currentValue);
  }
 in the endElement method??
 For me its not working on the device.Did u try running this code on the
 device??


 On Thu, Jul 14, 2011 at 5:56 PM, Filip Havlicek havlicek.fi...@gmail.com
  wrote:

 Add || localName.equalsIgnoreCase(image_url) to the other image_url
 condition, otherwise works fine for me.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


 On Thu, Jul 14, 2011 at 4:57 PM, arun kumar hariarun2...@gmail.comwrote:


 hello vani  ithink that picture got corrupted otherwise change the
 picture extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not working
 on the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the
 image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
http://pastebin.com/iBhZNwu8

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 I tried implementing what u said ,bu its not working..Can u please send me
 the MyXMLHandler.java file?


 On Thu, Jul 14, 2011 at 6:32 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 Yes, works fine on the device.

 Try to put those two lines in the beginning of your characters(...) method

 String chars = new String(ch, start, length).trim();
 if (chars.equals()) return;


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 Did you mean to do this,

 if(qName.equalsIgnoreCase(image_url) ||
 localName.equalsIgnoreCase(image_url));
  {
  System.out.println(IMAGE URL :: +currentValue);
  }
 in the endElement method??
 For me its not working on the device.Did u try running this code on the
 device??


 On Thu, Jul 14, 2011 at 5:56 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Add || localName.equalsIgnoreCase(image_url) to the other image_url
 condition, otherwise works fine for me.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


 On Thu, Jul 14, 2011 at 4:57 PM, arun kumar hariarun2...@gmail.comwrote:


 hello vani  ithink that picture got corrupted otherwise change the
 picture extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not
 working on the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing the
 image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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 

Re: [android-developers] How to fill Android system Internal Memory

2011-07-14 Thread Fred Niggle
Why do you want to do that?

On 14/07/2011, Hareef toar...@gmail.com wrote:
 Hi,

 In Android, any tool is available to fill the Internal and External
 Memory?

 Thanks
 Hareef

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] android:layout_above does not work while android:layout_below does

2011-07-14 Thread Jenus Dong
fill_parent replace match_parent,try it. targetsdkversion is 3?
在 2011-7-14 下午2:33,Shri shri.bo...@gmail.com写道:
 I see a red rectangle above a blue rectangle with this layout using
 layout_below on the lower blue rectangle.

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:layout_width=match_parent
 android:layout_height=match_parent 
 View android:id=@+id/id_red_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:background=# /
 View android:id=@+id/id_blue_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:layout_below=@+id/id_red_view
 android:background=#ffff /
 /RelativeLayout

 However, with this layout using layout_above on the upper red
 rectangle, I see just the blue rectangle. HierarchyViewer shows that
 the red rectangle *is* above the blue rectangle, but its getHeight()
 is 0.

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:layout_width=match_parent
 android:layout_height=match_parent 
 View android:id=@+id/id_red_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:layout_above=@+id/id_blue_view
 android:background=# /
 View android:id=@+id/id_blue_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:background=#ffff /
 /RelativeLayout

 Setting android:minHeight on the red rectangle does not fix the
 problem. I tried swapping the order of the views to avoid a forward
 reference, but that does not help either. Any idea why this is
 happening? Is layout_above just broken?

 Thanks,
 Shri

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: What is this soc.io mall thing?

2011-07-14 Thread Streets Of Boston
Got the same.
They may be somewhat legit, but their e-mails sure look spammish.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
http://i51.tinypic.com/2yorh95.png

2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 hi Filip,
 Find the attched screenshot when i run your code from the link u gave


 On Thu, Jul 14, 2011 at 7:02 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 http://pastebin.com/iBhZNwu8


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 I tried implementing what u said ,bu its not working..Can u please send
 me the MyXMLHandler.java file?


 On Thu, Jul 14, 2011 at 6:32 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Yes, works fine on the device.

 Try to put those two lines in the beginning of your characters(...)
 method

 String chars = new String(ch, start, length).trim();
 if (chars.equals()) return;


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 Did you mean to do this,

 if(qName.equalsIgnoreCase(image_url) ||
 localName.equalsIgnoreCase(image_url));
  {
  System.out.println(IMAGE URL :: +currentValue);
  }
 in the endElement method??
 For me its not working on the device.Did u try running this code on the
 device??


 On Thu, Jul 14, 2011 at 5:56 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Add || localName.equalsIgnoreCase(image_url) to the other image_url
 condition, otherwise works fine for me.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


 On Thu, Jul 14, 2011 at 4:57 PM, arun kumar 
 hariarun2...@gmail.comwrote:


 hello vani  ithink that picture got corrupted otherwise change the
 picture extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not
 working on the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

   2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing
 the image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit 

[android-developers] Re: NFC Secure Element

2011-07-14 Thread Fernando Miguélez
Interesting.

Did you get it tweaking the code by yourself as described above or you used
SEEK patches? I am currently trying to get some results myself but I am new
to Android platform development and I am a little bit lost.

2011/7/14 Michael Roland mi.rol...@gmail.com

 Hallo,

  Do you mean you could enable card emulation mode from UICC? Could you
  read the contents of a smartcard through an external reader and also
  from an android application?


 Yes, I managed to enable card emulation mode with a SWP-UICC as secure
 element. As the NFC controller allows only external card emulation for
 secure elements connected through SWP, I could only access the smartcard
 from an external reader but not through an Android app.

 br
 Michael



-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: App behaves wired after the task is killed by a TaskKiller

2011-07-14 Thread dillipk
Thank you for the replies..

I understand that, my app no way can listen to any event when , killed
by a task killer.

But,  WHY my app behaves weird when it restarts from that point?  As I
mentioned - instead of starting the App gracefully(by starting the
first screen which is a splash screen), it directly go to some other
screen with EMPTY data.. Whole app behaves wired and the data is empty
everywhere.

Any idea? or any work around to fix this?

Thanks,
DK




On Jul 13, 8:07 pm, Dianne Hackborn hack...@android.com wrote:
 A task killer doesn't do anything more than the platform would when it needs
 to kill your process when it is in the background.  You just need to deal
 with this case.









 On Wed, Jul 13, 2011 at 9:22 AM, dillipk codersnet2...@gmail.com wrote:
  Hello,
    My app have some issues after being killed by Task Killer.

  Sequence: -
  - Run the app
  - Press HOME key
  - Kill all the tasks by TaskKiller
  - Again run the app..

   At this point, instead of starting the App gracefully(by starting the
  first screen which is a splash screen), it directly go to some other
  screen with EMPTY data.. Whole app behaves wired and the data is empty
  everywhere.

  Can my app listen to any event, when it is killed by a TaskKiller..? I
  tried debugging by going to onDestroy(), but it never got fired..

  Any help on this would greatly appreciated..

  Thanks in advance..

  DK

  --
  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...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: App behaves wired after the task is killed by a TaskKiller

2011-07-14 Thread Raghav Sood
Save all your data in onDestroy() and read it in onCreate. That way your
data will be saved when the app is destroyed and you can recover it in
onCreate().

On Thu, Jul 14, 2011 at 7:42 PM, dillipk codersnet2...@gmail.com wrote:

 Thank you for the replies..

 I understand that, my app no way can listen to any event when , killed
 by a task killer.

 But,  WHY my app behaves weird when it restarts from that point?  As I
 mentioned - instead of starting the App gracefully(by starting the
 first screen which is a splash screen), it directly go to some other
 screen with EMPTY data.. Whole app behaves wired and the data is empty
 everywhere.

 Any idea? or any work around to fix this?

 Thanks,
 DK




 On Jul 13, 8:07 pm, Dianne Hackborn hack...@android.com wrote:
  A task killer doesn't do anything more than the platform would when it
 needs
  to kill your process when it is in the background.  You just need to deal
  with this case.
 
 
 
 
 
 
 
 
 
  On Wed, Jul 13, 2011 at 9:22 AM, dillipk codersnet2...@gmail.com
 wrote:
   Hello,
 My app have some issues after being killed by Task Killer.
 
   Sequence: -
   - Run the app
   - Press HOME key
   - Kill all the tasks by TaskKiller
   - Again run the app..
 
At this point, instead of starting the App gracefully(by starting the
   first screen which is a splash screen), it directly go to some other
   screen with EMPTY data.. Whole app behaves wired and the data is empty
   everywhere.
 
   Can my app listen to any event, when it is killed by a TaskKiller..? I
   tried debugging by going to onDestroy(), but it never got fired..
 
   Any help on this would greatly appreciated..
 
   Thanks in advance..
 
   DK
 
   --
   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...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: App behaves wired after the task is killed by a TaskKiller

2011-07-14 Thread Kostya Vasilyev

onDestroy doesn't get called when the process is killed.

As for why the app is acting strange - how about debugging it?

Use Debug.waitForDebugger somewhere in your code to find out what your 
code does after the restart as a new process.


-- Kostya

14.07.2011 18:25, Raghav Sood пишет:
Save all your data in onDestroy() and read it in onCreate. That way 
your data will be saved when the app is destroyed and you can recover 
it in onCreate().


--
Kostya Vasilyev

--
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Activity finish() not working properly

2011-07-14 Thread Jalal
Dear Android Community,

I'm having a strage problem and have no idea what might be wrong. I
have an option menu in an Activity, let's call it A, in which one of
the options needs to start a new Activity, B, and close A. The problem
is that the caller activity, B, is not closing. Instead Activity B is
launched, closes and goes back to Activity A. Weird!

Here's a sample of my code...

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case x:
...//do something
break;
case y:
..//do something else
break;
case z:
Intent intent = new Intent(A.this, B.class);
startActivity(intent);
this.finish();
break;
}
return true;
}

I have tried moving the order in every way possible and some other
workarounds I have found online, but nothing seems to work. I hope
someone has encountered this problem before or has an idea of what
might be wrong. Thanks in advance.

Cheers,
Jalal

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] The TabWidget Issue

2011-07-14 Thread Giorgio Torres
Hey guys, I'm facing some troubles with trying to solve the TabWidget issue.
I hope one of you who has already faced the same problem could help me!

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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: What is this soc.io mall thing?

2011-07-14 Thread Tancho
It's a Proprietary Market solution, from what I can see.
I just got the same mail and probably from some of the mailing lists I
am part of...
It doesn't look like spam, since it is only a single mail..
The app itself is a developer oriented market, provides selling apps
using CC sales and PayPal.
They offer apps and books, and from I could see from the site, they
plan on selling music and media in the future...


cya

On Jul 14, 3:57 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Got the same.
 They may be somewhat legit, but their e-mails sure look spammish.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
The XML is downloaded as a whole before initiating the SAX parser so this
shouldn't be the case. I just suspect vani's device is somehow broken since
the code works for me in emulator/on device and for vani in emulator but not
on device.

2011/7/14 Kostya Vasilyev kmans...@gmail.com

 **
 If parsing directly from the network, can't the characters method be
 called more than once for a single element, depending on how the data stream
 broken into packets?

 I don't know anything about the SAX parser, but that's what comes to
 mind...

 If that's the case, the code doesn't handle it - it assumes that
 characters receives the entire text portion between the tags.

 -- Kostya

 14.07.2011 17:59, Filip Havlicek пишет:

 http://i51.tinypic.com/2yorh95.png

 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 hi Filip,
 Find the attched screenshot when i run your code from the link u gave


 On Thu, Jul 14, 2011 at 7:02 PM, Filip Havlicek havlicek.fi...@gmail.com
  wrote:

 http://pastebin.com/iBhZNwu8


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 I tried implementing what u said ,bu its not working..Can u please send
 me the MyXMLHandler.java file?


 On Thu, Jul 14, 2011 at 6:32 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Yes, works fine on the device.

 Try to put those two lines in the beginning of your characters(...)
 method

 String chars = new String(ch, start, length).trim();
 if (chars.equals()) return;


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Filip,
 Did you mean to do this,

 if(qName.equalsIgnoreCase(image_url) ||
 localName.equalsIgnoreCase(image_url));
  {
  System.out.println(IMAGE URL :: +currentValue);
  }
 in the endElement method??
 For me its not working on the device.Did u try running this code on
 the device??


 On Thu, Jul 14, 2011 at 5:56 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Add || localName.equalsIgnoreCase(image_url) to the other image_url
 condition, otherwise works fine for me.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi Arun,
 Its not the picture its the image_url i.e a string value..


  On Thu, Jul 14, 2011 at 4:57 PM, arun kumar 
 hariarun2...@gmail.com wrote:


 hello vani  ithink that picture got corrupted otherwise change the
 picture extension like png to jpg or jpg to png. then it works fine

 On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 Can't help unless you show the code.


 2011/7/14 vani reddy vani.reddy.bl...@gmail.com

 Hi,
 The same code is working fine on android emulator but its not
 working on the device..


 On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek 
 havlicek.fi...@gmail.com wrote:

 You probably have some error in your code.

  2011/7/14 vani reddy vani.reddy.bl...@gmail.com



 -- Forwarded message --
 From: vani reddy vani.reddy.bl...@gmail.com
 Date: Thu, Jul 14, 2011 at 4:14 PM
 Subject: Parsing issue
 To: android-developers@googlegroups.com


 Hi friends,
 When i am parsing the xml from the attached file and printing
 the image urls in the log.below is the log:
 The second imageurl is only half printed.

 IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/1/10-1.jpg?1307133081
 IMAGE URL http://magazine.ateemo.
  IMAGE URL
 http://magazine.ateemo.com/uploads/issue_images/3/16-1.jpg?1307133115



 Why is this  like this??Please reply..
 --
 Regards,
 Vani Reddy




 --
 Regards,
 Vani Reddy

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Regards,
 Vani Reddy

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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...@googlegroups.com
 For more options, visit this group at
 

[android-developers] Re: The TabWidget Issue

2011-07-14 Thread Corey Z
A description of the issue would help.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread kamiseq
ok, that could be perferct but maybe I ll say something stupid.

If I write my custom adapter I have to pass row layout to it? right or
can I somhow avoid that and use the one builder is using???

;-)

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread Kostya Vasilyev
Your adapter (any adapter, really) should have a getView method, where 
you can inflate any layout from a resource.


14.07.2011 19:28, kamiseq пишет:

ok, that could be perferct but maybe I ll say something stupid.

If I write my custom adapter I have to pass row layout to it? right or
can I somhow avoid that and use the one builder is using???

;-)



--
Kostya Vasilyev

--
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity finish() not working properly

2011-07-14 Thread Kostya Vasilyev
I'm thinking that activity B crashes somewhere in onCreate / onStart / 
onResume, and Android restarts the last known good activity A.


Check the logcat for crash messages.

-- Kostya

14.07.2011 18:46, Jalal пишет:

Dear Android Community,

I'm having a strage problem and have no idea what might be wrong. I
have an option menu in an Activity, let's call it A, in which one of
the options needs to start a new Activity, B, and close A. The problem
is that the caller activity, B, is not closing. Instead Activity B is
launched, closes and goes back to Activity A. Weird!

Here's a sample of my code...

@Override
public boolean onOptionsItemSelected(MenuItem item) {
 switch (item.getItemId()) {
 case x:
 ...//do something
break;
 case y:
..//do something else
break;
 case z:
Intent intent = new Intent(A.this, B.class);
startActivity(intent);
this.finish();
break;
 }
 return true;
}

I have tried moving the order in every way possible and some other
workarounds I have found online, but nothing seems to work. I hope
someone has encountered this problem before or has an idea of what
might be wrong. Thanks in advance.

Cheers,
Jalal



--
Kostya Vasilyev

--
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread kamiseq
ok I just thought there is another way, thanks!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Galaxy SII Mail App - Bugs

2011-07-14 Thread Brill Pappin
We're seeing some problem with the Galaxy S/SII native mail app.
It seems their email content input field turns off word suggestions in one 
of our keyboards for some silly reason.

- Does anyone know how we can submit a bug report to Samsung for the app?
- Does anyone know what IME options are set for the content input on those 
apps?

For those that don't know, setting the right inputType in your input fields 
is crucial. The keyboard you use actually uses that information and you can 
really give your users a hard time if its not done properly.

We are currently getting a lot of support requests on this issue, but have 
figured out it's fairly specific to the Samsung mail app used on the GS2 
(and maybe the GS). S far we have been unable to find any way to contact 
Samsung about the issue.

If anyone out there is willing to help us debug this problem, let me know.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Latin IME Keyboard

2011-07-14 Thread Brill Pappin
Don't forget your working with a limited amount of memory. Even if the phone 
happens to have tones of it, it still has to share with the rest of the 
phone.
We distribute two different IME's and we found that out maximum reasonable 
dictionary size was about 100k+ for words simply loaded into memory.

The simple fact is that you simply can't load the entire English dictionary 
into memory, its just not particle.
The way you resolve that is to take the top words your users are likely to 
need and include those.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: The TabWidget Issue

2011-07-14 Thread Giorgio Torres
Sorry, I thought that it was a known problem!
It happens when we define a TabWidget inside a TabHost in an xml layout file, 
it finds a null pointer exception saying that the TabWidget class was not found!
I've tryied some solutions i found over de internet, but none was helpfull. It 
is a bug of the android sdk. That's why i thought it was an already known 
problem!

But it still doesn't working! :(

thank you.

--- Em qui, 14/7/11, Corey Z czua...@gmail.com escreveu:

De: Corey Z czua...@gmail.com
Assunto: [android-developers] Re: The TabWidget Issue
Para: android-developers@googlegroups.com
Data: Quinta-feira, 14 de Julho de 2011, 15:25

A description of the issue would help.



-- 

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...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: The TabWidget Issue

2011-07-14 Thread Mark Murphy
Here is a sample project demonstrating the use of a TabWidget:

https://github.com/commonsguy/cw-android/tree/master/Fancy/Tab

It works fine.

On Thu, Jul 14, 2011 at 12:39 PM, Giorgio Torres
giorgio.tor...@yahoo.comwrote:

 Sorry, I thought that it was a known problem!
 It happens when we define a TabWidget inside a TabHost in an xml layout
 file, it finds a null pointer exception saying that the TabWidget class was
 not found!
 I've tryied some solutions i found over de internet, but none was helpfull.
 It is a bug of the android sdk. That's why i thought it was an already known
 problem!

 But it still doesn't working! :(

 thank you.

 --- Em *qui, 14/7/11, Corey Z czua...@gmail.com* escreveu:


 De: Corey Z czua...@gmail.com
 Assunto: [android-developers] Re: The TabWidget Issue
 Para: android-developers@googlegroups.com
 Data: Quinta-feira, 14 de Julho de 2011, 15:25

 A description of the issue would help.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Galaxy SII Mail App - Bugs

2011-07-14 Thread Mark Murphy
On Thu, Jul 14, 2011 at 12:19 PM, Brill Pappin bpap...@sixgreen.com wrote:
 We're seeing some problem with the Galaxy S/SII native mail app.
 It seems their email content input field turns off word suggestions in one
 of our keyboards for some silly reason.
 - Does anyone know how we can submit a bug report to Samsung for the app?

I think there are some forums off their Samsung Innovator site:

http://innovator.samsungmobile.com/platform.main.do?platformId=1

 - Does anyone know what IME options are set for the content input on those
 apps?
 For those that don't know, setting the right inputType in your input fields
 is crucial. The keyboard you use actually uses that information and you can
 really give your users a hard time if its not done properly.

They have a remote test facility that you can use, so perhaps you can
instrument your keyboard to log what you're receiving and test it on
their device.

Note that I haven't tried their remote testing stuff so I do not know
how well it works.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] qHD layouts?

2011-07-14 Thread Greg Donald
What do I need to name my layout folders to get a qHD device to notice
them?  I have tried layout-large and layout-large-port but the device
refuses to use them and still uses my layouts from my layout and
layout-port folders.

The device I am working with is the EVO 3D.  The resolution is
960x540, which isn't listed here:

http://developer.android.com/guide/practices/screens_support.html

The device is drawing my app in the top middle of the screen, with
huge black borders around it, even with my layout's height and width
both being set to fill_parent.

How do I support qHD with proper layouts?


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Sent SMS doesn't show up in the messaging app?

2011-07-14 Thread rich friedel
@Mark Murphy

 Second, since the MESSAGING App did not send the SMS, it should not
 show up as an outbound message, any more than sending email through a
 Yahoo Mail account should show up as an outbound message in Gmail.

I don't believe that your analogy fits with the SMS/MMS content provider 
issue. It could only be equivalent by saying that you have only ONE email 
address and Gmail was the MAIN way to normally manage all incoming and 
outgoing emails on your device. The app is ambiguously named Email. 
Finally, make it so that ALL incoming email goes to your Email 
(read: Gmail) inbox but any outgoing email must be inserted via an 
undocumented content provider.

This is exactly how SMS/MMS works. You have *one *phone number, all incoming 
and outgoing messages are normally handled via the stock messaging 
application. If you install a third-party application all the messages still 
go into the stock message app even though they are not intended to do so 
(just like I wouldn't want my Yahoo email ending up in my Gmail inbox).

This behavior is pretty much why users expect to see your outgoing message 
in their stock application. Furthermore, there is absolutely no indication 
to the user what-so-ever that the stock messaging application is in fact a 
third-party application. It is presented from the beginning as if it a 
default built-in part of Android.

With all that said, I get your argument here and elsewhere regarding this 
issue. I fully agree with it too! However, I feel that the way that SMS/MMS 
messaging is implemented and presented by the device manufacturers forces 
the developer's hand into having to use the stock app's storage content 
provider.

btw I know there is supposedly a way to take priority in an ordered 
broadcast, however I think on most devices the incoming message will always 
be delivered to the stock inbox no matter what priority you set. In other 
words, I don't believe it is possible to consistently intercept and/or 
prevent a message from ending up in the stock message storage system.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] qHD layouts?

2011-07-14 Thread Dianne Hackborn
There is no such thing as a qHD layout.  Just write your layout to adjust to
the screen size using layout managers and such.

Worth saying again: do not target specific screen sizes.  You will be
continually unhappy.

On Thu, Jul 14, 2011 at 9:59 AM, Greg Donald gdon...@gmail.com wrote:

 What do I need to name my layout folders to get a qHD device to notice
 them?  I have tried layout-large and layout-large-port but the device
 refuses to use them and still uses my layouts from my layout and
 layout-port folders.

 The device I am working with is the EVO 3D.  The resolution is
 960x540, which isn't listed here:

 http://developer.android.com/guide/practices/screens_support.html

 The device is drawing my app in the top middle of the screen, with
 huge black borders around it, even with my layout's height and width
 both being set to fill_parent.

 How do I support qHD with proper layouts?


 --
 Greg Donald
 destiney.com | gregdonald.com

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to know what internal process runs an application

2011-07-14 Thread Dianne Hackborn
Sorry, there is no way to know.  Processes are basically anonymous
containers in which to run code.  If you are needing to distinguish them,
you have a problem in your design.

On Tue, Jul 12, 2011 at 1:43 AM, elDoudou the.edouard.merc...@gmail.comwrote:

 Hello Doug and thank you.

 The process id does not indicate the Android declared process in the
 AndroidManifest.xml file, unfortunately. What I need to know is the
 android:process which causes the process to start. If I declare a
 service in the manifest with a specific process name (tag
 android:process), how do I know at runtime when this specific
 service process causes the Application::onCreate() method to be
 invoked, please?

 Thank you for your time and support. Regards,
 Édouard

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Sent SMS doesn't show up in the messaging app?

2011-07-14 Thread Mark Murphy
On Thu, Jul 14, 2011 at 1:28 PM, rich friedel rich.frie...@gmail.com wrote:
 This is exactly how SMS/MMS works. You have one phone number, all incoming
 and outgoing messages are normally handled via the stock messaging
 application. If you install a third-party application all the messages still
 go into the stock message app even though they are not intended to do so
 (just like I wouldn't want my Yahoo email ending up in my Gmail inbox).

But that is not required behavior of third-party SMS clients.

 This behavior is pretty much why users expect to see your outgoing message
 in their stock application. Furthermore, there is absolutely no indication
 to the user what-so-ever that the stock messaging application is in fact a
 third-party application. It is presented from the beginning as if it a
 default built-in part of Android.

Only on those devices that ship it.

 With all that said, I get your argument here and elsewhere regarding this
 issue. I fully agree with it too! However, I feel that the way that SMS/MMS
 messaging is implemented and presented by the device manufacturers forces
 the developer's hand into having to use the stock app's storage content
 provider.

Only if that provider is there.

Don't get me wrong. IMHO, the various content providers (SMS,
calendar, etc.) should have been in the OS, rather than in their
respective applications. However, they aren't, and they are not part
of the Compatibility Definition Document. As a result, they do not
have to exist on any given Market device.

We have enough problem making compatible applications when everybody
plays by the documented rules. Developers who invent their own rules,
as you have above, are simply asking for trouble down the road, just
as those who invented all devices will be 320x480 and all devices
will have /sdcard did. I am sure that those developers had unshakable
faith in those truths as you do in yours, despite Googlers saying not
to do any of that.

IOW, the status may not always be quo.

 btw I know there is supposedly a way to take priority in an ordered
 broadcast, however I think on most devices the incoming message will always
 be delivered to the stock inbox no matter what priority you set.

Nope:

https://github.com/commonsguy/cw-advandroid/tree/master/SMS/Monitor

 In other
 words, I don't believe it is possible to consistently intercept and/or
 prevent a message from ending up in the stock message storage system.

Nope. See the above project for a sample.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: startService() runs the service in a seperate process?

2011-07-14 Thread Dianne Hackborn
No that is absolutely not true.

Services run in the same process as other components (unless you explicitly
change this with android:process).

Services run in the same THREAD as your other components.

All of this is documented here:
http://developer.android.com/reference/android/app/Service.html

In particular:
 What is a Service?

Most confusion about the Service class actually revolves around what it is *
not*:

   - A Service is *not* a separate process. The Service object itself does
   not imply it is running in its own process; unless otherwise specified, it
   runs in the same process as the application it is part of.
   - A Service is *not* a thread. It is not a means itself to do work off of
   the main thread (to avoid Application Not Responding errors).

On Thu, Jul 14, 2011 at 1:27 AM, kamiseq kami...@gmail.com wrote:

 services are running in different process, you can bind to it so any
 activity could exchange data with it. start service just starts
 service

 hope that helped

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How come extending ListActivity results in a crash

2011-07-14 Thread Dianne Hackborn
It's because you have a bug in your code.  You should consider debugging it.
:)

On Wed, Jul 13, 2011 at 2:54 PM, Steven Bruce stevebruc...@gmail.comwrote:

 I have changed my Bluetooth class from extends Activity to extends
 ListActivity. Now everytime I run the program BOOM!! It bombs out!
 What the hell is going on??

 Steve

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Google Calendar APIs for the android

2011-07-14 Thread sabanim
I want in webview to push a button on my webpage and add an event to
the google calendar on the android phone.
Trouble is I get pointed to Google Calendar APIs webpage and it has no
examples or tutorials on this.

I learn by example and cannot translate this to the android.  I need
an example or tutorial.

Can someone please help?. This is what I have so far.

public class button7 extends Activity{

 WebView wb = null;

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.buttons);
  wb = new WebView(this);
  wb.setWebViewClient(new HelloWebViewClient());
  wb.getSettings().setJavaScriptEnabled(true);
  wb.loadUrl(http://www.whatever website.com);
  setContentView(wb);
 }

 private class HelloWebViewClient extends WebViewClient {

  public boolean shouldOverrideUrlLoading(WebView view, String url) {
   view.loadUrl(url);
   SetCalenderEntry(1,Test,Is this working,At home);
   return true;
  }

 }




 private void SetCalenderEntry(int i,  String subject, String body,
String location)
 {
ContentValues event = new ContentValues();
event.put(calendar_id, i);
event.put(title, subject);
event.put(description, body);
event.put(eventLocation, location);
long startTime = System.currentTimeMillis() + 1000 * 60 * 60;
long endTime = System.currentTimeMillis() + 1000 * 60 * 60 * 2;
event.put(dtstart, startTime);
event.put(dtend, endTime);
Uri eventsUri = Uri.parse(content://calendar/events);
getContentResolver().insert(eventsUri, event);
 }

 public boolean onKeyDown(int keyCode, KeyEvent event) {
  if (keyCode == KeyEvent.KEYCODE_BACK  wb.canGoBack())
   wb.goBack();
  return super.onKeyDown(keyCode, event);
 }
}

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: startService() runs the service in a seperate process?

2011-07-14 Thread Mark Murphy
On Thu, Jul 14, 2011 at 2:07 PM, Dianne Hackborn hack...@android.com wrote:
 A Service is not a separate process. The Service object itself does not
 imply it is running in its own process; unless otherwise specified, it runs
 in the same process as the application it is part of.
 A Service is not a thread. It is not a means itself to do work off of the
 main thread (to avoid Application Not Responding errors).

A Service is not a service, by which we mean it is not a Windows
service, the sort of thing that is designed to run for long periods of
time.

A Service is not a floor wax. A Service might be a dessert topping, in
Android releases that are desserts (vs. other forms of tasty
treats).

:-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] qHD layouts?

2011-07-14 Thread Greg Donald
I'm not targeting anything, I'm trying to fix my app.  I'm trying to
get my app that looks great on Droid, Evo, and Hero to also look great
on Evo 3D.  The specs say Evo 3G has qHD resolution, for whatever
that's worth.  How do I make it not have huge black borders?  My
layout uses fill_parent in both dimensions.  Obviously I need to make
some sort of change or addition to my code or layouts or graphics?


On Thu, Jul 14, 2011 at 1:02 PM, Dianne Hackborn hack...@android.com wrote:
 There is no such thing as a qHD layout.  Just write your layout to adjust to
 the screen size using layout managers and such.
 Worth saying again: do not target specific screen sizes.  You will be
 continually unhappy.

 On Thu, Jul 14, 2011 at 9:59 AM, Greg Donald gdon...@gmail.com wrote:

 What do I need to name my layout folders to get a qHD device to notice
 them?  I have tried layout-large and layout-large-port but the device
 refuses to use them and still uses my layouts from my layout and
 layout-port folders.

 The device I am working with is the EVO 3D.  The resolution is
 960x540, which isn't listed here:

 http://developer.android.com/guide/practices/screens_support.html

 The device is drawing my app in the top middle of the screen, with
 huge black borders around it, even with my layout's height and width
 both being set to fill_parent.

 How do I support qHD with proper layouts?


 --
 Greg Donald
 destiney.com | gregdonald.com

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Greg Donald
destiney.com | gregdonald.com

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] automate testing of flash games

2011-07-14 Thread rahul jain
How to automate testing of flash games on android ?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Calendar APIs for the android

2011-07-14 Thread TreKing
On Thu, Jul 14, 2011 at 1:13 PM, sabanim rickd...@gmail.com wrote:

 I want in webview to push a button on my webpage and add an event to the
 google calendar on the android phone.
 Trouble is I get pointed to Google Calendar APIs webpage and it has
 no examples or tutorials on this.


This is no Calendar API for Android Phones - you are trying to use private
undocumented, unsupported APIs. What you need to do is use the online Google
Calendar API, for which I'm sure exists a more appropriate group or forum.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Calendar APIs for the android

2011-07-14 Thread Mark Murphy
On Thu, Jul 14, 2011 at 2:13 PM, sabanim rickd...@gmail.com wrote:
 I want in webview to push a button on my webpage and add an event to
 the google calendar on the android phone.
 Trouble is I get pointed to Google Calendar APIs webpage and it has no
 examples or tutorials on this.

Sure it does. If you would actually bother to look at the Web page,
you would find:

http://code.google.com/p/google-api-java-client/

which contains a link to:

http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs

which contains a link to:

http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs#Google_Calendar_Data_API

which, amazingly enough, has links to examples. There is even one
*specifically* on Google Calendar API access on Android:

http://samples.google-api-java-client.googlecode.com/hg/calendar-v2-atom-android-sample/instructions.html?r=default

(or http://goo.gl/1LgGL if that link is too long)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] automate testing of flash games

2011-07-14 Thread TreKing
On Thu, Jul 14, 2011 at 1:17 PM, rahul jain jainwolver...@gmail.com wrote:

 How to automate testing of flash games on android ?


Write test scripts that test flash games on android.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android market search sucks

2011-07-14 Thread Leo

This android market overhaul sucks and has taken a turn to the worse.
Lot of junk apps are getting boosted over legit apps. I am going to
shift to iOS for a year until Google gets its act together.

If you want to know what I am talking about.

Search for pool in android market.

You will see swimming pool app by poolitalia.com listed around 40 in
search results.

1 star rating, 50-100 downloads. There are over 50 legit apps below it
with much better rating and 100x more downloads.

Developing a new app is now meaningless as it gets buried in the tons
of junk free apps on android.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   3   >