[android-developers] Digest for android-developers@googlegroups.com - 15 Messages in 11 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    neha <neha.05aug@gmail.com> May 31 10:43PM -0700 ^
     
    when i use mediaRecorder and mediaPlayer simultaneously there is no
    echo.
    But when i use AudioRecord/track simultaneously der is echo.
    Can any one suggest y this happening...
     

     

    HariRam <hariram1987@gmail.com> Jun 01 10:55AM +0530 ^
     
    I want to re write xml file using jdom, i got some example in goodle, they
    used setTextContent to append value in xml tag. but android is not
    supporting node.setTextContent. instead of this what is the key word for
    accessing setTextContent. if anyone did this issue pls let me know.
    --
    Thanks and
    Regards
    Hariram

     

    Zsolt Vasvari <zvasvari@gmail.com> May 31 10:42PM -0700 ^
     
    Same why as on any Java platform:
     
    object.setTextContent(args...)
     
     
     

     

    DanH <danhicks@ieee.org> May 31 05:59PM -0700 ^
     
    Note that it's perfectly feasible to do "pull parsing" with JSON, and
    I believe there are packages to do that. It's not done very often,
    though, since the "in-core" representation of JSON is generally
    several times more compact than the equivalent representation of XML,
    so there's no need for it.
     

     

    "Harri Smått" <harism@gmail.com> Jun 01 07:37AM +0300 ^
     
    I see. We tried SOAP long time ago, and back then, it really wasn't any use for us. Management was after it for having a cool new technology to sell our product but we ended more or less to use plain Sockets at the end. But as said, just wanted to hear your opinion. SOAP is something I never really took the trouble to learn it and understand its possibilities. So hey, keep up the good work and hope to catch you here more frequently.
     
    On May 30, 2011, at 4:16 PM, DanH wrote:

     

    danhpc <phamcongdanh06hc320@gmail.com> May 31 08:46PM -0700 ^
     
    Thanks Kristopher,
     
    I'll try this.
     
    Regards,
    D
     
    On May 31, 11:36 am, Kristopher Micinski <krismicin...@gmail.com>
    wrote:

     

    danhpc <phamcongdanh06hc320@gmail.com> May 31 08:37PM -0700 ^
     
    Hi all,
     
    I used the Google Places API to find all places by a location.
    But I don't know how to bookmark this place?
     
    Regards,
    D

     

    Zsolt Vasvari <zvasvari@gmail.com> May 31 08:31PM -0700 ^
     
    Nobody has any experience with this? I would think it would be a
    fairly common problem for anybody who has to deal with custom Views.
     

     

    Zsolt Vasvari <zvasvari@gmail.com> May 31 08:27PM -0700 ^
     
    I don't know if the Sense UI offers a choice of colors, but if it
    does, it's buggy.
     

     

    abhishek jain <akjain2051@gmail.com> May 31 08:27PM -0400 ^
     
    Hi,
    I have a problem. In one of the device, Verizon tab is not appearing in
    Android market application. Instead of Verizon tab , MyApps tab is
    showing.
     
    I have verizon operator plan an dI am in New jersey.
     
    In net, i found that if MCC and Network operator name is not occuring . Then
    It should be a problem. But I have checked with one test app.
    Both MCC and Network operator name is printing in device.(
    http://forum.xda-developers.com/archive/index.php/t-1034251.html)
     
    Could Anyone suggest me , what chages i need to do in framework code .
    is it related to Android Market ?
     
    Regards
    Abhishek

     

    Zsolt Vasvari <zvasvari@gmail.com> May 31 08:22PM -0700 ^
     
    > Could Anyone suggest me
     
    Sure -- ask on the correct forum.

     

    Francisco Dalla Rosa soares <soares@argo.bz> Jun 01 12:02PM +0900 ^
     
    same result for xperia arc on 2.3.2
     
    2011/5/31 Prakash Iyer <theiyer@gmail.com>
     

     

    MattClark <mrclark32493@gmail.com> May 31 06:13PM -0700 ^
     
    I have an application that when running i need to multiple times
    change the layout of the screen, however, the program errors on my
    buttons listeners when i set a new content view. How would i go about
    changing the listners to the new layout?
     
    My second question is how i would start a new 'window' in my
    application. I have the main screen running, and when the user clicks
    say settings, it brings up a separate settings window.
     
    Any and all help is greatly appreciated.
    ~Matt

     

    B Lyon <bradflyon@gmail.com> May 31 09:15PM -0400 ^
     
    what is the error?
     

     

    String <sterling.udell@googlemail.com> May 31 02:40PM -0700 ^
     
    Okay, I stand corrected. But you'll notice that there was no attempt to correct this part:
     
    > There is no PC on which it has usable performance.
     
    I don't dispute that Android emulation is a hard problem. The unfortunate fact remains that Honeycomb development simply isn't possible without a hardware device.
     
    String

     

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

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 11 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Emraaz khan <emraazkhan52@gmail.com> May 31 04:53PM -0400 ^
     
    Hello,
    Hope you are doing well.
    I am a technical recruiter with Panzer Solutions LLC Software Implementing
    and IT consulting company located in CT. Please go through the Job
    Description and send me your updated resume with contact information.
     
    Title : Sharepoint Developer
    Location : Franklin,TN
    Duration : 7+ Contract
    F2F Required
     
    ******************** Need Local to TN or Near by **********************
     
     
    Must-haves
    asp.net
    vb.net
    SharePoint 2007
    SQL
    Agile development methodology
    Web services
     
    ____________________
    Warm Regards,
    Emraaz Khan,
    Panzer Solutions LLC
    Emraaz@panzersolutions.com
    Direct: 203-813-2052

     

    Edmund <chang.edmund@gmail.com> May 31 10:46AM -0700 ^
     
    Thanks Dianne, what is the brute force stop API? Can I kill other
    APK's processes from my APK though? I have an APK that is a system APK
    (signed with system certificate and using shared UID) if that make a
    difference and gives it more permission.
     

     

    Dianne Hackborn <hackbod@android.com> May 31 01:50PM -0700 ^
     
    Using the system cert is not development with the SDK; you should direct
    questions about it to a group like android-porting.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    Simon Platten <simonaplatten@googlemail.com> May 31 08:34PM +0100 ^
     
    This is happening to frequently and there doesn't seem to be anything that I
    can do about it. Several of my sales have failed to charge and are over 24
    hours.
     
    Why is this happening?
     
    Thank you,
    Simon

     

    TreKing <trekingapp@gmail.com> May 31 03:46PM -0500 ^
     
    On Tue, May 31, 2011 at 2:34 PM, Simon Platten <simonaplatten@googlemail.com
    > wrote:
     
    > Why is this happening?
     
     
    It's doubtful anyone here can (or will) answer that. Your best bets are the
    Android Market and Google Checkout support channels. You can probably skip
    the former as it's mostly an exercise in frustration.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    bob <bob@coolgroups.com> May 31 12:04PM -0700 ^
     
    Does anyone know what the Android emulator bottleneck is on most PCs?
    Is it probably just the CPU? Does anyone know of a computer where the
    emulator works at a decent speed?

     

    Mark Murphy <mmurphy@commonsware.com> May 31 03:10PM -0400 ^
     
    > Does anyone know what the Android emulator bottleneck is on most PCs?
     
    The bottleneck is in the emulator trying to do the graphics that it
    normally does with hardware acceleration. As Xav pointed out in the
    "Android Development Tools" Google I|O 2011 presentation, if you
    create a Honeycomb emulator with QVGA screen size (not realistic for
    production), it runs quickly.
     
    > Is it probably just the CPU?
     
    Insofar as a faster CPU will help a bit with faster CPU-based graphics
    work, yes. The real long-term answer is to get the UI to be rendered
    outside of the qemu emulation environment, using the actual hardware
    acceleration of your development machine. Watch the aforementioned
    presentation on YouTube for a demo.
     
    > Does anyone know of a computer where the
    > emulator works at a decent speed?
     
    2.2 on down work fine for me on a dual-core 2.5GHz notebook. 2.3 is a
    bit sluggish. 3.x is painful even on a quad-core (not i7) 2.66GHz
    desktop. An i7 with Turbo Boost may help, simply because the emulator
    is single-threaded, so if you're not doing much else when the emulator
    runs, you can get 3.4GHz or thereabouts, depending on CPU.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    Android Training in Oslo: http://bit.ly/fjBo24

     

    Chris <crehbein@gmail.com> May 31 12:16PM -0700 ^
     
    I have a 3.3ghz quad core with 4 gb ram that runs 2.3.3 on the emulator fine
    at WQVGA432. Same computer fails miserably to run 3.0 at WXGA.
     
    Runs fine, that is, except when it decides to randomly crash when clicking
    anywhere on the skin, and then failing to clean up after itself and usually
    keeping a zombie emulator process running. So I guess it depends.

     

    String <sterling.udell@googlemail.com> May 31 12:25PM -0700 ^
     
    The bottleneck is the emulation of ARM on x86, compounded by the number of pixels it needs to push around to emulate modern devices. There is no PC on which it has usable performance.
     
    String

     

    jtoolsdev <brianjtools@gmail.com> May 31 12:30PM -0700 ^
     
    Ah, the emulator isn't running ARM code just the Dalvik engine. The
    problem has been addressed elsewhere by developer supprot that it is
    not possible to build an emulator so far that can take advantage of
    the graphics acceleration on your PC.
     

     

    Chris Stratton <cs07024@gmail.com> May 31 01:13PM -0700 ^
     
    On Tuesday, May 31, 2011 3:30:39 PM UTC-4, jtoolsdev wrote:
     
    Ah, the emulator isn't running ARM code just the Dalvik engine.
     
     
    Really? There's an x86 build of honeycomb? And an x86 toolchain in the
    NDK?
     
    I don't believe that is the case... unfortunately.

     

    David Turner <digit@android.com> May 31 10:21PM +0200 ^
     
    There are so much misinformation in this thread. Let's try to clarify:
     
    The *main* bottleneck for slow performance in the emulator is OpenGLES
    emulation, which is currently performed in software, moreover in emulated
    ARM instructions. All platform releases are emulated by the same virtual
    CPU, the differences in performance come from the following facts:
     
    - Gingerbread switched to use 32-bit surfaces by default for all
    activities. Even if the emulated framebuffer is still 16-bit, that's about
    twice the cost per pixel for each operation, hence why it is slower than
    Froyo at comparable resolutions. Apart from that, the platforms are nearly
    identical (well, the JIT in Gingerbread is much better than in Froyo).
     
    - Honeycomb uses OpenGL ES much more aggressively than Gingerbread. As a
    consequence, there are a lot more operations involved per pixel (due to all
    the fancy effects), which results in the current lack of performance.
     
    As demonstrated by Xav at Google I/O, we're working on a solution to render
    all GLES operations on the host GPU, which will significantly speed things
    up. No ETA, it will be released when it's ready (hint: it's not).
     
    Now, assuming the GLES problem is handled, the second reason why the
    emulator is slow is the software MMU. In other words, each memory load or
    store operation in the guest must involve a lengthy translation (from guest
    virtual address to guest physical address to host address within the
    emulator process). This translation depends on the state of the emulated
    virtual ARM CPU and cannot be done easily. To speed things up, a small
    256-pages cache is used but this results, in the best case, in a series of
    20-something host instructions + several memory accesses to implement a
    single load or store (when you hit the cache, things are _much_ worse in
    case of a miss).
     
    Finally, there is the issue of translating each ARM instruction into a
    series of host x86 instructions. This of course has an impact, but most
    arithmetic operations can be translated into something that is hardly 2x or
    3x slower than the real thing. Compared to the cost of virtual memory
    access, this is minimal.
     
     

     

    Edmund <chang.edmund@gmail.com> May 31 11:07AM -0700 ^
     
    We are working on our own type of Package Management. I was trying to
    find out if say the actual file name of the package was
    "angrybirds.apk" and the name its listed in when you do a "pm list" is
    something like "com.rovio.games.angrybirds". How can I convert between
    the two in Android 2.1?
     
    Thanks,
    --Edmund
     

     

    Dianne Hackborn <hackbod@android.com> May 31 11:47AM -0700 ^
     
    The file name is arbitrary. You can get the path to the .apk of a
    particular package in ApplicationInfo, which will be returned from various
    things in the package manager like PackageManager.getApplicationInfo().
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    Edmund <chang.edmund@gmail.com> May 31 01:22PM -0700 ^
     
    thanks to you both!
     

     

    Emraaz khan <emraazkhan52@gmail.com> May 31 03:59PM -0400 ^
     
    Hello,
    Hope you are doing well.
    I am a technical recruiter with Panzer Solutions LLC Software Implementing
    and IT consulting company located in CT. Please go through the Job
    Description and send me your updated resume with contact information.
     
    Title : Weblogic Portal Developer
    Location : BASKING RIDGE, NJ
    Duration : 1+ Contract
     
    Must-haves
    J2EE development (WebLogic Portal) – Tomcat is a plus
    Oracle DB development
    Unix scripting.
     
    Responsibilities
    Add user feed back feature to Knova knowledge article.
    Implement automatic process to publish contents
    Update the website
    ____________________
    Warm Regards,
    Emraaz Khan,
    Panzer Solutions LLC
    Emraaz@panzersolutions.com
    Direct: 203-813-2052

     

    Raghav Sood <raghavsood@gmail.com> May 31 11:34PM +0530 ^
     
    Hi all,
     
    I have noticed how often there are questions regarding problems with the
    market, in-app billing, documentation etc. It seems that the Android
    references are spread very far and wide and in some places non-existant
    alltogether. I plan to solve this bye creating a "Wikipedia" of all android
    related topics. Two days ago I started the process and created the wiki at
    http://wiki.androidappcheck.com/ Right now I am its only contributor and by
    no stretch of imagination know all about Android. I would like it if all of
    you people could help me with this. I have so far made only 9 pages in the
    time it has been up and none of them are as detailed as I would like.
     
    Please help with this project as it will be a good starting base for all
    Android developers.
    Thanks
    --
    Raghav Sood
    <http://www.raghavsood.com/>

     

    Raghav Sood <raghavsood@gmail.com> Jun 01 12:03AM +0530 ^
     
    Anyone who can help?
     
     
    --
    Raghav Sood

     

    "Jonas Petersson" <jonas.petersson@xms.se> May 31 08:15PM +0200 ^
     
    On 2011-05-31 18:30, Chris Stratton wrote:
     
    > Or, write unit test cases using JUnit and the instrumentation framework
     
    > Or set the mode of the database file to world readable... just don't
    > ship that way like a certain internet phone app did.
     
    Or open the database straight from the SD card where you can do whatever
    you like while you develop. (This is actually how my Inventory app does
    the "merge" feature from the SD database to the "closed" database.)
     
    Best / Jonas

     

    Mark Murphy <mmurphy@commonsware.com> May 31 01:21PM -0400 ^
     
    > One more Application verify the UserId of the process(APK) and allow to
    > further communication.  Application developed by third party.
     
    As far as I can tell, your third party does not know what it is talking about.
     
    > In this case i
    > have to assign the APK userid as like in
    > system/core/include/private/android_filesystem_config.h
     
    That is not possible. In fact, I will be fairly surprised if any
    mobile OS, other than perhaps Meego, allows end-user-installed
    applications to decide their own user ID for process-level security.
     
    You are welcome to write your own Android firmware and put it on your
    own Android phones where this application is somehow magically
    assigned some particular user ID as part of the firmware build. I
    presume that is at least conceivable. If you wish to build your own
    firmware, visit h http://source.android.com.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    Android Training in NYC: http://marakana.com/training/android/

     

    Dianne Hackborn <hackbod@android.com> May 31 10:26AM -0700 ^
     
    It wouldn't be secure unless there was a global registry of these user IDs
    and the apps that own them, that the platform could look up at install, to
    ensure that some other spoof app is not using the user ID.
     
    Obviously this is not something we want to do.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    Chris Stratton <cs07024@gmail.com> May 31 11:02AM -0700 ^
     
    On Tuesday, May 31, 2011 1:11:34 PM UTC-4, ARM_SOC wrote:
     
    One more Application verify the UserId of the process(APK) and allow to
    > further communication. Application developed by third party.
     
     
    Well, that's not an entirely ridiculous idea, as the whole android security
    model itself is based on userids.
     
    However, the application needs to decide what the appropriate userid to
    allow _on_a_given_install_ is, by first utilizing some other authentication
    mechanism. And you would need to audit the whole scheme for potential
    security holes.

     

    Dianne Hackborn <hackbod@android.com> May 31 10:27AM -0700 ^
     
    Yes use the Context to open the shared preferences.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    JR <jayarr.patricio@gmail.com> May 31 12:00AM -0700 ^
     
    Ok I got it by myself, I do not need to use XLIFF just add these code
    and everything is fine :)
     
    textView = (TextView) findViewById(R.id.text_view);
     
    then call this code to set the text
     
    textView.setText("Your text here.");
     

     

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

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 12 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    ARM_SOC <saminathmail@gmail.com> May 31 09:24AM -0700 ^
     
    I created the APK, It has different UserId in different phome/Device.
    I need constant UserId for this APK independent of any Hardware. Like
    App_50- 10050.
     
    Thanks in advance

     

    Dianne Hackborn <hackbod@android.com> May 31 09:25AM -0700 ^
     
    You can't do that. The user ID must be assigned by the device when it is
    installed.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    Marcin Orlowski <webnet.android@gmail.com> May 31 07:02PM +0200 ^
     
    No. It will let you, as name indicates, share IDs among your packages. But
    there's no way you can get fixed ID as user ids are assigned on each device
    depending i.e. on number of already installed packages etc. What you think
    you need it for?
     
    Regards,
    Marcin Orlowski
     
    *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
    *Date In Tray* <http://bit.ly/dateintraypro> - current date at glance...
    WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
    *Twitter<http://webnetmobile.com/twitter/>
    *
     
     
     

     

    saminath sanjai <saminathmail@gmail.com> May 31 10:11AM -0700 ^
     
    Hi,
    Thanks for your reply,
    One more Application verify the UserId of the process(APK) and allow to
    further communication. Application developed by third party. In this case i
    have to assign the APK userid as like in
    system/core/include/private/android_filesystem_config.h
     
    thanks in advance
     
     
     

     

    Vinicius Carvalho <viniciusccarvalho@gmail.com> May 31 09:08AM -0700 ^
     
    Hi there! I'm developing an app for Honeycomb using my xoom device.
     
    Now I got stuck, I'm using SQLite, and I need to access my db during
    development, just to check if things are right.
     
    But since this is not a rooted device, I can not access my data/data/
    com.acme/databases to open my db file.
     
    Is there any way around this?
     
    The DDMS file explorer won't show me the files, I'm guessing that's
    because I'm not rooted.
     
    Regards

     

    Dianne Hackborn <hackbod@android.com> May 31 09:18AM -0700 ^
     
    Or make your app debuggable with android:debuggable="true" in the manifest
    and use "run-as" in adb shell to switch to your uid.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    String <sterling.udell@googlemail.com> May 31 09:23AM -0700 ^
     
    On Tuesday, May 31, 2011 5:10:53 PM UTC+1, Mark Murphy (a Commons Guy)
    wrote:
     
    Or, develop on an emulator.
     
    Develop on an emulator for Honeycomb... ROFL. That's a good one, Mark!
     
    String
     

     

    Chris Stratton <cs07024@gmail.com> May 31 09:30AM -0700 ^
     
    On Tuesday, May 31, 2011 12:10:53 PM UTC-4, Mark Murphy (a Commons Guy)
    wrote:
    > to external storage, then download from there.
     
    > Or, develop on an emulator.
     
    > Or, write unit test cases using JUnit and the instrumentation framework
     
    Or set the mode of the database file to world readable... just don't ship
    that way like a certain internet phone app did.
     
    Note that all of the methods aside from rooting or dumping a copy to
    external storage are going to require that you access the database file by
    its full path rather than a file browser, as the directories under /data are
    not browsable by unprivileged users, even though some of their contents are
    accessible.

     

    Dianne Hackborn <hackbod@android.com> May 31 09:23AM -0700 ^
     
    Note that installing from the SD card is fundamentally dangerous because
    another app can replace that file with their own and cause the user to
    install something different than you intend.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    Chris Stratton <cs07024@gmail.com> May 31 09:24AM -0700 ^
     
    On Tuesday, May 31, 2011 12:18:25 PM UTC-4, Donny Plunkett wrote:
    > have 'Unknown Sources' checked. Under the phone's App Settings->Development
    > settings. USB debugging is checked, Stay Awake is Checked. My app manifest
    > file has debuggable set to true.
     
    That sounds frustrating - rest assured though that it is not your fault.
    Nothing you can do without rooting the phone (or perhaps exploiting some odd
    corners of the device administrator interface?) should be able to make the
    phone unresponsive for more than the application not responding timeout -
    which is normally a few seconds but up to about 30? one some devices.
     
    So it seems like you've tripped over a bug in the build of android on that
    phone. Likely there are problems in your code as well - you can probably do
    a better job of handling the activity lifecycle. But getting it wrong
    should only make your app mis-operate - it should not lock up the phone.

     

    Chris Stratton <cs07024@gmail.com> May 31 09:00AM -0700 ^
     
    On Tuesday, May 31, 2011 10:29:50 AM UTC-4, Mark Murphy (a Commons Guy)
    wrote:
     
    > I think that the long-term direction is to blur some of the space
    > distinctions between internal and external storage, so that "apps on
    > the SD card" can fade into history.
     
    Yeah... but now the postings from people experience pain from transition
    from USB mass storage to MTP are starting to show up.
     
    USB mass storage - surrendering the file system to an external computer -
    was never a good solution, except for its "works everywhere" portability.
    Until something post-mass-storage is consistently deployed on most desktops
    and understood by most desktop developers, there may not be a good solution.

     

    Dianne Hackborn <hackbod@android.com> May 31 09:22AM -0700 ^
     
    Apps on SD card is cr*p that I wish we'd never needed to do. The MTP
    approach with Honeycomb is far, far better. Issues with interacting through
    MTP from PCs can be worked out; having to use USB mass storage for transfer
    has fundamental issues such as requiring a hard partition between the
    storage areas, having to unmount during transfer, etc.
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    nirm <nirmiron@gmail.com> May 31 09:21AM -0700 ^
     
    Hello all
    I want to share data between my application and library.
    Can i share or read from one Shared preference?
     
    My thoughts:
    1. pass the application context to the library?
    2. in the lib: read the "app shared pref" through appContext
     
    Is this the right way?
     
    Thanks
    Nir

     

    varinag gold <varinaggold@gmail.com> May 31 09:03AM -0700 ^
     
    Hi,
     
    How should I extract the package name and other information from a new
    installed package notification in my application.
     
    Thanks in advance
    varinag

     

    Dianne Hackborn <hackbod@android.com> May 31 09:12AM -0700 ^
     
    PackageManager.getApplicationInfo().
     
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@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.

     

    Chris Stratton <cs07024@gmail.com> May 31 09:05AM -0700 ^
     
    On Tuesday, May 31, 2011 7:26:07 AM UTC-4, Atul Prakash wrote:
     
    > I recommend you to install cygwin along with Android NDK. Compile your
    > native code using cygwin, refresh your project in Project Explorer
    > then run the activity. <http://groups.google.com/group/android-developers?hl=en>
     
     
    Specifically, compile it using the android NDK which is an optional
    companion to the SDK.
     
    cygwin is not specifically needed for a basic build, though it's very useful
    for associated tasks.

     

    Chris Stratton <cs07024@gmail.com> May 31 09:12AM -0700 ^
     
    On Tuesday, May 31, 2011 4:27:12 AM UTC-4, Viju wrote:
     
    I'm developing an application with an open source library (i.e.
    > jpcap).
     
    You are unlikely to get this is to work even when you get the library
    ported, as android applications cannot readily gain the necessary access
    rights to the network interface.
     
    You will probably do better launching a stand alone executable as root, and
    capturing its output from java. That's not officially supported, but it
    does work at the moment on rooted devices.
    And many devices seem to ship not only with a copy of tcpdump, but a copy
    that runs itself as root.

     

    String <sterling.udell@googlemail.com> May 31 08:56AM -0700 ^
     
    I've run into an interesting problem that I think I've narrowed down to a
    regression bug in (at least) the latest version of the Android SDK, and I'm
    hoping someone here can help me confirm it.
     
    The trace of the crash is this:
     
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974):
    java.lang.IllegalStateException: The specified child already has a parent.
    You must call removeView() on the child's parent first.
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    android.view.ViewGroup.addViewInner(ViewGroup.java:2929)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    android.view.ViewGroup.addView(ViewGroup.java:2824)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    android.view.ViewGroup.addView(ViewGroup.java:2804)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    com.android.internal.app.AlertController.setupView(AlertController.java:401)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    com.android.internal.app.AlertController.installContent(AlertController.java:241)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    android.app.AlertDialog.onCreate(AlertDialog.java:314)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    android.app.Dialog.dispatchOnCreate(Dialog.java:335)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    android.app.Dialog.show(Dialog.java:248)
    [54329.978265] 05-28 22:49:34.190 E/AndroidRuntime( 7974): at
    name.udell.convertor.ProConvertActivity.onKeyDown(ProConvertActivity.java:473)
     
    .. where the final line above is in my code, a call to AlertDialog.show().
    The code leading up to that point is inflating a custom dialog from a layout
    XML resource; the interesting thing is that it was working fine in the
    previous release of the app, and a code compare confirms that it hasn't
    changed in the interim. However, this previous release was built on Feb 28,
    so it was definitely built with an earlier release of the SDK. I can't swear
    if it was built with r9 or 10.
     
    What I'm hoping is that somebody here still has an installation of r9 or r10
    in place that they can try this on, to confirm my suspicion about the nature
    of this bug. It's quite easy to reproduce; the last example at
    http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog (the
    Java in the final code block) will do it. Or, I can easily send a minimal
    test project too.
     
    Thanks... I'm off to try and work around it now.
     
    String

     

    Oceanblue <ns1371@gmail.com> May 31 08:53AM -0700 ^
     
    Oh, I didn't know that. The API docs do not mention that. Thanks for
    the info!
     

     

    Emraaz khan <emraazkhan52@gmail.com> May 31 11:44AM -0400 ^
     
    Hello,
    Hope you are doing well.
    I am a technical recruiter with Panzer Solutions LLC Software Implementing
    and IT consulting company located in CT. Please go through the Job
    Description and send me your updated resume with contact information.
     
    Title : .Net Developer
    Location : Ft Lauderdale,FL
    Duration : 6+ Contract
     
    Must Haves:
    3-5 years .NET web development
    VB.NET
    C#
    ASP.NET
    Visual Studio.NET 2.0, 3.0, 3.5
    SQL
    WCF
    Ajax
    HTML/DHTML/XML
    Troubleshooting/debugging application performance problems, and use of
    code profiling
    tools , stack traces, included with .Net Framework 2.0 and higher
    ____________________
    Warm Regards,
    Emraaz Khan,
    Panzer Solutions LLC
    Emraaz@panzersolutions.com
    Direct: 203-813-2052

     

    Boram Han <mlight3@hanmail.net> May 31 08:19AM -0700 ^
     
    Dear all.
     
    I have a tab acitivity with 4 tabs. They are all defined with intents.
    When I call startActivity in one of those activities, then tab
    navigation is gone!
     
    I want to maintain tab navigation when i call startactivitiy?
     
    Any help will be highly appreciated
    Rgds
     
    Boram.

     

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

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 18 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Spooky <spooky130u@gmail.com> May 31 07:39AM -0700 ^
     
    First question: is everyone else able to post via e-mail?
    If so, how long, after you were removed from moderation,
    did it take before you were allowed to do so? Was it a
    month or so? Longer?
     
    Second, if others ARE able to post via e-mail, why
    can't I? Who do I contact to get this resolved?
     
    Can ANYONE help me figure this out? Please?
     
    dG
    :r .sigdir/personal_sig.05

     

    Drew <zitnay@gmail.com> May 31 07:19AM -0700 ^
     
    Thanks for the link... That's a shame that apps on the SD card have
    so many limitations. I'd rather not disable the ability to move to
    SD, as this app is much more than simply an input method, and I'd get
    far more complains about the inability to move to SD than I have about
    the input method being disabled. I'll add something to our Android
    Market listing about it, but it seems like Android should either add
    something to the input method enable screen about it, or the move to
    SD screen, or both.
     
    Drew
     

     

    Kristopher Micinski <krismicinski@gmail.com> May 31 10:24AM -0400 ^
     
    Just FYI, if you truly intend for your device to make a network operation
    every half second, users not constantly around wifi may dislike you... And I
    would assume this would kill battery life...
     
    Kris
     
    On May 28, 2011 10:22 PM, "Mahavir Jain" <vir.jain@gmail.com> wrote:
     
    Hi,
     
    I want to make network operation in every half sec and depending on data, i
    want to update the ListView continuously.
     
    Following is my approach: Using thread and handler.postDelayed, it makes the
    network request every sec and update only those views of the row in
    ListViewwhich needs to be updated. It does not update
    ListView using notifyDatasetChanged().
     
    Though it updates the UI, but it takes time in updating the UI. Is it
    because, I am using emulator?
     
    Is this the right approach for this scenario? Any other best approach for
    this?
     
    Anyone handled such scenarios previously?
     
    Thanks in advance.
     
    Regards,
     
    Mahavir Jain
     
    --
    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+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en

     

    Ankit Shah <iankitshah@gmail.com> May 31 07:20AM -0700 ^
     
    Your pointers helped...
     
    Thanks Mark.
     

     

    TreKing <trekingapp@gmail.com> May 31 08:29AM -0500 ^
     

    > Can anyone help me how to get notified that "Done" button is pressed and
    > how to close the application once it is clicked?
     
     
    You probably can't get notified of that button click, but there is a
    broadcast when a package is installed ...
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Scythe <scythe213@gmail.com> May 31 04:24AM -0700 ^
     
    218 + 3 bonus on Galaxy Tab 10.1v, with 3.0.
     

     

    Prakash Iyer <theiyer@gmail.com> May 31 10:15AM -0400 ^
     
    I just tried this on a 2.3.3 tablet and it was interesting to see Firefox
    score 235 with 9 bonus points (for comparison the default browser was 182
    with 1 bonus point).
     

     

    "[ DevNull ]" <devnull.ar@gmail.com> May 31 07:00AM -0700 ^
     
    Holly WTF!!!!!
     
    That's funny! Thanks for the tip! =)

     

    Emraaz khan <emraazkhan52@gmail.com> May 31 09:56AM -0400 ^
     
    Hello,
    Hope you are doing well.
    Please go through the Job Description and send me your updated resume with
    contact information @ Emraaz@panzersolutions.com
     
    Title : Business Analyst with utility background
    Location : Miami,FL
    Duration : 7+ Contract
     
    MUST
    7+ yrs of BA experience
    Utility background (energy, electric, water management, ami, dsm)
    Must be able to communicate well with the business (non-technical users) and
    the technical team. The jargon they use for the users will be different from
    what they use for the technical team. They must be able to translate user
    requirements to the technical team in a way they will understand, and vice
    versa.
    DSM (Demand Side Management)
     
    ____________________
    Warm Regards,
    Emraaz Khan,
    Panzer Solutions LLC
    Emraaz@panzersolutions.com
    Direct: 203-813-2052

     

    Paolo <brandipa@gmail.com> May 31 06:56AM -0700 ^
     
    SOLUTION:
    layer = (LayerDrawable) getResources().getDrawable(R.drawable.layers);
    layer.setBounds(** what you want **);
    layer.mutate();
    layer.draw(canvas);
     

     

    Abhishek Kumar Gupta <akgaec2007@gmail.com> May 30 11:20PM -0700 ^
     
    I am a newbie, I want to place a widget by default on homescreen i.e., when
    we switch-on the phone(or emulator) that particular widget should display on
    the homescreen. Please help me.

     

    TreKing <trekingapp@gmail.com> May 31 08:27AM -0500 ^
     
    On Tue, May 31, 2011 at 1:20 AM, Abhishek Kumar Gupta
     
    > I am a newbie, I want to place a widget by default on homescreen i.e., when
    > we switch-on the phone(or emulator) that particular widget should display on
    > the homescreen.
     
     
    You can't do this - widgets are placed on the homescreen by the user.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    DanielSchH <daniel@schmitz-huebsch.net> May 31 06:27AM -0700 ^
     
    Hello,
     
    I have a Android Project which implements a android-service. Now I
    want to share this, without publishing the code.
    I have tried to generate a .jar and added it to another android
    project, but then I get a FileNotFoundException: AndroidManifest.xml
     
    Maybe because the service-project contains a Manifest.
     
    Hase somebody an idea how to solve it?

     

    andrew_esh <andrew.c.esh@gmail.com> May 31 05:48AM -0700 ^
     
    Is it possible that the problem is not the device, but that the user
    is the only one who has selected a color scheme that requires a color
    your application doesn't have access to? Perhaps is personal settings
    cause your application to try to guess at a certain PrimaryInverse
    color that would fit the scheme, but isn't actually available in the
    resources.

     

    Amritesh <amriteshmadhur@gmail.com> May 31 05:16AM -0700 ^
     
    I am developing an application which will contain the lists of songs
    every row has play image .On click of this image it should change to a
    green one (like on and off), but if there is another image in
    different row is "on" it should get off.
     
    I am able to find the current position and the previous position of
    the row whose image is "on" but based on the position of the row i am
    not able to get the corresponding imageview .
    I am trying with the setTag() and getTag() method but get tag method
    is returning null for me.
     
    Any help would be appreciated.Please bail me out of this.
    below is my code
     
     
    package com.fstech.cslist;
     
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.HashMap;
    import java.util.Map;
     
     
     
     
    import android.app.Activity;
    import android.content.Context;
    import android.os.Bundle;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import android.view.View.OnClickListener;
    import android.widget.AdapterView;
    import android.widget.ArrayAdapter;
    import android.widget.ImageView;
    import android.widget.ListView;
    import android.widget.TextView;
    import android.widget.Toast;
    import android.widget.ToggleButton;
     
    public class CustomList extends Activity {
    ArrayList<String> pname;
    ListView projectList;
    private LayoutInflater mInflater;
    private boolean[] itemToggled;
    int Position;
    ImageView play;
    int size;
    int previousposn=0;
    int currentposn=0;
    int cPosition;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    projectList = (ListView) findViewById(R.id.projectlist);
    pname = new ArrayList<String>();
    pname.add("first");
    pname.add("fssecond");
    pname.add("third");
    pname.add("fourth");
    pname.add("fifthe");
    pname.add("sixth");
    mInflater = (LayoutInflater)
    getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    size = pname.size();
    itemToggled = new boolean[pname.size()];
    Arrays.fill(itemToggled, false);
    projectList.setAdapter(new ArrayAdapter<String>(this,
    R.layout.list_item,pname){
    ArrayList<String> ar =new ArrayList<String>();
     
    @Override
    public View getView(int position, View convertView, ViewGroup
    parent) {
    Position=position;
    View row;
     
    if (null == convertView) {
    row = mInflater.inflate(R.layout.list_item, null);
    } else {
    row = convertView;
    }
    TextView tv = (TextView) row.findViewById(android.R.id.text1);
    tv.setText(getItem(position));
    play=(ImageView)row.findViewById(R.id.roundplay);
    play.setBackgroundResource(R.drawable.roundplay);
    ImageView icon = (ImageView) row.findViewById(R.id.icon);
    icon.setImageResource(R.drawable.roundplay);
    play.setTag(String.valueOf(position));
    play.setOnClickListener(new OnClickListener() {
     
    @Override
    public void onClick(View v) {
    // TODO Auto-generated method stub
     
    cPosition=Integer.parseInt(v.getTag().toString());
    previousposn=currentposn;
    currentposn=cPosition;
     
    View view =v.findViewWithTag(v.getTag(Position));
    //(View) play.getTag(1);
     
    if(view!=null)
    System.out.println("Tag is not returning object");
    else
    System.out.println("Tag is not returning object");
    }
     
     
    });
     
     
     
     
    return row;
    }
     
    });
     
    projectList.setOnItemClickListener(new
    AdapterView.OnItemClickListener() {
    public void onItemClick(AdapterView<?> listView, View
    itemView, int position, long id) {
    itemToggled[position] = ! itemToggled[position];
    }
    });
     
    }
    }
     
    **********************************************row.xml**************************
    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/listrow"
     
    <ImageView
    android:id="@+id/icon"
    android:layout_width="80dp"
    android:layout_height="80dp"
    android:paddingLeft="5dp"
    android:paddingRight="2dp"
    android:gravity="center_vertical"
     
    />
    <TextView
    android:id="@+id/text1"
    android:layout_width="wrap_content"
    android:paddingLeft="10dp"
    android:textSize="20sp"
    android:layout_centerVertical="true"
    android:layout_toRightOf="@+id/icon"
    android:layout_height="wrap_content"
    android:textColor="#000000"
    ></TextView>
    <ImageView
     
    android:id="@+id/roundplay"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerVertical="true"
    android:layout_alignParentRight="true"
    android:paddingRight="5dp"
     
    ></ImageView>
     
    </RelativeLayout>

     

    Gaytri Batra <gaytri.batra@gmail.com> May 31 05:20PM +0530 ^
     
    Hello All,
     
    Could anyone please give me an example of using monkey as a stress tool for
    android App. How to use in devices/ emulator. I am completely new to this.
    So I would appreciate if anyone explain me in the complete by taking an
    example.
     
    Thanks in advance.
     
    Regards,
    Gaytri

     

    Mark Murphy <mmurphy@commonsware.com> May 31 07:56AM -0400 ^
     
    You do not need a "remote" service within a single application, as
    your sample illustrates. While you can use AIDL and binding for local
    services, it's unclear if there are any benefits compared to just
    using a local Binder. Remote services -- where the client and service
    are in separate applications -- *do* need AIDL if you want to use the
    binding pattern.
     
    Also, using setClassName() as you have it is an anti-pattern. For
    local services, use the constructor that takes the actual class. For
    remote services, the service should publish an <intent-filter> that is
    stable (e.g., using a custom action string). Even better is to publish
    one <intent-filter> per version of the exported API. Your code as
    written will break when the service author refactors their code, and
    the service has no way to know which version of the service's API the
    client wants to receive.
     
    Also, your client (Activity) never unbinds from the service, which is
    bad form. If you bind to the service, unbind from it. If the service
    is supposed to live past the end of the client's life, you should be
    using startService().
     
    On Tue, May 31, 2011 at 7:45 AM, Jignesh Kakkad(Jiggy)
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    Android Training in NYC: http://marakana.com/training/android/

     

    Atul Prakash <atul.prakash07@gmail.com> May 31 04:26AM -0700 ^
     
    I recommend you to install cygwin along with Android NDK. Compile your
    native code using cygwin, refresh your project in Project Explorer
    then run the activity.
     
    Rgds/ Atul Prakash Singh
     

     

    String <sterling.udell@googlemail.com> May 31 03:39AM -0700 ^
     
    On Tuesday, May 31, 2011 10:51:30 AM UTC+1, Mark Carter wrote:
     
    I wonder if it's possible to listen for a Move to SD event (is there a
    > broadcast intent?).
     
    If there is, it's undocumented (or well hidden). The most likely looking
    Intent in the docs is android.intent.action.PACKAGE_CHANGED, and I've just
    confirmed that it doesn't get broadcast when an app is moved to SD.
     
    String

     

    Sivaprakash <sivaprakashshanmugam@gmail.com> May 31 12:37PM +0530 ^
     
    Hi
     
     
    I have written a simple application and tried to debug it with the device. I
    am getting following warning message when I enable
    "android:debuggable="true" in my manifest file if I remove everything goes
    well and still it gets deployed into the device? Any clues to avoid this
    warning.
     
     
     
    [2011-05-31 11:47:03 - Test] ActivityManager: Starting: Intent {
    act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
    cmp=com.company.test/.Explorer }
    [2011-05-31 11:47:03 - Test] ActivityManager: Warning: Activity not started,
    its current task has been brought to the front
     
    --
    - Prakash.

     

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