[android-developers] Digest for android-developers@googlegroups.com - 10 Messages in 7 Topics

Comments: (0)

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

    MerlinBG <MerlinBG@gbg.bg> Jan 31 10:15PM -0800 ^
     
    I am really surprised to see this thread!
    I have googled how to nest XML-based layouts, assuming it is possible,
    however found this.
     
    This is a basic functionality, guys. There are some threads around about why
    to use XML based layouts, MVC, etc... and I agree that extracting the view
    in XML is a good idea (I didn't liked it as a start), however we have to be
    able to reuse those layouts...
     
    Please consider extending the framework, this is important piece of
    functionality missing. And I cannot imagine being that hard - some cyclic
    dependencies checks, pure text insertions otherwise will do.

     

    "A N K ! T" <ankit.awasthi.1@gmail.com> Feb 01 11:12AM +0530 ^
     
    i got it through AccountManager and Account Classes...
    thanks
     
     
    --
     
    A N K ! T......

     

    AndroidDevTime <androiddevdays@gmail.com> Jan 31 08:33PM -0800 ^
     
    Are there any compatibility issues or disadvantages with subclassing
    the Android application?

     

    TreKing <trekingapp@gmail.com> Jan 31 10:50PM -0600 ^
     
    On Mon, Jan 31, 2011 at 10:33 PM, AndroidDevTime
     
    > Are there any compatibility issues or disadvantages with subclassing the
    > Android application?
     
    What compatibility issues would there be?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Jan 31 10:41PM -0600 ^
     

    > I wonder if Notifications are the only thing that can be added to the
    > STATUS bar.
     
    What else would one put there?
     
     
    > And if anything else can be added below the Status Bar besides the
    > Notification dropdowns ?
     
    Like what?
     
     
    > In particular is there any way to have the item always appear at the top of
    > this list?
     
    Try playing with the timestamp.
     
     
    > Does this documentation make it clear how to maintain the Notification for
    > the duration that the app is running.
     
    Yes, it does.
     
     
    > What if your app server goes down and resumes, what does its notifications
    > look like then?
     
    It looks like whatever you code it to look like. An "app server" should have
    nothing to do with this.
     
    On Mon, Jan 31, 2011 at 10:17 PM, AndroidDevTime <androiddevdays@gmail.com>
    wrote:
     
    > while we are on the topic is there any better way to get a clickable Icon
    > on the status bar then using notifications?
     
    What would you prefer?
     
     
    > Are there any layout options that could allow custom rendering of below the
    > status bar or change of priority of notifications appearing below the status
    > ba?
     
    You can set a RemoveView for the custom rendering. You cannot change the
    "priority", whatever that means, AFAIK.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    AndroidDevTime <androiddevdays@gmail.com> Jan 31 08:25PM -0800 ^
     
    ok. Is it best to retrieve as needed during service execution and
    remove reference or obtain on service create and maintain as
    reference? if so should it be static reference member variable?
     

     

    Dianne Hackborn <hackbod@android.com> Jan 31 08:39PM -0800 ^
     
    You can just get them in onCreate(). Don't use a static.
     
     
    --
    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.

     

    Streets Of Boston <flyingdutchie@gmail.com> Jan 31 01:25PM -0800 ^
     
    There was word from google (although a bit burried :-)):
    http://twitter.com/#!/androiddev
     
     

     

    WiViu Technologies <wiviutech@gmail.com> Jan 31 01:13PM -0800 ^
     
    We are trying to develop an Android App which uses raw HTTP APIs for
    login to a website. We are then using WebView & other HTTP APIs to
    upload and download files from the website. The problem is that
    WebView, and the subsequent calls using HTTP APIs, fail because the
    website does not see the cookies. WebView simply lands to login page.
     
    Have you experienced a similar issue before? Else would you know how
    to get around this issue? If so please contact us, or reply to this
    post, on how we could solve this.
     
    Thank you,
    Debarag Banerjee
    WiViu Technology Inc.
    debarag@wiviu.com

     

    Mark Murphy <mmurphy@commonsware.com> Jan 31 04:21PM -0500 ^
     
    > upload and download files from the website. The problem is that
    > WebView, and the subsequent calls using HTTP APIs, fail because the
    > website does not see the cookies. WebView simply lands to login page.
     
    WebView maintains an entirely separate cookie store than does any
    HttpClient instance.
     
    > Have you experienced a similar issue before?  Else would you know how
    > to get around this issue?  If so please contact us, or reply to this
    > post, on how we could solve this.
     
    Either:
     
    a. Be consistent on the technology you use, or
     
    b. Manually schlep cookies between WebView and each HttpClient instance
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

     

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

Comments: (0)

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

    AndroidDevTime <androiddevdays@gmail.com> Jan 31 07:46PM -0800 ^
     
    Well the documentation does show a way to add notifications to the
    status bar using NotificationMgr. I wonder if Notifications are the
    only thing that can be added to the STATUS bar. And if anything else
    can be added below the Status Bar besides the Notification
    dropdowns ? In particular is there any way to have the item always
    appear at the top of this list? Does this documentation make it clear
    how to maintain the Notification for the duration that the app is
    running. What if your app server goes down and resumes, what does its
    notifications look like then?
     

     

    AndroidDevTime <androiddevdays@gmail.com> Jan 31 08:17PM -0800 ^
     
    while we are on the topic is there any better way to get a clickable
    Icon on the status bar then using notifications? Are there any layout
    options that could allow custom rendering of below the status bar or
    change of priority of notifications appearing below the status ba?
     

     

    AndroidDevTime <androiddevdays@gmail.com> Jan 31 08:14PM -0800 ^
     
    Is it a bad practice to maintain a service level reference to a
    BroadcastReceiver? I do see there is a service level method
    service.registerReceiver .... Under what situations is it appropriate
    to register the BroadcastReceiver with a service? To hold a static
    reference to a broadcast receiver in a service? Thanks.

     

    AndroidDevTime <androiddevdays@gmail.com> Jan 31 08:06PM -0800 ^
     
    Is it a good practice for a Service to maintain static reference to
    System Manager? like Activity Manager, Power Manager? etc?

     

    Dianne Hackborn <hackbod@android.com> Jan 31 08:14PM -0800 ^
     
    Generally it should be a member variable because these are retrieved and
    associated with the Service's context.
     
     
    --
    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.

     

    "Rémi Chaignon" <remi.chaignon@gmail.com> Jan 31 07:41PM -0800 ^
     
    Hi,
     
    I am trying to do a very simple application with OpenGL ES 2.0.
     
    I've implemented my own ConfigChooser and display a simple texture, it works
    fine when I pick a R_5_G_6_B_5_A_0 config.
    But when I pick a R_8_G_8_B_8_A_8 config, it freezes and LogCat gives me
    this message over and over again :
     
    WARN/SharedBufferStack(163): waitForCondition(LockCondition) timed out
    (identity=5, status=0). CPU may be pegged. trying again.
     
    I have check and my phone (NexusOne) definitely supports such a config.
    I stripped everything from the code so I just set up egl (which doesn't give
    any errors) and do this :
     
    glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
    glViewport(0, 0, width, height);
     
    But it still crashes, I saw a couple of thread talking about this error, and
    I tried adding an eglWaitGL() at the end of my draw call, it helps a bit but
    it still crashes after a while or on exit.
     
    Anyone knows how I can get out of this one? Is this really config related?
    Thank you.

     

    yogi <yogi.rulzz@gmail.com> Jan 31 07:31PM -0800 ^
     
    Hi all,
     
    Since webkit is a huge libary so i suggest to open a separate thread
    for discussion on webkit,browser stuff specific to android platform.
    And i also request to join all the member to that group who are
    working or facing problem in these area.So kindly create a separate
    group and linked that one with this big group.And if it already exist
    please let us know.
     
    Regards
    Yogi

     

    Jim Benton <jim@autonomousmachine.com> Jan 31 06:58PM -0800 ^
     
    Hi everyone,
     
    I'm working on writing a small app that will stream mp3 files. I'm using the
    NPR code, but having a strange problem with mediaPlayer.prepareAsync().
     
    I'm using a trimmed down version of the PlaybackService<https://code.google.com/p/npr-android-app/source/browse/trunk/Npr/src/org/npr/android/news/PlaybackService.java>from the NPR
    app <https://code.google.com/p/npr-android-app/>, which is getting started
    correctly. I am getting a reference to the service inside an OnClick handler
    inside an Activity, and calling listen() with the URL to the MP3 stream. The
    following code is from my PlaybackService:
     
    public void listen(String url) throws IllegalArgumentException,
    IllegalStateException, IOException {
    if (mediaPlayer == null) {
    mediaPlayer = new MediaPlayer();
    }
    mediaPlayer.setOnBufferingUpdateListener(this);
    mediaPlayer.setOnCompletionListener(this);
    mediaPlayer.setOnErrorListener(this);
    mediaPlayer.setOnInfoListener(this);
    mediaPlayer.setOnPreparedListener(this);
    synchronized (this) {
    mediaPlayer.setDataSource(url);
    mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
    mediaPlayer.prepareAsync();
    }
    }
     
    // ... lots of other code
     
    @Override
    public void onPrepared(MediaPlayer mp) {
    Log.d(LOG_TAG, "Prepared");
    play();
    }
     
     
    I have the other callbacks defined as well. I can see from LogCat that the
    MediaPlayer is loading the stream and buffering, as I see the following
    messages:
     
    AwesomePlayer I calling prefetcher->prepare()
     
    AwesomePlayer I prefetcher is done preparing
     
    But my onPrepared method never gets called. If I add a timer and try to call
    play() on the MediaPlayer at some point after I see the above log messages,
    the media players plays, so it is indeed entering into the Prepared state.
     
    If I replace the call to prepareAsync() with prepare(), the player just
    works. This is all on 2.2, which I have been reading seems to have some
    issues, but the problem I'm having don't seem related, as the stream works
    fine when prepare() is used.
     
    I did notice that the Content-Length on the the stream is quite large
    (450MB), but since I can call play on the Media Player without getting an
    exception, it appears to be handlings this OK.
     
    The only other change is that in the NPR app, the service is being bound to
    and the playback started from inside a View object (while in my app, this
    happens inside an Activity).
     
    Any thoughts on what I could be doing wrong?
     
    Thanks!
     
    Jim

     

    Peter Sinnott <psinnott@gmail.com> Jan 31 06:41PM -0800 ^
     
    I am trying to create a multi select dialog preference but I have run
    into a problem related to the bug referenced
    in http://osdir.com/ml/AndroidBeginners/2009-02/msg00537.html . Does
    anyone know an easy non invasive way to change the text to black? The
    post says the bug was fixed in 1.5 so this may be a slightly different
    bug that wasn't fixed till 2.0.

     

    Sohan badaya <sohan.badaya@gmail.com> Jan 31 06:27PM -0800 ^
     
    Hi All,
     
    In android xml files we define xmlns:android="http://
    schemas.android.com/apk/res/android" in root tag, so then we use
    android:attributes. I want to know what is the location where these
    attributes are defined. and if we want can we define our custom
    attributes.
     
    thanks,
    sohan

     

    himanshu jain <himanshu.cse@gmail.com> Jan 31 01:37PM -0800 ^
     
    @Dmitri
     
    Thanks a lot for spending time to answer my questions at least some
    doubts are faded off.
     
    1) I understand to use own activity for editing and creating new
    contacts.
     
    2) Ok, if i avoid ContentObserver even i had that in mind might
    require something to be running in background which is bad agreed.
     
    3) But, there are two use cases first if there is a button that say
    sync now and i send request using requestSync() method will it start
    immediate sync via SyncManager or again it will depend upon
    SyncManager discretion?? if thats true i cannot start immediate
    Sync ??.
     
    Second use case how would i know if there is a change corresponding
    to my account in raw_contact utilizing best practice push
    notification ?? so that i can trigger syncing.
     
    thanks Dimitri for your time and ideas
     
     

     

    Dmitri Plotnikov <dplotnikov@google.com> Jan 31 01:49PM -0800 ^
     
    Sending requestSync to contentresolver is the right way to go if you want an
    explicit button to request sync. This is what applications like Calendar and
    Gmail do when you push the "Sync" button. ContentProvider will also request
    sync whenever there is a change in the data.
     
    You should query raw contacts that have the DIRTY flag set. These are the
    added, deleted or changed contacts. Your sync adapter should reset this
    flag after syncing up changes. It also needs to physically remove deleted
    contacts from the database. In both cases it needs to supply the
    CALLER_IS_SYNCADAPTER query parameter - otherwise the protocol won't work.
     
    Cheers,
    - Dmitri
     

     

    himanshu jain <himanshu.cse@gmail.com> Jan 31 02:44PM -0800 ^
     
    @Dmitri
     
    thanks once again
     
    But why my SyncService not gets started by SyncManager on Device i
    dont know , and i explicitly call requestSync flow is not going inside
    onPerformSync.?
     
     
    thanks
     

     

    Dmitri Plotnikov <dplotnikov@google.com> Jan 31 04:11PM -0800 ^
     
    Do you see your account in Settings/Accounts? Does it have contact syncing
    enabled?
     

     

    himanshu jain <himanshu.cse@gmail.com> Jan 31 04:26PM -0800 ^
     
    @Dmitri
     
    Yes i created my account when i go to Account & sync section through
    settings and after adding my account , sync gets enabled in DDMS i can
    see SyncManager gets called twice once on setIsSyncable and on
    setSyncAutomatically but My Service associated with SyncAdapter does
    not gets started and also i dont reach to onPerformSync immediately
    when i explicitly call requestSync.
     
    thanks
     

     

    Dmitri Plotnikov <dplotnikov@google.com> Jan 31 04:53PM -0800 ^
     
    I would double-check every line of AndroidManifest.xml, compare it with the
    one in SampleSyncAdapter to see if anything's missing.
     

     

    himanshu jain <himanshu.cse@gmail.com> Jan 31 05:19PM -0800 ^
     
    this is my manifest file
     
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.c99.SyncProviderDemo"
    android:versionCode="1"
    android:versionName="1.0">
     
    <uses-permission
    android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission
    android:name="android.permission.USE_CREDENTIALS" />
    <uses-permission
    android:name="android.permission.MANAGE_ACCOUNTS" />
    <uses-permission
    android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
    <uses-permission
    android:name="android.permission.INTERNET" />
    <uses-permission
    android:name="android.permission.WRITE_SETTINGS" />
    <uses-permission
    android:name="android.permission.WRITE_SECURE_SETTINGS" />
    <uses-permission
    android:name="android.permission.READ_CONTACTS" />
    <uses-permission
    android:name="android.permission.WRITE_CONTACTS" />
    <uses-permission
    android:name="android.permission.READ_SYNC_STATS" />
    <uses-permission
    android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission
    android:name="android.permission.WRITE_SYNC_SETTINGS" />
     
    <application android:icon="@drawable/icon" android:label="@string/
    app_name">
    <activity android:name=".LoginActivity"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.VIEW" />
    </intent-filter>
    </activity>
    <activity android:name=".ProfileActivity"
    android:label="Profile">
    <intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="vnd.android.cursor.item/
    vnd.org.c99.SyncProviderDemo.profile" />
    </intent-filter>
    </activity>
    <service android:name=".AccountAuthenticatorService"
    android:exported="true">
    <intent-filter>
    <action android:name="android.accounts.AccountAuthenticator" />
    </intent-filter>
    <meta-data android:name="android.accounts.AccountAuthenticator"
    android:resource="@xml/authenticator" />
    </service>
    <service android:name=".ContactsSyncAdapterService"
    android:exported="true" >
    <intent-filter>
    <action android:name="android.content.SyncAdapter" />
    </intent-filter>
    <meta-data android:name="android.content.SyncAdapter"
    android:resource="@xml/syncadapter" />
    <meta-data android:name="android.provider.CONTACTS_STRUCTURE"
    android:resource="@xml/contacts" />
    </service>
     
    </application>
    <uses-sdk android:minSdkVersion="5" />
     
    </manifest>
     
    thanks
     

     

    Dmitri Plotnikov <dplotnikov@google.com> Jan 31 06:00PM -0800 ^
     
    I cannot spot anything obviously wrong here.
     
    Here's what I would do in this situation:
     
    Plan A: Closely examine the logs - there might be something there already.
    Enable more logging and see if you can glean anything from it:
     
    adb shell setprop log.tag.SyncManager VERBOSE
     
    Plan B: I would put aside the sync adapter that you wrote, take
    SampleSyncAdapter, make sure it works on the device, and then start morphing
    it into what you need, making small incremental changes and retesting until
    it stops working. Then you know where you made a mistake.
     
    Plan C: I would get Android source and step through it in the debugger.
    SyncManager is a complicated class, so it will take you a few minutes to
    figure out. But in the end it's just Java. If you can write Java, you can
    read Java.
     
    I hope this helps,
    - Dmitri
     

     

    Ken H <hunt1962@gmail.com> Jan 31 04:03PM -0800 ^
     
    I've had a couple users say they can't download two of my apps. The
    apps are 1.2 to 2.3Mb in size and the users seemed to imply that the
    size was an issue since they could download smaller apps ok. One user
    has a Cliq, not sure of the others. I told them to clear the cache and
    data in the Market and Download manager apps, but the one that tried
    that says no joy -- it didn't work.
     
    Should they force close the Market app & Download Manager too? Is
    there something else to try? I've uninstalled, downloaded and
    installed both apps onto my Nexus One...everything's fine. Anybody
    seen this before?
     
    Ken

     

    Cliff Davies <cliff.davies@gmail.com> Jan 31 10:49PM ^
     
    I've managed this now. In case it's of use to anyone else, I achieved it by
    overriding the onDrawerOpen function and using it to call
    handle.setBackgroundResource(0). This effectively removes the handle when
    the drawer is as open as it can go, allowing the drawer to slide to cover
    the full screen.
     

     

    Diego Torres Milano <dtmilano@gmail.com> Jan 31 01:43PM -0800 ^
     
    The problem, which is also in Google documentation, is the missing
    pair of parenthesis
     
    18 result = device.takeSnapshot()
    ^^
     
    otherwise, you are getting a reference to the method.
     
     
    --
    Have you read my blog ?
    http://dtmilano.blogspot.com
    android junit tests ui linux cult thin clients

     

    FractalBob <ruomini@gmail.com> Jan 31 01:34PM -0800 ^
     
    Hi,
     
    I'm writing an app that randomly scrambles the keyboard, so that when the
    user presses, say, the 'A' key, some other letter might get displayed. The
    only way I see of doing this (actually, the way I do it now) is to register
    a KeyListener and return the randomized keystroke. The problem
    is, KeyListeners seem to interfere with the soft keyboard, preventing it
    from getting displayed. Is there an easy way to make the keyboard to appear
    when using KeyListeners? If not, what's a better way of proceeding? Also, I
    want to allow only alpha characters (no numbers or special characters), but
    I didn't see an inputType for alpha only (of course, it's easy
    with KeyListeners). TIA!
     
    Bob

     

    FractalBob <ruomini@gmail.com> Jan 31 01:34PM -0800 ^
     
    Hi,
     
    I'm writing an app that randomly scrambles the keyboard, so that when the
    user presses, say, the 'A' key, some other letter might get displayed. The
    only way I see of doing this (actually, the way I do it now) is to register
    a KeyListener and return the randomized keystroke. The problem
    is, KeyListeners seem to interfere with the soft keyboard, preventing it
    from getting displayed. Is there an easy way to make the keyboard to appear
    when using KeyListeners? If not, what's a better way of proceeding? Also, I
    want to allow only alpha characters (no numbers or special characters), but
    I didn't see an inputType for alpha only (of course, it's easy
    with KeyListeners). TIA!
     
    Bob

     

    tvo <tvoverbeek@gmail.com> Jan 31 01:13PM -0800 ^
     
    FYI, am downloading the Honeycomb preview now via the SDK & AVD
    Manager. Did not work an hour ago, now it does. Do not know what
    happened since it disappeared last Friday. No word from Google.
    Anyway it is back again.

     

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

Comments: (0)

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

    Paul <pmmenneg@gmail.com> Jan 31 12:48PM -0800 ^
     
    It looks like Android is still using the default color state list for
    the button. I've never used a state list for a button, but maybe
    capturing the android:state_selected state might help?
     
    Paul
     

     

    DulcetTone <dulcettone@gmail.com> Jan 31 12:13PM -0800 ^
     
    I tried using this with id=0, and no icon was placed in the status
    bar.
    I switched to using a string resource ID and it worked.
     
    The documentation for the notification system seems to welcome us to
    use any value unique to our app.
     
    tone

     

    TreKing <trekingapp@gmail.com> Jan 31 02:40PM -0600 ^
     

    > I tried using this with id=0, and no icon was placed in the status bar.
    > I switched to using a string resource ID and it worked.
     
    You didn't change anything else? I use 0 as an ID just fine.
     
     
    > The documentation for the notification system seems to welcome us to use
    > any value unique to our app.
     
    Basically.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Paul <pmmenneg@gmail.com> Jan 31 12:35PM -0800 ^
     
    You might also be able to scroll the text by restricting the ellipsize
    the text by setting properties of the TextView to:
     
    android:maxLines="1"
    android:scrollHorizontally="true"
     
    I do this with an EditText and it works perfectly.
     
    Paul
     

     

    Streets Of Boston <flyingdutchie@gmail.com> Jan 31 07:59AM -0800 ^
     
    Hi Dianne,
     
    I haven't made an apk yet (i can't send you our entire app, my boss
    would kill me :-)), but when i do send the apk-sample, where do i send
    it? To your e-mail address?
     
     
    On Jan 29, 10:23 pm, Streets Of Boston <flyingdutc...@gmail.com>
    wrote:

     

    Dianne Hackborn <hackbod@android.com> Jan 31 11:20AM -0800 ^
     
    Yeah just send it to me e-mail address. Thanks!
     
    On Mon, Jan 31, 2011 at 7:59 AM, Streets Of Boston
     
    --
    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.

     

    Streets Of Boston <flyingdutchie@gmail.com> Jan 31 12:30PM -0800 ^
     
    Email is on its way.
    Thank you!
     

     

    TreKing <trekingapp@gmail.com> Jan 31 11:59AM -0600 ^
     

    > I assumed a problem with the installation and asked the user to
    > uninstall and reinstall a new compilation I sent him; no change.
     
    Did you get more information like Phone model and android version? I
    wouldn't be surprised if this is a side-effect of a custom rom - especially
    when it's a lone user reporting it.
     
    Besides that, I would try just replacing your function call with the
    contents of the function itself and log everything: including the current
    value of "this", as crazy as it sounds.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TomTasche <tomtasche@gmail.com> Jan 31 10:11AM -0800 ^
     
    One of my users reported something similar a few months ago and told
    me it was due to bad permissions. Maybe your user should try to
    uninstall and install the app again.
     
    Good luck
    Tom
     

     

    TreKing <trekingapp@gmail.com> Jan 31 12:23PM -0600 ^
     

    > Maybe your user should try to uninstall and install the app again.
     
    On Mon, Jan 31, 2011 at 3:59 AM, mot12 <martin.hunke@gmail.com> wrote:
     
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    mot12 <martin.hunke@gmail.com> Jan 31 12:18PM -0800 ^
     
    Thanks for the input.
    This guy has a G1 with standard Android 1.6. If he had a custom ROM, I
    would not waste time debugging it.
     
    However, you both bring up something interesting here: custom ROMs and
    permissions. I have two other users with two different custom ROMs and
    my app can't save anything in shared_prefs on those phones. The app
    doesn't crash but the settings file in /data/data/<package>/
    shared_prefs never gets written.
     
    Seems unrelated until they reported that the same code worked fine
    with my com....gentlealarmbeta packer, it just doesn't work with the
    com.....gentlealarm package.
     
    Uninstall and reinstall have not been fruitful. I wonder if after
    uninstallation there's any trace left of the app that I could manually
    remove.
     
    @TreKing: That seems like a worthwhile attempt. I will report back
    what I find. Thanks.

     

    H <me@howardb.com> Jan 31 10:40AM -0800 ^
     
    My desktop doesn't have wireless or any other network other than the one
    ethernet cable. I also run rrdtool on my pc so can confirm that the ethernet
    connection is constantly active and online. So although Varun's issue may
    have been triggered by the wireless swapping over, I think there is still a
    genuine underlying issue.

     

    TjerkW <tjerkw@gmail.com> Jan 31 10:27AM -0800 ^
     
    @davemac could you share your copy somehow? A lot of people cannot
    test against honeycomb now.
     

     

    Pent <tasker@dinglisch.net> Jan 31 10:02AM -0800 ^
     
    > I just discovered that removing theNexusSbattery for about a minute
    > is enough to restore theUSBfunctionality.  (Compared to swapping
    > phones at BestBuy, removing the battery is a great convenience. :*)
     
    Thanks for the battery tip.
     
    I just got an S and had the 'where's the USB gone' problem straight
    out of the box
    (and after the charge naturally...)
     
    Nothing registered by the linux kernel at all, though the phone showed
    power.
     
    Fixed by battery pull-out, hope it's not going to happen much it's a
    bit tricky getting the cover off the S I think.
     
    Pent

     

    saex <elpablosaez@gmail.com> Jan 31 10:02AM -0800 ^
     
    0 down vote favorite
     
     
    Hi
     
    i'm encodding images with Base64 into Strings, and i am uploading
    these images into a remote database, in a row of the table USER. That
    row is TEXT, because i dont know if there is anothr String type with
    more space than TEXT.
     
    When i store very small images, with 5 or 10 KB of space, they store
    OK, and when i get these images back from the sql DB into my app, i
    can decode them into BitMap and show them into a ImageView.
     
    THE PROBLEM: When i store images with for example 110 KB of space, i
    think they doesn't store OK in the TEXT row of my table USER in the
    SQL DB, because when i try to decode them, i got an error, they can't
    be decoded, but i dont know why, because the decode function of Base64
    simply returns null when he can't decode.
     
    There is a way to solve it?
     
    How munch KB can have a image to be stored into the row of a databse?
     
    The better option for the row is to be TEXT ? or there is another Type
    that can store more higher Strings?
     
    thanks

     

    TreKing <trekingapp@gmail.com> Jan 31 12:01PM -0600 ^
     

    > I get a Runtime exception when my wait lock gets expired
     
     
    And the runtime exception thrown and the stack trace is what exactly?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Jan 31 11:56AM -0600 ^
     

    > I developed an application using Phonegap for Multiple screen support
     
    > Problem: for multiple screen support how to make a common css file.
     
    Try asking on Phonegap's forums (if they have any) or other groups dedicated
    to that utility.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    "A. Elk" <lancaster.dambusters@gmail.com> Jan 31 09:15AM -0800 ^
     
    You might use Monkey to test that your app handles only certain
    keystrokes, handles only keystrokes sent in a certain order, and
    doesn't crash if it gets anything else. For touch events, you could
    use it to test that random touches or gestures don't do something
    unexpected in your application. As the Dev Guide topic says, Monkey is
    for "stress-testing" your application.
     
    MonkeyRunner provides limited scripting and control capabilities, so
    that you can write Python scripts to run test suites. The Froyo Dev
    Guide describes MonkeyRunner in some detail. You have to know Python
    in order to use it. You can send keystrokes and touch events to
    control the UI, but to send touch events you have to know the screen
    coordinates where you want the touch to occur. That means that you'll
    need to do some work by hand first, to figure out those coordinates.
    As far as I know, MonkeyRunner can't do gestures.
     
    Robotium is in Java only. It's like JUnit. You write something that
    looks like a Java program. The Robotium runner interprets it as a
    sequence of steps to run. There's documentation online; you should
    Google "Robotium".
     
    Suspend/restart could mean many things. You may or may not be able to
    test those functions automatically. In general, you can't easily test
    something that requires turning off the device.
     
    File copying from the network could be done in MonkeyRunner. It really
    depends on what you're trying to do. Since MonkeyRunner is essentially
    a Python module, you can write any Python program you want and add
    MonkeyRunner to it. Python can do just about anything you can think
    of.
     
    Python can accept user input.
     
    Unfortunately, I don't have the time to teach you Python or Java. This
    forum really isn't appropriate for that.
     

     

    lou <louis.coquio@wopata.com> Jan 31 09:04AM -0800 ^
     
    Hi !
    I'm trying to insert an image in my application.
    This image don't cover all the screen, so I have to scale it.
    My problem :
    I want the picture to cover the all screen, stay scaled and be cropped
    at the right of the screen. Consequently we don't see the right part
    of the picture.
    It looks like a "rightCrop" ( or an "alignLeft" ).
    I tried "center", but the picture is too short and don't cover the
    entire screen, and the other scaling mode don't seems to resolve this
    matters.
    How can I do that, please ?
    Thanks a lot.
    Louis

     

    saex <elpablosaez@gmail.com> Jan 31 08:58AM -0800 ^
     
    Hi,
     
    **WHAT I HAVE DONE NOW:**
    i am picking images on my app with android, and showing them on a
    ImageView of my layout, and sometimes i got an exception
    `java.lang.OutOfMemoryError: bitmap size exceeds VM budget`. This
    happens when the photos are higher than 500kb.
     
    **WHAT I NEED TO DO (AND I DONT KNOW HOW TO DO IT):**
    then, what i want to do is to allow the user only to select photos of
    maximum 500kb. And if the user selects a photo Higher than 500kb,
    then, my app should show a toast telling the user that only can select
    photos of max 500kb.... ¿how to do it?
     
     
    this is my code:
     
    changeImageButton.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
    Intent i = new Intent(Intent.ACTION_PICK,

    android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
    startActivityForResult(i, ACTIVITY_SELECT_IMAGE);
    }
    });
     
     
     
    protected void onActivityResult(int requestCode, int resultCode,
    Intent imageReturnedIntent) {
    super.onActivityResult(requestCode, resultCode,
    imageReturnedIntent);
     
    switch(requestCode) {
    case 1:
    {
    setResult(1);
    finish();
    }
    case ACTIVITY_SELECT_IMAGE:
    if(resultCode == RESULT_OK){
    Uri selectedImage = imageReturnedIntent.getData();
    String[] filePathColumn =
    {MediaStore.Images.Media.DATA};
     
    Cursor cursor =
    getContentResolver().query(selectedImage, filePathColumn, null, null,
    null);
    cursor.moveToFirst();
     
    int columnIndex =
    cursor.getColumnIndex(filePathColumn[0]);
    String filePath = cursor.getString(columnIndex);
    cursor.close();
     
    selectedPhoto =
    BitmapFactory.decodeFile(filePath);
    //profileImage.setImageBitmap(selectedPhoto);

    profileImage.setImageBitmap(Bitmap.createScaledBitmap(selectedPhoto,
    80, 80, false));
    }
    }
    }
     
     
     
    profileImage is a ImageView of my layout. and i use scaled butmap to
    resice the image to 80x80
     
    please give me some help to do that, im searching on google and i
    can't find nothing

     

    webmonkey <webmonkey18@gmail.com> Jan 31 08:39AM -0800 ^
     
    Just as I suspected there is a bug in Honeycomb that allows me to work
    around not having a setHasAlpha function.
     
    Using the new inMutable option in BitmapFactory.Options I can decode a
    dummy JPG and because it is a JPG the opaque hint is set. Now whatever
    set function you call on the bitmap, the opaque flag is never cleared
    and so it optimizes the drawing. It is rather silly though that I have
    to do it this way.
     
    I also wonder how the Android team is going to fix the actual "bug" in
    Honeycomb. There are four ways as I see it:
     
    1) When inMutable is set it always clears the opaque hint. This would
    be dumb because it assumes the worst case scenario.
    2) For every set function check if it has transparent values so it can
    clear the opaque flag. Lots of work and not very fast
    3) Add a XRGB_8888 Config. Not sure what kind of work is involved
    here.
    4) Make the setHasAlpha public. This would be the easiest
    solution :-)
     

     

    Ajmer Singh <ajmersingh09@gmail.com> Jan 31 09:13PM +0530 ^
     
    Hi All,
     
    I am working on the app which require me to add effects to an image taken
    from camera.Please any body let me know how can to get started for this
    particular requirement.Is there any library to do so.
     
    --
    Thanks and Regards
    Ajmer Singh

     

    TreKing <trekingapp@gmail.com> Jan 31 09:20AM -0600 ^
     

    > An activity can restrict to portrait view. But how do i restrict a
    > wallpaper from being displayed in landscape mode (?)
     
    I don't know, may not be possible.
     
     
    > So, I would like it not to be displayed on devices supporting landscape
    > mode on home screen, and those are mainly with the devices with hard
    > keyboard support.
     
    Why not make your wallpaper adapt to support landscape? You're cutting out A
    LOT of users for what on the surface appears to a minimal problem.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

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

Comments: (0)

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

    davemac <davemac327@gmail.com> Jan 31 07:01AM -0800 ^
     
    This is the third thread on this topic to appear in Android Developers
    since the preview package disappeared on Friday. So far there is no
    information on why it went away, or when it will reappear.
     
    - dave
     

     

    prasad sirisol <prasad.sirisol@gmail.com> Jan 31 09:49AM -0500 ^
     
    Hi,
     
    Hope you are doing good.
     
    I am a Recruiter at SIRI Solutions INC.
     
    Here I attached our consultant resume with this mail.
     
     
     
    Consultant details are given below,
     
    Name *:* *MRUDULA*
     
    Present Location *: Edison, NJ*
     
    Visa Status * : Green Card*
     
    Relocation * : Looking contract
    positions only in NJ state and New York City.*
     
    Availability *: Immediate*
     
    Face 2 Face * : Ready After Initial
    Telephonic interview with Client
    *
     
    * *
     
    Kindly let me know if you have any requirements for our consultant in NJ
    state and NYC.
     
     
    Feel free to contact me for contact details and rate.
     
     
    If you have any requirements please send to my mail address *
    prasad@sirisol.com .*
     
    *
    *
     
    Thanks & Regards,
     
    *Prasad*
     
    *Sr. Technical Recruiter*
     
    *Siri Solutions International INC*
     
    2217 Prior Rd,
     
    Wilmington, DE-19809
     
    Fax: 302-380-3305
     
    *prasad@sirisol.com*
     
    *www.sirisol.com*

     

    gulbrandr <mohammed.ledoze@googlemail.com> Jan 31 06:42AM -0800 ^
     
    Have you downloaded at least one Android platform?
    According to the documentation:
     
    "To develop an Android application, you also need to download at least
    one Android platform and the SDK Platform-tools"
     
    more info: http://developer.android.com/sdk/installing.html#AddingComponents
     
    Regards
     
     

     

    Cliff Davies <cliff.davies@gmail.com> Jan 31 02:31PM ^
     
    I'd like to use a regular SlidingDrawer but with one exception - when it's
    open I'd like it to completely fill the screen (so that even the handle
    slides from the screen). I can do this by setting a negative topOffset in
    the XML but need to know the size of the drawer's handle before I can know
    the value to put in topOffset. Is there a way of setting topOffset other
    than through the XML? If there's no other way, I'll write a new class based
    on SlidingDrawer, but that seems excessive for the sake of setting one
    variable.

     

    Spiral123 <cumisnic@gmail.com> Jan 31 06:19AM -0800 ^
     
    Can you rephrase your question? Perhaps you can tell us what is your
    end objective.
     

     

    Amit <agrawalamit2005@gmail.com> Jan 31 05:52AM -0800 ^
     
    Hi,
     
    Is there any way to capture http/https traffic happenig through
    webviewclient?
    I can capture url by onPageStarted()/onPageFinished() but not sure how
    to get http header associated witht hem?
     
    Thanks,
    -Amit

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 05:06PM +0300 ^
     
    You can run your web app in the emulator, and use an Ethernet capture
    application (such as WireShark) on the host.
     
    Also this, although short, might give you some ideas:
     
    http://developer.android.com/guide/webapps/debugging.html
     
    -- Kostya
     
    31.01.2011 16:52, Amit пишет:
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    LinusOnline <linusonline@gmail.com> Jan 31 05:04AM -0800 ^
     
    I'm struggling with some strange bahavior in EditText fields on the
    Samsung Galaxy Tab and Samsung Galaxy S. Has anyone else experienced
    similar behavior to this?
     
    Situation:
    I'm using an EditText as an input window for URLs. As the user enters
    a character in it, I want to autocomplete it, i.e., look up the string
    in a list of URLs, find the first match (if any), and change the
    contents of the EditText to that URL, while keeping a selection around
    the suggested part.
     
    So, the sequence is:
    1. User enters character (f.i. the 'c' in 'www.c').
    2. onTextChanged is called, notifies my own thread, and returns
    3. My own thread then posts a Runnable in which I do the following:
    4. Using setText, I change the text to, i.e., www.cnn.com.
    5. Using setSelection, I select the suggested part (i.e., 'nn.com')
     
    Problem On Samsung Galaxy S (and possibly other Samsung devices),
    using the Samsung IME:
    It seems like every time a character is entered in the URL field, the
    text it is set twice; once immediately, and then "magically" again a
    few ms later. In the above case, the text gets reset to 'www.c'
    *after* I've autocompleted it. Delaying the posting of the Runnable
    which changes the text for a few (~10) ms (using postDelayed) works
    around this.
     
    Second problem, occurring so far on the Galaxy Tab and Galaxy S, and
    only in landscape mode, when the IME is fullscreen, but with *any*
    IME:
    Even with the above workaround, the selection on the suggestion part
    of the URL is cleared (while the actual text remains). This time, it
    appears that the effect of the setText call in step 4 is repeated
    (again, "magically") after about 100 ms. Using another call to
    postDelayed, I can delay the call to setSelection a further 100 ms,
    which again works around the problem.
     
    Both workarounds are very ugly, timing-dependent solutions, and I'd
    rather find a better one.
     
    Usually, the magic text-set is accompanied by some nondescript lines
    of logcat error output.
     
    On the Galaxy Tab, using Samsung IME, I get this:
    01-31 21:25:49.500: ERROR/AxT9IME(20639): WordSymbInit: 1
    01-31 21:25:49.508: ERROR/KeyLedTest(20639): KeyLedTest++
    01-31 21:25:49.508: ERROR/KeyBoardLed(19113): UpdateState../sys/class/
    sec/keyboard/keyboard_led state false
    01-31 21:25:49.512: ERROR/KeyBoardLed(19113): UpdateState../sys/class/
    sec/keyboard/keyboard_led state false finished
    01-31 21:25:49.512: ERROR/KeyLedTest(20639): service.UpdateState0
    01-31 21:25:49.512: ERROR/InputMethodService(20639): Keyboard State :
    0
     
    With a different IME than Samsung's, I only get the last one of these
    lines.
     
    On Samsung Galaxy S, I only get an error when using Samsung's IME.
    What I get is this:
     
    01-31 12:22:14.622: ERROR/AxT9IME(2583): WordSymbInit: 1
     
    Again, has anyone else experienced similar behavior to this?

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 04:13PM +0300 ^
     
    Linus,
     
    Have you considered using AutoCompleteTextView instead of an EditText?
     
    It provides a ready-made infrastructure for autocomplete, and probably
    works on all devices.
     
    -- Kostya
     
    31.01.2011 16:04, LinusOnline пишет:
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    Federico Paolinelli <fedepaol@gmail.com> Jan 31 04:49AM -0800 ^
     
    Please note also that c2dm is proposed as a notification of new data
    available on the server (or at least, it is what I understood :-) ). There
    is a size limit of the data that can be bundled in the message.
    The c2d message should only trigger your app to start the fetching (and I
    wouldn't rely entirely on it, setting a coarser fetching interval).
     
    Hope this may help.
     
    Federico

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 04:10PM +0300 ^
     
    I'm going to contribute very unorthodox two cents on this.
     
    The original poster wrote that his app does this:
     
    > feed).
    > 2. It takes around 10 second depend on network speed.
    > 3. XML refresh on server in every 15 minutes.
     
    This is actually not that bad. Should take only about 1-3% of the total
    battery usage, and that's at night, when the screen does not consume
    power, and maybe even less (based on my tests with a similar scenario).
    With compression for slow links, might take less.
     
    While I agree that C2D really is a great alternative to polling, and is
    architecturally the right thing to do, it takes some effort to set up
    and maintain. Doing the obvious and much easier thing might be.... more
    obvious and easier :)
     
    So my recommendation would be to test and measure: leave the service
    running overnight, and look at battery stats in the morning. That should
    tell if there really is a problem that needs fixing.
     
    -- Kostya
     
    31.01.2011 15:49, Federico Paolinelli пишет:
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    "Danny S." <danny.schimke@googlemail.com> Jan 31 04:36AM -0800 ^
     
    Hi,
     
    I try to use my preferences within a broadcast receiver. I defined a
    preferences activity thats build of a defined UI (layout xml alias
    "prefrences.xml"). I am able to call the activity and edit the values.
    There is a preferences xml under my device at "/data/data/
    <MY_PACKAGE_NAME>/shared_prefs/<MY_PACKAGE_NAME>_preferences.xml" that
    contains all of my values I defined in my layout.
     
    In my broadcast receiver I tried to get a instance of my shared prefs.
    The only way is to use the intent of the onReceive method:
     
    ...
    public static final String PREFS_NAME = "preferences";
    private SharedPreferences preferences;
    ...
    public void onReceive(Context context, Intent intent {
    ...
    preferences = getSharedPreferences(PREFS_NAME, 0);
    Log.d("prefs contain key",
    String.valueOf(preferences.contains("my_key")));
    Log.d("prefs my_key is: ",
    String.valueOf(preferences.getBoolean("my_key", false)));
    ...
    )
     
    I always got "false" for "my_key" and the contains key check is false
    too. I checked the path of my preferences in debug mode, its "/data/
    data/<MY_PACKAGE_NAME>/shared_prefs/<PREFS_NAME>" but this file does
    not exists. I think I have to edit() and commit() first before
    accessing this file.
     
    My Question: am I able to get the preferences without create the new
    file first and use the existing preferences file (/data/data/
    <MY_PACKAGE_NAME>/shared_prefs/<MY_PACKAGE_NAME>_preferences.xml)?
    There is no chance to obtain the preferences without the intent given
    through the onReceive method!(?). My aim is to create notifications
    based on preferences (vibration: on/off, sound: on/off, etc.) within
    the broadcast receiver.
     
    Hope someone can help me!
    Thanks!
    -Danny S.

     

    "Danny S." <danny.schimke@googlemail.com> Jan 31 04:53AM -0800 ^
     
    Hi,
     
    I temporary added the following into my preferences activity and
    access it within my broadcast receiver:
     
    public static final String PREFERENCES_PATH =
    Preferences.class.getPackage().getName() + "preferences";
     
    in Broadcast Receiver I wrote:
     
    preferences =
    context.getSharedPreferences(Preferences.PREFERENCES_PATH, 0);
     
    This matches the default preferences file and so I am able to read all
    pref values. But is this a "clean" way? Should I do better or create a
    separat preferences file using edit() method of SharedPreferences? Do
    you think my current procedure is bad and why?
     
    Thanks!
    -Danny S.
     

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 04:01PM +0300 ^
     
    31.01.2011 15:53, Danny S. пишет:
    > pref values. But is this a "clean" way? Should I do better or create a
    > separat preferences file using edit() method of SharedPreferences? Do
    > you think my current procedure is bad and why?
     
    Danny,
     
    You can call PreferenceManager.getDefaultSharedPreferences to get the
    prefs used by PreferenceActivity.
     
    Relying on platform implementation details (appending package name,
    etc.) only works until those implementation details change, and since
    the filename for default preferences is not documented (AFAIK), that can
    be anything between "never" and "any time"...
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    Stephan Wiesner <testexperte@googlemail.com> Jan 31 04:51AM -0800 ^
     
    :-) No, there is no camera involved. They stream the userinterface to
    your pc and back. Looks exactly like the real thing. It is somewhat
    slow over the internet, but fast enough in an intranet.
    If you buy/rent an iphone, you get a real iphone and can send it any
    interaction (sms, touch, movement, etc.) you want and see what happens
    (like I said, no emulator). They have quite a range of devices,
    including different carriers.
    This is great for someone like me, who has to fight with bugs that
    only apear on certain phones (google maps on motorola defy in my
    case). That way I can install a build on that phone, see if it runs
    and evaluate any errors.
     
    Stephan
     
    --
    Interessiert an Android?
    http://android-schweiz.blogspot.com/
    Whant to learn German?
    http://german-podcast.blogspot.com
     
     

     

    brian purgert <brianpurgert2@gmail.com> Jan 31 04:00AM -0800 ^
     
    Did you guys win

     

    Anees <aneesahamedaa@gmail.com> Jan 31 03:53AM -0800 ^
     
    Hi,
    I am also getting the same issue. Could anyone from Google kindly
    respond on this.
     
    BR,
    Anees
     

     

    Robin Talwar <r.o.b.i.n.abhishek@gmail.com> Jan 31 04:57PM +0530 ^
     
    I am using fill_parent
     
     

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 02:29PM +0300 ^
     
    And the logcat says?
     
    31.01.2011 14:27, Robin Talwar ?????:
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    Robin Talwar <r.o.b.i.n.abhishek@gmail.com> Jan 31 05:04PM +0530 ^
     
    Caused due to Null Pointer Exception but the same code runs on 2.2 so it is
    quite wierd
    I have async task in my application to show progress dialog while the app is
    parsing xml by the time
     

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 02:41PM +0300 ^
     
    Please post complete logcat error stack trace, including below "Caused by:"
     
    -- Kostya
     
    31.01.2011 14:34, Robin Talwar пишет:
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    Robin Talwar <r.o.b.i.n.abhishek@gmail.com> Jan 31 05:15PM +0530 ^
     
    01-31 17:02:14.526: ERROR/AndroidRuntime(311): Uncaught handler: thread main
    exiting due to uncaught exception
    01-31 17:02:14.545: ERROR/AndroidRuntime(311):
    java.lang.NullPointerException
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:155)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:1)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    android.os.AsyncTask.finish(AsyncTask.java:417)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    android.os.AsyncTask.access$300(AsyncTask.java:127)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    android.os.Handler.dispatchMessage(Handler.java:99)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    android.os.Looper.loop(Looper.java:123)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    android.app.ActivityThread.main(ActivityThread.java:4363)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    java.lang.reflect.Method.invokeNative(Native Method)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    java.lang.reflect.Method.invoke(Method.java:521)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    dalvik.system.NativeStart.main(Native Method)
     
     

     

    Kostya Vasilyev <kmansoft@gmail.com> Jan 31 02:49PM +0300 ^
     
    31.01.2011 14:45, Robin Talwar пишет:
    > java.lang.NullPointerException
    > 01-31 17:02:14.545: ERROR/AndroidRuntime(311): at
    > com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:155)
     
    There you go.
     
    Use the debugger to set a breakpoint here, and figure out what's Null at
    this line.
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    Narendra Bagade <bagadenarendra@gmail.com> Jan 31 12:19PM +0530 ^
     
    Thanks for reply,
     
    its not rebooting but I am getting error like,
    ADB rejected shell command (ls -l /):
     
    regards,
    Narendra
     
     
    --
    Regards,
    Narendra
    .

     

    Yogini <yogini14@gmail.com> Jan 30 10:24PM -0800 ^
     
    Thanks for your reply.
    I dont want to support landscape mode in my application. An activity
    can restrict to portrait view. But how do i restrict a wallpaper from
    being displayed in landscape mode (?) So, I would like it not to be
    displayed on devices supporting landscape mode on home screen, and
    those are mainly with the devices with hard keyboard support.
     

     

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