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

Comments: (0)

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

    Michael <michaelz92@gmail.com> Jun 30 07:07PM -0700 ^
     
    Thanks again, but I'm still having a problem.
     
    public void endElement(String uri, String localName, String qName)
    {
    if (qName.equalsIgnoreCase("event"))
    {
    addElement();
    }
     
     
    }
     
    seems to still not add anything to the arrayList
     

     

    Streets Of Boston <flyingdutchie@gmail.com> Jun 30 07:18PM -0700 ^
     
    Don't check the qName. Use the localName instead.
    (localName.equals("event")).
     

     

    Michael <michaelz92@gmail.com> Jun 30 07:27PM -0700 ^
     
    It doesn't make a difference as it still passes the if statement and
    runs the addElement() method, which for some reason still won't add
    it.
     

     

    Michael <michaelz92@gmail.com> Jun 30 07:28PM -0700 ^
     
    Either way the if statement is still accessed and the addElement() is
    run. However, it still will not add the item to the arraylist for some
    reason.
     

     

    Frank Weiss <feweiss@gmail.com> Jun 30 08:24PM -0700 ^
     
    In the endElement() method, also check for the other elements and save
    the contents of the StringBuffer:
     

     

    Michael <michaelz92@gmail.com> Jun 30 09:09PM -0700 ^
     
    I tried it with the StringBuffer to no avail, the problem still
    persists.
    public void endElement(String uri, String localName, String qName)
    {
    if (localName.equalsIgnoreCase("registry"))
    {
    System.out.println("string");
    }
    else if (localName.equalsIgnoreCase("business-name"))
    {
    businessName = businessNameBuff.toString();
    }
    else if (localName.equalsIgnoreCase("street1"))
    {
    street1 = street1Buff.toString();
    }
    else if (localName.equalsIgnoreCase("longitude"))
    {
    longitude = longitudeBuff.toString();
    }
     
    if (longitudeBuff != null && street1Buff != null &&
    businessNameBuff != null)
    {
    addElement();
    }
     
    }
     

     

    Frank Weiss <feweiss@gmail.com> Jun 30 09:58PM -0700 ^
     
    Are you using Eclipse? Have you tried stepping through your code with
    the debugger? I highly recommend you do that.

     

    Frank Weiss <feweiss@gmail.com> Jun 30 06:39PM -0700 ^
     
    My first guess is you're trying to read the compiled resource class
    file. I hope you understand that the R object is a graph of static
    classes. The idea being that at run time, you simply access the
    resources via the R object graph and avoid any further XML parsing.

     

    Frank Weiss <feweiss@gmail.com> Jun 30 06:31PM -0700 ^
     
    Look at the bottom of the editor pane. There should be a tab labeled
    "Resources" and a tab labeled "strings.xml". Which tab is selected
    when the NPE ocurrs?

     

    Bob Kerns <rwk@acm.org> Jun 30 09:42PM -0700 ^
     
    There are several possible editors to use to edit these files. I'd
    suggest trying a different one.
     
    First, close the editor that's giving you problems.
     
    Right click on the file in the Project Explorer, and choose Open
    With... Try "Android Resource Editor" first, as that's probably the
    one you really want to be using, and there's nothing in the stacktrace
    that suggests that's what you're actually using. I'm not sure it's NOT
    using it, but it's worth trying the right one first.
     
    If that doesn't work, try another one. Text Editor is likely to work.
    System Editor/ and In Place Editor will depend on what's installed on
    your system, and since you're on a Mac, I won't make any predictions
    there, but might be good choices. System Editor will launch a separate
    window, which is a drawback.
     
    I have OxygenXML installed, and that provides Eclipse with an
    additional XML editor as well, with the Oxygen toolset and editing
    style available.
     
    Even if the Android tool is broken, explore and I think you'll
    probably find something that works acceptably for you.
     
    (It's still a bug, even if you are using the "wrong" editor. A side
    benefit of exploring is you'll identify the culprit and can file the
    suitable bug report!)
     

     

    Streets Of Boston <flyingdutchie@gmail.com> Jun 30 07:20PM -0700 ^
     
    Thanks Jake,
     
    I already had a hard time believing Bump would do that... :-)
    I think it's a great idea to let friends (bumpers? :-)), share app-
    discoveries like that!
     

     

    Bob Kerns <rwk@acm.org> Jun 30 09:33PM -0700 ^
     
    Congratulations on a very cute and clever idea. I really hope it
    catches on -- and that it makes you a lot of money!
     
    I can't quite see myself using it until I get Android phones for the
    family, but I think it will be wildly successful among teens! And we
    all benefit as a result.
     

     

    Nilly <niral.patel.tel@gmail.com> Jun 30 09:29PM -0700 ^
     
    Thank You Mark
     
    Regards,
    Nilly

     

    schwiz <schwiz@gmail.com> Jun 30 09:02PM -0700 ^
     
    updating to release 85b fixed this issue
     

     

    Frank Weiss <feweiss@gmail.com> Jun 30 06:44PM -0700 ^
     
    Hmm. I've heard that the resources editor is buggy. Work around is to
    edit the XML directly. If you really need to use the resource editor,
    might I suggest fixing the code yourself and submitting to the Android
    project?

     

    Zigurd <zigurd.mednieks@gmail.com> Jun 30 08:38PM -0700 ^
     
    Does your question 1 refer to the step in installation where you use
    the AVD and SDK Manager to install build target packages? If so, you
    can choose to install all of them without using up too much space on a
    big machine. If you install all of the build targets you will be sure
    to be compatible with example code that is set up for various API
    levels.
     
    A null pointer exception reported in Eclipse that occurs in an Android
    XML editor usually means the visual editor could not interpret or
    create the XML correctly. The most common case I see that is
    attempting to use a layout editor where a View class has been
    subclassed and the subclass name is used in the layout - the layout
    editor can't handle that. So I suspect you have encountered something
    similar. Edit the XML "by hand" - switch to the xml view using the
    tabs at the bottom of the editor pane - and make sure that there are
    no errors in the XML file.
     

     

    mike <hasitharandika@gmail.com> Jun 30 08:13PM -0700 ^
     
    hi guys,
     
    i'm having three different devices. Tattoo,Milestone and a Droid. what
    my application does is when receiving a call i'm starting a activity.
    which works fine in all three. but if the phone is locked in Motorola
    Droid it's not unlocking the screen in other two phones it's working
    fine.
     
    this is how am doing it
     
    in the activity
     
    context = getApplicationContext();
    ManageKeyGuard.disableKeyguard(context);
     
    and in the manifest
     
    <uses-permission
    android:name="android.permission.DISABLE_KEYGUARD"></uses-permission>
     
    any suggestions.??
     
    regards,
    Mike

     

    Bob Kerns <rwk@acm.org> Jun 30 07:46PM -0700 ^
     
    Yes, "Open Source" != "Open Process".
     
    Moving to an open process wouldn't mean that Google would have to give
    up control; they'd just have to make their incomplete work more
    visible, and deal somehow with the extra comments and such that
    result.
     
    But it could mean a lot more and better and earlier testing.
     

     

    AUandroid <thevking@gmail.com> Jun 30 07:02PM -0700 ^
     
    thanks Jeremy, I will try the onresume option. A separate thread is
    not feasible.
     
    -vk

     

    Natanael Arndt <NatanaelA@gmx.de> Jun 30 11:07PM +0200 ^
     
    Thank you I have found the model.commit() method for Jena-Models now.
     
    Natanael
     
    On 30.06.2010 20:49, Dianne Hackborn wrote:

     

    Jaap <jaap.haitsma@gmail.com> Jun 30 01:41PM -0700 ^
     
    Maybe I did not explain myself well. What I want is somebody to use
    the default phone application on Android but when the call button is
    pressed my application gets the number and no call is being placed.
     
    Jaap
     

     

 Topic: Arabic :(
    Muhammad Hakim <hakimrie@gmail.com> Jul 01 03:26AM +0700 ^
     
    > in android ..... there's millions of arabian people have an android
    > phone ..... and they need the arabic language :(
     
    > --
     
     
    salam mohammed,
    you can use arabic reshaper tu support arabic in your application.
    recently I develop an app with "native" arabic text: hadith arbain
    an-Nawawiyah in 10 languages
    check it out:
     
    --
    Best Regards,
    hakim
     
    السلام عليكم ورحمة الله وبركاته

     

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

Comments: (0)

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

    Eli Gelernter <eligelernter@gmail.com> Jun 29 04:52PM -0700 ^
     
    I am looking to turn a BroadcastReceiver on and off. The receiver used
    to be turned on in the manifest xml file but i believe there is no way
    to turn it off when it is turned on that way.
    Instead I am trying to turn it on locally and thereby be able to turn
    it off.
    I am having a few problems with this.
    1. I can't get it working at all. This is the code I have
    BCReceiver localReceiver = new BCReceiver();
    IntentFilter filter = new
    IntentFilter("android.provider.Telephony.SMS_RECEIVED");
    context.registerReceiver(localReceiver, filter);
     
    and it is not working to pick up the sms recieved
     
    2. In the xml file there are about 10 intent filters in the xml file
    and i am not sure how to do that in the localReceiver. Do I have to
    register it 10 separate times with each separate intent filter?
     
    Thank you very much,
    Eli

     

    shaireen dhingra <shaireen.dhingra@gmail.com> Jun 30 12:12AM -0700 ^
     
    Can Audioflinger in android support mixing of sounds from multiple
    applications running simultaneously?

     

    Christoffer Davidsson <christoffer@chlirre.com> Jun 30 02:31AM -0700 ^
     
    Hi,
     
    is there a way of recieving a notification of some sort when a
    activity is launched.
     
    I'd like to monitor which applications are used and how often. Is is
    possible to register for some broadcast telling me when an application
    is launched, installed, unistalled etc?
     
    I believe I found a discussion or solution to this yesterday when I
    was looking for something else, but I'm not able to find it today.
     
    /
    Christoffer

     

    Connie Walsh <connie.walshclan@gmail.com> Jun 29 07:22PM -0400 ^
     
    I am new to android programming. I imagine that my problem is that the
    spinner is defined but is not connected to the array that I have defined in
    res>values>strings.xml
     
    I have code related to the spinner in 3 different places, is that correct? I
    am open to improving my coding style.
     
    In main.xml I have this code:
     
    <http://www.anddev.org/#><Spinner
    android:id="@+id/Spinner01"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    </Spinner>
     
    In SpinnerThingy.java I have this code:
     
    package com.mymortgagegenius.mortgagecalc;
     
    import android.app.Activity;
    import android.os.Bundle;
    import android.widget.ArrayAdapter;
    import android.widget.Spinner;
    import android.widget.Toast;
     
     
    public class SpinnerThingy extends Activity {
    void showToast(CharSequence msg) {
    Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }
     
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
     
    Spinner spinner = (Spinner) findViewById(R.id.Spinner01);
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(
    this, android.R.layout.simple_spinner_item,
    R.array.compoundingSpinner);
     
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    spinner.setAdapter(adapter);
     
    spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
    }
    }
     
    In MyOnItemSelectedListener.java I have:
     
    <http://www.anddev.org/#>package com.mymortgagegenius.mortgagecalc;
     
    import android.view.View;
    import android.widget.AdapterView;
    import android.widget.Toast;
    import android.widget.AdapterView.OnItemSelectedListener;
     
    public class MyOnItemSelectedListener implements OnItemSelectedListener {
     
    public void onItemSelected(
    AdapterView<?> parent, View view, int pos, long id) {
    Toast.makeText(parent.getContext(), "The planet is " +
    parent.getItemAtPosition(pos).toString(),
    Toast.LENGTH_LONG).show();
    }
     
    public void onNothingSelected(AdapterView<?> parent) {
    // Do nothing.
    }
    }
     
    This is the effect of clicking on the Spinner:
    [image: Image]
     
    Connie

     

    ravi <ravindramcajss@gmail.com> Jun 30 01:12AM -0700 ^
     
    Hello friends
     
    I am new to Android development. I want to know the size limit for
    android application.
     
    what will be the maximum size of a "application.apk" file ?
     
     
     
     
    Thakns

     

    Abhit <abhitnigam@gmail.com> Jun 30 05:38AM -0700 ^
     
    Hi everybody,
     
    I am new In android, stuck with a task to lunch a new screen
    (Activity) while doing or reeving a GSM call.
    For same I have done fallowing but that activity which I want to
    launch is launched at background and that screen is visible only when
    click on back key.
     
    public void onCallStateChanged(int state,String incomingNumber){
    switch(state)
    {
    case TelephonyManager.CALL_STATE_IDLE:
    Log.d("DEBUG", "IDLE");
    break;
    case TelephonyManager.CALL_STATE_OFFHOOK:
     
    // ACTIVITY TO LAUNCH
     
    Receiver.mContext.startActivity(new
    Intent(Receiver.mContext,FlashLight.class));
     
    break;
    case TelephonyManager.CALL_STATE_RINGING:
    Log.i("DEBUG", "RINGING");
    if(Tab1.CALL_BACK){
    Tab1.CALL_BACK=false;
    TelephonyManager tm = (TelephonyManager)
    context.getSystemService(Context.TELEPHONY_SERVICE);
    if (tm.getCallState() !=
    TelephonyManager.CALL_STATE_RINGING) {
    return;
    }
     
    // Simulate a press of the headset button to pick up
    the call
    Intent new_intent = new
    Intent(Intent.ACTION_MEDIA_BUTTON);
    new_intent.putExtra(Intent.EXTRA_KEY_EVENT, new
    KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_HEADSETHOOK));
    context.sendOrderedBroadcast(new_intent, null);
     
    }
    break;
    }
     
     
    -----------------------------------------------------------------------
     
    import org.sipdroid.sipua.ui.R;
     
    import android.app.Activity;
    import android.os.Bundle;
    import android.os.Process;
    public class FlashLight extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    android.os.Process
    .setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_DISPLAY);
    Process.setThreadPriority(12);
    // Process.setThreadPriority(Process.myTid(), 12);
    setContentView(R.layout.flashlight);
     
    }
    }
     
     
    As you can see that I also set the priority by using

    android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_DISPLAY);
     
    but it is also not working .
     
    Please tell me if there is any other way to replace inCall or outCall
    screen with our custom screen.
     
    Thanks,
    Abhit Nigam

     

    YanivC <yanivch@gmail.com> Jun 30 02:34AM -0700 ^
     
    Hi,
     
    If you are an android developer living outside the US and don't have a
    way to accept the android market payouts?, we can help you.
    We can give you the option to have all the payouts directly to your
    pocket utilizing our Prepaid Debit MasterCard system.
    To read more about us, go to: http://www.payoneer.com
     
    For more information on this, please feel free emailing me directly
    to: cto@payoneer.com
     
    Thank you.
    Yaniv Chechik
    Payoneer Inc.

     

    claesh <claes.huittinen@gmail.com> Jun 30 01:43AM -0700 ^
     
    Emulator is slow. Major reason is that emulator actually emulates
    another processor with another instruction set than the Intel
    processor. Also other devices on the phone needs to be software
    emulated. It simply takes time...
     
    You can experiment with android-x86 if you just want to see you app
    running. This is still an emulator but should be much faster since the
    processor instructions does not have to be emulated. Android-x86 is
    not a substitute for the phone emulator. You should still test your
    app on different screen sizes and versions of android.
     
     
    On Jun 28, 9:54 pm, "lucky.developer" <lucky.develo...@gmail.com>
    wrote:

     

    Christian Kuen <christian.kuen@gmail.com> Jun 30 10:03AM +0200 ^
     
    Hi,
     
    the letters 'ANDROID_' are displayed during the start up of the AVD. You
    need to wait longer until the device has finished the start up process.
    After a while you should see the home screen of Android and then you can
    start your 'Hello World' application.
     
    best regards,
    Chris
     
     
     
    2010/6/29 kismet <altin.ufuk@googlemail.com>
     

     

    fry15 <jason@jasonfry.co.uk> Jun 30 07:59AM -0700 ^
     
    Hello
     
    I'm using a ViewFlipper to change between several views. I initially
    have the animation duration set to quite a high value. Then during the
    animation, I change the duration to a much lower value. I would expect
    this to change the length of the animation that it's currently doing.
     
    Instead it seems to just finish the animation immediately.
     
    I've tried adding an offset to the value to take into account the
    amount of time the animation has already been going for, this made no
    difference.
     
    I then tried changing the new animation length to a similar value to
    the original (1ms different) this seemed to work. So then I changed it
    to a slightly lower value and discovered that there is a kind of 'lag'
    in between changing the animation duration, where the animation seems
    to jump forward and then continue at the new speed. It looks like
    (although I'm not 100% sure of this) that the bigger the gap between
    the old duration and the new duration, then the longer the 'lag' is.
     
    Any ideas anyone?
     
    Cheers

     

 Topic: chrome
    Ryan Hammill <ryanjohnhammill@googlemail.com> Jun 30 05:48AM -0700 ^
     
    Hi, how is it that we don't have Google Chrome on android yet? And do
    you know when froyo is out on HTC LEGEND?
     
    Thanks
    Ryan Hammill

     

    TeddybearCrisis <sgreve@web.de> Jun 30 07:41AM -0700 ^
     
    I've got the same question though I have a slightly different use for
    it. I must render only a part of the video fullscreen.
    Any Ideas?
    I didn't make any experiments with the ImageView yet. Do you think it
    is possible to extend it to some kind of video-player?

     

    "Juan José Garibay Cervantes" <jgaribay_85@hotmail.com> Jun 30 02:20AM ^
     
    Hi,
     
    I am writing an application that displays an activity as soon as Android boots WITHOUT user interaction.
     
    When the unlock pattern is disabled, I am able to accomplish this by first listening to BOOT_COMPLETED action, then launching my Activity and finally setting the flag FLAG_DISMISS_KEYGUARD before calling setContentView in the activity.
     
    However I would like to have the unlock pattern enabled but if I do so first I have to unlock my phone and then the Activity is displayed.
     
    My questions, is there any way to unlock the phone from code (maybe in from the activity) so I do not have to unlock it manually?? Any suggestions are very welcome.
     
    Thanks,
    Garibay

    _________________________________________________________________
    Enciende tu hotness con Hotmail
    www.hotmailhotness.com.mx

     

    Brendan <dahl.brendan@gmail.com> Jun 29 06:23PM -0700 ^
     
    Hi, I was just working on an app that will do stuff when a call is
    missed or made; and am left wondering why do you have to register a
    listener using a long lived background service for phone state changes
    instead of being able to use broadcast intents?
     
    Thanks for any insights,
    Brendan

     

    Joe Yuan <joe5160@163.com> Jun 30 09:52AM +0800 ^
     
    Dear all!
    I got a problem that when i run my app the whole system may get blocked!and then i 'top' the tasklist,see 'HeapWorker' thread of my app takes 80%-95% of cpu.What's the problem?
    The feature is When I use the jni (*env)->CallVoidMethod to call the java function of my class,the running thread may always be blocked!Then I print the message before and after the (*env)->CallVoidMethod,and also in my java function,i find when the thread be blocked,both the message in my java function and after the JNI give no print.Of cause,the heapworker thread takes most of the cpu at 80%-95%.Please help me!
    Thanks

     

    Zoon <smerritt@gmail.com> Jun 29 02:25PM -0700 ^
     
    That would work, but I guess you'd have to copy the run-tests-helper
    task from ant_test_rules_r2.xml into your own build file so you could
    run the exec yourself to capture the output? I'd prefer to just rely
    on the Android configured platform's script rather than copy and paste
    what they already have.
     

     

    Julian <lepinski@gmail.com> Jun 30 05:45PM -0700 ^
     
    Well, for starters most of the code samples include "file://" before
    the path in Uri.parse, so you might want to add that.
     
    That said, I'm not having much luck forcing a rescan of a particular
    folder on the SD card...
     

     

    Michael <michaelz92@gmail.com> Jun 30 03:37PM -0700 ^
     
    Hello, I'm trying to add to an ArrayList of custom objects in the
    Characters method but I'm not having any luck with it adding. I've
    attached the code below, if anyone has any advice on how to get it to
    add that would be great. I've tried adding the code directly in the
    method (as opposed to a separate addElement() method) but it doesn't
    make a difference. The actual parsing is working however, and the if
    statement is accessed (as I've tested it with println's). Any help on
    this would be much appreciated!
     
    http://docs.google.com/leaf?id=0B72acfg_I_-SYTJiZDNkOGEtZDllNS00YjBiLTk5NzQtMmVlYzVhMzdlNTU4&hl=en&authkey=CIvuzpMO

     

    Frank Weiss <feweiss@gmail.com> Jun 30 04:40PM -0700 ^
     
    I'm assuming that your input XML is very simple and uses no element
    attributes, namespaces, or recursively nested elements. I recommend
    you use the following pattern, which I've used countless times:
     
    Use a StringBuffer or StringBuilder to collect character data.
    Initialize it in startElement. In the characters method, do only the
    following: sb.append(ch, start, length). Please note that SAX parsers
    are not required to return the full contents of a text node in a
    single call to characters(). For efficiency, the parser may use an
    input buffer which may be smaller than a particular text node. A lot
    of people seem to miss this. Do the major processing in the
    endElement() method.
     
    Do you use a debugger to step through your code?

     

    Michael <michaelz92@gmail.com> Jun 30 05:01PM -0700 ^
     
    Thanks for your reply! Would it help if I added the object to the
    arraylist in the endelement() method?
     
     

     

    Frank Weiss <feweiss@gmail.com> Jun 30 05:19PM -0700 ^
     
    Yes. Assuming your XML is like this:
     
    <entries>
    <entry>
    <business-name>,,,</business-name>
    <longitude>...</longitude>
    <street1>...</street1>
    </entry>
    ...
    </entries>
     
    Check for the closing entry element in the endElement() method and add
    the new item to your list.

     

    Bob Kerns <rwk@acm.org> Jun 30 05:06PM -0700 ^
     
    If you're doing what I think you're doing -- do not use a new class
    for each activity.
     
    Instead, use a single wrapper class, that instantiates and invokes
    your dynamic class. Pass the name of the class to load and run as an
    extra value in your intent -- or possibly include it in the getData()
    field as a part of the URI, if it's implementing a part of a namespace
    in some way.
     

     

    fadden <fadden@android.com> Jun 30 03:32PM -0700 ^
     
    > this question of replacing the system ClassLoader has come up before,
    > and the answer was "you can't, sorry", so I am taking that at face
    > value.
     
     
    If you search the web you can find some uses for the context class
    loader. It's just a handy place to stick a class loader for some
    reasonably arcane purposes. The VM doesn't pay any attention to it.
     
    Classes are associated with the class loader that loaded them (the
    "defining" class loader). You can't put them in a different one.

     

    Marc Reichelt <mcreichelt@googlemail.com> Jun 30 03:19PM -0700 ^
     
    Hi!
     
    Has anyone tried to put Views, e.g. Buttons, into a list item of the
    notification bar?
    In my opinion this would be really helpful for actions that should be
    accessible in a very fast manner, like activating/deactivating WiFi or
    the 3G network. In fact I saw something like this implementet on the
    Samsung Galaxy S device, and now I am trying to achieve the same for
    all devices.
     
    I created a custom Notification using this guide:
    http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView
     
    Placing two buttons in my own layout was easy. But here is the
    problem: The class RemoteViews ( http://developer.android.com/reference/android/widget/RemoteViews.html
    ) has a method called setOnClickPendingIntent(int viewId,
    PendingIntent pendingIntent), but it doesn't seem to work. The
    buttons are not focusable nor clickable, only the whole list item as
    such is clickable. And when it is clicked the PendingIntent of the
    notification is executed, not the PendingIntent of one of my buttons.
     
    Any suggestions?
     
     
    Regards
     
    Marc Reichelt || http://www.marcreichelt.de/

     

    schwiz <schwiz@gmail.com> Jun 30 02:40PM -0700 ^
     
    I am making a basic activity to stream this live show
    http://ice2.securenetsystems.net/WHBRM here is the pastebin of my
    activity http://pastebin.com/N5g69j7i
     
    I realize that it is better to be in a service but this is just a
    test. Anyways it seems to be working fine except for in froyo my
    error listener gets an unknown error about every 10 seconds.
    Infolistener and bufferinglistener are also never called.
     
    my hack of sorts using the errorlistener to catch the error and
    restart the stream is working but since the error happens every 10
    seconds or so it is making the audio very choppy.
     
    I also get a system log that says MediaPlayer error (1, -2147483648)
    before each crash
    also AwesomePlayer Not sending buffering status because duration is
    unknown.
     
    I assume the second error is because its a live stream and it has no
    end, however how do you handle that case.
     
    Thanks in advance!

     

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

Comments: (0)

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

    asim khatri <asimkhatri68@gmail.com> Jun 30 02:38PM -0700 ^
     
    does anyone know how to use the zoom in / zoom out functionality on
    android phones camera..
    i have tried camera.setSmoothZoom(i) but i haven't got any success, i
    have also tried camera.getParameters().setZoom(i), but still no
    success.. plzz help needed.
    thanks in advance

     

    String <sterling.udell@googlemail.com> Jun 30 02:39PM -0700 ^
     
    Just tried it between my G1 & N1, and it does just send a Market link.
    Cancel yellow alert.
     
    String
     

     

    Jake Mintz <jmintz@gmail.com> Jun 30 10:50AM -0700 ^
     
    Hi all, I am one of the founders of Bump Technologies, the company
    behind the Bump app on Android.
     
    Bump does not allow users to share paid apps for free. All we do is
    share a link to the App Market so your friend can find the app (and
    hopefully purchase it) easier. Our goal was to make it easier to tell
    your friends about your favorite apps, this way they don't have to
    search the App Market.
     
    Try it! :-)
     
    Jake
     

     

    Jake Mintz <jmintz@gmail.com> Jun 30 10:40AM -0700 ^
     
    Hi all, I am one of the founders of Bump Technologies that makes the
    Bump app for Android.
     
    Bump does not allow users to share paid apps for free. All we do is
    share a link to the App Market so your friend can find the app (and
    hopefully purchase it) easier. Our goal was to make it easier for
    your friends to get your favorite apps by removing the need for them
    to search the App Market.
     
    Give it a try... :-)
     
    Jake
     

     

    fry15 <jason@jasonfry.co.uk> Jun 30 08:20AM -0700 ^
     
    It doesn't actually send the app itself, it just sends a link to a
    search on the marketplace. No need to panic! :p
     

     

    Diego Moreira Rosa <diegomrosa@gmail.com> Jun 30 04:24PM -0300 ^
     
    Hi guys,
     
    I am using the default photo picker (usually Gallery or CoolIris
    Gallery3D) to pick an image from my application. The problem is that,
    when using Gallery3D, the user always needs to choose the album (aka
    "bucket") and then the image, while it would be more intuitive to open
    directly the album the user was navigating on previously.
     
    For instance, let's say the user is working on an image stored into
    the sdcard. When she decides to choose another image, it is probable
    that she wants another image from the sdcard. So my question is: is
    there a way to tell CoolIris Gallery3D to open on a specific bucket? I
    have taken a look at the source code and couldn't find any.
     
    Testing on the emulator with Android 2.2 Google APIs. Here is the
    skeleton of my test application:
     
    public class GalleryTest extends Activity implements OnClickListener {
    private static final int PICK_REQUEST_CODE = 0;
     
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.setContentView(R.layout.main);
    this.findViewById(R.id.pickbutton).setOnClickListener(this);
    }
     
    public void onClick(View v) {
    this.startActivityForResult(createIntent(), PICK_REQUEST_CODE);
    }
     
    @Override
    public void onActivityResult(int requestCode, int resultCode,
    Intent intent) {
    if ((resultCode == Activity.RESULT_OK)
    && (requestCode == PICK_REQUEST_CODE)) {
    Uri imageUri = intent.getData();
     
    if (imageUri != null) {
    ((TextView) this.findViewById(R.id.photoname)).setText(
    imageUri.toString());
    }
    }
    }
     
    private static Intent createIntent() {
    Intent intent = new Intent(Intent.ACTION_PICK);
     
    intent.setType("image/*");
    return intent;
    }
    }
     
    Thanks in advance,
    Diego M. Rosa

     

    claesh <claes.huittinen@gmail.com> Jun 29 05:03PM -0700 ^
     
    Just add xml namespace to the resource tag. This will make the
    nullpointerexception to go away.
     
    <resources xmlns:android="http://schemas.android.com/apk/res/android">
    ....
    </resources>
     
     
     

     

    Gorman Ho <gorman.ho@gmail.com> Jun 29 09:46PM -0700 ^
     
    I am also experiencing this issue. When I edit strings.xml directly, I
    get 1 NullPointerException for each string in the file each time I
    type a letter. I eventually did something to make it go away, but I'm
    not sure what. However, I'm able to reproduce the behavior by creating
    a new Android project.
     
    I'm running Leopard, Eclipse Helios, Android SDK r06, Android Platform
    2.2, ADT 0.9.7.
     
    I pasted the requested log file below. I had 2 strings in strings.xml,
    so there were 2 NullPointerExeptions generated when I typed a letter
    in strings.xml.
     
    Hope that helps
    Gorman
     
    !ENTRY org.eclipse.jface 4 2 2010-06-29 22:43:12.696
    !MESSAGE Problems occurred when invoking code from plug-in:
    "org.eclipse.jface".
    !STACK 0
    java.lang.NullPointerException
    at
    org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(ElementImpl.java:
    259)
    at
    org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(ElementImpl.java:
    329)
    at
    com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShortDescription(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvider.getText(Unknown
    Source)
    at
    org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerLabelProvider.java:
    108)
    at
    org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:
    164)
    at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:
    152)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
    934)
    at org.eclipse.jface.viewers.AbstractTreeViewer
    $UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
    1014)
    at org.eclipse.jface.viewers.StructuredViewer
    $UpdateItemSafeRunnable.run(StructuredViewer.java:481)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at
    org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:
    2141)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:
    2689)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:
    1867)
    at
    org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:
    721)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
    1842)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
    1799)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
    1785)
    at org.eclipse.jface.viewers.StructuredViewer
    $7.run(StructuredViewer.java:1487)
    at
    org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
    1422)
    at
    org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:
    403)
    at
    org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
    1383)
    at
    org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
    1485)
    at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:
    537)
    at
    org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
    1444)
    at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock
    $2.uiElementNodeUpdated(Unknown Source)
    at
    com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.invokeUiUpdateListeners(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.loadFromXmlNode(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.editors.resources.ResourcesEditor.xmlModelChanged(Unknown
    Source)
    at com.android.ide.eclipse.adt.internal.editors.AndroidEditor
    $XmlModelStateListener.modelChanged(Unknown Source)
    at
    org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.fireModelChanged(AbstractStructuredModel.java:
    553)
    at
    org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.internalModelChanged(AbstractStructuredModel.java:
    887)
    at
    org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.changedModel(AbstractStructuredModel.java:
    382)
    at
    org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:
    167)
    at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel
    $DocumentToModelNotifier.regionsReplaced(AbstractStructuredModel.java:
    176)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:
    571)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:
    1190)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:
    1968)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:
    2419)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:
    2404)
    at
    org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access
    $2(JobSafeStructuredDocument.java:1)
    at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument
    $3.run(JobSafeStructuredDocument.java:141)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at
    org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:
    149)
    at
    org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:
    144)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:
    2364)
    at
    org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access
    $0(JobSafeStructuredDocument.java:1)
    at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument
    $1.run(JobSafeStructuredDocument.java:103)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at
    org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:
    149)
    at
    org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:
    106)
    at
    org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:
    111)
    at
    org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:
    1184)
    at
    org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:
    1210)
    at
    org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:
    629)
    at
    org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:
    248)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:
    7168)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:
    7975)
    at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:
    2267)
    at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:
    6976)
    at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5932)
    at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:
    5958)
    at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:
    5652)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1404)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1400)
    at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:416)
    at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:
    939)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5068)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at
    org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:
    56)
    at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:587)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4978)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
    at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1943)
    at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2008)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5040)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:
    4582)
    at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4659)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at
    org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:
    115)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3274)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
    2629)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
    at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
    332)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
    663)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
    149)
    at
    org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
    115)
    at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
    196)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
    110)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
    79)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
    369)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
    179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
     
    !ENTRY org.eclipse.jface 4 2 2010-06-29 22:43:12.741
    !MESSAGE Problems occurred when invoking code from plug-in:
    "org.eclipse.jface".
    !STACK 0
    java.lang.NullPointerException
    at
    org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(ElementImpl.java:
    259)
    at
    org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(ElementImpl.java:
    329)
    at
    com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShortDescription(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvider.getText(Unknown
    Source)
    at
    org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerLabelProvider.java:
    108)
    at
    org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:
    164)
    at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:
    152)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
    934)
    at org.eclipse.jface.viewers.AbstractTreeViewer
    $UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:
    1014)
    at org.eclipse.jface.viewers.StructuredViewer
    $UpdateItemSafeRunnable.run(StructuredViewer.java:481)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at
    org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:
    2141)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:
    2689)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:
    1867)
    at
    org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:
    721)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
    1842)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
    1799)
    at
    org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:
    1785)
    at org.eclipse.jface.viewers.StructuredViewer
    $7.run(StructuredViewer.java:1487)
    at
    org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
    1422)
    at
    org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:
    403)
    at
    org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:
    1383)
    at
    org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
    1485)
    at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:
    537)
    at
    org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:
    1444)
    at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock
    $2.uiElementNodeUpdated(Unknown Source)
    at
    com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.invokeUiUpdateListeners(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.loadFromXmlNode(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.editors.resources.ResourcesEditor.xmlModelChanged(Unknown
    Source)
    at com.android.ide.eclipse.adt.internal.editors.AndroidEditor
    $XmlModelStateListener.modelChanged(Unknown Source)
    at
    org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.fireModelChanged(AbstractStructuredModel.java:
    553)
    at
    org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.internalModelChanged(AbstractStructuredModel.java:
    887)
    at
    org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.changedModel(AbstractStructuredModel.java:
    382)
    at
    org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:
    167)
    at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel
    $DocumentToModelNotifier.regionsReplaced(AbstractStructuredModel.java:
    176)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:
    571)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:
    1190)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:
    1968)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:
    2419)
    at
    org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:
    2404)
    at
    org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access
    $2(JobSafeStructuredDocument.java:1)
    at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument
    $3.run(JobSafeStructuredDocument.java:141)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at
    org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:
    149)
    at

     

 Topic: Audio
    Shard <grobo2010@gmail.com> Jun 30 03:07AM -0700 ^
     
    Hi,
     
    Has anyone gotten audio routing to work succesfully on eclair?
    SetRouting and a number of functions don't work anymore.

     

    Albion <albion01@gmail.com> Jun 30 07:01AM -0700 ^
     
    I've been following the tutorial at this page...
    http://www.vogella.de/articles/Android/article.html
     
    I had originally sent an e-mail to the author of the tutorial who
    promptly told me that I shouldn't e-mail him about his tutorial, but
    should ask this group instead. Below is a copy of the e-mail I sent
    him, I am hoping someone here can help.
     
    --
     
    I am running Windows 7 Business x64 with the latest Microsoft
    updates. Eclipse Helios Build: 20100617-1415 (IDE for Java
    Developers), Android SDK r06, Android Developer Tools
    0.9.7.v201005071157-36220, Java JDK 6 update 20. All on a Quad core
    E5345 with 8gig of RAM and lots and lots of hard drive space (space
    isn't an issue).
     
    1) In Section 2.3 under "Select available packages and select the
    latest version of the SDK." your tutorial tells me to select all of
    the Android 2.2 packages. What if I only want to code in Android
    1.6? Will I also need to get the 1.6 packages? The same for 2.1?
     
    2) In section 4.3 you tell me to open strings.xml under res/values.
    When I select the resource tab for strings.xml there is nothing listed
    under Resource Elements, where you say I should see "hello (String)"
    and "app_name (String)". When I try to add an element or do anything
    else with the elements listed I get an error: "An error has
    occurred. See error log for more details.
    java.lang.NullPointerException." Even when I select the strings.xml
    tab next to the resource tab and try to manually change the text, for
    each character I type I get the same error. Google has turned up
    nothing for that error on Eclipse with Android. I've tried completely
    removing and reinstalling Eclipse and Android SDK, making sure I
    followed your tutorial for both Eclipse install and Android install
    much much closer. When I got back to the point of section 4.3 I got
    the same errors.
     
    All in all I tried reinstalling both Eclipse and Android SDK 3 times,
    following your tutorial closer each time, with the same result. Any
    ideas what I may be doing wrong?
     
    I really appreciate the tutorial and your help. Thanks
     
    --
     
    -Craig

     

    Chappers <danchappers@gmail.com> Jun 30 08:25AM -0700 ^
     
    Hello all,
    Firstly my appoogies in advance, I know this is a very newbie
    question, but I have looked and looked, and cant seem to get to the
    bottom of this.
     
    I am getting the error:
    "java.lang.NullPointerException"
     
    whenever I try to change anything at all within "strings.xml" when
    using eclipse, does anyone know of a reason behind this? I havnt
    changed anything else in the project at all, I'm just going straight
    into strings to try editting a few things.
     
     
    Many thanks
    Dan

     

    "RespeckKnuckles (John Licato)" <respeckknuckles1@gmail.com> Jun 30 12:36PM -0700 ^
     
    Hey guys,
     
    I have some xml files with a custom format (based on the scxml
    specifications) that I want my program to read. I've already written
    the code to read it, but I'm running into problems actually reading
    the file itself. I want the file to be compiled with the apk, as it
    will not be changed at all during run time. So I put the file
    (test.xml) in the res/xml/ folder, and got the inputstream by using:
     
    getResources().openRawResource(R.xml.test);
     
    but when I read in this inputstream it is complete jibberish, which
    makes me suspect it is being read in binary, as openRawResource() is
    often used for binary files like images, if I am correct. What is the
    correct way to do this?

     

    Markus Keil <mkeil84@googlemail.com> Jun 30 11:29AM -0700 ^
     
    Hi!
     
    I try to secure an TCP-Connection bewteen an Android-App and an Java-
    Application.
    I try to use SSL and CipherInputStream/CipherOutputStream but i can't
    get it working.
     
    on the JAVA-Application it's fine with an JKS-Keystore created with
    keytool.
     
    Code of creating an listening SSL-Socket in the JAVA-Application:
    [code]
    //Setup Keys
    KeyStore ks = KeyStore.getInstance("JKS");
    ks.load(new FileInputStream("esvdrpkeys"), "esvdrp".toCharArray());
    KeyManagerFactory kmf = KeyManagerFactory.getInstance("X509");
    kmf.init(ks, "esvdrp".toCharArray());
    SSLContext sslcontext = SSLContext.getInstance("SSLv3");
    sslcontext.init(kmf.getKeyManagers(), null, null);
     
    SSLServerSocketFactory factory =
    sslcontext.getServerSocketFactory();
    enc_sock = (SSLServerSocket)
    factory.createServerSocket(esvdrp_port);
    [/code]
     
    Now i want to connect with the Android-app to this ssl-serversocket.
    i've got following problems:
    - JKS is not supported by Android
    - BKS is not supported by the JAVA-Application
    - i don't know how to create an BKS keystore
     
    with the CipherStreams i've got the problem, that i don't know how to
    implement a non-block cipher.
     
    Is there some example Code for an encrypted TCP-Connection between an
    android-app and an JAVA-Application?
     
    Greets Markus

     

    Mark H <mhoribe81@gmail.com> Jun 30 01:33PM -0700 ^
     
    Say I'm using a canvas, or other surface that I can directly draw to.
    Instead of buttons, I have pictures and text areas that are
    'clickable'. Now, to find out how to handle the MotionEvent, I just
    use a case select procedure and find out which area was clicked.
     
    For example, if the x position was great than 150 but less then 200,
    and the y position was greater then 400 but less than 420, I know that
    the rectangle on the lower part of the screen was clicked, and I can
    handle the event accordingly.
     
    This is all well and good for 320x480 phones, but what about smaller
    or bigger resolutions? I realize I can stretch drawable images to fit
    the screen, but how do I handle custom, interactive areas? Is there a
    class or coding pattern I can use?
     
    Right now, I'm thinking of making all the drawable aspects of this
    program as a percentage of the screen (based on 320x480), getting the
    screen resolution, and then dynamically calculating the sizes of the
    images AND clickable boundaries at runtime. But, if there's a more
    common or 'accepted' solution, I'd like to start by doing it the right
    way.

     

    biginner <androiddeveloper21@gmail.com> Jun 30 11:56AM -0700 ^
     
    I am new android developer. I am writing an application to receive
    data from barcode scanner.
    I am able to receive data from barcode scanner via bluetooth
    connection.
    If user open notepad or other application, I want to display the data
    to the application, so I want to generate key events on foreground
    application.
     
    I am trying to find a way but I can't find. Anyone please tell me how
    to do?
     
    Thanks!

     

    selmixxx <miso.seliga@gmail.com> Jun 30 05:37PM -0700 ^
     
    hi
     
    in short: what could cause situation where LinearLayout.getWidth()
    returns correct values and LinearLayout.getHeight() returns always 0?
     
    in details:
     
    In screen layout i want one custom widget to stretch over screen to
    use all possible free space
     
    <com.test.ScrolledPicture
    android:id="@+id/ImageWave"
    android:layout_width="fill_parent"
    android:layout_height="0px"
    android:layout_weight="1"
    />
     
    for testing this ScrolledPicture layout looks like this (it will
    change in the future, but for now lets keep it simple)
     
    <merge xmlns:android="http://schemas.android.com/apk/res/android">
    <ImageView android:id="@+id/SPImage"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent" android:padding="0px">
    </ImageView>
    </merge>
     
    ScrolledPicture extends LinearLayout
     
    now inside my widgets class i try to find its dimensions (i need them
    to create bitmap data into this embedded ImageView)
    directly reported height and width are 0. this is expected
     
    then i get call to overrided onSizeChanged - but new value appears
    only for width. Width is changed to 320 (which is correct), but Height
    remains 0. And it never changes to anything else
     
    What should I do to get correct layout height? does it mean that
    layout_weight ignored for some reason?
     
    i found that if i fill ImageView with dummy bitmap in creator (width=1
    height=screen height) then onSizeChanged will work - it will first
    return size 320xscreen_height, then it will be called again with
    320xreal_size. so i am using this as workaround temporarily. but what
    would be real good solution?

     

    BenV <ben@kongregate.com> Jun 30 01:57PM -0700 ^
     
    I'm running into this same issue. It seems like this functionality
    isn't very useful if things are being removed upon upgrading. Does
    anyone have any insight into this problem?
     
    Thanks,
    Ben
     

     

    Priyank <priyankvmaiya@gmail.com> Jun 30 11:30AM -0700 ^
     
    Hi,
    I am trying to launch an existing project which has 2 parts. Services
    module and Application module.
    The VMService.aidl file is in a package in the service module. When
    the service module is compiled, the generated VMService.java file
    appears in the /gen folder.
     
    I have exported this in the source code of the application as
    import com.VMService;
     
    But I am still getting run time errors during the launch of the
    application.
    The LogCat logs show this:
    Could not find class com.VMService
    06-30 17:33:11.248: ERROR/dalvikvm(460): Could not find class
    'com.VVMService', referenced from method
    com.vmapp.VMApplication.onActivityResult
     
    06-30 17:33:11.457: ERROR/AndroidRuntime(460):
    java.lang.NoClassDefFoundError: com.VMService
     
    Please let me know where I am going wrong.
    Thanks,
    Priyank

     

    Paulo <paulonogueira@gmail.com> Jun 30 08:12AM -0700 ^
     
    Hey everyone! I am pretty new to android development, and kindly
    request some help from you, please.
     
    I'm trying to find information regarding the webview capabilities, in
    different API versions, including:
    CSS, Javascript and HTML 5.
    I am really more interested in HTML 5, and confused, since some sites
    say it is supported in API versions 1.5 and 1.6, and others say only
    after 2.0.
     
    Can anyone give me this information? Or at least point out to me a
    good place to find all of it? I'm probably googling it wrong, but I
    could not find any source clear and easy enough for a beginner.
     
    Thanks for your Help!

     

    Priyank <priyankvmaiya@gmail.com> Jun 30 11:16AM -0700 ^
     
    Hi,
    I am kind of facing a similar problem with my project.
    I have an existing project which has 2 parts. Services module and
    Application module.
    The VMService.aidl file is in a package in the services. When the
    service module is compiled, the generated VMService.java file appears
    in the /gen folder.
     
    I have exported this in the source code of the application as
    import com.VMService;
     
    But I am still getting run time errors during the launch of the
    application.
    The LogCat logs show this:
    Could not find class com.VMService
    06-30 17:33:11.248: ERROR/dalvikvm(460): Could not find class
    'com.VVMService', referenced from method
    com.samsung.vvmapp.VMApplication.onActivityResult
     
    06-30 17:33:11.457: ERROR/AndroidRuntime(460):
    java.lang.NoClassDefFoundError: com.VMService
     
    Please let me know what wrong I am doing.
    Thanks,
    Priyank
     
    On Jun 24, 10:25 am, Krishna Shetty <krishna.shett...@gmail.com>
    wrote:

     

    ArcDroid <jacobrjohnson@gmail.com> Jun 30 04:21PM -0700 ^
     
    Hello,
    I have been working through samples and I have been able to make one
    icon move when drag it over the screen, but how do I make two icons
    move around independently. Ex. drag one icon left ontouch, then drag
    another icon down on touch.
    Thanks in advance!
    Jake

     

    SilentCoders <zeeshan.nabeel.mirza@gmail.com> Jun 30 12:44PM -0700 ^
     
    Hello,
     
    I am a newbie android developer. I am developing an application in
    which i am using google maps. I want to know how can i implement
    double tap on google maps. I want to zoom in when i double click on
    google map. I need a sample code which i can use in my application.
     
    BR,
    SilentCoder

     

    Duleep Sahadevan <duleep.sahadevan@gmail.com> Jun 30 02:08PM +0530 ^
     
    Hi Gabriel
     
    This can be done.
     
    Ive earlier implemented an app which talks to a customer crm oracle db.
    You simply need to build a web service for the android app to talk to
     
    Cheers
    http://twitter.com/duleepsahadevan
     
     
     
    --
    www.twitter.com/duleepsahadevan
    http://my-driving-tours.blogspot.com

     

    Andrew <andrew.maltsev@gmail.com> Jun 29 05:51PM -0700 ^
     
    I am drawing on a SurfaceView canvas.
     
    To make it look roughly the same on various screen densities I use
    canvas.scale(...) with DisplayMetrics.density as parameters.
     
    This works great overall. My drawn primitives and text look exactly
    right across all screen sizes.
     
    But if I try to draw a bitmap on this scaled canvas it always looks
    bad, as it gets scaled too. What I want to do is to create a pre-
    scaled bitmap (which I can very easily do) and then I want to draw it
    on this scaled canvas as is, without another scaling.
     
    The only way I am able to achieve this is by canvas.save(), setting up
    a new identity matrix, drawing, then canvas.restore().
     
    Is it really the only way to do it? It looks to me like I'm missing
    something and there is got to be a better way.
     
    Thanks!
     
     
    Andrew.

     

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