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

Comments: (0)

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

    kypriakos <demetris@ece.neu.edu> Feb 28 10:09PM -0800 ^
     
    HI all,
     
    I have two separate projects each compiling and executing fine on
    Android devices (currently this code calls for Android 1.6 so I am
    running on that). I needed to reuse some of the classes from one
    project into another so I brought over their source code and
    recompiled. Things compile fine but during the installation of the apk
    I get the [INSTALL_FAILURE_DEXOPT]. This means that either there's no
    space left to install this on the device (which is not the case here)
    or the verification failed. What would cause a verification error in
    this case? I see below that the Package has a mismatched uid on disk
    vs in settings? What does that designate?
     
    Thanks in advance
     
    D/AndroidRuntime( 499): >>>>>>>>>>>>>> AndroidRuntime START
    <<<<<<<<<<<<<<
    D/AndroidRuntime( 499): CheckJNI is OFF
    D/AndroidRuntime( 499): --- registering native functions ---
    I/jdwp ( 499): received file descriptor 20 from ADB
    D/ddm-heap( 499): Got feature list request
    D/PackageParser( 85): Scanning package: /data/app/vmdl13009.tmp
    D/dalvikvm( 85): GC freed 19996 objects / 964408 bytes in 247ms
    E/PackageManager( 85): Package com.WebCP_16 has mismatched uid:
    10044 on disk, 10047 in settings
    I/PackageManager( 85): /data/app/vmdl13009.tmp changed; unpacking
    D/installd( 53): DexInv: --- BEGIN '/data/app/vmdl13009.tmp' ---
    W/dalvikvm( 506): partial write in inflate (24536 vs 32768)
    W/dalvikvm( 506): DexOptZ: extraction of classes.dex from /data/app/
    vmdl13009.tmp failed
    W/installd( 53): DexInv: --- END '/data/app/vmdl13009.tmp' ---
    status=0xff00, process failed
    E/installd( 53): dexopt failed on '/data/dalvik-cache/
    data@app@vmdl13009.tmp@classes.dex' res = 65280
    W/PackageManager( 85): Package couldn't be installed in /data/app/
    com.WebCP_16.apk
    D/AndroidRuntime( 499): Shutting down VM
    D/dalvikvm( 499): DestroyJavaVM waiting for non-daemon threads to exit

     

 Topic: reflection
    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 08:47PM -0800 ^
     
    The answer is, of course, not. They are probably using different
    class loaders.
     
    The better question is, why would you want to do this?
     
     
     

     

    Hari Edo <hari.edo@gmail.com> Feb 28 08:54PM -0800 ^
     
    Reflection is the act of asking the JVM (Dalvik VM) and the
    current ClassLoader object instance for information about the
    classes it can reach in memory or along the Java CLASSPATH.
     
    It has nothing to do with inter-process communication. If it
    is not in the current process, or reachable by the CLASSPATH,
    it won't be found.
     
    On Android, different package names are given different user
    ids, and apps reside in completely different directories, to
    further limit the visibility of files related to a different
    application.
     

     

    Krt <keerthiraois@gmail.com> Feb 28 09:38PM -0800 ^
     
    Hi Zsolt,
     
    Thanks for the response.
     
    I am trying to alter something in android framework source , and this
    calls for an addition of a new class in framework source.
    But I did not want to add any new source under framework, instead
    planned to have it under vendor and load that new class dynamically in
    framework later.
     
    So I was thinking if reflection will come in handy.
     
    Regards,
    Krt
     

     

    "sourabh '''72'''" <sourabharsh@gmail.com> Feb 28 09:45PM -0800 ^
     
    can you please more elaborate on " launcher thing " like how to open
    and how to play with that
    and please give the procedure for fixing my problem
     
     
     

     

    Kevin TeslaCoil Software <kevin@teslacoilsw.com> Feb 28 09:01PM -0800 ^
     
    I think I've seen something like if you show a toast and then your
    activity is destroyed before the toast disappears it might get stuck.
    Easier to reproduce if you're calling finish(). Probably could avoid
    it if you save the toast reference and do a .cancel() in onDestroy.
     
    -Kevin
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 09:22PM -0800 ^
     
    On Mar 1, 1:01 pm, Kevin TeslaCoil Software <ke...@teslacoilsw.com>
    wrote:
    > activity is destroyed before the toast disappears it might get stuck.
    > Easier to reproduce if you're calling finish(). Probably could avoid
    > it if you save the toast reference and do a .cancel() in onDestroy.
     
    That's absolutely not the case. A lot of my activities finish with a
    toast and I've never seen one stuck.

     

    Manish Garg <mannishgarg2@gmail.com> Feb 28 09:10PM -0800 ^
     
    Hi All,
     
    any suggestion?
     

     

    Dianne Hackborn <hackbod@android.com> Feb 28 09:09PM -0800 ^
     
    It's supposed to be called (and if there isn't an actual pending command to
    deliver it is called with a null Intent), but there is a bug on 2.3 where it
    is not. It will only be called in cases where there are actual outstanding
    intents to deliver.
     
     
    --
    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.

     

    Heath Borders <heath.borders@gmail.com> Feb 28 08:53PM -0800 ^
     
    In my WebView, the following javascript returns true:
     
    document.implementation.hasFeature("XPath", "3.0")
     
    However, the following are undefined:
     
    document.evaluate
    XPathResult
     
    I'm running API Level 7 in the emulator.

     

    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 08:45PM -0800 ^
     
    > I wouldn't recommend that... I have had a couple people actually update
    > their information and then the sale goes through.
     
    By the time I see it, it's usually hours after the attempted
    purchase. And they can always repurchase (and usually do).

     

    Peter Eastman <peter.eastman@gmail.com> Feb 28 08:43PM -0800 ^
     
    Now that the 3.0 SDK is out, I've read through the Renderscript
    documentation. But it's pretty sketchy, and still doesn't answer most
    of my questions.
     
    Graphical scripts seem to consist of shader definitions and drawing
    code. But I assume the shaders ultimately get compiled down to the
    same machine code whether you define them with Renderscript or GLSL,
    and the drawing code presumably gets compiled down to roughly the same
    set of OpenGL calls that you'd make in Java or C++. So what are the
    advantages of using Renderscript instead?
     
    Then there are compute scripts, which I gather are meant to be a GPGPU
    framework? I have a lot of experience with CUDA and OpenCL, so I'd
    like to learn how it compares with those. There's hardly any
    documentation on writing compute scripts, and only a single trivial
    example. What threading model does it use? Does it support inter-
    thread communication? Scattered writes?
     
    Peter

     

    William Ferguson <william.ferguson.au@gmail.com> Feb 28 05:35PM -0800 ^
     
    > style="@android:style/Widget.ProgressBar"*, as was shown in that
    > stackoverflow post? You posted samples show AlertDialog and plaing Dialog.
     
    > No sure if it matters, but worth a shot if you didn't try it already.
     
    I'm pretty certain I covered *exactly* that in one of the many
    hundreds of scenarios I ran over the weekend.
    But I'll go back and give it one more shot.
     
     
    > This is not something I've had to do, but a custom layout and setting it
    > with setView() on the dialog seems like the simplest alternative.
     
    This is where I'm at too.
    It just doesn't feel right to ditch exactly the layout I want and
    replace it with the same layout but with a different style. All
    because I can't seem to get my style applied correctly.
     
    Thanks.

     

    TreKing <trekingapp@gmail.com> Feb 28 02:43PM -0600 ^
     

    > we as a manufacture have permissions to use methods which are not available
    > to end-client users/developers.
     
    You should try a different group then - try platform or porting. This is for
    using the SDK to do "official" things.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Sunil Lakhiyani <slakhiyaniandroid@gmail.com> Feb 28 12:29PM -0800 ^
     
    Hi Developers,
     
    I have .pdf in assert folder, also i have pdf viewer ad acrobat reader
    installed in my phone.
    Can i read .pdf from assert anyway (using those 2)?
     
    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

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

Comments: (0)

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

    Dianne Hackborn <hackbod@android.com> Feb 28 05:27PM -0800 ^
     
    What is the bug report? I don't see any link you have posted to it here.
    Nor do I see a self-contained sample I can run to try to repro the problem.
     
    And I have not yet seen you post anything that sounds like it is
    misbehaving. Yes, a service will occasionally get killed if it has not used
    startForeground(). No, it will not get onStartCommand() called when this
    happens, only onCreate().
     
    I have written a lot of documentation as well as a blog post and sample code
    on how the service lifecycle works. Yes, there was a change to this in 2.0
    that turned off the old setForeground() API because applications were
    abusing it too much. Sometimes given a choice between really bad
    application behavior and changing the framework behavior that apps see, the
    latter makes sense.
     
     
    --
    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.

     

    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 05:51PM -0800 ^
     
    > It's been a month, and this regression bug still hasn't even been reviewed.
     
    In my experience, no bug report (other than those submitted by Google
    Android team members themselves) ever gets acknowledged or it's status
    updated. That doesn't neccessarily mean that they are not being
    worked on or looked at.

     

    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 05:57PM -0800 ^
     
    My other suggestion would be to run a diff on the 2.2 and 2.3 source
    trees and see where it has been "broken", in your opinion. If you can
    point to an exact piece of code, you may have better luck getting this
    resolved.
     
    Unfortunately, you will forever have to do this workaround (or at
    least as long as you are supporting 2.3 in your app).
     
     
     

     

    rich friedel <rich.friedel@gmail.com> Feb 28 06:21PM -0800 ^
     
    Just wondering...
     
    I have avoided the use of startForeground() due to its issue on HTC devices
    http://code.google.com/p/android/issues/detail?id=9682 &
    http://code.google.com/p/android/issues/detail?id=9663 thus I am only
    utilizing START_STICKY in onStartCommand(). This currently works fine (2.2)
    but with the upcoming release of OS 2.3 on a wider variety of mobile devices
    Mr. Basile's issue concerns me as it will also affect how my application
    works on those devices.
     
    Should I be concerned or am I worrying prematurely?

     

    Dianne Hackborn <hackbod@android.com> Feb 28 06:35PM -0800 ^
     
    Okay, this did indeed break in 3.3. The change was from August of last
    year. This is the change that broke it:
     
    http://android.git.kernel.org/?p=platform/frameworks/base.git;a=commit;h=5474b0f8603ee66413c3e44600ca46f162f3089e
     
    In particular this change here:
     
    - if (si.intent == null && N > 1) {
    + if (si.intent == null) {
     
    I'll get this fixed in the next platform update (post-Android 3.0);
    unfortunately this code has been out in the source tree for a while, and in
    a couple releases now, so we'll need to live with the broken behavior on
    those versions. The service will still have its onCreate() called so you
    can do work there.
     
     
    --
    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.

     

    TreKing <trekingapp@gmail.com> Feb 28 08:38PM -0600 ^
     

    > Okay, this did indeed break in *3*.3.
     
     
    Can we assume you meant *2*.3?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    rich friedel <rich.friedel@gmail.com> Feb 28 06:50PM -0800 ^
     
    On Monday, February 28, 2011 9:38:13 PM UTC-5, TreKing wrote:
     
    > On Mon, Feb 28, 2011 at 8:35 PM, Dianne Hackborn <hac...@android.com>wrote:
     
    >> Okay, this did indeed break in *3*.3.
     
    > Can we assume you meant *2*.3?
     
    Furthermore, can I assume that the START_STICKY behavior won't ever work as
    intended in 2.3? If this is the case what would be the recommended course of
    action to make sure a service stays running or is restarted after the system
    kills it? Again I ask because of the HTC issue...

     

    Dianne Hackborn <hackbod@android.com> Feb 28 07:13PM -0800 ^
     
    Sorry yes I meant 2.3.
     
    This has been out in the code base since the GB code was released, so there
    will be who knows what devices that ship with it.
     
    The problem is *not* that services are not being restarted, just that their
    onStartCommand() is not called with null at that time. The onCreate()
    method is still called. As a work-around, you could probably just post a
    message in onCreate() and set a flag in onStartCommand(); if you haven't
    received an onStartCommand() by the time the message is processed, then you
    probably aren't going to get the null Intent call. (If you need to do this
    at all... generally for things like registering receivers, you really
    really want to do this in onCreate(), since that method is only called
    once.)
     
     
    --
    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.

     

    rich friedel <rich.friedel@gmail.com> Feb 28 08:24PM -0800 ^
     
    Sorry to bother you again but I just want to clarify...
     
    So onStartCommand() will in fact always be called at some point after the
    service is restarted when using the START_STICKY flag in 2.3+? Is this
    correct?
     
    I have tested it in the emulator and it seems to work fine (I don't have a
    physical device with 2.3 yet) I am just making sure.
     
    Thank you

     

 Topic: reflection
    Krt <keerthiraois@gmail.com> Feb 28 08:09PM -0800 ^
     
    Hi All,
     
    I am trying reflection in android.
     
    It works fine for classes, say A and B, under same project(same
    process in other words).
     
    It does not work between two different processes.
    i.e. I have
    project A, package name com.ref.classA
    project B, package name com.ref.classB
     
    Can I call from project B, Class.forName("com.ref.classA");
     
    I get exception class not found when I do this.
    Please note I have not imported package of calssA in classB.
     
    Am I missing something? or it is just not possible to do it between
    different processes.
     
    Any input would be of great help.
     
    Regards,
    Krt

     

    oldskool73 <oldskool73@gmail.com> Feb 28 05:46PM -0800 ^
     
    Hi all,
     
    I just got an odd email from a prospective customer...
     
    "So, I have tried to download numerous times from US android phone and
    have card declined. Google account works ffine for other apps is this
    a common issue"
     
    Looking at the checkout it appears his card has been declined
    repeatedly, and he's tried updating the details but to no avail. I'd
    normally assume he'd made some kind of user error or had something up
    with his card, but he states that it's working for other apps.
     
    I've mailed him back to clarify it's actually other purchases that
    work, not just free downloads, but in the mean time has anyone seen
    this happen before and/or know anything I can do to fix it? (App is
    called 'TouchTag' if that helps?)
     
    Thanks,
    Adam

     

    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 05:59PM -0800 ^
     
    I get CC declines all the time. It seems to happen with foreign (non-
    US) buyers for the most part. When I see this, I immeditately cancel
    the purchase and don't wait for them to update their card.
     
     
     

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 09:01PM -0700 ^
     
    *> When I see this, I immeditately cancel the purchase and don't wait for
    them to update their card.*
    I wouldn't recommend that... I have had a couple people actually update
    their information and then the sale goes through.
     
    This problem is less of an Android problem (and there isn't anything that
    can be done from the Android side of things anyway) and more of a Google
    Checkout issue. You might (emphasis on might) have more luck here:
     
    https://checkout.google.com/support/sell/?hl=en_US&ctx=help
     
     

     

    javaxmlsoapdev <vikasdp@gmail.com> Feb 28 07:35PM -0800 ^
     
    Just got a chance to resume this issue. How to search the device for
    the database file? Apparently something really strange is going on or
    I am doing something wrong. Shouldn't databases be private by default?
    I haven't done anything special to make them public. databases aren't
    on the memory card. Any other idea what could have gone wrong and how
    to go about haunting db files on the device to remove (if they exist
    on the device)? Also note, I have always uninstalled these apps from
    the device's "Applications -->Manage Applications-->" option. Is this
    ininstall different than adb uninstall? adb uninstall keeps giving me
    "Failure" message.
     
    Thanks,
     
     

     

    Niket <niket.kapadia@gmail.com> Feb 28 07:25PM -0800 ^
     
    I finally achieved what I wanted.
     
    Here is the code.
     
    Intent myIntent;
    myIntent = new Intent(this, newActivity.class);
    myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    myIntent.addCategory("android.intent.category.LAUNCHER"); //earlier
    I did not add this line.
    myIntent.setAction("android.intent.action.MAIN"); //
    earlier I did not add this line.
    startActivityForResult(myIntent, 10);
     
     
    To debug the issue: i used LogCat log. I checked the difference
    between when activity is started by clicking in home screen and
    started from another activity.
     

     

    Julius Spencer <julius@msa.co.nz> Mar 01 03:53PM +1300 ^
     
    Hi,
     
    I have an IntentService from which I am showing a Toast using:
     
    Toast.makeText(this, errorMessage.toString(), Toast.LENGTH_SHORT).show();
     
    For some reason it's not disappearing. Just wondering if anyone has seen this before or knows what I'm doing wrong. I'm sure it's just something I'm not thinking of but I'm stumped...
     
    Thanks in advance.
     
    Regards,
    Julius.

     

    TreKing <trekingapp@gmail.com> Feb 28 09:15PM -0600 ^
     

    > I'm sure it's just something I'm not thinking of but I'm stumped...
     
     
    You're not calling it over and over again are you?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    davemac <davemac327@gmail.com> Feb 28 12:38PM -0800 ^
     
    Any update on the <category> question answer please?
     
    - dave
     

     

    Nick Pelly <npelly@google.com> Feb 28 05:54PM -0800 ^
     
    I followed up with Dave off-thread, he is using the emulator with his own
    custom code to mock NFC Tag dispatch, which is why he was seeing the <category>
    tag requirement. This is not a real requirement. You can't simulate NFC tag
    dispatch on the emulator right now, you just have to go buy a Nexus S.
     
    Nick
     

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 04:03PM -0700 ^
     
    None of that matters... It's just a simple matter of etiquette. When asking
    for help you don't have to be rude if you don't like the answer. And if you
    feel it doesn't apply then great... don't apply it!
     
    The OP could just as easily have said "Thanks for the advice Dianne, but in
    my case this doesn't apply because of X, Y, and Z." and then none of the
    backlash would have happened
     
    No reason whatsoever to cop an attitude...
     

     

    TreKing <trekingapp@gmail.com> Feb 28 05:05PM -0600 ^
     

    > Free time? You think she's not getting paid?
     
    Dianne frequently posts on weekends and obscure, late-night hours. I highly
    doubt she's on the clock in those cases.
     
     
    > You did notice the "don't email me privately, cause I don't have time to
    > help you" thing in all her emails, right?
     
    *No one* would have the time to provide private support for the volume of
    email that comes through this list. Plus restricting the conversation in
    that fashion removes the possibility for others to help and learn from the
    questions posed. I've gotten a few direct "support" questions and first
    thing I do is redirect the asker back here.
     
     
    > She answers questions when they are convenient to answer, much like
    > everyone else here.
     
    Which in no one implies she's being paid to do so.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Shane Isbell <shane.isbell@gmail.com> Feb 28 05:44PM -0800 ^
     
    > my case this doesn't apply because of X, Y, and Z." and then none of the
    > backlash would have happened
     
    > No reason whatsoever to cop an attitude...
     
    You guys crack me up. I haven't had this type of backlash since the time I
    said the G1 looked like a brick when it first came out.
     
    Shane

     

    Zsolt Vasvari <zvasvari@gmail.com> Feb 28 05:44PM -0800 ^
     
    Is there even a place where you can send a free-form e-mail for
    support at all???? I can't find it, all I see are prepackaged
    questions.
     
     
     
    On Feb 27, 7:26 pm, "JAlexoid (Aleksandr Panzin)" <jalex...@gmail.com>
    wrote:

     

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

Comments: (0)

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

    Jake Basile <jakerbasile@gmail.com> Feb 28 05:08PM -0800 ^
     
    It's been a month, and this regression bug still hasn't even been reviewed.
    I have since replaced my Nexus S due to it being full of other problems, and
    it still happens; a friend of mine updated his Nexus One to 2.3.3, and now
    Hearing Saver doesn't work in exactly the same way on his phone. I'm stuck
    putting in a kludge of a workaround to handle this error that is caused
    solely by an OS version change, as I see no future to it being looked at or
    fixed. I stress that I made no code changes to cause this problem which did
    not occur on previous version, while this page of the Android Documentation
    directly states:
     
    an Android application developed using any given version of the API (as
    specified by its API Level) is forward-compatible with later versions of the
    Android platform and higher API levels
     
    I think Google could learn a bit from Microsoft and MSDN which has top
    notch, developer-centric custom service <http://connect.microsoft.com> and
    documentation <http://msdn.microsoft.com/library/default.aspx>. Despite
    Android being an open source project, the primary responsibility for support
    falls on Google. I feel that the Market would have a lot more fantastic apps
    if Google took a more active hand in developer relations.

     

    "Richard Sámela" <feromakovi@gmail.com> Feb 28 03:53PM -0800 ^
     
    Hi,
    my problem is that I have data in arraylist and I cant get it to
    adapter.
     
    I created this adaper in separate class:
     
    public class MyAdapter extends ArrayAdapter<MyRecord>{
    private ArrayList<MyRecord> al;
    private LayoutInflater inflater;
     
    public MyAdapter(Context context,int resources, int
    textViewResourceId, ArrayList<MyRecord> al) {
    super(context,resources, textViewResourceId);
    this.inflater = LayoutInflater.from(context);
    this.al=al;
    }
    public View getView(int position, View convertView,ViewGroup parent)
    {
    View row = convertView;
    if(row==null){
    row = inflater.inflate(R.layout.list, parent, false);
    }
    TextView spot=(TextView)row.findViewById(R.id.TextView01);
    TextView datu=(TextView)row.findViewById(R.id.TextView02);
    spot.setText(Double.toString(al.get(position).spotreba));
    datu.setText(al.get(position).date);
    return row;
    }
    }
     
    I create adapter in MainActivity like this:
     
    ArrayList<MyRecord> al - here I have all my data. and this is field
    of MainActivity extends Activity
    ListView lv = (ListView) findViewById(R.id.listik);
    adapter = new MyAdapter(this,R.id.listik,R.layout.list,al);
    lv.setAdapter(adapter);
    when I do this nothing happens. ListView is empty.
     
    in method onCreate I setContentView from resource this:
     
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
    android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/ll">
    <ListView
    android:id="@+id/listik"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fastScrollEnabled="true"
    android:smoothScrollbar="true"
    android:scrollbars="vertical"
    android:scrollbarSize="10sp">
    </ListView>
    </LinearLayout>
     
    Aplication run corectly data are alright but I cant display them to
    the ListView. please help me find what I do wrong. And I can't find
    bug, I have tried a lof of options but nothing helps me.
    thank you very much.
     
    Richard Sámela

     

    TreKing <trekingapp@gmail.com> Feb 28 06:59PM -0600 ^
     

    > Aplication run corectly data are alright but I cant display them to
    > the ListView. please help me find what I do wrong.
     
    Have you confirmed that:
    1 - your array list actually has items and
    2 - your getView function is being called
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    tedx <txtoth@gmail.com> Feb 28 03:02PM -0800 ^
     
    I've written a custom home app for a tablet and I'd like to put some
    3rd party widgets (weather/date/etc.) on it. Can this be do and if so
    how can it be accomplished?
     
    Ted

     

    TreKing <trekingapp@gmail.com> Feb 28 05:17PM -0600 ^
     

    > I've written a custom home app for a tablet and I'd like to put some 3rd
    > party widgets (weather/date/etc.) on it.
     
    Are you saying you want to pre-install widgets on it or that you'd like the
    functionality for users to add widgets, like the default Home app?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    tedx <txtoth@gmail.com> Feb 28 04:08PM -0800 ^
     

    > -------------------------------------------------------------------------------------------------
    > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    > transit tracking app for Android-powered devices
     
    Pre-install the widgets. On this dedicated device the user will not be
    able to any configuration.
     
    Ted

     

    TreKing <trekingapp@gmail.com> Feb 28 06:34PM -0600 ^
     

    > Pre-install the widgets.
     
    It's probably possible, the default home come with some widgets enabled by
    default. No idea how'd you go about it though.
     
     
    > On this dedicated device the user will not be able to any configuration.
     
    Dedicated *device*? If you're building a custom firmware along with your
    home app, you want another group - like porting or platform.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    tedx <txtoth@gmail.com> Feb 28 04:50PM -0800 ^
     
    I'm thinking the answer has to do with AppWidgetHost. Anyone used this
    in a custom home app?
     

     

    Dianne Hackborn <hackbod@android.com> Feb 28 04:59PM -0800 ^
     
    It is not possible for third party apps; the user needs to approve your
    access to the widget by explicitly selecting it. Of course if you are
    making your own device, you can put your app in the system image, and it can
    have the permission to directly install widgets.
     
     
    --
    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.

     

    William Ferguson <william.ferguson.au@gmail.com> Feb 28 03:17PM -0800 ^
     
    Dianne? No? Anyone?
     
    Is the only way to create a progressDialog (with an alternate
    background and font color), to create my own Dialog/Activity that
    mimics the layout of a ProgressDialog but applies my own style?
     
    Ie a ProgressDialog can't have its background and font color changed?
     
     
    William
     
     
    On Feb 28, 3:21 pm, William Ferguson <william.ferguson...@gmail.com>
    wrote:

     

    William Ferguson <william.ferguson.au@gmail.com> Feb 28 04:33PM -0800 ^
     
    Thanks TreKing. Following that advice was what allowed me to set the
    background color.
    But it doesn't (or I couldn't find anyway) to have it also set the
    font color.
     
    When you create a ProgressDialog in which you want custom colors, what
    do you do?
    Create a custom Dialog, ie custom layout?
     
     

     

    TreKing <trekingapp@gmail.com> Feb 28 06:49PM -0600 ^
     
    On Mon, Feb 28, 2011 at 6:33 PM, William Ferguson <william.ferguson.au@
    gmail.com> wrote:
     
    > background color.
    > But it doesn't (or I couldn't find anyway) to have it also set the
    > font color.
     
    Just so we'e clear, you tried using *
    style="@android:style/Widget.ProgressBar"*, as was shown in that
    stackoverflow post? You posted samples show AlertDialog and plaing Dialog.
     
    No sure if it matters, but worth a shot if you didn't try it already.
     
    When you create a ProgressDialog in which you want custom colors, what do
    > you do?
    > Create a custom Dialog, ie custom layout?
     
    This is not something I've had to do, but a custom layout and setting it
    with setView() on the dialog seems like the simplest alternative.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    eli <sweehoe.loke@gmail.com> Feb 28 04:16PM -0800 ^
     
    Hi,
     
    May I know how to replicate the recent app dialog selection border
    around the app icon?
     
    THanks

     

    Peter Sinnott <psinnott@gmail.com> Feb 28 03:13PM -0800 ^
     
    How helpful.
     
     
    A lot of websites say to use ACTION_SEND but I found ACTION_SENDTO
    works better.
     
    Intent emailIntent = new Intent(android.content.Intent.ACTION_SENDTO);
    emailIntent.setData(Uri.parse("mailto:a@b.com"));
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "A
    Subject" );
     
     

     

    TreKing <trekingapp@gmail.com> Feb 28 05:18PM -0600 ^
     

    > A lot of websites say to use ACTION_SEND but I found ACTION_SENDTO works
    > better.
     
    Curious: how does it work "better"?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Peter Sinnott <psinnott@gmail.com> Feb 28 03:30PM -0800 ^
     
    Iirc SENDTO gave me mail and gmail as alternatives but SEND either
    didn't give me mail or gave me a multitude of options most of which
    were not email specific.
     
     

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 04:41PM -0700 ^
     
    *> How helpful.*
     
    If the OP isn't going to put much time into the question (i.e. doing some
    stuff to try to figure it out first... such as doing a google search,
    looking at docs, etc..) then I'm not going to put much time in the answer.
     
     
     

     

    Mike <mike.coppola@gmail.com> Feb 28 03:17PM -0800 ^
     
    Thanks, But won't that be a lot of repeating code? ie the event
    handlers for those buttons will have to repeat in every activity.
    There has to be a cleaner way to do it....
     

     

    TreKing <trekingapp@gmail.com> Feb 28 05:21PM -0600 ^
     

    > Thanks, But won't that be a lot of repeating code? ie the event handlers
    > for those buttons will have to repeat in every activity.
    > There has to be a cleaner way to do it....
     
    It shouldn't be. If you're doing something that is so self-contained that it
    can live within any of your activities, then you can create your own
    component, "ButtonBar" that encapsulates all the logic you need, including
    the button event handlers.
     
    Perhaps some setter functions or constructor parameters to bind to the
    specific Activity would required, but for the most part I don't see what it
    would not just be a matter of defining your custom component and including
    it in each activities main layout.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 04:43PM -0700 ^
     
    Or you could have a single activity with different views underneath the
    button bar... Though admittedly this approach could lead to a bloating of a
    single activity.
     

     

    metal mikey <coreform@gmail.com> Feb 28 03:11PM -0800 ^
     
    For functional testing you can also use HP QTP (QuickTest
    Professional) in conjunction with plugins for it that allow testing on
    real mobile hardware*, such as M-eux. There's also integrations
    between Device Anywhere and HP QTP as well as IBM Rational Quality
    Manager.
     
    For application security testing, if you have the source code (or
    perhaps even just the .apk) you can use HP Fortify 360.
     
    *phone must be rooted.

     

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

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

Comments: (0)

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

    Justin Anderson <magouyaware@gmail.com> Feb 28 03:58PM -0700 ^
     
    I would have thought that implementing something like this (a vertical swipe
    on a Gallery) would be something that would have been done already or would
    at least be straightforward, but apparently not...
     
    I have posted a question on StackOverflow as well without any luck.
     
    Oh well... I'll keep tinkering away and if I can come up with a good way of
    doing this I will post it here for any others that may want to implement
    something similar.
     

     

    rich friedel <rich.friedel@gmail.com> Feb 28 05:06PM -0500 ^
     
    boy you have balls!
     
    she's only the one who makes this OS happen...
     
    show some respect...

     

    Shane Isbell <shane.isbell@gmail.com> Feb 28 02:15PM -0800 ^
     
    It appears that Dianne has quite a following but enough with the hate
    emails, both public and private. I have control over the environment and
    distribution so saying not to do something just doesn't apply in my case.
     
    Shane
     

     

    Greg Donald <gdonald@gmail.com> Feb 28 04:16PM -0600 ^
     
    > she's only the one who makes this OS happen...
     
    I'm pretty sure Linus Torvalds (and 16K kernel hackers) would
    disagree, not to mention Dan Bornstein, Andy Rubin, etc.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    rich friedel <rich.friedel@gmail.com> Feb 28 05:42PM -0500 ^
     
    Mr Donald, you know what i meant.
     
    Mr Isbell, no hate emails from me, just irritated because you wrote fragile
    code. Your code broke. You come here asking for help. You receive help. You
    are told to not half-ass it and you cop an attitude with one of the Android
    framework engineers who takes her free time to help people like you and me.
    Yeah I believe, no matter what your situation, you could have done without
    that comment sir!
    On Feb 28, 2011 5:17 PM, "Greg Donald" <gdonald@gmail.com> wrote:

     

    Hari Edo <hari.edo@gmail.com> Feb 28 02:44PM -0800 ^
     
    Greg, reading fail. There's a difference between "she's
    only the one who..." and "she's the only one who..."
    Without Dianne's team, Android wouldn't be.
     
    Shane, the advice (from Google team or anyone else) is
    trying to coach you into a sustainable design. You can
    write whatever compiles, but the advice is to write
    something robust and future-proof.
     
    Have you tried the original suggestion, clipping the query
    parameters? I don't know if it would succeed.
     
    Uri.parse("market://")
     

     

    Greg Donald <gdonald@gmail.com> Feb 28 04:48PM -0600 ^
     
    > Without Dianne's team, Android wouldn't be.
     
    Google bought Android, it would indeed "be" without her.
     
    http://www.google.com/search?q=google+buys+android
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    Greg Donald <gdonald@gmail.com> Feb 28 04:52PM -0600 ^
     
    > framework engineers who takes her free time to help people like you and me.
     
    Free time? You think she's not getting paid?
     
    You did notice the "don't email me privately, cause I don't have time
    to help you" thing in all her emails, right? She answers questions
    when they are convenient to answer, much like everyone else here.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    rich friedel <rich.friedel@gmail.com> Feb 28 05:54PM -0500 ^
     
    You're right. Mr. Edo didn't finish, so let me...
     
    ...wouldn't be the super awesome mobile framework that we enjoy and love!
    On Feb 28, 2011 5:49 PM, "Greg Donald" <gdonald@gmail.com> wrote:

     

    Mike <mike.coppola@gmail.com> Feb 28 02:24PM -0800 ^
     
    Device: Droid
    OS / Browser / build number: 2.2.1
     
    In my main Activity I have created a bar with buttons on it. Now , I
    would like the "Button Bar" to always show regardless of what Activity
    I'm showing. Basically I need the handle the Button events from the
    "Button Bar" across all Activities. Is this possible, and what best
    practice to achieve this?

     

    Marcin Orlowski <webnet.android@gmail.com> Feb 28 11:41PM +0100 ^
     

    > In my main Activity I have created a bar with buttons on it. Now , I
    > would like the "Button Bar" to always show regardless of what Activity
    > I'm showing.
     
    Include it in every activity. Or use view instead of activities
     
    --
    Regards,
    Marcin

     

    Indicator Veritatis <mej1960@yahoo.com> Feb 28 02:13PM -0800 ^
     
    Is it a typo is the CDD requirement really this backwards? You say:
     
    The current CDD requires that the API return the directory of the
    primary
    "external" storage, that is the one you can count on always being
    there,
    that is the internal storage partition of such devices.
     
    So the API named EXTERNAL storage is required to return the "INTERNAL
    storage partition"!
     
    Sounds pretty contradictory to me.
     

     

    Indicator Veritatis <mej1960@yahoo.com> Feb 28 02:09PM -0800 ^
     
    This is not the OpenGL way of doing things. You are not supposed to
    "calculate x-units and y-unints depending on window". You are supposed
    to do all your calculations in "world coordinates" or "user
    coordinates" (there actually is a slight difference, but they are
    often treated as interchangeable) and let the -system- transform to
    window coordinates and ultimately to device coordinates. That is what
    all the OpenGL commands for pushing/popping/setting matrices are for:
    the matrices represent the current transformation, the commands are
    for keeping the current transformation up to date for what you are
    doing.
     
    For further online sources explaining this, you may want to start with
    http://www.glprogramming.com/red/index.html. But http://www.opengl.org/code/category/C22
    and http://www.droidnova.com/android-3d-game-tutorial-part-i,312.html
    may also prove very helpful. The latter gives an explanation of the
    basic OpenGL terminology, the former is a (somewhat out of date) list
    of tutorials.
     
     

     

    Antony BODY <antony.body@gmail.com> Feb 28 02:02PM -0800 ^
     
    Hi all,
     
    I'm trying to apply themes and styles on my application which is
    TabHost.
    I can't modify the background color of this TabHost. It works for all
    other attrobute like TextColor for example.
     
    Any one have an idea, I'm lost?
     
    Do you think my XML style resource is wrong ?
     
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
     
    <color name="custom_theme_color">#3399cc</color>
    <style name="MyStyle" parent="android:Theme.Light">
    <item name="android:textColor">#cc00cc</item>
    <item name="android:windowBackground">
    @color/custom_theme_color
    </item>
    <item name="android:colorBackground">
    @color/custom_theme_color
    </item>
    </style>
    </resources>
     
    In second point, I would like to know how work selector with
    ResourceCursorAdapter. My list is filled by this adapter and when i
    try to use selector, all my items change color. I have to add
    something in my adapter? Like update state of item or something like
    that ?
     
    Regards,
    Antony.

     

    davemac <davemac327@gmail.com> Feb 28 12:30PM -0800 ^
     
    But that means you can't use your Android device at one of those point-
    of-sale terminals that can read NFC tags, right? The bit in the
    documentation about com.android.npp is confusing since I can't find
    any information on that package anywhere. So I assume that only
    Android devices can participate in the NFC P2P interaction. I know you
    can't give a date of when card emulation would be available, but can
    you at least say that it's being worked on and that we may see it
    someday?
     
    I appreciate your help. The Android team is great for spending time in
    these forums. It really helps a lot.
     
    - dave
     

     

    Nick Pelly <npelly@google.com> Feb 28 02:00PM -0800 ^
     
    Hi Dave,
     
    If the other terminal supports P2P and com.android.npp (NDEF Push Protocol)
    then you can talk to it. We'll be publishing a spec for NPP soon.
     
    Nick
     

     

    songs <coca.cola@gmail.com> Feb 28 01:41PM -0800 ^
     
    Hi,
     
    I posted a while back about a web service I created for Android sales
    stats (http://groups.google.com/group/android-developers/browse_thread/
    thread/3274fa442b87a618/e3e78ae3ed358892)
     
    Shop Stats is now out of closed beta! Sign up now and sanity check
    your sales figures for tax time! The first two weeks are completely
    free!
     
    Regards,
    Steve

     

    TreKing <trekingapp@gmail.com> Feb 28 02:28PM -0600 ^
     

    > but whenever run the emulator it boots up normally till the" unlock button"
    > I unlock that but* it doesn't show my app*
     
    Stupid question, but did you try launching your app after unlocking the
    emulator? It doesn't just it automatically, especially if you haven't
    installed it ...
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Feb 28 03:41PM -0600 ^
     

    > It doesn't just it automatically
     
     
    That's "it doesn't just run it automatically".
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    "A. Elk" <lancaster.dambusters@gmail.com> Feb 28 12:58PM -0800 ^
     
    This question, like the previous one, is too hypothetical. We can't
    anticipate the types of testing you want to do.
     
    Are you trying to do qualification testing of a particular device? Are
    you trying to unit test or functional test an application? Are you
    trying to test an existing application against a platform?
     
    It wasn't clear to me to begin with why you were trying to test
    existing Android applications, and what level of testing you were
    trying to do.
     
    Robotium is another option for writing test suites. It uses Java
    rather than Javascript, and it's based on the model of app testing
    used by Selenium.
     
    It's not clear to me that you can use anything to test a "customized"
    application. If the OEM is providing its own Contacts framework, then
    it may be completely unrelated to the Android Contacts framework. In
    that case, SL4A probably won't work because it assumes that the
    standard Android framework is available.
     

     

    Aruna Shidling <aruna.shidling@gmail.com> Mar 01 02:04AM +0530 ^
     
    Hi All,
     
    Is it possible to disable the Home key for an activity which shows alert
    dialog ? i could disable the search key but not able to do it for home key..
     
    --
    Thanks & Regards,
    Aruna.

     

    TreKing <trekingapp@gmail.com> Feb 28 02:36PM -0600 ^
     

    > Is it possible to disable the Home key for an activity which shows alert
    > dialog ?
     
     
    No, you can't intercept the Home Key.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Justin Anderson <magouyaware@gmail.com> Feb 28 01:46PM -0700 ^
     
    That could cause major problems... The home key is supposed to be the user's
    safe way to get back to a stable state. If you could disable the home key
    then an app could wreak havoc that would require you to reboot your phone to
    get to a stable state.
     

     

    brian purgert <brianpurgert2@gmail.com> Feb 28 03:24PM -0500 ^
     
    I want the person to click on a button and when they click it, it opens up
    their email and my email address is already there.

     

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