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

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

    Marta Ribeiro <martacunharibeiro90@gmail.com> Feb 27 01:17AM -0800  

    I have the cables needed. I even installed an usb host app and it worked
    correctly. now i'm trying to make my own application and it's not working,
    so it must be because of the code. Although i am writing it exactly as it
    advised in tutorials.
     
    On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:

     

    Tux Leonard <tuxleon@gmail.com> Feb 27 08:03PM +0100  

    Hi,
     
    what kind of sensor are you using and what protocol (RS232, HID or plain
    USB) is used?
    I played around with some RS232 devices. Perhaps I could find the example
    again.
    Later I switched to a IOIO divice.
     
    Roy
     
    2013/2/27 Marta Ribeiro <martacunharibeiro90@gmail.com>
     

     

    Tolriq <tolriq@gmail.com> Feb 27 10:11AM -0800  

    I read that Google is opening this function to new developers but what are
    the requirement to get access to that ?
     
    My app has passed the 100k daily users and have a 4.9 rating with more than
    4500 rating, but there's still some users that thinks bad rating are a way
    to get support even if I have no way to contact them back :(
     
    Any one got more news on this ?
     
    Regards,
    Tolriq.

     

    Tolriq <tolriq@gmail.com> Feb 27 10:59AM -0800  

    Thanks but this link does not really gives more information :)
     
    If you refer to the need to give users a mail I have :
    - A mail in description
    - A website with issue tracker / forum
    - A big red text in all changelog telling users to contact me
    - An help button in the app
    - An about in app with multiple links
    - I'm on Twitter / Facebook / 6 forums where users usually goes.
     
    But I still have users giving 2 star because they can't find an option that
    is in front of them, so don't ask them to do anything more :)
     
    Regards,
    Tolriq.
     
     
    Le mercredi 27 février 2013 19:45:58 UTC+1, RichardC a écrit :

     

    Manas Shah <shahmanas.e@gmail.com> Feb 27 09:13PM +0530  

    Greeting,
     
    I am using android.support.v13 and android.support.v4 external JAR files.
    I have done necessary typecasting in the code so it will always refer above
    mention JAR files but not the android.app.Fragment .
    But still its gives below error :
     
    The type android.app.Fragment cannot be resolved. It is indirectly
    referenced from required .class files
     
    I have also checked build path. Build sequence is android.support.v4 --
    android.support.v13 -- Android 2.2 -- Android dependence.
     
    Any idea what I`m missing here. I am attaching the code for reference.
     
    Thank you in advance !
    -Manas

     

    Nobu Games <dev.nobu.games@gmail.com> Feb 27 07:53AM -0800  

    If you compile the app with API level 8 (Android 2.2) then the class
    Fragment cannot be found because it does not exist there. It has been
    introduced with API level 11. Make sure to set the target API level to the
    highest your app can support and minSdkLevel to 8.
     
    On Wednesday, February 27, 2013 9:43:48 AM UTC-6, Manas wrote:

     

    Manas Shah <shahmanas.e@gmail.com> Feb 27 10:17PM +0530  

    Thanks Nobu for reply....
     
    Yes, I have set minSdkLevel = 8 and targetSdkVersion =15 but still no
    luck...
     
    I am not able to understand why code is referring to android.app.Fragment
    class as I am no where using it.
     
    Thanks again,
    Manas
     
     
    --
    Thanks,
    Manas Shah.

     

    bob <bob@coolfone.comze.com> Feb 27 07:39AM -0800  

    Is there any type of widget that is similar to the HR HTML tag?
     
     
    <hr>
     
     
    Thanks.

     

    Nobu Games <dev.nobu.games@gmail.com> Feb 27 07:59AM -0800  

    You could use a plain "View", set a background image or color on that, set
    its height to a few DPs and width to MATCH_PARENT.
     
    On Wednesday, February 27, 2013 9:39:39 AM UTC-6, bob wrote:

     

    Numair Qadir <numair.qadir@gmail.com> Feb 26 11:44PM -0800  

    Greetings,
     
    Can nested onTouch method be implemented? I'm working on an app in which
    user is drawing some components onTouch. I want to restrict user to draw a
    point, line and circle respectively. Is it possible that one event run only
    once and goto next event until and unless I restart the app. Or something
    like parent onTouch() and child onTouch(). Help needed!

     

    "G. Blake Meike" <blake.meike@gmail.com> Feb 27 06:44AM -0800  

    I think you need a state machine. The behavior of your onTouch will be
    determined by what the user does and the current state. That will, in
    turn, change the state.
     
    -blake
     
    On Tuesday, February 26, 2013 11:44:39 PM UTC-8, Numair Qadir wrote:

     

    Ines <belhouchet.ines@gmail.com> Feb 27 05:28AM -0800  

    Hello,
    I have three variables that i try to send them from android to my local web
    server,the point *I succeed to add them into a mysql table* but i failed to
    print them on the browser
    here's a part of my php script:
     
    <?php
     

    $var01 = $_POST['myvar1'];
    $var02 = $_POST['myvar2'];
    $var03 = $_POST['myvar3'];

    echo $var01;
    echo $var02;
    echo $var03;
     
     
    ?>
     
     
    please help me

     

    Larry Meadors <larry.meadors@gmail.com> Feb 27 07:10AM -0700  

    Uh. This is a php problem that has almost nothing to do with Android.
     
    Larry

     

    Belhouchet Ines <belhouchet.ines@gmail.com> Feb 27 03:16PM +0100  

    okey thanks anyways .
     
     
    --
    Ines Belhouchet
    UNIX Addicted

     

    Milind <milind.wakale@discoverit.co.in> Feb 27 04:26AM -0800  

    I don't expect that it will help to Arthur but it can help to other people.
     
    I had same problem that the PicasawebService class was not found. I gone
    from right click of project (in Android), then to properties and selected
    list of JAR file etc. even though problem was there. I posted question and
    got reply that keep jar files in lib. Even still problem was there.
     
    I create new application and instead of pulling jars from properties -->
    add external jar (kept it as it was default), and bring jar files in 'libs'
    directory and it works. Bingo!
     
    Solution is that put jar files in 'libs' directory instead of
    in referenced libraries.
     
    On Wednesday, August 12, 2009 12:13:30 PM UTC+5:30, arthur wrote:

     

    weslinkr <weslinkr@gmail.com> Feb 27 02:41AM -0800  

    Hi all.
     
     
    It seems there is a problem with a shortcut created by Play store during
    installing new app.
     
    (As you know, If user turns on the option 'Auto add widget' in the settings
    for play store,
     
    shortcut for executing new app is automatically created on home screen.)

    - Reproduce step is as below :
     
     
    1). Download and install "Google Play Music" from market.
    2). Check the newly added shortcut for "Google Play Music" on home screen.
    3). Click shortcut for 'Google Play Music' at home screen (or application
    screen).
    4). In the screen of Google play music, just press the menu button and then
    go into settings.
    5). In the 'Music settings', press home key to go to home screen
    6). Click shortcut for "Google Play Music" on home screen
     
     
    - Problem occurs here :
    Showing initial screen for 'Google music'. if you press back-key, 'Music
    Settings' screen will be showed and then press back-key, you will see the
    initial screen for 'Google music' again.
     
    - Expected result :
    Showing 'Music Settings' screen (activity).


     
    And I found that the shortcut has an intent which contains not only
    component name but also 'package'.
     
     
    1.
     

    #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;package=<package
    name>;component=<component name>;end
     
    But this 'package' value is needless and causing side-effect
     
    because It doesn't guarantee the result for keeping current activity stack
    which comes to foreground from background.
     
    (It seems a bug with Activity manager.)
     
     
    As long as there is no particular flag settings for activity,
     
    the curren running app should keep its TaskRecord (activity stack for
    process)
     
    after restart from home screen when user clicks a shorcut again.
     
     
    To solve this problem with PlayStore, Above intent value should be changed
    to 2 or 3 as below :
     
     
    2.
     

    #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=<component
    name>;end
     
     
    3.

    #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=<component
    name>;end


    Is there any different idea of this?
     
    Regards,
    Wonsuk.

     

    weslin <weslinkr@gmail.com> Feb 27 02:35AM -0800  

    Hi all.

    It seems there is a problem with a shortcut created by Play store during
    installing new app.
    (As you know, If user turns on the option 'Auto add widget' in the settings
    for play store,
    shortcut for executing new app is automatically created on home screen.)


    - Reproduce step is as below :

    1). Download and install "Google Play Music" from market.
    2). Check the newly added shortcut for "Google Play Music" on home screen.
    3). Click shortcut for 'Google Play Music' at home screen (or application
    screen).
    4). In the screen of Google play music, just press the menu button and then
    go into settings.
    5). In the 'Music settings', press home key to go to home screen
    6). Click shortcut for "Google Play Music" on home screen

    - Problem occurs here :
    Showing initial screen for 'Google music'. if you press back-key, 'Music
    Settings' screen will be showed
    and then press back-key, you will see the initial screen for 'Google music'
    again.

    - Expected result :
    Showing 'Music Settings' screen (activity).

     
    And I found that the shortcut has an intent which contains not only
    component name but also 'package'.

    1).
     

    #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;package=<package
    name>;component=<component name>;end
    But this 'package' value is needless and causing side-effect
    because It doesn't guarantee the result for keeping current activity stack
    which comes to foreground from background.
    (It seems a bug with Activity manager.)

    As long as there is no particular flag settings for activity,
    the curren running app should keep its TaskRecord (activity stack for
    process)
    after restart from home screen when user clicks a shorcut again.

    To solve this problem with PlayStore, Above intent value should be changed
    to 1 or 2 as below :

    2.

    #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=<component
    name>;end

    3.

    #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=<component
    name>;end


    Is there any different idea of this?

    Regards,
    Wonsuk.

     

    weslin <weslinkr@gmail.com> Feb 27 02:38AM -0800  

    2013년 2월 27일 수요일 오후 7시 35분 35초 UTC+9, weslin 님의 말:

     

    "动作改变情绪(凤凰座" <254904252@qq.com> Feb 27 06:15PM +0800  

    run the sub thread
    ------ 原始邮件 ------
    From:"bob"<bob@coolfone.comze.com>;
    Date:2013年2月26日(星期二) 晚上11:34
    To:"android-developers"<android-developers@googlegroups.com>;
    Subject:[android-developers] networking off the UI thread
     

    So, I have an app.

    When you press a button, it makes a TCP connection to a server and tells it to play a movie.

    It may have 10 buttons and 10 movies.

    Obviously, the TCP connection should not be done on the UI thread.

    But how should it be done?

    One difficulty is that there will only be one TCP connection thru the lifetime of the app - it will not reconnect.

    I would think AsyncTask maybe… But the problem there is what happens if the user monkeys with the buttons and just starts pressing buttons really fast. Should I maybe store up AsyncTasks on a queue so that there is not the potential for really weird behavior in the face of monkeying?

    I'm not sure how to put AsyncTasks on a queue.

     
     

     
    --
    --
    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
    ---
    You received this message because you are subscribed to the Google Groups "Android Developers" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

     

    skink <pskink@gmail.com> Feb 27 02:05AM -0800  

    i have tried to use StateSet.stateSetMatches(int[], int) and frankly
    have no idea what is it for. consider the following:
     
    int[] stateSpec = {1, 1, 1};
    int state = 1;
    // stateSpec == {1, 1, 1}
    Log.d(TAG, "onCreate " + testStateSetMatches(stateSpec, state));
     
    stateSpec[2] = 2;
    // stateSpec == {1, 1, 2}
    Log.d(TAG, "onCreate " + testStateSetMatches(stateSpec, state));
     
    stateSpec[2] = 0;
    // stateSpec == {1, 1, 0}
    Log.d(TAG, "onCreate " + testStateSetMatches(stateSpec, state));
     
    and the testStateSetMatches method:
    private String testStateSetMatches(int[] stateSpec, int state) {
    StringBuilder sb = new StringBuilder("{");
    for (int i = 0; i < stateSpec.length; i++) {
    int item = stateSpec[i];
    sb.append(item);
    if (i + 1 < stateSpec.length) {
    sb.append(", ");
    }
    }
    boolean match = StateSet.stateSetMatches(stateSpec, state);
    sb.append("} vs ").append(state).append(" == ").append(match);
    return sb.toString();
    }
     
    the logcat says:
    D/TestTag ( 1069): onCreate {1, 1, 1} vs 1 == true
    D/TestTag ( 1069): onCreate {1, 1, 2} vs 1 == false
    D/TestTag ( 1069): onCreate {1, 1, 0} vs 1 == true
     
    so it seems that it returns true if every element in stateSpec is
    equal to state *or* there is 0 somewhere in between
     
    i don't really get it, i thought it should match if there is at least
    one state in stateSet but it's not the case, so what is the point of
    this method?
     
    btw StateSet.stateSetMatches(int[], int[]) works as expected but int
    variant gets me crazy, can anyone explain what is it for?
     
    pskink

     

    djhacktor <deepanshcristo@gmail.com> Feb 27 01:30AM -0800  

    How to send specific value as filter form whole text enter ?

     

    Android2ee <mathias.seguy.it@gmail.com> Feb 27 01:07AM -0800  

    Hello,
    What Your manifest look line?
     
     
    Le mercredi 27 février 2013 00:10:26 UTC+1, saex a écrit :

     

    Tamilarasi Sivaraj <javaposts@gmail.com> Feb 27 12:15AM -0800  

    Hi bob,
     
    I don't know what you want exactly.
     
    But you will create the layout which you post the image.Use *Table layout*.
     
    Table layout is best and you will create *three TableRows* inside the
    TableLayout.
     
    Then you create the relative or linear layouts inside top and bottom
    tablerows.
     
    Finally you create the listview in centre tablerow and set height.
     
    Regards
    Android developer
    Trinay Technology Solutions
    www.trinaytech.com
    5705750475
     
    On Wednesday, February 27, 2013 1:28:38 AM UTC+5:30, bob wrote:

     

You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment