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

Comments: (0)

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

    Anirudh <anirudh.theone@gmail.com> Mar 31 10:53PM -0700 ^
     
    hey guys.
     
    how do you fix the position of an image drawn onto a canvas with a
    large scrollable background?
     
    picture this: the background image is that of a room, the object
    images are bed, door etc. the object images are drawn on top of the
    background.
     
    when i scroll the background, the objects should move with respect to
    the background image, correct? the problem is the object images also
    move but the position doesn't stay the same, i.e they shift from their
    original positions.
     
    here is my implementation.
     
    switch (event.getAction()) {
     
    case MotionEvent.ACTION_DOWN:
    mStartX = event.getRawX();
    mStartY = event.getRawY();
    break;
    case MotionEvent.ACTION_MOVE:
    float x = event.getRawX();
    float y = event.getRawY();
    // Calculate move update.
    mScrollByX = x - mStartX; // move update x increment
    mScrollByY = y - mStartY; // move update y increment
     
    mBed.setX((mBed.getX() + mScrollByX));
    mBed.setY((mBed.getY() + mScrollByY));
     
    is this correct? please help me out
     
    thanx
     
    \m/

     

    "Maps.Huge.Info (Maps API Guru)" <coryat@gmail.com> Mar 31 09:49PM -0700 ^
     
    I've been working with Google's API's and things since 2005 and have
    never encountered the level of technical competence that's been
    demonstrated with the Android market. It's as if a person with zero
    experience developing systems is at the wheel of this project. If it
    were me doing these things, I'd quit and try and join the forest
    service, although they wouldn't have me because of fear I'd burn the
    woods down tripping over a lantern while peeing.
     
    The scenarios I envision for the market are as follows:
     
    1. A person with great power at Google is responsible for the Android
    market and everyone is afraid to tell him/her they are screwing the
    pooch.
     
    2. The Android people just don't give a rat's behind about the market.
     
    3. This is a grand experiment to see just how far the developer
    community can be pushed before we storm the Googleplex with torches
    and pitch forks.
     
    I'm inclined to believe #1 as I think the people who work on Android
    that I've met and had dealing with so far seem genuinely concerned and
    dedicated to making this platform a success. #3 does seem to be a
    possibility. Perhaps this part of someone's dissertation.
     
    -John Coryat

     

    "Maps.Huge.Info (Maps API Guru)" <coryat@gmail.com> Mar 31 10:50PM -0700 ^
     
    The developer console is back! All is forgiven...
     
    -John Coryat

     

    Zsolt Vasvari <zvasvari@gmail.com> Mar 31 10:49PM -0700 ^
     
    The statistics are reset back to March 1st.
     
    LOL.
     

     

    Sven <sirdarthnader@googlemail.com> Mar 31 10:36PM -0700 ^
     
    Have a loot at there: http://developer.android.com/reference/android/telephony/TelephonyManager.html
     
    You have to register a BroadcastReciever in your Manifest (like your
    outgoing one) with the intent filter android.intent.action.PHONE_STATE
    and you need the Permission READ_PHONE_STATE.
    If you check for the state CALL_STATE_RINGING, then you know there is
    a incoming call. Then you can start your app. You can start your
    activity or service.
     
    I'm working on a app using this as well, but at the moment I'm at work
    and don't have the source in front of me, to give you detailed
    example. Maybe you can find out with the help i gave you here, if not
    i can post some example later the day when I'm at home.
     
     
     

     

    gjs <garyjamessilva@gmail.com> Mar 31 10:20PM -0700 ^
     
    Hi,
     
    Maybe buffer the sensor data in memory & writing it periodically &
    don't write it to SD card when 2 minute video is being recorded, ie
    try to synchronize writing to sdcard amongst your activity/services.
     
    I guess some contention writing to sdcard ? I've seen video frames be
    dropped when other task is writing to sdcard.
     
    ANR's I've experienced for a very similar app, was my error - just
    forgot to put sleep/wait in a thread loop.
     
    Regards
     
    On Apr 1, 1:32 am, Edward Cunningham <edward.cunning...@gmail.com>
    wrote:

     

    Pradeep <pradeep.penchala@gmail.com> Mar 31 10:17PM -0700 ^
     
    Hello,
     
    I am badly stuck at adding sdk components from Android SDK and AVD
    Manager in order to install sdk platform tools.
     
    Under Available Packages tab, when we check the repository link
    present there, it says
     
    Dialog box pops up saying Fetching respository "URL Link" in title bar
    and
     
    Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml,
    reason: Server returned HTTP response code: 407 for URL:
    http://dl-ssl.google.com/android/repository/repository.xml
     
    I am not able to proceed further because most of the platform tools
    and development tools has to be installed using this step. I have gone
    through various related forum discussions and tried but it didnt
    work.
     
     
    Can someone pleasee help me in this regard. Very much awaiting for
    your help.
     
     
    Thanks and Regards,
    Pradeep

     

    "Onkar Dhane,Trainee Software Developer,Alphabricks Technology pvt. ltd" <dhane.onkar@gmail.com> Mar 31 10:18PM -0700 ^
     
    Hi,actually i have one full screen image and on that image there is
    one button.if user click on that button control goes to next
    activity.. So,now i want to give time limit for that full screen image
    activity..so that it will get visible/pop-up after given particular
    time(Ex. image screen popup after every 2sec.) Please give me
    suggestions and samples for the same....
     
    Thanks in Advance--

     

    Justin Anderson <magouyaware@gmail.com> Mar 31 11:07PM -0600 ^
     
    Turns out, at least in my case, that the link posted previously was not the
    problem. It gave a solution of setting the project's compatibility to the
    JDK 1.5... I tried that and since I only have 1.6 installed it just cause
    more problems.
     
    To fix it, for anyone else that may have a similar problem, I re-downloaded
    the SDK and installed it to a new location. I very well may have messed
    something up the first time around, but I noticed that the LVL Library was
    in a different location than it was with my previous SDK installation...
     
    Anyway, I deleted my old Licensing project, imported a new one (from the new
    SDK installation) and now everything seems to be working just fine.
     
    Thanks,
    Justin Anderson
    MagouyaWare Developer
    http://sites.google.com/site/magouyaware
     
     

     

    Romain Guy <romainguy@android.com> Mar 31 10:06PM -0700 ^
     

    > So how useful HPROF is? If it's impossible to tell if an object is
    > sitting there because the VM hadn't gotten around collecting it yet or
    > because it's being leaked, I'd say it's not very useful.
     
    It is useful, just look at the GC roots of an object to know whether it will
    be collected or not. We use hprof all the time on the Android team to track
    down memory issues (leaks or not) and we find it extremely valuable. It
    becomes even easier to use when you rely on a visualization tool like MAT.
     
    --
    Romain Guy
    Android framework engineer
    romainguy@android.com
     
    Note: please don't send private questions to me, as I don't have time to
    provide private support. All such questions should be posted on public
    forums, where I and others can see and answer them

     

    Dianne Hackborn <hackbod@android.com> Mar 31 10:04PM -0700 ^
     
    > reassurance that Google has a certification program. From this
    > particular case, and others I've heard about, it ought to be more
    > robust than it is.
     
    It's not perfect. Few things are. As problems are found, it is improved.
     
    As far as ANDROID_ID -- please be aware that some people concerned about
    privacy very much do not like applications being able to retrieve something
    that uniquely identifies their device that can be correlated across
    applications. As such, don't be surprised if in the future there appears
    the ability to restrict access to ANDROID_ID.
     
    I very strongly recommend not using ANDROID_ID. If you want to have
    settings retained if the user uninstalls and then re-installs, consider
    using the backup manager. This also has the advantage of allowing you to
    restore the user's settings across devices.
     
    --
    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.

     

    Foyzul Karim <foyzulkarim@gmail.com> Mar 31 09:48PM -0700 ^
     
    I am totally new in VOIP area.
     
    My client has a *API which is based on REST*. My task is to create a Android
    app which enable the user to *call using WiFi or Cellular Network and the
    SIP Server* of my client. I also have to fetch user's data and perform some
    other functionality using that API.
     
    *Please suggest me the working procedure that I should follow.*
     
    I have viewed SIP Demo<http://developer.android.com/resources/samples/SipDemo/index.html> provided
    by Android Developer's Website but I guess it is not the thing i am looking
    for.

     

    TreKing <trekingapp@gmail.com> Mar 31 11:38PM -0500 ^
     

    > Firstly, I am not sure am i correct to post these kind of question here.
     
    Sorry, it's not. This is "Android Developers" - has nothing to do with .Net
    or web services.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    madushanka <chamilhewagama@gmail.com> Mar 31 09:16PM -0700 ^
     
    thank you all for your kind attention on my question. I think it is
    better to follow the Hari Edo's advise and split my problem into
    smaller parts and solve them. What I really need is to save the
    information which will come in xml format in a way that only the
    application can read them. (in application specific format)
    I searched about the encryption in so many sites and blogs, and found
    information about symmetric algorithms like DES, AES & Blowfish and
    asymmetric encryption algorithms like RSA, DSA & PGP.
     
    I need to know what kind of method I should follow in order to
    achieve my necessity.
     
    •Whether I should use asymmetric or symmetric algorithms which are
    available?
     
    or
     
    •Do I need to develop an algorithm? If so from where I should start?
     
    As Hari Edo mentioned asking this kind of questions may not good.
    Actually I need to do this my own, but I don't know from where to
    begin? I REALLY appreciate your helps. THANK YOU!

     

    madushanka <chamilhewagama@gmail.com> Mar 31 09:09PM -0700 ^
     
    Thank you for your reply. For my according to my requrements I need
    to store some information in the internal storage. I need to encrypt
    and decrypt them at least to avoid unauthorized access.
     
    Also I need to encrypt some information that send from device to a
    web server to avoid hackings.
     
    I need help on this to know what kind of algorithm i should use or
    for developing an algorithm if necessory. Please help me on that.

     

    thavorac chun <thavorac.chun@gmail.com> Mar 31 08:53PM -0700 ^
     
    sorry that i don't really understand! i just want to know how to run
    20000 query string as fast as possible. can u give me some more
    detail .. thank
     

     

    grndvl1 <grndvl1@gmail.com> Mar 31 08:51PM -0700 ^
     
    I get a 404 error on the publish page, 2hours ago at 8pm central it
    was sort of working seemed save feature for app was broken now the
    whole site is down.

     

    Ray <hsmzhang@gmail.com> Mar 31 08:46PM -0700 ^
     
    Hi JAlexoid,
     
    Thank you for your reply, but that is just the API, if I want to
    develop the DRM plug-in which implement the api, I need use the so
    call "native code DRM manager " mentioned, right?
     
    So, now, only menufacture get thesource code?
     
     
    On Apr 1, 6:55 am, "JAlexoid (Aleksandr Panzin)" <jalex...@gmail.com>
    wrote:

     

 Topic: UTF8 problem
    Avraam Mauridis <avraammauridis@gmail.com> Mar 31 12:11AM -0700 ^
     
    Hi, I am developing an application in which I must send some data
    (greeks) to an SQL database. The problem is that the greek characters
    does not displayed when I send data from Android. When I send data
    from a php form all is OK.
     
    My code is:
     
    byte[] utf8Bytes = null;
    String roundTrip = null;
     
    String simiosi=new String();
    simiosi=noteeditext.getText().toString();
     
    String mathima=spinner.getSelectedItem().toString();
    try {
    utf8Bytes = mathima.getBytes("UTF8");
    roundTrip = new String(utf8Bytes, "UTF8");
    } catch (UnsupportedEncodingException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    }
     
    noteeditext.setText(roundTrip);
     
    ArrayList<NameValuePair> nameValuePairs = new
    ArrayList<NameValuePair>();
    nameValuePairs.add(new BasicNameValuePair("id",simiosi));
    nameValuePairs.add(new
    BasicNameValuePair("test",roundTrip.toString()));
     
     
     
     
     
    in SQL Strings in greeks display as:

     

    Freddman <freddman@gmail.com> Mar 31 02:35AM -0700 ^
     
    Hi!
     
    I'm writing an app that reads the number for an incoming call.
    The idea is then it extract the country code if it's an international
    call.
    I'm not certain of how the phone numbers are formatted (if there is
    some kind of unified formatting for incoming numbers). Sometimes when
    in receive an international call, it can be formatted as +46XXXX or
    some cases 0046XXXX.
     
    Is there a simple way to extract the country code from a number? Or
    perhaps re-format the number so that the country code easily can be
    extract. Iv taken a look at the PhoneNumberUtils class, but so far i
    haven't struck gold :(
     
    Any help is appreciated!
     
    Fredrik

     

    caguilar <caguilar187@gmail.com> Mar 30 02:23PM -0700 ^
     
    Below is my implementation of onScroll in the SimpleGestureDetector.
    This has worked on the droid x, droid, nexus and nexus s, but it
    doesn't work on the Xoom running 3.0 of course. On the xoom it is
    cause some form of trailing artifact where the image doesn't fully
    redraw or i can't fully grab the image.
     
    Here's an image of what this look like. http://www.flickr.com/photos/12331779@N08/5575349190/
     
    My initial thoughts are that it might have something to do with the
    xoom default landscape over portrait. But using the Log.v below i can
    see that the data is what i expect it to be more or less i guess. Any
    thoughts on the issue would be helpful. Thanks
     
    public boolean onScroll(MotionEvent e1, MotionEvent e2,
    float distanceX, float distanceY) {
    float values[] = new float[9];
    matrix2.getValues(values);
    Matrix temp = new Matrix();
    temp.set(matrix2);
    float transx = values[Matrix.MTRANS_X];
    float transy = values[Matrix.MTRANS_Y];
    float scale = values[Matrix.MSCALE_X];
    Drawable d = getDrawable();
     
     
    if(d != null){
    if(WIDTH == 0){
    WIDTH = getDrawable().getIntrinsicWidth();
    }
    if(HEIGHT == 0){
    HEIGHT = getDrawable().getIntrinsicHeight();
    }
     
    float width = WIDTH * scale;
    float height = HEIGHT * scale;
     
    float originX = 0;
    float originY = 0;
    float bigWidth = getWidth();
    float bigHeight = getHeight();
     
    RectF rect = new RectF(0,0,WIDTH,HEIGHT);
    Log.v("INFO",rect.toString());
     
    temp.mapRect(rect);
     
    Log.v("INFOMATRIX",rect.toString());
    Log.v("BIG", bigWidth + " " + bigHeight);
    Log.v("NORMAL", width + " " + height);
    Log.v("TRANS", (transx + -distanceX) + " " +(transy + -
    distanceY));
     
    transx = rect.left;
    transy = rect.top;
    width = rect.right - rect.left;
    height = rect.bottom - rect.top;
     
    Log.v("NORMAL", width + " " + height);
    Log.v("TRANS", (transx + -distanceX) + " " +(transy + -
    distanceY));
     
    if((transx + -distanceX) + width < bigWidth-CROP_REGION && -
    distanceX < 0 && (transx + -distanceX) < (originX+CROP_REGION)){
    distanceX = 0;
    }
    if((transy + -distanceY) + height < bigHeight-CROP_REGION && -
    distanceY < 0 && (transy + -distanceY) < (originY+CROP_REGION)){
    distanceY = 0;
    }
    if((transy + -distanceY) > (originY+CROP_REGION) && -distanceY > 0
    && (transy + -distanceY) + height > bigHeight-CROP_REGION){
    distanceY = 0;
    }
    if((transx + -distanceX) > (originX+CROP_REGION) && -distanceX > 0
    && (transx + -distanceX) + width > bigWidth-CROP_REGION){
    distanceX = 0;
    }
     
    matrix2.set(savedMatrix);
    matrix2.postTranslate(-distanceX, -distanceY);
    setImageMatrix(matrix2);
    return true;
    }
    return false;
    }
     
     
     
    Output of the logs:
     
    original image
    V/INFO ( 7588): RectF(0.0, 0.0, 2592.0, 1944.0)
    scale and moved using matrix
    V/INFOMATRIX( 7588): RectF(37.0, 308.0, 837.0, 908.0)
    imageview size specs
    V/BIG ( 7588): 800.0 1070.0
    normal scrolling
    V/NORMAL ( 7588): 800.0 600.0
    V/TRANS ( 7588): 45.0 308.0
    if image is rotate would be different than above
    V/NORMAL ( 7588): 800.0 600.0
    V/TRANS ( 7588): 45.0 308.0
     
    V/INFO ( 7588): RectF(0.0, 0.0, 2592.0, 1944.0)
    V/INFOMATRIX( 7588): RectF(37.0, 308.0, 837.0, 908.0)
    V/BIG ( 7588): 800.0 1070.0
    V/NORMAL ( 7588): 800.0 600.0
    V/TRANS ( 7588): 39.5 307.5
    V/NORMAL ( 7588): 800.0 600.0
    V/TRANS ( 7588): 39.5 307.5

     

    "A. Elk" <lancaster.dambusters@gmail.com> Mar 31 02:13PM -0700 ^
     
    Your statement is imprecise.
     
    android.*text*.ClipboardManager is being deprecated, in favor of android.*
    content*.ClipboardManager. The javadoc for android.text.ClipboardManager
    points to the new API.
     
    Nothing in the documentation suggests that the old way of copying and
    pasting text is any different from the new way. Only the package name is
    different. That sometimes happens.

     

    ericharlow <eric.b.harlow@gmail.com> Mar 31 01:42PM -0700 ^
     
    I followed the below instructions that were posted on this issue and was
    successful in cleaning my project!
     
    Comment 3 <http://code.google.com/p/android/issues/detail?id=15209#c3> by
    rui.mtd....@gmail.com <http://code.google.com/u/@WRRWRVVXDhhAXgh5/>, Mar 7,
    2011
     
    Ok, after one and a half hour, I have a solution. For every project:
     
    1. Delete project from Eclipse;
    2. Delete all project generated and configuration files (bin, gen, .classpath, .project, default.properties);
    3. Go to Eclipse and CREATE a new Android Project (do not import an existing one) chosing your original source files;
    4. Adjust all setting (JRE, libraries, linked files, aspects, etc...)
    5. Clean
     
    following something similar to this I am now able to clean my projects. note
    I moved the original folders not delete everything and only added back src
    and res folders after I built a new android project. After I replaced the
    new src and res folders with the previous folders I applied F5 and cleaned
    the project and no error any more! best of luck!

     

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

    sunita <agrawal.sunita1@gmail.com> Mar 31 07:59PM -0700 ^
     
    Thanks for the solution.
    Now it is working fine.
     
    solution -
    interface IRemoteservice {
    Map getMapValues();
    }
     
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Mar 31 08:14PM -0700 ^
     
    That's Java 101.
     
    You always want to declare a return type and parameters as an
    interface, if possible, instead of a concrete implementation.
     
     
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Mar 31 05:33PM -0700 ^
     
    Is it just me, but when I try to edit my profile on the Developer
    Console (to change the LVL response code), I am getting a 404 error
    when saving?

     

    "Maps.Huge.Info (Maps API Guru)" <coryat@gmail.com> Mar 31 05:44PM -0700 ^
     
    It seems as if the entire developer console is offline. I guess
    someone tripped on a cord and didn't notice.
     
    -John Coryat

     

    TreKing <trekingapp@gmail.com> Mar 31 09:39PM -0500 ^
     
    On Thu, Mar 31, 2011 at 7:44 PM, Maps.Huge.Info (Maps API Guru) <
     
    > It seems as if the entire developer console is offline. I guess someone
    > tripped on a cord and didn't notice.
     
    It's the Android Market - they probably noticed but didn't give enough of a
    damn to plug it back in. That's how they roll, *yo*.
     
    Or they have a new "feature" they're rolling out, which they are apparently
    incapable of doing without breaking a few other things.
     
    Good times!
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Prabath Kumarasinghe <prabath321@gmail.com> Apr 01 03:45AM +0100 ^
     
    > It's the Android Market - they probably noticed but didn't give enough of a
    > damn to plug it back in. That's how they roll, yo.
     
    I noticed that since today morning 'Android Publisher Home' is
    offline. New Android Market home page is now on.
     

     

    Doug <beafdefx@gmail.com> Mar 31 07:38PM -0700 ^
     
    Just use the delete method on your content resolver and pass it the
    URI of the image. The implementation of the content provider should
    delete the image and remove it from the list.
     
    getContentResolver().delete(uri, null, null);
     
    Doug
     

     

    Prabath Kumarasinghe <prabath321@gmail.com> Apr 01 03:38AM +0100 ^
     
    Dear Group Members
     
    Since today morning 'Android Publisher Home' is not working. Is that
    because of new Android Market Home.
     
    Cheers
     
    Prabath

     

    jaafar zbeiba <jaafarinformatique@gmail.com> Apr 01 03:34AM +0200 ^
     
    thank you for your criticism because I download a course and it works but I
    do not know why the group never helped me

     

    TreKing <trekingapp@gmail.com> Mar 31 09:34PM -0500 ^
     
    On Thu, Mar 31, 2011 at 8:34 PM, jaafar zbeiba <jaafarinformatique@gmail.com
    > wrote:
     
    > thank you for your criticism because I download a course and it works but I
    > do not know why the group never helped me
     
     
    Frankly, the fact that you make almost no sense and don't pose very clear
    questions is a probable factor.
    "I download a course and it works", for example, makes no sense (to me at
    least).
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Zsolt Vasvari <zvasvari@gmail.com> Mar 31 07:01PM -0700 ^
     
    > them not having been GC'd yet. Bear in mind that the Dalvik GC
    > implementation does not try to reclaim all unreferenced objects in a
    > single pass.
     
    So how useful HPROF is? If it's impossible to tell if an object is
    sitting there because the VM hadn't gotten around collecting it yet or
    because it's being leaked, I'd say it's not very useful.
     
    I've had this same issue once and then I stopped using HPROF
    altogether because there was just so much to look at.
     
    It really needs a "RECLAIM ALL MEMORY NOW!!!" button.

     

    Haitao Zeng <wawawawacool@gmail.com> Apr 01 10:00AM +0800 ^
     
    Thanks. But I am not sure if connectivityManager can be use to
    determine the equipment state.
     
    Example:
     
    connectivity = (ConnectivityManager)
    getSystemService(Context.CONNECTIVITY_SERVICE);
    wifiInfo = connectivity.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
     
    if( wifi.isAvailable() ){
     
    Whether the availability means the network state or connection state, but
    not the hardware state?
    And If there are no wifi device in the phone, can we get the wifiinfo using
    getNetworkInfo?
    I want to know if the phone have wifi device.
     
    Thanks again.
     
    2011/4/1 Mark Murphy <mmurphy@commonsware.com>
     

     

    DManzaluni <dmanzaluni@googlemail.com> Mar 31 06:43PM -0700 ^
     
    Interesting and it proves both what I was saying about using those
    facts in court and how productive you can be and how much ground you
    can cover when there arent any speed limits on the roads. There dont
    appear to be any white bits while he is in the air.
     
    (It isnt really off topic although what I was asking about was the
    google legal warning about them doing this, - and while you arent
    using their apps)
     

     

    lbendlin <lutz@bendlin.us> Mar 31 06:51PM -0700 ^
     
    to (half) answer your original question - you can disable data services in
    your phone settings. Settings...Wireless and networks...Mobile network
    settings...uncheck "Data enabled"

     

    Jeffrey Griffin <jeffreygriffindor@gmail.com> Mar 31 06:37PM -0700 ^
     
    adb is freezing while trying to connect via loopback to the adb server. Here
    is a stack trace from gdb while using the froyo branch:
     
    #0 0xf7fdc430 in __kernel_vsyscall ()
    #1 0xf7f5ced1 in connect () from /lib32/libpthread.so.0
    #2 0x0805e399 in socket_loopback_client (port=<value optimized out>,
    type=1) at system/core/libcutils/socket_loopback_client.c:51
    #3 0x080521e3 in _adb_connect (service=0x80612ce "host:version") at
    system/core/adb/adb_client.c:177
    #4 0x080525d5 in adb_connect (service=0xffffc538 "host:devices") at
    system/core/adb/adb_client.c:204
    #5 0x0805285e in adb_query (service=0xffffc538 "host:devices") at
    system/core/adb/adb_client.c:291
    #6 0x08050ff3 in adb_commandline (argc=1, argv=0xffffd628) at
    system/core/adb/commandline.c:849
    #7 0x0804ab62 in main (argc=2, argv=0xffffd624) at
    system/core/adb/adb.c:1176
     
    Here is the connect syscall from socket_loopback_client.c which is blocking
    adb:
     
    int socket_loopback_client(int port, int type)
    {
    struct sockaddr_in addr;
    socklen_t alen;
    int s;
    memset(&addr, 0, sizeof(addr));
    addr.sin_family = AF_INET;
    addr.sin_port = htons(port);
    addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
    s = socket(AF_INET, type, 0);
    if(s < 0) return -1;
    => if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
    close(s);
    return -1;
    }
    return s;
    }
     
    Anyone have any ideas as to whats going on? adb used to work properly. It is
    probably a system setup / library upgrade thing. Thanks!

     

    davemac <davemac327@gmail.com> Mar 31 06:19PM -0700 ^
     
    It wasn't so much the unique ID I was looking for, rather some
    reassurance that Google has a certification program. From this
    particular case, and others I've heard about, it ought to be more
    robust than it is.
     
    - dave
     
    On Mar 31, 8:06 am, Daniel Drozdzewski <daniel.drozdzew...@gmail.com>
    wrote:

     

    gjs <garyjamessilva@gmail.com> Mar 31 06:11PM -0700 ^
     
    Hi,
     
    I (strongly?) suggest you wrap access to the sqlite3 database in a
    Content Provider if you are accessing concurrently (doing both
    read&write) from Activity & Service - particularly if Service is in
    different process.
     
    Content Provider seems to manage concurrent access for you ok, without
    having to get involved with semaphores/synchronization yourself.
     
    Regards
     

     

    Alaeddine Ghribi <alaeddineghribi@gmail.com> Mar 31 06:03PM -0700 ^
     
    I assembled some codes to have this example: IS THAT TRUE ?
    boolean mExternalStorageAvailable = false;
    boolean mExternalStorageWriteable = false;
    String state = Environment.getExternalStorageState();
     
    if (Environment.MEDIA_MOUNTED.equals(state)) {
    // We can read and write the media
    mExternalStorageAvailable = mExternalStorageWriteable = true;
    } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
    // We can only read the media
    mExternalStorageAvailable = true;
    mExternalStorageWriteable = false;
    } else {
    // Something else is wrong. It may be one of many other states,
    but all we need
    // to know is we can neither read nor write
    mExternalStorageAvailable = mExternalStorageWriteable = false;
    }
     
     
     
     
     
    void createExternalStoragePrivateFile() {
    // Create a path where we will place our private file on external
    // storage.
    File file = new File(getExternalFilesDir(null), "DemoFile.jpg");
     
    try {
    // Very simple code to copy a picture from the application's
    // resource into the external file. Note that this code does
    // no error checking, and assumes the picture is small (does
    not
    // try to copy it in chunks). Note that if external storage
    is
    // not currently mounted this will silently fail.
    InputStream is =
    getResources().openRawResource(R.drawable.balloons);
    OutputStream os = new FileOutputStream(file);
    byte[] data = new byte[is.available()];
    is.read(data);
    os.write(data);
    is.close();
    os.close();
    } catch (IOException e) {
    // Unable to create file, likely because external storage is
    // not currently mounted.
    Log.w("ExternalStorage", "Error writing " + file, e);
    }
    }
     
    void deleteExternalStoragePrivateFile() {
    // Get path for the file on external storage. If external
    // storage is not currently mounted this will fail.
    File file = new File(getExternalFilesDir(null), "DemoFile.jpg");
    if (file != null) {
    file.delete();
    }
    }
     
    boolean hasExternalStoragePrivateFile() {
    // Get path for the file on external storage. If external
    // storage is not currently mounted this will fail.
    File file = new File(getExternalFilesDir(null), "DemoFile.jpg");
    if (file != null) {
    return file.exists();
    }
    return false;
    }
    }
     
    In this example he copied a picture from the app, but me i want to
    copy the file data on /data/data...... ! how doing it ?
    Thank you :).
     

     

    TreKing <trekingapp@gmail.com> Mar 31 07:25PM -0500 ^
     

    > Actually, there is a bigger problem here the documentation you refer him to
    > will not resolve: how to store the password securely
     
    Oh yeah, that's a whole 'nother can of worms. But OP only asked about
    storing "l+p in preferences", nothing about making it secure :-P
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    grndvl1 <grndvl1@gmail.com> Mar 31 05:22PM -0700 ^
     
    Only problem is when your a business owner and you buy an application
    from a developer, they should make it mandatory that the cert is
    changed so that when the app transfers to your account you can assign
    it a new cert so that the old programmer cannot get into it or hack it
    in some way. Also Google should have a way to verify the owner and
    then reassign a new one so that apps don't go hanging out in the ether
    when a developer loses the keyphrase/pwd.
     
    John

     

    Sean <sthomp@gmail.com> Mar 30 04:50PM -0700 ^
     
    Hello,
     
    Is there any way to query for an application's list of available
    products and prices? It is not in the list of In-App Billing requests
    or anywhere else in the documentation. This would be very helpful to
    show users the price of the product in their own currency BEFORE they
    get to the Google Checkout screen.
     
    Thanks,
    Sean

     

    SO King Fai <felix1000aa@gmail.com> Mar 30 05:34PM -0700 ^
     
    Firstly, I am not sure am i correct to post these kind of question
    here.
    If it is not allowed I am very sorry about that...
     
    I have got a problem that i don't know how to work with when calling
    my own Web Service which developed in .Net 3.5
    The Error is XmlPullParserException:
    expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}
    Envelope (position:START_TAG <html>@1:6 in
    java.io.InputStreamReader@47c82fc0)
    I have used SOAPUI to Test seems the Web Service is no problem
    and I already set DotNet = true before call the WebService
    I tried SoapEnvelope.VER12, SoapEnvelope.VER11 and SoapEnvelope.VER10
    also no help
    I already don't know what is the problem.
    Anyone have any idea about that???
    Thank you very much
     
    Function to Call the WebService:
    public org.no_ip.comp321server.RoutingResult
    traceRoute(java.lang.String fromstationid, java.lang.String
    topromotionid, int speed) throws Exception {
    SoapObject _client = new SoapObject("http://comp321server.no-
    ip.org/", "traceRoute");
    _client.addProperty("fromstationid", fromstationid);
    _client.addProperty("topromotionid", topromotionid);
    _client.addProperty("speed", speed + "");
    SoapSerializationEnvelope _envelope = new
    SoapSerializationEnvelope(SoapEnvelope.VER11);
    _envelope.dotNet = true;
    _envelope.bodyOut = _client;
    AndroidHttpTransport _ht = new
    AndroidHttpTransport(Configuration.getWsUrl());
    _ht.debug = true;
    _ht.call("http://comp321server.no-ip.org/traceRoute",
    _envelope);
    SoapObject _ret = (SoapObject) _envelope.getResponse();
    int _len = _ret.getPropertyCount();
    org.no_ip.comp321server.RoutingResult _returned = new
    org.no_ip.comp321server.RoutingResult();
    for (int _i = 0; _i < _len; _i++) {
    _returned.setProperty(_i, _ret.getProperty(_i)); }
    return _returned;
    }
     
    The Following the a VERY long WSDL file:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://
    comp321server.no-ip.org/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    targetNamespace="http://comp321server.no-ip.org/" xmlns:wsdl="http://
    schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://
    comp321server.no-ip.org/">
    <s:element name="HelloWorld">
    <s:complexType />
    </s:element>
    <s:element name="HelloWorldResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="HelloWorldResult" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getStationByStationID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="stationid"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getStationByStationIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getStationByStationIDResult" type="tns:StationResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="StationResult">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="stationid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="typeid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="stationname"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="stationaddress"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressx"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressy"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:element name="getTransportationTypeByTransportationTypeID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="transportationtypid" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element
    name="getTransportationTypeByTransportationTypeIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getTransportationTypeByTransportationTypeIDResult"
    type="tns:TransportationType" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="TransportationType">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1"
    name="transportationtypeid" type="s:long" />
    <s:element minOccurs="0" maxOccurs="1"
    name="transportationtypename" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:element name="getPromotionByPromotionID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="promotionid"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getPromotionByPromotionIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getPromotionByPromotionIDResult" type="tns:PromotionResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="PromotionResult">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="promotionid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="enterpriseid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1"
    name="promotionproduct" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1"
    name="promotiondescription" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1"
    name="promotionwebsite" type="s:string" />
    <s:element minOccurs="1" maxOccurs="1"
    name="clickthroughcount" type="s:long" />
    <s:element minOccurs="0" maxOccurs="1"
    name="promotionpublishdate" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:element name="getRetailShopByRetailShopID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="RetailShopResultid" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getRetailShopByRetailShopIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getRetailShopByRetailShopIDResult" type="tns:RetailShopResult" /
     
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="RetailShopResult">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="retailshopid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="enterpriseid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="retailshopname"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1"
    name="retailshopaddress" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressx"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressy"
    type="s:string" />
    <s:element minOccurs="1" maxOccurs="1"
    name="neareststationid" type="s:long" />
    </s:sequence>
    </s:complexType>
    <s:element name="getRetailPromotionByRetailPromotionID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="RetailPromotionid" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getRetailPromotionByRetailPromotionIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getRetailPromotionByRetailPromotionIDResult"
    type="tns:RetailPromotionResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="RetailPromotionResult">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1"
    name="retailpromotionid" type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="retailshopid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="promotionid"
    type="s:long" />
    </s:sequence>
    </s:complexType>
    <s:element name="getPathByRetailPathID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Pathid"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getPathByRetailPathIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getPathByRetailPathIDResult" type="tns:PathResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="PathResult">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="pathid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="pathweight"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="pathname"
    type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="fromstationid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="fromstation"
    type="tns:Station" />
    <s:element minOccurs="1" maxOccurs="1" name="tostationid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="tostation"
    type="tns:Station" />
    <s:element minOccurs="0" maxOccurs="1" name="transportation"
    type="tns:ArrayOfString" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="Station">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="stationid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="typeid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="stationname"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="stationaddress"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressx"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressy"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1"
    name="transportationtype" type="tns:TransportationType" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="ArrayOfString">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="string"
    nillable="true" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:element name="getRetailShopesResultByPromotionID">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="promotionid"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="getRetailShopesResultByPromotionIDResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="getRetailShopesResultByPromotionIDResult"
    type="tns:ArrayOfRetailShopResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="ArrayOfRetailShopResult">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded"
    name="RetailShopResult" nillable="true" type="tns:RetailShopResult" />
    </s:sequence>
    </s:complexType>
    <s:element name="traceRoute">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="fromstationid" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1"
    name="topromotionid" type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="speed"
    type="s:int" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="traceRouteResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="traceRouteResult" type="tns:RoutingResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="RoutingResult">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="isok"
    type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="goal"
    type="tns:RetailShop" />
    <s:element minOccurs="0" maxOccurs="1" name="paths"
    type="tns:ArrayOfPathResult" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="RetailShop">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="retailshopid"
    type="s:long" />
    <s:element minOccurs="1" maxOccurs="1" name="enterpriseid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="retailshopname"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1"
    name="retailshopaddress" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressx"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="addressy"
    type="s:string" />
    <s:element minOccurs="1" maxOccurs="1"
    name="neareststationid" type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="enterprise"
    type="tns:Enterprise" />
    <s:element minOccurs="0" maxOccurs="1" name="neareststation"
    type="tns:Station" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="Enterprise">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="enterpriseid"
    type="s:long" />
    <s:element minOccurs="0" maxOccurs="1" name="enterprisename"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="loginname"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="password"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="ArrayOfPathResult">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded"
    name="PathResult" nillable="true" type="tns:PathResult" />
    </s:sequence>
    </s:complexType>
    <s:element name="string" nillable="true" type="s:string" />
    <s:element name="StationResult" nillable="true"
    type="tns:StationResult" />
    <s:element name="TransportationType" nillable="true"
    type="tns:TransportationType" />
    <s:element name="PromotionResult" nillable="true"
    type="tns:PromotionResult" />
    <s:element name="RetailShopResult" nillable="true"
    type="tns:RetailShopResult" />
    <s:element name="RetailPromotionResult" nillable="true"
    type="tns:RetailPromotionResult" />
    <s:element name="PathResult" nillable="true"
    type="tns:PathResult" />
    <s:element name="ArrayOfRetailShopResult" nillable="true"
    type="tns:ArrayOfRetailShopResult" />
    <s:element name="RoutingResult" nillable="true"
    type="tns:RoutingResult" />
    </s:schema>
    </wsdl:types>
    <wsdl:message name="HelloWorldSoapIn">
    <wsdl:part name="parameters" element="tns:HelloWorld" />
    </wsdl:message>
    <wsdl:message name="HelloWorldSoapOut">
    <wsdl:part name="parameters" element="tns:HelloWorldResponse" />
    </wsdl:message>
    <wsdl:message name="getStationByStationIDSoapIn">
    <wsdl:part name="parameters" element="tns:getStationByStationID" /
     
    </wsdl:message>
    <wsdl:message name="getStationByStationIDSoapOut">
    <wsdl:part name="parameters"

     

    Gustavo Costa <gugaucb@gmail.com> Mar 30 08:09PM -0700 ^
     
    Does In-App on Market for test stopped work?

     

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

Comments: (0)

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

    Indicator Veritatis <mej1960@yahoo.com> Mar 31 05:18PM -0700 ^
     
    Actually, there is a bigger problem here the documentation you refer
    him to will not resolve: how to store the password securely. Then
    again, since the Gmail password is already insecurely stored...
     

     

    TreKing <trekingapp@gmail.com> Mar 31 07:12PM -0500 ^
     
    > get after others about. I did do a little searching but I must admit I
    > didn't do everything I should have.
     
    > Thanks for the reminder, Treking! :-)
     
     
    It took all the willpower I could muster to not post lmgtfy =P
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    sunita <agrawal.sunita1@gmail.com> Mar 31 04:59PM -0700 ^
     
    Hi,
     
    I want hashmap as my return type from aidl file.
    But it is giving error as unknown return type.
    My code is -
     
    interface IRemoteservice {
    HashMap<String,CharSequence> getMapValues();
    }
     
    Thanks in advance.

     

    Kumar Mettu <mksreddy@gmail.com> Mar 31 05:05PM -0700 ^
     
    I started getting "The server could not process your apk. Try again."
    Today while uploading APK's to market.
    Looks like this issue appeared before and got resolved.
    Is anyone else having the problem today?

     

    Manish Garg <mannishgarg2@gmail.com> Mar 31 04:33PM -0700 ^
     
    I have created an application for the 2.2 version, now it needs to be
    run on one of the tablet. Because of it I need to know what should i
    check in my application where it may fail. My target tabs, Dell
    Streak, Samsung galaxy and mortrol XOOM both have call functionality.
     

     

    ip332 <iprilepov@gmail.com> Mar 31 05:03PM -0700 ^
     
    Yes, the main and only critical difference is the actual screen size.
    It sounds a minor issue from the technical point of view but means
    completely different end user expectations (and eventually the
    application's UI)
     

     

    ama10285 <ama012322@hotmail.com> Mar 31 08:53AM -0700 ^
     
    Hi all^^
    I try to show a location on a Map in the Position(100,100). This works
    fine with this code:
     
    options = new BitmapFactory.Options();
    options.inTempStorage = new byte[16*1024];
    bitmapImage =
    BitmapFactory.decodeResource(getResources(),R.drawable.dasa_map,options);
    myMap=bitmapImage.copy(Bitmap.Config.ARGB_8888, true);
    positionIcon=BitmapFactory.decodeResource(getResources(),R.drawable.ic_maps_indicator_current_position);
    c = new Canvas(myMap);
    paint= new Paint();
    c.drawBitmap(positionIcon, 100,100, paint);
     
    Now I want to change the position off the "positionIcon" to another
    location (for example (200,200)).
    How can i do this?

     

    lbendlin <lutz@bendlin.us> Mar 31 04:23PM -0700 ^
     
    put the bitmap into its own imageview

     

    sblantipodi <perini.davide@dpsoftware.org> Mar 31 03:25PM -0700 ^
     
    solved by deleting empty attributes in manifest.
     

     

    lbendlin <lutz@bendlin.us> Mar 31 03:22PM -0700 ^
     
    BEGIN TRANSACTION
    ...loop...
    COMMIT TRANSACTION

     

    lbendlin <lutz@bendlin.us> Mar 31 03:21PM -0700 ^
     
    yes, semaphores are the way to go, especially for bulk write operations. it
    helps if you read some of the data from the database into a buffer. Then you
    can use the buffered data while the database update is processed, and the
    users may not even notice.

     

    lbendlin <lutz@bendlin.us> Mar 31 03:17PM -0700 ^
     
    host the .apk file on a web server
    access that link from the phone

     

    Alex Capurro <alex.capurro@21fifty.com> Mar 31 06:36AM -0700 ^
     
    Hi,
     
    I have a very simple widget that has a background image of a speech
    bubble and an imageView that contains a character standing next to it
    (as if he is saying something).
    On top of the speech bubble i have a textView in which i show some
    text.
     
    Basically all i want to do is so that when the user clicks on the
    character the image changes to show an animation of the character.
     
    I did a simple app that animates an imageView (using the animation-
    list xml) when the image is clicked and that worked fine. So i was
    wondering if i could achieve the same thing with this widget.
     
    I have seen some examples where by you can click on a widget (be it a
    button, image, whatever) and you can then load a config layout however
    i simply cant figure out and i cant find anywhere if what i want can
    be done.
     
    So basically what i need to know is:
    1. can a widget have an animated imageView
    2. What do i need to do so that when the imageView is clicked it loads
    the animation?
     
    Can anyone point me in the right direction please?
     
    Thanks in advance guys!!

     

    Thomas de Lazzari <tdelazzari@gmail.com> Mar 31 11:51AM -0700 ^
     
    Hello,
     
    I was wondering if Google could eventually provide an Android
    application that could "unlock" the Secure Element for developers?
    It would allow developers to authenticate to the embedded SE and start
    uploading their Java Card applications to see if it works.
    For production, this will be installed by a TSM.
    Also, do we know the specs of the JavaCard inside the PN544? Is it a
    JavaCard 2.2.2 running JCOP?
     
    Regards,
    Thomas

     

    usafrmajor <usafrmajor@gmail.com> Mar 31 06:27AM -0700 ^
     
    Is there a utility that will facilitate the conversion of Blackberry
    apps to android apps? I understand if it is not perfect, but it would
    be great to have something that could do some/most of it. thanks

     

    ASMA <asmarezgui.info@gmail.com> Mar 31 06:22AM -0700 ^
     
    I have an application, where I need to change the language through a
    settings menu. The problem is that the current activity don't show
    data in new language only if I go back (by back button)to the main
    activity. I ask if there is any solution to reload the current
    activity(and other)…I want anywhere in my app change the language(by
    using a menu)and have data in new language without going back to main
    activity.(I must still in the current activity witch show data and
    resouce in new language)
     
    This is the code that I write it in every activity:
     
    new DialogInterface.OnClickListener() {
     
    public void onClick(DialogInterface dialog,int which) {
     
    switch(Item_id){
     
    case 0:
    Toast.makeText(getApplicationContext(),
    Item_name,Toast.LENGTH_SHORT).show();
     
    // Change locale settings on the device
    locale = new Locale("En");
    Locale.setDefault(locale);
    config = new Configuration();
    config.locale = locale;
    getBaseContext().getResources().updateConfiguration(config,
    getBaseContext().getResources().getDisplayMetrics());
     
    case 1:
    ………………………………………..
    }
    }

     

    Edward Cunningham <edward.cunningham@gmail.com> Mar 31 07:32AM -0700 ^
     
    Hello,
     
    I've got an app that capture photos and video according to a schedule
    (for example, takes 6 photos at 10 second intervals, and then records
    2 minutes of video, then repeats). This all seems to be fine, and when
    I leave it running it will continue for hours without any problem.
     
    However, if I run it at the same time as another app (that runs as a
    Service, logging sensor information to SD card), the scheduled camera
    app will mysteriously crash at some point (anywhere between 10 mins
    and a couple of hours after it starts). The problem is always the same
    - a call of the stop() method of my MediaRecorder object never
    completes.
     
    In order to debug this, I created a wrapper class to MediaRecorder to
    log each call to any of the MediaRecorder methods, and so I can verify
    that the MediaRecorder object is always in the correct state when this
    crash occurs (ie. I'm not doing anything in the wrong order). At the
    point of the crash, the log message immediately before stop() is
    logged, but the one immediately afterwards isn't. Additionally, no
    exceptions are thrown, and logcat shows no error messages whatsoever.
    The crash only becomes evident when I press the UI and several seconds
    later an Application Not Responding dialog is shown (and the
    corresponding messages appear in logcat).
     
    From looking at logcat, I wonder whether this could perhaps be some
    sort of memory problem - often before the failed call to stop(), I see
    a few Davlik garbage collector messages, but I didn't think they are
    normally cause for concern?
     
    D/dalvikvm( 481): GC_CONCURRENT freed 517K, 59% free 2793K/6663K,
    external 1625K/2137K, paused 6ms+2ms
    D/dalvikvm( 481): GC_CONCURRENT freed 507K, 59% free 2794K/6663K,
    external 1625K/2137K, paused 7ms+2ms
    D/dalvikvm( 481): GC_CONCURRENT freed 525K, 59% free 2793K/6663K,
    external 1625K/2137K, paused 6ms+2ms
     
    I'm not sure how to proceed in identifying the source of the crash.
    Can anyone suggest what might be happening, or how I could continue my
    investigations? Any help would be greatly appreciated.
     
    Many thanks,
     
    Edward

     

    hoofmen <osman.romero@gmail.com> Mar 31 10:26AM -0700 ^
     
    Hi guys, I had the same problem, but when opened the .android/
    androidtools.cfg notices how the http.proxyHost= had to include
    backslash for special caracters such as ":", therefore I tried setting
    the proxy URL without the http:// from the begging. and it worked.
     
    :D

     

    tboehrer <tboehrer@gmail.com> Mar 31 07:18AM -0700 ^
     
    We specifically didn't want our app to run in landscape, so we added
    the android:screenOrientation="portrait" to the activities in the
    manifest. This works as expected... the activity is limited to
    portrait, and our activity isn't destroyed/created for each
    orientation change.
     
    One of the features of the app is that the user can take a photo, and
    the image is displayed after some processing happens to the photo. We
    launch the camera app via the MediaStore.ACTION_IMAGE_CAPTURE Intent.
    On most devices, this works just fine.
     
    However, on some devices (so far the Samsung Captivate, and the
    Motorola XOOM), there is some very unexpected behavior. It would seem
    the orientation changes are "stored up" and delivered to the
    application after the user returns from the camera. For example, the
    camera is displayed, and the user rotates the device to take a
    landscape photo, then rotates back and presses OK. Immediately, the
    activities that launched the camera app are destroyed/created twice.
     
    The only "fix" I've found is to include
    android:configChanges="orientation|keyboardHidden" for every activity
    that can start the camera, and override onConfigurationChanged to do
    nothing.
     
    Is there a better way to handle this? Seems like a bug that we are
    having this happen.

     

    "Seng ." <seng787@gmail.com> Mar 31 02:19PM -0700 ^
     
    -----------------------------------------------------------------------
     
    Seng . wants to stay in better touch using some of Google's coolest new
    products.
     
    If you already have Gmail or Google Talk, visit:
    http://mail.google.com/mail/b-96ae556902-c88493fdea-W8TMUxglBd4Sv3VP6ZfrDpqblRE
    You'll need to click this link to be able to chat with Seng ..
     
    To get Gmail - a free email account from Google with over 2,800 megabytes of
    storage - and chat with Seng ., visit:
    http://mail.google.com/mail/a-96ae556902-c88493fdea-W8TMUxglBd4Sv3VP6ZfrDpqblRE
     
    Gmail offers:
    - Instant messaging right inside Gmail
    - Powerful spam protection
    - Built-in search for finding your messages and a helpful way of organizing
    emails into "conversations"
    - No pop-up ads or untargeted banners - just text ads and related information
    that are relevant to the content of your messages
     
    All this, and its yours for free. But wait, there's more! By opening a Gmail
    account, you also get access to Google Talk, Google's instant messaging
    service:
     
    http://www.google.com/talk/
     
    Google Talk offers:
    - Web-based chat that you can use anywhere, without a download
    - A contact list that's synchronized with your Gmail account
    - Free, high quality PC-to-PC voice calls when you download the Google Talk
    client
     
    We're working hard to add new features and make improvements, so we might also
    ask for your comments and suggestions periodically. We appreciate your help in
    making our products even better!
     
    Thanks,
    The Google Team
     
    To learn more about Gmail and Google Talk, visit:
    http://mail.google.com/mail/help/about.html
    http://www.google.com/talk/about.html
     
    (If clicking the URLs in this message does not work, copy and paste them into
    the address bar of your browser).

     

    hoang <vantan9999@gmail.com> Mar 31 12:52AM -0700 ^
     
    I am a new member, I have a blueprint to insert threads into GOOGLE
    MAP. look forward to your help.

     

    Ella <daffodilsan@gmail.com> Mar 30 07:57PM -0700 ^
     
    The same question from me.
     
    We know, A GUI automation testing tool -- monkey runner is there, it
    provide some functions such as Keyboard function, input message
    functions as well as touch, which are all very good supports for the
    automation testing.
     
    However, there seems somethings that puzzle me a lot, so search helps
    from all of you here:
    1. As in most of GUI automation testing, locate the objects in the
    screen and judge the existing of the objects are very important, so is
    there any way to implement this function, or can we extend the
    function ourselves, if so, how?
    2. Now we can't touch the object by provide name or id or any other
    attributes of the objects but just touch on location(by X,Y). in
    common GUI automation, it's very inflexible and bring much trouble to
    users to get the location info. Is there any way to resolve this
    problems? or any further plans for the enhancement?
     
    Thanks!

     

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en