[android-developers] Digest for android-developers@googlegroups.com - 15 updates in 7 topics

Comments: (0)

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

    earamsey <erica.ramsey@gmail.com> Jun 30 06:55PM -0700  

    I set focus change listener with following code;
     
    > }
    > }
    > });
     
    It works on different phones except for the "*Samsung Galaxy Ace S5830*".
    The phone is android 2.3.4. I can not figure out why *OnFoscusChange()* is
    not getting called. Is this a known bug for Samsung Galaxy Ace S5830? Is
    there a way to detect this device and do some kind of work around?
     
    Thanks!

     

    Nathan <nathan.d.mellor@gmail.com> Jun 30 04:27PM -0700  

    I do not even know if I am having the same problems as others.
     
    I downloaded the combined bundle. This was after Eclipse told me that I
    needed to update my ADT, but wouldn't let me do it. Something in the fine
    print led me to believe I need a new eclipse.
     
    So I installed the adt-bundle-mac-x86_64-20140624.
     
    Then Facebook SDK won't load because its looking for.
     
    /adt-bundle-mac-x86_64-20131030/sdk/tools/support/annotations.jar.
     
    Nowhere available for me to change where it looks for it, and suggestions I
    found on the internet of what to put there did not result in resolving any
    symbols.
     
    Can anyone give advice on what to do next?
     
     
    Nathan

     

    Tor Norbye <tnorbye@google.com> Jun 30 05:20PM -0700  

    There were some packaging problems in Tools 23 where proguard and
    annotations.jar were missing. We've released 23.0.1 to fix that, so invoke
    the SDK manager and install it (if necessary run Packages > Reload since I
    think it might cache some results.)
     
    -- Tor
     

     

    Jim Graham <spooky130u@gmail.com> Jun 30 07:28PM -0500  

    On Mon, Jun 30, 2014 at 04:27:36PM -0700, Nathan wrote:
    > I do not even know if I am having the same problems as others.
     
    You are...trust me. This, apparently, is a thorn in everyone's side (and
    I picked up on in my ankle this afternoon, just to add insult to injury).
     
    > I downloaded the combined bundle. This was after Eclipse told me that I
    > needed to update my ADT, but wouldn't let me do it. Something in the fine
    > print led me to believe I need a new eclipse.
     
    #1: Don't download the combined bundle ... it's broken. Start with
    Eclipse Juno. I just gave up on 3.8, which I *THOUGHT* had fixed things.
    I can't say for sure whether Juno will or not, but it LOOKS better than
    3.8 did (in terms of handling errors, build paths, etc.)..
     
    > So I installed the adt-bundle-mac-x86_64-20140624.
     
    That looks familiar ... it's broken. Search for and download android-sdk-macosx
    (.tar.gz, if I remember correctly). You'll still have some work to
    do---read my "Fixed" update a thread or two up from this one. Read ALL
    of them in sequence before starting, as things get weirder as you go
    along.
     
    > Then Facebook SDK won't load because its looking for.
    > /adt-bundle-mac-x86_64-20131030/sdk/tools/support/annotations.jar.
     
    That file is in the source for the SDK in question, so you need to load
    it. Don't ask me why...I have no idea. I've never downloaded the SDK
    source (as a requirement) before, and normally don't, period.
     
    > Nowhere available for me to change where it looks for it, and suggestions I
    > found on the internet of what to put there did not result in resolving any
    > symbols.
     
    Again, look in my earlier posts. You'll get a link, something like
    https://dl-ssl.google.com/android/eclipse - ah, yes, lucky you---it was
    still in my snarf & barf buffer. In Help-->Install new software, click
    on Add, and in the title, write "Android" or something like that. In the
    URL part, add that link. Then install the ADT tools and restart Juno.
    THEN you will have the options to direct it to the android-sdk-macosx
    directory (mine found it on its own).
     
    > Can anyone give advice on what to do next?
     
    Just did. :-)
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) |
    spooky130u@gmail.com | Unix *IS* user-friendly; It's just very
    < Running Mac OS X Lion > | selective as to who its friends ARE.
    ICBM / Hurricane: |
    30.44406N 86. 59909W |

     

    Jim Graham <spooky130u@gmail.com> Jun 30 06:02AM -0500  

    I'm happy to say, it's ALL working now.
     
    I manually re-inserted the link to Android stuff in Help-->Install New
    Software that Kostya provided in Message-ID:
    <CAN7dqjCm9-dHcE72dd6VM58Qp=2_PfJJc9D=+-vCbWfnPUdT6Q@mail.gmail.com>:
     
    Android - https://dl-ssl.google.com/android/eclipse
     
    And then installed ADT 23 **AGAIN**. I don't know why that worked, but
    it did. I guess Eclipse just wasn't sure I really wanted that until I
    told it twice. :-)
     
    Either way, it's all back to normal now, and I'm going to proceed with
    going through some AndEngine tutorials starting today. :-)
     
    Just to recap, here's what fixed it for me:
     
    1) Upgrade from Eclipse Indigo (3.7.2) to whatever 3.8 is called.
    2) Install, via Help-Install new software, ADT version 23 and restart
    Eclipse. For me, it stopped whining about needing version 23 here,
    but did NOT seem know about this "Android" thing.
    3) Using the link above, repeat the process to install ADT 23 and
    restart Eclipse again. This time, it works. Or at least, it
    does for me.
     
    I'll say this for sure...the next time Android Studio demands an upgrade
    to the SDK, ADT, or anything else, it's not going to be happy with my
    response until I've got a few backups of my entire Android/Eclipse setup.
     
    Later,
    --jim
     
    PS: Another way to look at this; last week, the week from Hell, is
    over. Now, all of a sudden, it works. Now if one or two of the
    companies I have the most shares in will just make that one major
    announcement that drives share prices way past "through the roof",
    and on their way to Andromeda......
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | AN EXCERCISE is a situation in which you stop what
    spooky130u@gmail.com | you're doing in order to simulate doing what you
    < Running Mac OS X Lion > | were doing so you can show someone else that you
    ICBM / Hurricane: | can simulate what you were doing as well as you
    30.44406N 86.59909W | were doing it before you were interrupted.

     

    Jim Graham <spooky130u@gmail.com> Jun 30 10:41AM -0500  

    Referring to my previous post (should be above this one in the
    thread)....
     
    If you get a build path error on every existing project in your
    workspace, read this...otherwise, skip this message.
     
    When I FINALLY got Eclipse configured (view), I moved on to making
    sure old projects would build. They didn't. Eclipse was whining
    again, this time about the build path. So I read some stuff from
    Stack Overflow, giving all kinds of vey popular solutions, none of
    which helped.
     
    So I just struck out on my own, and found that if I do a File-->Import
    and then "Import Android project from existing code" and import each
    old project from its location in the workspace right into its same
    location into the workspace (yes, import it into itself, so to speak),
    that clears the build path error.
     
    HTH. HAND.
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) |
    spooky130u@gmail.com | TeX actually recognizes several kinds of
    < Running Mac OS X Lion > | infinity, some of which are ``more infinite''
    ICBM / Hurricane: | than others.
    30.44406N 86. 59909W | --Donald Knuth in {The TeXbook}

     

    Jim Graham <spooky130u@gmail.com> Jun 30 10:54AM -0500  

    On Mon, Jun 30, 2014 at 05:49:38PM +0200, Michael Banzon wrote:
    > Thank you for sharing the solution.
     
    No problem...just seemed like the right thing to do. :-)
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | "Some people are like Slinkies, they serve no
    spooky130u@gmail.com | real purpose but you still get a good laugh
    < Running Mac OS X Lion > | when you kick them down the steps."
    ICBM / Hurricane: | ("borrowed" from someone else's sig)
    30.44406N 86. 59909W |

     

    Michael Banzon <michael@banzon.dk> Jun 30 05:49PM +0200  

    Thank you for sharing the solution.
     
    Glad you got it sorted.
     
     
     
    --
    Michael Banzon
    http://michaelbanzon.com/

     

    Jim Graham <spooky130u@gmail.com> Jun 30 07:18PM -0500  

    Eclipse 3.8 appears to be a screwed-up version. I just upgraded to Juno,
    and SO FAR, it seems to be working better. We shall see...tomorrow. I'm
    done with this tonight.
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) |
    spooky130u@gmail.com | Unix *IS* user-friendly; It's just very
    < Running Mac OS X Lion > | selective as to who its friends ARE.
    ICBM / Hurricane: |
    30.44406N 86. 59909W |

     

    Steven Smith <smithsteven265@gmail.com> Jun 30 04:23PM -0500  

    Hello,
    Hope you are doing good today.
     
    Please let me know if you have anyone available for the below position.
    Please send me your consultant resume at stevenpanzersolutions1 -
    203-652-1444 Ext: 113
     
    Job Title : SharePoint Migration QA Lead
    Location : Indianapolis, IN
    Duration : 4+ Month
     
    Job Description :
    US Citizenship, US Passport required. Will be traveling internationally.
    Business travel will be paid.
    Reporting to the SharePoint Migration Project Manager the Technology
    Consultant is responsible for the technical global coordination and
    migration of approximately 220
     
    existing SharePoint sites from SharePoint 2010 to an Office 365 SharePoint
    Platform. Approximately 60 +/- sites require migration or redevelopment of
    custom code.
     
    Skills Required
    Excellent English written and oral communication to manage client business
    needs
    Experience with in Test Case Development
    Experience creating test plans & automation scripts
    Experience in Test Management and Execution
    Excellent knowledge of technical aspect of SharePoint and Infrastructure
    Excellent communication and interpersonal skills, ability to effectively
    communicate with developers as well as end users
    Exposure in integrating Enterprise Wide business applications
    Experience in platform migration efforts with a global scope
    Very strong experience with SharePoint 2010 &/Or SharePoint 2013,
    experience with SharePoint Migrations is preferred
    Must be comfortable working in a direct business-facing role, presenting
    results and walking end-users through a QA process
    Must be comfortable building test cases directly with end-users
    Must be comfortable creating & presenting results and status updates to
    team-members on a weekly basis.
    Experience developing and employing automated testing methods, and ensuring
    that the appropriate test environments exist
    Experience creating standard operating procedures and metrics based on best
    practices for a QA team
    Experience assessing and recommending manual and automated testing methods
    and procedures
    Ability to work independently as part of a team
    Willing to travel internationally if required
     
    On-boarding Requirements US Citizenship, US Passport
    __________________________________________________________________________________________
    Warm Regards,
    Steven Smith
    Email :
    stevenpanzersolutions1
    Office : 203-652-1444 Ext : 113

     

    Diego Torres Milano <dtmilano@gmail.com> Jun 30 11:33AM -0700  

    Give AndroidViewClient/culebra
    <https://github.com/dtmilano/AndroidViewClient> a try. It handles the
    device connection better.
     
    On Sunday, 29 June 2014 23:48:43 UTC-4, wang nungchao wrote:

     

    Daniel Chacon <cubangt2@gmail.com> Jun 30 09:46AM -0500  

    Im just looking to track the miles, no matter who drives the vehicle or
    where they go, just as long as I track miles of the vehicle, not me walking
    around with the phone on me. I know its not a accurate thing and im not
    looking to be that precise, I just want to track as close as possible so
    the maintenance can be done closer to the mileage that it should be done.
     
    Mark, what part of the API would I use to sample the GPS location? Is that
    also all under the LocationManager?
     
     
    On Thu, Jun 26, 2014 at 9:13 AM, Mark Phillips <mark@phillipsmarketing.biz>
    wrote:
     

     

    vegetable <vdarznieks@gmail.com> Jun 30 07:27AM -0700  

    I have tried all sorts of things but cant get backspace to work. It's hard
    to describe this bug so I added video : www.youtube.com
    <https://www.youtube.com/watch?v=TpJ2My22rSE&feature=youtu.be>
    It works just fine on every other phone i have.

     

    vegetable <vdarznieks@gmail.com> Jun 30 07:43AM -0700  

    It has the same problem on one of my LG phones

     

    vegetable <vdarznieks@gmail.com> Jun 30 07:44AM -0700  

    It has the same problem on one of my LG phones

     

[android-developers] Digest for android-developers@googlegroups.com - 24 updates in 8 topics

Comments: (0)

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

    wang nungchao <nungchao@gmail.com> Jun 29 08:44PM -0700  

    My device is HTC butterfly
    In Android 4.1, it never happen, but Android 4.3 sometime will happen.
     
    I run the same monkeyrunner script, sometime it has broken pipe exception,
    but sometime not.
    How can I fix this issue ? Or this is HTC or Android 4.3 issue ?
     
    The detail log:
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice]
    Error sending drag start event
    140630 11:27:11.088:S [main]
    [com.android.chimpchat.adb.AdbChimpDevice]java.net.SocketException: Broken
    pipe
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    java.net.SocketOutputStream.socketWrite0(Native Method)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    java.io.BufferedWriter.flush(BufferedWriter.java:236)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.chimpchat.ChimpManager.sendMonkeyEventAndGetResponse(ChimpManager.java:187)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.chimpchat.ChimpManager.sendMonkeyEvent(ChimpManager.java:235)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.chimpchat.ChimpManager.touchDown(ChimpManager.java:88)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.chimpchat.adb.AdbChimpDevice$2.start(AdbChimpDevice.java:575)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.chimpchat.adb.LinearInterpolator.interpolate(LinearInterpolator.java:118)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.chimpchat.adb.AdbChimpDevice.drag(AdbChimpDevice.java:556)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    com.android.monkeyrunner.MonkeyDevice.drag(MonkeyDevice.java:174)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    java.lang.reflect.Method.invoke(Method.java:597)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
    140630 11:27:11.088:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at
    org.python.core.PyObject.__call__(PyObject.java:345)
    140630 11:27:11.088:S

     

    wang nungchao <nungchao@gmail.com> Jun 29 08:48PM -0700  

    Update:
    My monkeyrunner script:
     
    import sys
    from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
     
    device = MonkeyRunner.waitForConnection(1000,"HT3CJPNA0647")
    device.wake()
    while 1:
    device.drag((400, 1400), (400, 400), 2, 10)
    MonkeyRunner.sleep(3)
    device.touch( 835, 1418, MonkeyDevice.DOWN)
    MonkeyRunner.sleep(0.7)
    device.touch( 834, 1417, MonkeyDevice.UP)
    ....
     
    The exception happen in "device.drag"
     
    wang nungchao於 2014年6月30日星期一UTC+8上午11時44分16秒寫道:

     

    Jim Graham <spooky130u@gmail.com> Jun 29 04:48PM -0500  

    Some SDK that I have installed (up to and including 4.1.2) is insisting
    on SDK Tools version 23, which the SDK manager claims is installed.
    Eclipse says it's version 2.6. From what I've gathered since yesterday,
    this is a known bug. I've tried removing SDK versions, and the problem
    does not go away. In my previous post on this, everyone kept referring
    to an "Android L". Today, when rebuilding my Eclipse / SDK install from
    scratch, I saw that this is a new version of Android. But I don't have
    it installed.
     
    Here's the pattern:
     
    Open Eclipse, get error message whining about "This SDK version"
    (presumeably 4.1.2, but removing it doesn't help, and it never
    needed it before) needing version 23, which is already installed.
    Look at the detail, it calls version 23 version 22.6. Close that an
    proceed.
     
    Try creating a new Android app. When you enter the app ID, Eclipse
    whines again, about the fact that you can't start or end an app ID
    with a dot (which you're not doing in the first place) and will not
    let you move on.
     
    What SDK version do I need to remove to fix this? I'm now back farther
    than I was BEFORE I saw this problem, which makes exactly ZERO sense.
    The more I try to fix this on my Mac, the more confused I get. Could
    this somehow be related to the version of AndEngine I have in my
    workspace, that I'm trying to get started with? Might it require a
    higher SDK version (like this "L")? According to its Manifest, it only
    needs Android 8, but......
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | DMR: So fsck was originally called
    spooky130u@gmail.com | something else.
    < Running Mac OS X Lion > | Q: What was it called?
    ICBM / Hurricane: | DMR: Well, the second letter was different.
    30.44406N 86.59909W | -- Dennis M. Ritchie, Usenix, June 1998.

     

    Jim Graham <spooky130u@gmail.com> Jun 29 09:44PM -0500  

    Seems I accidentally did a direct reply. This is NOT my week.
     
    On Sun, Jun 29, 2014 at 07:28:29PM -0700, Hounge Dev wrote:
    > Jim, Ive had the same issue,
     
    k, here's what I've found. Upgrade Eclipse to 3.8 (whatever that one is
    called). You will then be able to use Help-->Install New Software to get
    what appears to be the REAL ADT 23 that it keeps griping (I had a
    different word in mind) about.
     
    But here's the problem: Eclipse now seems to be out of favor with
    Google, Android Studio doesn't seem to work for libs like AndEngine, so
    you have to use Eclipse, and it's been forever since I knew how to get
    Eclipse to recognize Android and the Android SDK.
     
    As my installation exists right now, I can't create a new Android
    project, I can't support existing ones, I can't load the SDK manager,
    AVD manager, etc., because those options don't exist...and I've
    long-since forgotten how to add them.
     
    Any help?
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurr.: 30.44406N 86.59909W
     
    "Now what *you* need is a proper pint of porter poured in a proper
    pewter porter pot.." --Peter Dalgaard in alt.sysadmin.recovery

     

    Nikolay Elenkov <nikolay.elenkov@gmail.com> Jun 30 12:05PM +0900  

    > Google, Android Studio doesn't seem to work for libs like AndEngine, so
    > you have to use Eclipse, and it's been forever since I knew how to get
    > Eclipse to recognize Android and the Android SDK.
     
    ADT should be fixed *soon*. See this for some workarounds, although it seems
    it doesn't work for everyone:
     
    https://code.google.com/p/android/issues/detail?id=72419

     

    Jim Graham <spooky130u@gmail.com> Jun 29 10:13PM -0500  

    On Mon, Jun 30, 2014 at 12:05:24PM +0900, Nikolay Elenkov wrote:
     
    > ADT should be fixed *soon*. See this for some workarounds, although it seems
    > it doesn't work for everyone:
     
    > https://code.google.com/p/android/issues/detail?id=72419
     
    That's not the problem now. I got ADT ver 23 loaded, but now I need to
    re-introduce Eclipse to the SDK, and it's no longer documented (at least,
    not that I can find on the Dev Guide, and it's been a LONG time since
    I've messed with it, and I've forgotten how.
     
    THAT's the problem now. How do I re-associate Android with Eclipse?
     
    And until then, how do I work with AndEngine in Android Studio? Nobody
    on the AndEngine Forums (based on the many threads I've read) seems to
    know how to do that.
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | "Some people are like Slinkies, they serve no
    spooky130u@gmail.com | real purpose but you still get a good laugh
    < Running Mac OS X Lion > | when you kick them down the steps."
    ICBM / Hurricane: | ("borrowed" from someone else's sig)
    30.44406N 86. 59909W |

     

    Jim Graham <spooky130u@gmail.com> Jun 29 10:17PM -0500  

    On Sun, Jun 29, 2014 at 08:12:33PM -0700, Hounge Dev wrote:
    > Looking at your post I think you need to set the path to your SDK in
    > eclipse to get SDk manager, AVD etc working again.
     
    That's just it: there's no option TO set the location of the SDK. It's
    as if Eclipse 3.8 doesn't know that Android exists.
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | 1) "Smoking habanero powder helps defeat that
    < Running Mac OS X Lion > | off taste' quite nicely."
    spooky130u@gmail.com | 2) "I figure a couple bong hits of [habanero]
    ICBM/Hurr.: / 30.44406N | powder would defeat just about anything!"
    | 86.59909W --seen in Chile-Heads list

     

    Nikolay Elenkov <nikolay.elenkov@gmail.com> Jun 30 12:23PM +0900  

    > re-introduce Eclipse to the SDK, and it's no longer documented (at least,
    > not that I can find on the Dev Guide, and it's been a LONG time since
    > I've messed with it, and I've forgotten how.
     
    Not sure what the problem is, might be easier to start with the ADT bundle
    and update to latest.
     
    https://developer.android.com/sdk/index.html
     
    The 'SDK Location' is still in Preferences/Android, so I am guessing your
    Eclipse install is broken. Usually not worth the trouble trying to fix it,
    just start fresh.

     

    Jim Graham <spooky130u@gmail.com> Jun 29 02:53PM -0500  

    For those out there who are developing for Android using Eclipse (Indigo,
    aka 3.7.2) on a Mac, I need a working copy of the SDK with an ADT version
    that both Eclipse and the SDK are happy with.
     
    If you still have the old (my copy was several years old)
    android-sdk-macosx.tar.gz file, that is probably what I need to get up
    and running again. Please contact me if you have the older version I need.
    As a temporary bypass to my spam filters, put "ADT" in the subject line.
     
    For ALL developers using Mac OS X, if anything tells you that you need to
    upgrade your ADT in the near future, DON'T DO IT!!!! You will start
    getting errors saying that the current SDK requires ADT 3, and you only
    have 2.6. When you try to upload to 3.x, you can't, because you have
    2.6. ADT 2.6 (if that's its real version number---I gather that's
    actually THE problem with it) is broken. Note also that the current
    adt-eclipse-sdk blend uses this broken ADT. How that got past QC testing
    I don't even want to try to guess. But it's broken, and that's what
    really matters.
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurr.: 30.44406N 86.59909W
     
    "Now what *you* need is a proper pint of porter poured in a proper
    pewter porter pot.." --Peter Dalgaard in alt.sysadmin.recovery

     

    "Harri Smått" <harism@gmail.com> Jun 30 12:18AM +0300  

    Hey,
     
    Something weird happened on my Eclipse installation too after I had updated Android SDK packages from Android Studio earlier this weekend. Eclipse did complain Android SDK 23 requires ADT 23, or something similar, but when I hit the automatic update button Eclipse found me no updates.
     
    Removing the existing ADT Plugin from Software Sites in preferences - then adding it back using Install New Software - finally let me upgrade ADT to the latest version though. This could help you too.
     
    But at the end I decided to re-install Eclipse with the latest version from scratch. Seriously.. Indigo, why?
     

    H
     

     

    Jim Graham <spooky130u@gmail.com> Jun 29 05:11PM -0500  

    Strange. I think my procmail filters are still messed up...this somehow
    ended up in my regular mail and not in the list's mbox, and I had no idea
    that the post even went out until I looked at the headers..... I'll
    try to find the error in procmail later....
     
    On Mon, Jun 30, 2014 at 12:18:17AM +0300, Harri Sm?tt wrote:
     
    > Removing the existing ADT Plugin from Software Sites in preferences -
    > then adding it back using Install New Software - finally let me upgrade
    > ADT to the latest version though. This could help you too.
     
    What did you add back and how (i.e., what URL)? I have version 21 of the
    ADT, which pre-dates this whole insanity on my drive, but I tried that
    yesterday, and Eclipse still inslsted that it had 22.6 (which I removed
    from the Eclipse directory).
     
    > But at the end I decided to re-install Eclipse with the latest version
    > from scratch. Seriously.. Indigo, why?
     
    To quote an old saying (poor English and all), "Don't fix it if it ain't
    broke."
     
    Of course, now, it's not just Eclipse that's brokwn, it's my procmail
    filters, too. WTH is going on? This past week has been one issue
    after another, and it's getting REALLY old.
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | AN EXCERCISE is a situation in which you stop what
    spooky130u@gmail.com | you're doing in order to simulate doing what you
    < Running Mac OS X Lion > | were doing so you can show someone else that you
    ICBM / Hurricane: | can simulate what you were doing as well as you
    30.44406N 86.59909W | were doing it before you were interrupted.

     

    Kostya Vasilyev <kmansoft@gmail.com> Jun 30 02:44AM +0400  

    > ADT, which pre-dates this whole insanity on my drive, but I tried that
    > yesterday, and Eclipse still inslsted that it had 22.6 (which I removed
    > from the Eclipse directory).
     
    I was able to recover my broken (by the Platform L preview / tools 23)
    Eclipse install by doing essentially the same....
     
    ... but without having to remove and add back the download site URL, or
    uninstalling ADT 22 as a separate step.
     
    This is what worked for me:
     
    1 - Brought up Help -> Install new software
     
    2 - In the "work with" dropdown, selected Android.
     
    The download site for that is (should be listed in the dropdown)
     
    Android - https://dl-ssl.google.com/android/eclipse
     
    3 - The large area below showed the new (23.0.*) tools.
     
    4 - Selected everything, unselected "Android Native Development Tools",
    since I didn't have those installed
     
    5 - Pressed Next
     
    6 - And finally -- Eclipse offered to *replace* the already installed ADT
    tools 22 with new tools 23.
     
    I suppose if native tools version 22 are already installed, then step 4
    should be skipped, but that's not my configuration.
     
    Hope this helps.
     
    -- K
     
     
     

     

    "Harri Smått" <harism@gmail.com> Jun 30 02:08AM +0300  


    > 6 - And finally -- Eclipse offered to *replace* the already installed ADT tools 22 with new tools 23.
     
    I believe I saw very similar operation. Eclipse did not update ADT the way I have seen it working before - but the confirmation dialog looked more into removing old ADT packages and then installing the new ones - i.e replace.
     

    H

     

    "Harri Smått" <harism@gmail.com> Jun 30 02:00AM +0300  

    > ADT, which pre-dates this whole insanity on my drive, but I tried that
    > yesterday, and Eclipse still inslsted that it had 22.6 (which I removed
    > from the Eclipse directory).
     
    I do not remember Indigo too well but hope it's working somewhat similarly to newer Eclipse versions.
     
    When you have added the ADT Plugin software source, the https://dl-ssl-google.com/android/eclipse link, quite likely using the Eclipse's "Install New Software" feature, this software source should be found/enlisted somewhere in the Eclipse preferences.
     
    On Luna it seems to be ; Preferences - Install/Update - Available Software Sites .
     
    And at this same location you can remove the existing ADT Plugin software source, then, go through the exact same ADT Plugin addition procedure explained on Google's Eclipse installation webpage again. Install New Software, Add New Repository, etc etc.
     
    For some reason doing this helped my Eclipse installation to figure out there is ADT v23 available.
     

    H

     

    Jim Graham <spooky130u@gmail.com> Jun 29 06:33PM -0500  

    Procmail filters still broken...arrived in my mail, not list. Strange.
     
    On Mon, Jun 30, 2014 at 02:44:44AM +0400, Kostya Vasilyev wrote:
    > Eclipse install by doing essentially the same....
     
    > ... but without having to remove and add back the download site URL, or
    > uninstalling ADT 22 as a separate step.
     
    Ok, but now I've removed the ADT site from Eclipse ... how do I add it
    back? That USED to be on the Android Developer's site, but Eclipse
    itself is gone now...just information about installing Android Studio.
     
    > This is what worked for me:
     
    And here's what I did, following yours:
     
    1) Installed L via the SDK Manager.
     
    > 1 - Brought up Help -> Install new software
     
    Yep.
     
    > 2 - In the "work with" dropdown, selected Android.
     
    I don't see Android in that list at all. But after copying Eclipse
    out of backups, I do see ADT Plugins, which adds Developer Tools
    to the list.
     
    > 3 - The large area below showed the new (23.0.*) tools.
     
    It does. It did before, too.
     
    > 4 - Selected everything, unselected "Android Native Development Tools",
    > since I didn't have those installed
     
    I do have the NDK installed, so I included it.
     
    > 5 - Pressed Next
     
    > 6 - And finally -- Eclipse offered to *replace* the already installed ADT
    > tools 22 with new tools 23.
     
    Mine didn't. Mine gave the same error // detail:
     
    The operation cannot be completed. See the details.
    Cannot complete the install because of a conflicting dependency.
     
    Software being installed: Android Development Tools 23.0.0.1245622
    (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
     
    Software currently installed: Android Development Tools
    22.6.1.v201403111859-1066720 (com.android.ide.eclipse.adt.feature.group
    22.6.1.v201403111859-1066720)
     
    Only one of the following can be installed at once:
     
    ADT Package 22.6.1.v201403111859-1066720
    (com.android.ide.eclipse.adt.package 22.6.1.v201403111859-1066720)
     
    ADT Package 23.0.0.1245622 (com.android.ide.eclipse.adt.package
    23.0.0.1245622)
     
    Cannot satisfy dependency:
     
    From: Android Development Tools 23.0.0.1245622
    (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
     
    To: com.android.ide.eclipse.adt.package [23.0.0.1245622]
     
    Cannot satisfy dependency:
     
    From: Android Development Tools 22.6.1.v201403111859-1066720
    (com.android.ide.eclipse.adt.feature.group
    22.6.1.v201403111859-1066720)
     
    To: com.android.ide.eclipse.adt.package
    [22.6.1.v201403111859-1066720]
     
    Suggestions?
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
     
    Do not look into laser with remaining eye.

     

    Jim Graham <spooky130u@gmail.com> Jun 29 08:01PM -0500  

    Update: I changed (via a simple symbolic link) "eclipse/" from 3.7.2 to
    3.8, and was able to update the ADT tools to version 23. Now, however, a
    project that should build without errors has errors all over the place.
    Basically, all Android-specific Java is an error. When I look at the
    preferences, I do see Ant, but no Android. And since it's been a VERY
    long time since I did this, and it's no longer in the developer's guide,
    I have a simple, stupid question:
     
    How do I re-introduce Eclipse to Android? The
     
    Thanks,
    --jim
     
    PS: What is Eclipse 3.8 called? It doesn't show a name when it loads,
    but it uses the same color scheme in its startup as Indigo.
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) |
    spooky130u@gmail.com | TeX actually recognizes several kinds of
    < Running Mac OS X Lion > | infinity, some of which are ``more infinite''
    ICBM / Hurricane: | than others.
    30.44406N 86. 59909W | --Donald Knuth in {The TeXbook}

     

    smoogli <roy.ben.hayun@gmail.com> Jun 29 01:46PM -0700  

    How can I test the real installation of my application? (specifically, over
    the air by using a store client; and not using "adb install")
     
    for example, is it possible to upload to a store and install using a
    developer device?
     
    thanks!

     

    TreKing <trekingapp@gmail.com> Jun 29 04:04PM -0500  


    > How can I test the real installation of my application? (specifically,
    > over the air by using a store client; and not using "adb install")
     
    What difference does it make? It's the same APK.
     
     
    > for example, is it possible to upload to a store and install using a
    > developer device?
     
    Yes, of course, assuming you have the relevant app store installed on your
    device.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Arun M R <arun.m.ravi@gmail.com> Jun 29 12:25AM -0700  

    Am trying to to develop a new Screen lock android app. Anyone please tell
    me is it possible to override "Home". I tried the following code but it
    giving me a crash
     
    @Override
    public void onAttachedToWindow(){

    this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
    super.onAttachedToWindow();
     
    }
     
    I want to stay on the same activity until the user is authenticated..is it
    possible ? Any help is appreciated ..

     

    TreKing <trekingapp@gmail.com> Jun 29 03:59PM -0500  


    > Am trying to to develop a new Screen lock android app. Anyone please tell
    > me is it possible to override "Home".
     
    Yeah, create you own "Home" and have the user elect to run it.
     
     
    > I tried the following code but it giving me a crash
     
    The fact that this "gives you a crash" is not really useful information.
    You might want to expand on what this crash is, at the very least.
     
    http://www.catb.org/esr/faqs/smart-questions.html
     
     
    > I want to stay on the same activity until the user is authenticated..is it
    > possible ? Any help is appreciated ..
     
    See the new Task Locking API:
    http://developer.android.com/preview/api-overview.html#Enterprise
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Jun 29 03:50PM -0500  


    > My understanding is that above code should work on any GPS enabled android
    > device. Any insight why it is not working on device other than my
    > development device?
     
     
    If you read the documentation for that method, it explicitly states that
    null can be returned and why.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    greno <greno@verizon.net> Jun 29 01:55PM -0700  

    I just got one of these notices as well. And I didn't think it applied.
    Then I did some digging and found out that sure enough one of the apps was
    linked to an old version of openssl. So now I'm working on getting the app
    updated to a newer version of openssl.

     

    Jim Graham <spooky130u@gmail.com> Jun 29 08:22AM -0500  

    As mentioned in a previous post, something happened to my Eclipse install
    (ADT version 22.6 is screwed up and breaks everything), and the upgrade
    to 22.6 was forced by Android Studio, as I recall. Whatever, I don't
    really care what made me upgrade to a broken ADT. I just want to get
    started with AndEngine tutorials this morning....
     
    So before I completely remove Eclipse, the Android SDK for Mac, etc.,
    and start over (using ADK version 21.xomsething), let's try to go the
    easier way.....
     
    How do I load AndEngine into Android Studio to use as an external
    library? It is a finished project, with source and libs, and will
    not be touched by Gradle. How do I do this? The same question
    applies to all of the extensions for AndEngine, as well, and I'm
    not sure if those are plain source, just libs, or both. What I
    *DO* know is that they are almost certainly not Gradle projects, so
    again, no Gradle.
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
     
    The UNIX Guru's View of Sex:
    # unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

     

[android-developers] Digest for android-developers@googlegroups.com - 6 updates in 3 topics

Comments: (0)

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

    greno <greno@verizon.net> Jun 28 03:21PM -0700  

    $ make
    ...
     
    * [taskdef] Could not load definitions from resource emma_ant.properties.
    It could not be found.*
     
    -set-mode-check:
     
    -set-debug-files:
     
    -check-env:
    [checkenv] Android SDK Tools Revision 23.0.0
    [checkenv] Installed at /usr/local/android-sdk-linux_x86
     
    -setup:
    [echo] Project Name: .
    [gettype] Project Type: Android Library
     
    -set-debug-mode:
     
    -debug-obfuscation-check:
     
    -pre-build:
     
    -build-setup:
    [getbuildtools] Using latest Build Tools: 20.0.0
    [echo] Resolving Build Target for ....
    [gettarget] Project Target: Android 3.0
    [gettarget] API level: 11
    [echo] ----------
    [echo] Creating output directories if needed...
     
    -compile:
    [javac] Compiling 41 source files...
    * [javac] ManagerProxy.java:3: error: package android.annotation does
    not exist*
    [javac] import android.annotation.TargetApi;
    [javac] ^
    [javac] ManagerProxy.java:48: error: cannot find symbol
    [javac] @TargetApi(11)
    [javac] ^
    [javac] symbol: class TargetApi
    [javac] location: class ManagerProxy
    [javac] 2 errors
     
    BUILD FAILED
    /usr/local/android-sdk-linux_x86/tools/ant/build.xml:720: The following
    error occurred while executing this line:
    /usr/local/android-sdk-linux_x86/tools/ant/build.xml:734: Compile failed;
    see the compiler error output for details.
     
    Total time: 2 seconds
     
     
    And I do not see a
    /usr/local/android-sdk-linux_x86/tools/support/annotations.jar

     

    TreKing <trekingapp@gmail.com> Jun 28 08:40AM -0500  


    > Any idea why it is not working on all the android devices?
     
     
    Because you didn't test and account for all android devices.
     
    If you want a better answer than that, you need to provide a better
    question than this. For example, explaining what "not working" or "failing"
    means would help the rest of us who have no idea what you're talking about.
     
    http://www.catb.org/esr/faqs/smart-questions.html
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Spica <spicanebula@gmail.com> Jun 28 02:46PM -0700  

    TreKing - i have nerrowed down the problem and its with GPS location. Here
    is the code which is not working:
     
    _locationManager = (LocationManager)
    getSystemService(Context.LOCATION_SERVICE);
    Criteria criteria = new Criteria();
    _provider = _locationManager.getBestProvider(criteria, false);
    _location = _locationManager.getLastKnownLocation(_provider);
     
    Variable _location is set to null when i test on other device than the
    one(galaxy s3) i used to developed the app. My understanding is that above
    code should work on any GPS enabled android device. Any insight why it is
    not working on device other than my development device?
     
    On Saturday, June 28, 2014 10:03:13 AM UTC-4, TreKing wrote:

     

    Kostya Vasilyev <kmansoft@gmail.com> Jun 28 09:14AM -0700  

    Did anyone else playing with Preview L notice their
    splitActionBarWhenNarrow application attribute not working, when using the
    Material theme?
     
    I wonder if this is an accidental bug, or a intentional change (given that
    Google's own apps seem to not be using a split action bar these days)?
     
    -- K

     

[android-developers] Digest for android-developers@googlegroups.com - 10 updates in 6 topics

Comments: (0)

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

    Spica <spicanebula@gmail.com> Jun 27 09:39PM -0700  

    Hi,
    I have developed android app using Galaxy S3. When i published my app on
    google play, it does not perform few functions which includes GPS access or
    SQL lite access.
    Any idea why it is not working on all the android devices?
     
    Note: My app has been developed for Android 4.2.
     
    Thanks & Regards,

     

    TreKing <trekingapp@gmail.com> Jun 27 07:37PM -0500  

    On Thu, Jun 26, 2014 at 12:00 PM, 'RLScott' via Android Developers <
     
    > That fixed it! Although I don't know why it didn't work before. Thanks.
     
     
    Glad that worked for you. Note that you should use "match_parent" instead
    of explicitly setting the height on each button so if and when you adjust
    the parent height, you don't have to do it in 3 places.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Jim Graham <spooky130u@gmail.com> Jun 27 02:55PM -0500  

    I'm running Eclipse (Indigo), and am seeing some errors I've never seen
    before...hoping someone here can help me get past these.
     
    First, when I open Eclipse, it complains that "This SDK" (WHICH SDK???)
    requires ADK version 3.0, and I only have 2.6 installed. Fine. I'll
    install 3.0.
     
    When I try to install 3.0, it starts trying to, and then gives me this
    warning message (blank lines added for readability):
     
    Cannot complete the install because of a conflicting
    dependency. Software being installed: Android Development
    Tools 23.0.0.1245622
     
    (com.android.ide.eclipse.adt.feature.feature.group
    23.0.0.1245622) Software currently installed: Android
    Development Tools 22.6.1.v201403111859-1066720
     
    (com.android.ide.eclipse.adt.feature.group
    22.6.1.v201403111859-1066720) Only one of the following can
    be installed at once: ADT Package
    22.6.1.v201403111859-1066720
     
    (com.android.ide.eclipse.adt.package
    22.6.1.v201403111859-1066720) ADT Package 23.0.0.1245622
     
    (com.android.ide.eclipse.adt.package 23.0.0.1245622) Cannot
    satisfy dependency: From: Android Development Tools
    23.0.0.1245622
     
    (com.android.ide.eclipse.adt.feature.feature.group
    23.0.0.1245622) To: com.android.ide.eclipse.adt.package
    [23.0.0.1245622] Cannot satisfy dependency: From: Android
    Development Tools 22.6.1.v201403111859-1066720
     
    (com.android.ide.eclipse.adt.feature.group
    22.6.1.v201403111859-1066720) To:
     
    com.android.ide.eclipse.adt.package
    [22.6.1.v201403111859-1066720]
     
    So basically, I have ADT 2.6, which Eclipse doesn't like---it wants 3.0.
    But it won't install 3.0 because I have 2.6.
     
    Finally, when I try to create a new project (getting started with
    AndEngine and a tutorial), the "New Android Application" screen keeps
    griping that "A package name cannot start or end with a dot." The
    thing is, it doesn't start or end with a dot. WTFO?
     
    Is it just me, or has this been a really bad week for everyone?
     
    Oh, FWIW, as a side note, I tried importing AndEngine into Android
    Studio, too. Android Studio, however, insisted (couldn't find the option
    to stop this) on using Gradle for a non-Gradle project. I no doubt
    missed some tiny check-box somewhere, but I definitely couldn't see it.
    Can anyone point me to that checkbox to import a non-Gradle project
    without trying to apply Gradle?
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | AN EXCERCISE is a situation in which you stop what
    spooky130u@gmail.com | you're doing in order to simulate doing what you
    < Running Mac OS X Lion > | were doing so you can show someone else that you
    ICBM / Hurricane: | can simulate what you were doing as well as you
    30.44406N 86.59909W | were doing it before you were interrupted.

     

    Jim Graham <spooky130u@gmail.com> Jun 27 03:56PM -0500  

    On Sat, Jun 28, 2014 at 01:48:27AM +0530, Anil Kumar wrote:
    > Does it Happened after you updated your android sdk to android L. Because
    > if so, then all these errors are obvious..
     
    Android L??? I have no idea what release that is, so I don't know. I
    DID have several APIs loaded for something else that I uninstalled, and
    left only up to 4.1.2. That didn't change anything, even after removing
    and reinstalling Indigo.
     
    > You will require minimum version of eclipse indigo 3.7.2 or above
     
    Yep, my version of Indigo IS 3.7.2. I didn't know there was a higher
    version of Indigo...or why check for updates didn't find it.
     
    > Also you will require to update your ADT to ADT 23..
     
    Uh huh....but since you read my post, you know that's part of the
    whole problem...Eclipse refuses to do the upgrade it says it requires.
     
    > these these requirements are listed on android developers site ..you can
    > refer that and just follow the instructions ..all the errors will get
    > removed ...
     
    Were these instructions at any particular URL? Or just any random place
    on the Android Developer's site? :-) Serously, though, a link would
    be nice.
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) |
    spooky130u@gmail.com | TeX actually recognizes several kinds of
    < Running Mac OS X Lion > | infinity, some of which are ``more infinite''
    ICBM / Hurricane: | than others.
    30.44406N 86. 59909W | --Donald Knuth in {The TeXbook}

     

    Jim Graham <spooky130u@gmail.com> Jun 27 03:59PM -0500  

    On Sat, Jun 28, 2014 at 12:35:36AM +0400, Kostya Vasilyev wrote:
     
    > https://plus.google.com/111661559774274998746/posts/FSqUAwwikBd
     
    > The comment by Joe Rogers
     
    > Basically, the 23 version of ADT has wrong package name.
     
    After reading some of the comments (particularly the last two), it
    does look familiar. So what's the solution?
     
    And what is this Android L I keep seeing mentioned? I uninstalled all
    above Android 4.1.2, but it didn't change anything. How do you remove
    an ADT package? I tried removing what appeared to be the relevant
    directories in ~/Android/eclipse, but that did nothing.
     
    Thanks,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
     
    "'Wrong' is one of those concepts that depends on witnesses."
    --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09)

     

    Jim Graham <spooky130u@gmail.com> Jun 27 04:08PM -0500  

    On Sat, Jun 28, 2014 at 12:35:36AM +0400, Kostya Vasilyev wrote:
    > Might be related to this:
     
    > https://plus.google.com/111661559774274998746/posts/FSqUAwwikBd
     
    > The comment by Joe Rogers
     
    Ah, yes, missed the name. That was the one I was referring to.
     
    Now, while we're on that one page, the OP, when he mentioned still
    using Eclipse, seemed to get (probably jokingly) chastised for it.
    If Android Studio is now the norm, where IS that checkbox to import an
    existing NON-GRADLE project? Or, put another way, does anyone know how
    to use AndEngine in Android Studio? I've looked in the AndEngine forums,
    and so far, nobody seems to have workd it out.
     
    Anyone?
     
    Thanks,
    --jim
     
    PS: Note that this was mentioned in my original post, so I'm not
    hijacking my own thread.....
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) | "Some people are like Slinkies, they serve no
    spooky130u@gmail.com | real purpose but you still get a good laugh
    < Running Mac OS X Lion > | when you kick them down the steps."
    ICBM / Hurricane: | ("borrowed" from someone else's sig)
    30.44406N 86. 59909W |

     

    Kevin Kovach <kovach@gmail.com> Jun 27 06:22AM -0700  

    I feel like I must be missing something simple, but I'm new to gradle and
    the idea of flavors so I've not yet figured it out.
     
    I have a android library project with two flavors. I need to upload this
    library in both flavors to our local maven repository for use in other
    projects. The issue I'm having is that I cannot figure out how these
    flavors play into the maven group, artifact, version scheme so that I can
    use them as dependencies in other projects? I would think that the version
    would somehow include the flavor, but that doesn't seem to be the case.
    The version appears to stay the same and when I try to tweak the
    dependency in one of the other projects to reference a flavor in some way
    it only complains that they cannot be found.
     
    How do I manage dependencies on specific flavors?
     
    I hope this makes sense? Any help would be appreciated. Thanks.
     
    - Kevin

     

    Anything <sanandiya.rajesh48@gmail.com> Jun 27 03:44AM -0700  

    Hello Friends,
    I have to try use ffmpeg lib for my android project,when i try
    ./build_android.sh get below error on cygwin.
     
    arm-linux-androideabi-gcc is unable to create an executable file.
    C compiler test failed.
     
    If you think configure made a mistake, make sure you are using the latest
    version from Git. If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solving the problem.
    Makefile:2: config.mak: No such file or directory
    Makefile:47: /common.mak: No such file or directory
    Makefile:89: /libavutil/Makefile: No such file or directory
    Makefile:89: /library.mak: No such file or directory
    Makefile:169: /doc/Makefile: No such file or directory
    Makefile:170: /tests/Makefile: No such file or directory
    make: *** No rule to make target '/tests/Makefile'. Stop.
    Makefile:2: config.mak: No such file or directory
    Makefile:47: /common.mak: No such file or directory
    Makefile:89: /libavutil/Makefile: No such file or directory
    Makefile:89: /library.mak: No such file or directory
    Makefile:169: /doc/Makefile: No such file or directory
    Makefile:170: /tests/Makefile: No such file or directory
    make: *** No rule to make target '/tests/Makefile'. Stop.
     
    Please if you have any solution,replay me.
    Thank you.

     

    YanuFreaky <yanufreaky@gmail.com> Jun 27 02:26AM -0700  

    Hello devs,
     
    Is there already a defined style or a component for this new circular FAB
    button? Or should I just make it myself?
     
    The button is described here:
    http://www.google.com/design/spec/components/buttons.html#
     
     
    Thanks,
    Yanu

     

[android-developers] Digest for android-developers@googlegroups.com - 8 updates in 4 topics

Comments: (0)

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

    NimeshChanchani <nimeshchanchani@gmail.com> Jun 26 10:28PM -0700  

    just curious if Android auto will support A2DP sink and HFP HF.
     
    will it be open source if it does?

     

    NimeshChanchani <nimeshchanchani@gmail.com> Jun 26 10:29PM -0700  

    just curious if Android auto will support A2DP sink and HFP HF.
     
    will it be open source if it does?
     

     

    RLScott <fixthatpiano@yahoo.com> Jun 26 05:01AM -0700  

    By "different vertical positions" I mean that the two buttons are side by
    side, but one is positioned slightly higher on the screen, as shown in the
    attached "two-buttons.png".

     

    TreKing <trekingapp@gmail.com> Jun 26 09:43AM -0500  

    I see. Try changing the button heights to match parent and the containing
    layout to whatever height you want it.
     
     
    On Thu, Jun 26, 2014 at 7:01 AM, 'RLScott' via Android Developers <
     
    --
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    RLScott <fixthatpiano@yahoo.com> Jun 26 09:55AM -0700  

    On Thursday, June 26, 2014 9:08:45 AM UTC-6, TreKing wrote:
     
    > I see. Try changing the button heights to match parent and the containing
    > layout to whatever height you want it.
     
    No, that didn't help either. The attached two-buttons.png is what happens
    with this XML:
     
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="60sp" >
     
    <Button
    android:id="@+id/cancelButton"
    android:layout_width="0dp"
    android:layout_height="60sp"
    android:layout_marginLeft="6sp"
    android:layout_marginRight="6sp"
    android:layout_weight="0.5"
    android:background="#ffffaaaa"
    android:onClick="onClickCancel"
    android:text="Cancel the Calibration"
    android:textColor="#ff000000"
    android:textSize="18sp" ></Button>
     
    <Button
    android:id="@+id/beginButton"
    android:layout_width="0dp"
    android:layout_height="60sp"
    android:layout_marginLeft="6sp"
    android:layout_marginRight="6sp"
    android:layout_weight="0.5"
    android:background="#ffaaffaa"
    android:onClick="onClickBegin"
    android:text="Begin"
    android:textColor="#ff000000"
    android:textSize="18sp" ></Button>
    </LinearLayout>
     
     
    But if I just change "Begin" to "Begin the Calibration" so that it takes up
    two lines just like the other button, then everything is OK, as shown by
    the attached two-buttons-OK.png.

     

    RLScott <fixthatpiano@yahoo.com> Jun 26 10:00AM -0700  

    On Thursday, June 26, 2014 9:08:45 AM UTC-6, TreKing wrote:
     
    > I see. Try changing the button heights to match parent and the containing
    > layout to whatever height you want it.
     
    That fixed it! Although I don't know why it didn't work before. Thanks.

     

    Mark Phillips <mark@phillipsmarketing.biz> Jun 26 07:13AM -0700  

    On Wed, Jun 25, 2014 at 11:36 AM, Steve Gabrilowitz <steveg1701@gmail.com>
    wrote:
     
    > usages of the GPS, record the location when you turn it on and then when
    > you turn it off just look up the distance between current point and saved
    > start point!
     
    A more accurate approach would be to sample the GPS location on a
    continuous basis. A button on the app could be used to start/stop the
    sampling to save battery, or, better yet, dynamically change the sample
    rate - decrease when the samples don't change and increase to a set maximum
    when they do. I can envision driving from point A to point B on several
    different routes, all of which are different distances. Just knowing the
    end points would not be a very accurate way to measure the miles driven for
    stuff like oil changes, tire rotation, tire wear, etc.
     
    Mark
     
     
     

     

    Federico Cacco <federico.cacco@gmail.com> Jun 26 03:37AM -0700  

    Hi
     
    I am developing an application for Android, where I need to get the list of
    parents of a file taken from google Drive.
     
    I correctly obtain the DriveId
    using Drive.DriveApi.newOpenFileActivityBuilder(), but when I use
    DriveResource.listParents I obtain an empty list even if the resource have
    a parent.
     
    I use the same GoogleApiClient for
    Drive.DriveApi.newOpenFileActivityBuilder() and
    DriveResource.listParents, so i do not think that is a scope problem.
     
    **************
    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent
    data) {
    if (requestCode == Constants.REQUEST_CODE_GOOGLE_DRIVE_FILE_PICKER) {
    if (resultCode == RESULT_OK) {
    mSelectedFileDriveId = (DriveId)
    data.getParcelableExtra(OpenFileActivityBuilder.EXTRA_RESPONSE_DRIVE_ID);
    } else {
    setResult(Constants.RESULT_CODE_KO);
    finish();
    }
    }
    }
     
    *************
    private ResultCallback<MetadataBufferResult> metadataBufferCallback =
    new ResultCallback<MetadataBufferResult>() {
    @Override
    public void onResult(MetadataBufferResult result) {
    if (!result.getStatus().isSuccess()) {
    SDKUtils.showMessage(thisActivity, "Impossible salvare l'ultima
    posizione aperta in Google Drive");
    return;
    }
    MetadataBuffer metadataBuffer = result.getMetadataBuffer();
    // HERE I OBTAIN AN EMPTY OBJECT
    }
    };
     
    ***************
    mGoogleApiClient = new GoogleApiClient.Builder(this)
    .setAccountName(driveAccontName)
    .addApi(Drive.API)
    .addScope(Drive.SCOPE_FILE)
    .addConnectionCallbacks(this)
    .addOnConnectionFailedListener(this).build();

    ***************
    DriveFile driveFile = Drive.DriveApi.getFile(getGoogleApiClient(),
    mSelectedFileDriveId);
    driveFile.listParents(GoogleApiClient apiClient).setResultCallback(
    metadataBufferCallback );
     
    ***************
     
    Have any suggestions?
    Thanks!

     

[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 4 topics

Comments: (0)

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

    "prudhvi" <prudhviraju1987@gmail.com> Jun 25 08:20PM -0400  

    I need to display the existing files from google drive but I am unable to
    display any of the files . I have added google play services as lib , added
    google drive api to the proj and successfully able to connect to the google
    client API
     
    Please let me know if am wrong or missing something in the code
     
    Here is my code
     
    sample.java
     
    public class Sample extends ListActivity implements
     
    ConnectionCallbacks, OnConnectionFailedListener {
     

     
    private static final String TAG = "BaseDriveActivity";
     
    private DataBufferAdapter<Metadata> mResultsAdapter;
     
    private String mNextPageToken;
     
    private ListView mListView;
     
    private boolean mHasMore ;
     
    protected static final int REQUEST_CODE_RESOLUTION = 1;
     
    private GoogleApiClient mGoogleApiClient;
     

     

     
    @Override
     
    protected void onCreate(Bundle savedInstanceState) {
     
    // TODO Auto-generated method stub
     
    super.onCreate(savedInstanceState);
     

     
    setContentView(R.layout.fragment_main);
     
    mListView = getListView();
     
    mResultsAdapter = new ResultsAdapter(this);
     
    mListView.setAdapter(mResultsAdapter);
     
    mListView.setOnScrollListener(new OnScrollListener() {
     

     
    @Override
     
    public void onScrollStateChanged(AbsListView view, int
    scrollState) {
     
    }
     

     
    @Override
     
    public void onScroll(AbsListView view, int first, int visible,
     
    int total) {
     
    if (mNextPageToken != null && first + visible + 5 < total) {
     
    retrieveNextPage();
     
    }
     
    }
     

     
    });
     

     
    }
     

     

     
    @Override
     
    protected void onResume() {
     
    super.onResume();
     
    if (mGoogleApiClient == null) {
     

     
    mHasMore = true;
     
    mGoogleApiClient = new GoogleApiClient.Builder(this)
     
    .addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)
     
    .addScope(Drive.SCOPE_FILE)
     
    .addConnectionCallbacks(this)
     
    .addOnConnectionFailedListener(this).build();
     

     
    }
     
    mGoogleApiClient.connect();
     

     
    }
     

     

     
    private void retrieveNextPage() {
     
    // TODO Auto-generated method stub
     

     
    if (!mHasMore) {
     
    return;
     
    }
     
    // retrieve the results for the next page.
     
    Query query = new
    Query.Builder().setPageToken(mNextPageToken).build();
     
    Drive.DriveApi.query(getGoogleApiClient(), query).setResultCallback(
     
    metadataBufferCallback);
     

     
    }
     

     
    @Override
     
    protected void onActivityResult(int requestCode, int resultCode, Intent
    data) {
     
    super.onActivityResult(requestCode, resultCode, data);
     
    if (requestCode == REQUEST_CODE_RESOLUTION && resultCode ==
    RESULT_OK) {
     
    mGoogleApiClient.connect();
     
    }
     
    }
     

     

     
    @Override
     
    protected void onPause() {
     

     
    if (mGoogleApiClient != null) {
     
    mResultsAdapter.clear();
     
    mGoogleApiClient.disconnect();
     
    }
     
    super.onPause();
     
    }
     

     

     
    @Override
     
    public void onConnected(Bundle connectionHint) {
     

     

     
    retrieveNextPage();
     

     
    }
     

     

     
    @Override
     
    public void onConnectionSuspended(int cause) {
     
    Log.i(TAG, "GoogleApiClient connection suspended");
     
    }
     

     

     
    @Override
     
    public void onConnectionFailed(ConnectionResult result) {
     
    Log.i(TAG, "GoogleApiClient connection failed: " +
    result.toString());
     
    if (!result.hasResolution()) {
     
    // show the localized error dialog.
     
    GooglePlayServicesUtil.getErrorDialog(result.getErrorCode(),
    this,
     
    0).show();
     
    return;
     
    }
     
    try {
     
    result.startResolutionForResult(this, REQUEST_CODE_RESOLUTION);
     
    } catch (SendIntentException e) {
     
    Log.e(TAG, "Exception while starting resolution activity", e);
     
    }
     
    }
     

     

     
    public void showMessage(String message) {
     
    Toast.makeText(this, message, Toast.LENGTH_LONG).show();
     
    }
     

     

     
    public GoogleApiClient getGoogleApiClient() {
     
    return mGoogleApiClient;
     
    }
     

     
    private final ResultCallback<MetadataBufferResult>
    metadataBufferCallback = new ResultCallback<MetadataBufferResult>() {
     
    @Override
     
    public void onResult(MetadataBufferResult result) {
     
    if (!result.getStatus().isSuccess()) {
     
    showMessage("Problem while retrieving files");
     
    return;
     
    }
     

     
    mResultsAdapter.append(result.getMetadataBuffer());
     
    mNextPageToken = result.getMetadataBuffer().getNextPageToken();
     
    mHasMore = mNextPageToken != null;
     

     

     
    }
     
    };
     
    }
     
    ResultsAdapter.java
     
    public class ResultsAdapter extends DataBufferAdapter<Metadata> {
     

     
    public ResultsAdapter(Context context) {
     
    super(context, android.R.layout.simple_list_item_1);
     
    }
     

     
    @Override
     
    public View getView(int position, View convertView, ViewGroup parent) {
     
    if (convertView == null) {
     
    convertView = View.inflate(getContext(),
     
    android.R.layout.simple_list_item_1, null);
     
    }
     
    Metadata metadata = getItem(position);
     
    TextView titleTextView =
     
    (TextView) convertView.findViewById(android.R.id.text1);
     
    titleTextView.setText(metadata.getTitle());
     
    return convertView;
     
    }
     
    }
     
    fragment_main.xml
     
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     
    android:layout_width="match_parent"
     
    android:layout_height="match_parent"
     
    android:orientation="vertical" >
     

     
    <ListView
     
    android:id="@+id/android:list"
     
    android:layout_width="match_parent"
     
    android:layout_height="match_parent">
     
    </ListView>
     

     
    </LinearLayout>
     

     
    Thanks in Advance

     

    RLScott <fixthatpiano@yahoo.com> Jun 25 06:30AM -0700  

    Two buttons are to be placed side by side in a horizonally-oriented
    LinearLayout whose width is match_parent. To make the buttons share the
    width equally I have assigned each Button the layout_weight of "0.5".
    Everything looks good if both buttons have a single line of text, or if
    both buttons have two lines of text. But when one button has 2 lines and
    the other button has 1 line, the two buttons appear at slightly different
    vertical positions. They both have a fixed height ("60sp") to allow for 1
    or 2 lines of text. How can I make these buttons look symmetrical? Here
    is the xml:
     
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >
     
    <Button
    android:layout_height="60sp"
    android:layout_weight="0.5"
    android:text="Cancel the Calibration"
    android:textSize="18sp" ></Button>
     
    <Button
    android:layout_height="60sp"
    android:layout_weight="0.5"
    android:text="Accept"
    android:textSize="18sp" ></Button>
     
    </LinearLayout>
     
    This is being rendered on a 320x480 portrait screen under Android 3.1. Why
    don't they appear at the same vertical position on the screen?

     

    Tushar Lal <tushski@gmail.com> Jun 25 08:58PM +0530  

    Instead of "sp" try "dp"...
    On Jun 25, 2014 7:06 PM, "'RLScott' via Android Developers" <

     

    RLScott <fixthatpiano@yahoo.com> Jun 25 12:16PM -0700  

    "dp" instead of "sp" made no difference. The two buttons still appear at
    different vertical positions when only one of them has text that takes up
    two lines.
     
     
    On Wednesday, June 25, 2014 9:54:03 AM UTC-6, Tushar Lal wrote:

     

    TreKing <trekingapp@gmail.com> Jun 25 06:21PM -0500  

    On Wed, Jun 25, 2014 at 8:30 AM, 'RLScott' via Android Developers <
     
    > Why don't they appear at the same vertical position on the screen?
     
     
    To be clear, explain "same vertical position". Maybe post a screenshot.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Dan Cha <cubangt2@gmail.com> Jun 25 08:57AM -0700  

    I'm looking to better track my own personal mileage on my truck.. so was
    looking into the GPS module and seems it may be possible, but wanted to ask
    before spending to much time building something that will never work.
    since this is going to be for my personal usage, it is going to be a simple
    app that ill turn on when in the truck and have it track my miles for the
    day and so on..

    I know sounds like a pain to have to turn it on and off but since this is a
    work that can be part of our daily routine to log everything, turn on app
    and so on..

    any links to good source would be great if this is possible..

    thanks.

     

    Steve Gabrilowitz <steveg1701@gmail.com> Jun 25 02:36PM -0400  

    I just did a play store search for the heck of it and there is an app that
    claims to do just that, and has good reviews so it apparently is possible.
    The app is free but implements in-app purchasing and one of the reviewers
    mentioned something about a $10 option but it might be a better solution
    for you than reinventing the wheel.
     
    If you want to write a simple app as you suggest and you don't mind having
    to turn it on and off then it seems to me that all you would need is 2
    usages of the GPS, record the location when you turn it on and then when
    you turn it off just look up the distance between current point and saved
    start point!

     

    Daniel Chacon <cubangt2@gmail.com> Jun 25 03:30PM -0500  

    From what im finding the GPS demos im finding use the
    *android.permission.ACCESS_FINE_LOCATION
    which seems to be what I would use.. *
    *From the ones I found when searching in the store, most did what I want
    and some didn't(most were manually logging data)..what im looking for is to
    create a simple app, enter my starting mileage, record the mileage based on
    the GPS and once I hit 3000 miles notify via (app message, text or email)
    that its time for change.. and as for tire rotations, same thing.. enter a
    starting mileage, record the mileage based on the GPS and once I hit 5000
    miles notify via (app message, text or email) that its time for rotation..*
     
    *Considering some of the other apps have advertisments and other features
    ill never use, I rather play around with creating my own. I like to
    reinvent the wheel :)*
     
     
    On Wed, Jun 25, 2014 at 1:36 PM, Steve Gabrilowitz <steveg1701@gmail.com>
    wrote:
     

     

    andrew_esh <andrew.c.esh@gmail.com> Jun 25 05:44AM -0700  

    You need to inspect all the packages you use in your app, and make certain
    you are not using an insecure version of OpenSSL. You can't try to excuse
    yourself from this because you don't think you are handling sensitive
    information. That's not what they are asking for. Somehow, Google thinks
    they found OpenSSL in your app, and they were able to determine that it's a
    bad version. I'd push back on that if anything. See if they will show you a
    log of their scan, or if they will describe how they arrived at this
    conclusion. Then fix the problem. I'd look at this as an adventure. Maybe
    you'll learn an app scanning technique that can be used to detect other
    features.