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

Comments: (0)

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

    Zsolt Vasvari <zvasvari@gmail.com> Dec 31 10:26PM -0800 ^
     
    This is part of my ongoing effort to tidy up my AppWidget code:
     
    When a user clicks on my Widget, it goes to an Activity "deep" in my
    app. When the user finishes this activity, I'd like to exit back to
    the Launcher as opposed to whatever the last Activity on the stack is
    for my app.
     
    Is there an Intent flag I am not using correctly? I tried all the
    ones I could see to be relevant, but nothing worked. I know I could
    probably pass result codes back up the stack to wind down my app, but
    that's some ugly stuff. Is there an easier way?
     
    Happy New Year everyone!

     

    Abhishek Talwar <r.o.b.i.n.abhishek@gmail.com> Dec 31 10:00PM -0800 ^
     
    Hey guys
    I have simple 2 button screen which are "Create Item" and "List'
    These two have been linked to other activities with intent.
    Now in create.java class i have 2 fields name and description and a
    save button.
    So that when the user clicks save button the data must get saved but
    it is giving me a force close error.
     
    This is my error message
     
    No command output when running: 'am start -n org.finaldatabase/
    org.finaldatabase.finaldatabase -a android.intent.action.MAIN -c
    android.intent.category.LAUNCHER' on device emulator-5554
     
    Exception Stack Trace
     
    com.android.ddmlib.ShellCommandUnresponsiveException
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
    408)
    at com.android.ddmlib.Device.executeShellCommand(Device.java:277)
    at
    com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(Unknown
    Source)
    at
    com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access
    $3(Unknown Source)
    at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController
    $3.run(Unknown Source)
     
     
    Please let me know if you want to have a look at the code also.
    There must be a silly mistake which i cant catch but i want to clear
    this doubt .
     
    Happy New Year

     

    Pedro Duque <pmduque@gmail.com> Jan 01 02:05AM ^
     
    When developing a live wallpaper how can I get the virtual screen size? How
    can I know in which virtual screen the user is in?
     
    Thanks,
    PMD

     

    Pedro Duque <pmduque@gmail.com> Jan 01 05:42AM ^
     
    Let me develop on this subject:
     
    I've develop a Live Wallpaper that was working perfectly in Android 2.1. It
    emulate the standard Android wallpaper by having a bitmap scrolling when a
    user changes screen.
     
    To achieve that effect I use the event "onOffsetsChanged" to detect screen
    changes when the user swipes left and right.
     
    I just installed Android 2.2.1 and now the values returned in onOffsetsChanged
    for xPixelOffset and yPixelOffset are always 0. The value for xOffset
    and yOffset
    do return values from 0 to 1 but because
    WallpaperManager.getInstance(myContext).getDesiredMinimumHeight() and
    WallpaperManager.getInstance(myContext).getDesiredMinimumHeight() now return
    the screen physical size instead of the screen virtual size, I have now way
    to calculate how much that percentage represent in terms of actual
    displacement.
     
    I know it's possible to achieve the desired result because the packed
    wallpaper has that behaviour.
     
    Can somebody help? Is this a problem with Samsung Galaxy S implementation or
    is this a standard behaviour?
     
    Thanks,
    Pedro Duque
     

     

    TreKing <trekingapp@gmail.com> Dec 31 11:44PM -0600 ^
     

    > Is this a problem with Samsung Galaxy S implementation or is this a
    > standard behaviour?
     
     
    Did you test it on the emulator?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    John Lussmyer <johnlussmyer@gmail.com> Dec 31 07:01PM -0800 ^
     
    Is there a relatively easy/good way to have an app that uses LVL, also have
    a Demo version?
    It appears that I have to change the Package Name to do this - which changes
    the Resource file name - so nothing compiles unless I go change the import
    statement in all my files.
    Note that I am working from within Eclipse.
     
    Should I make my entire app an Android Library? and just have 2 nearly
    empty skeleton projects to build it? (Free and Paid versions)

     

    TreKing <trekingapp@gmail.com> Dec 31 11:43PM -0600 ^
     

    > hould I make my entire app an Android Library? and just have 2 nearly
    > empty skeleton projects to build it? (Free and Paid versions)
     
     
    Pretty much.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Dec 31 11:38PM -0600 ^
     

    > Happy New Year TreKing :)
     
    An a happy one to you :)
     
     
    > Right, I did try using table but the column will be stretch if the text is
    > longer than the image.
    > Is it suppose to work this way?
     
    By default, yes. It will just try to expand the columns to fit it's
    contents. Try using weights and the shrinkable / expandable properties to
    control the column widths.
     
     
    > I am now thinking whether there are ways to dynamically take the screen
    > measurement and draw during run time.
     
    There's rarely good reason to deal directly with screen measurements.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

 Topic: app security
    Bob Kerns <rwk@acm.org> Dec 31 06:44PM -0800 ^
     
    This isn't really an Android issue. Anyone who gives out credentials
    for any purpose needs to consider that they may be compromised.
     
    The usual ways of dealing with it are to time-limit them, and to allow
    them to be revoked.
     
    But what I think REALLY should be done, is to issue credentials with
    two components, one revocable by the issuer, and one revocable by the
    recipient.
     
    So, on losing your phone, you go to a website, and invalidate all the
    credentials that were associated with the phone.
     
    This wouldn't deny you access, just force you to go through the re-
    credentialing process for each affected entity, using a reissued
    token.
     
    You could see extending this to three components, so a company with
    accounts with Salesforce.com and similar things, could revoke access
    for a terminated employee, for example. In this case, the access token
    would not be reissued.
     

     

    Bob Kerns <rwk@acm.org> Dec 31 06:34PM -0800 ^
     
    Excellent! There's no question it's hard work, and there's no doubt it
    does compete with this or that feature.
     
    But I'm confident it will pay off in quality -- and quality, in the
    end, saves you time.
     

     

    Bob Kerns <rwk@acm.org> Dec 31 06:30PM -0800 ^
     
    Then check out the ADT 9.0 Preview 2, which has improvements to drag
    and drop, and up and down arrows:
     
    http://tools.android.com/recent
     

     

    Bob Kerns <rwk@acm.org> Dec 31 06:25PM -0800 ^
     
    HOW do you know you're not crazy? I'm missing a step in the logic
    here... :=)
     
    Seriously, it's really a shame Google uses what I'd argue is their
    worst product to support Android this way.
     
    It's too bad this isn't a Wave, perhaps Wave would have gained some
    traction. (Though I suspect it wouldn't have scaled to this sort of
    usage).
     
    But most any forum software would be superior to this.
     

     

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

Comments: (0)

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

    Mystique <joven.chiew@gmail.com> Dec 31 04:24PM -0800 ^
     
    Happy New Year TreKing :)
     
    Right, I did try using table but the column will be stretch if the
    text is longer than the image.
    Is it suppose to work this way? or it is possible to wrap the longer
    text to 2nd line?
     
    I am now thinking whether there are ways to dynamically take the
    screen measurement and draw during run time.
    @@
     

     

    Daniel Quach <dan.a.quach@gmail.com> Dec 31 03:51PM -0800 ^
     
    So I'm trying out making a live wallpaper and I'm using the sample
    code provided in the SDK for the cube live wallpaper
     
    I wanted to use this code to get the height/width of the display
     
     
    @Override
    public void onCreate(SurfaceHolder surfaceHolder) {
    super.onCreate(surfaceHolder);
     
    Rect frame = getSurfaceHolder().getSurfaceFrame();
    float width = frame.width();
    float height = frame.height();
    // By default, we don't get touch events, so enable them.
    setTouchEventsEnabled(true);
    }
     
    Unfortunately, when I run this code, the width and height return as 0,
    though if I put this in onVisibilityChanged, the correct values are
    returned, why is this and is it suitable to move the code to
    onVisibilityChanged?

     

    Gus <gussabina@yahoo.com> Dec 31 03:15PM -0800 ^
     
    Hi:
     
    Yes, I 'm using the Web Browser, and I noticed some posts showed up,
    and dissapeared after a while.
     
    Thanks for confirming this..Now I know I'm not crazy!
     
    Gus
     

     

    Jay <j.gator84@gmail.com> Dec 31 01:48PM -0800 ^
     
    I started reading that, but it still doesn't complete sense. Are there
    any other more descriptive documents on this out there?
     

     

    Emmanuel <emmanuel.astier@gmail.com> Dec 31 11:06AM -0800 ^
     
    I did make a blog entry on the toast customisation subject :
    http://androidblogger.blogspot.com/2009/10/tutorial-how-to-customize-your-toasts.html
    So you can modify the look of the toast !
     
    But I do agree with you that the toast is not fulfilling all of our
    needs, I also though about reimplementing something like a toast.
    Actually the bigger issue I have with the current toast is that you
    can't control acurately the amount of time it is shown, and you can't
    discard them.
     
    I used them in my "Word Prospector" game to give feedback to the
    player when they are doing right or wrong, and if the player tends to
    play very fast, the toasts accumulate, and are shown out of the
    correct context : ie the feedback is not fired for the latest player
    action. They can even be fired when the player is no more in the game.
     
    Emmanuel / Alocaly
    http://androidblogger.blogspot.com
    http://www.alocaly.com
     

     

    Kostya Vasilyev <kmansoft@gmail.com> Dec 31 10:24PM +0300 ^
     
    Re: hiding a toast, I believe it's possible if you keep a reference to it
    and call hide (or dismiss?).
     
    --
    Kostya Vasilyev -- http://kmansoft.wordpress.com
    31.12.2010 22:07 пользователь "Emmanuel" <emmanuel.astier@gmail.com>
    написал:
    > I did make a blog entry on the toast customisation subject :
     
    http://androidblogger.blogspot.com/2009/10/tutorial-how-to-customize-your-toasts.html
    >> completely customizable interms of animation, duration...etc where in the
    >> Toast widget duration can only be set to 2 constant and therefor its not
    >> changeable and the animation part is also not changeable since the
    animation
    >> animation on my custom view it just get overridden.
     
    >> So what I'm really asking is it possible create a completely transient
    >> notifications(not user interactive) without using toast.... and please
    don't

     

    Karim B <abdulkarim.baaba@gmail.com> Dec 31 01:41PM -0800 ^
     
    Yeah I have got that far which is not bad but the ability to change
    animation, duration is what I'm really after... but yeah thanks guys I guess
    I will just have to avoid this and using the notification bar then...

     

    Bob Kerns <rwk@acm.org> Dec 31 12:52PM -0800 ^
     
    Actually, I find the huge properties menu to be an improvement over
    the old properties view (which is still available, BTW).
     
    The "Attributes you can't seem to control" thing is definitely a
    problem.
     
    For example, with a relative layout, depositing an item to be "below"
    another, you can't just get "below", you also get one or both sides
    aligned. But what I really want is to align the side to the parent
    view. I haven't found any way to do that. You can't get "below" alone,
    and once it's attached to the one above, you can't attach it to the
    parent without losing the connection to the one above.
     
    I do find it saves time in the very initial setup of a screen, or if
    I'm just tweaking a property here or there. But at the moment, if I
    try to do more than a limited set of things with it, I end up wasting
    my time.
     
    I do think it's going in the right direction -- and I look forward to
    its arrival!
     

     

    Julian <cacifali@gmail.com> Dec 31 04:29PM -0500 ^
     
    I think the adt is going backwards, the GUI designer is a waste of time,
    drag and drop just does not work properly, we just need the up and down
    arrows back!
     
    2010/12/31 Bob Kerns <rwk@acm.org>
     

     

    Moto <medicalsounds@gmail.com> Dec 31 01:25PM -0800 ^
     
    Thanks! I'll look over that blog.
     
    -Moto
     

     

    dashman <erjdriver@gmail.com> Dec 31 11:40AM -0800 ^
     
    i'm displaying a splash screen Activity and want to
    wait for the user the click/press on the screen before
    proceeding.
     
    how can i do this.

     

    Kostya Vasilyev <kmansoft@gmail.com> Dec 31 09:53PM +0300 ^
     
    AsyncTask can be carried through configuration changes by using
    getLastNonConfigurationData (or some such, I writing this from my phone).
    The technique was discussed on this list within the last month or two,
    hopefully you can find it.
     
    --
    Kostya Vasilyev -- http://kmansoft.wordpress.com
    > On Fri, Dec 31, 2010 at 11:48 AM, Robert <rcopelan@gmail.com> wrote:
     
    >> The reason I want to do this is that the app is accessing a webserver via
    >> an AsyncTask and I'd like to stop the restart until I can figure out how
    to
     
    > *Note:* Using this attribute should be avoided and used only as a
    > last-resort. Please read Handling Runtime
    > Changes<
    http://developer.android.com/guide/topics/resources/runtime-changes.html>
    > more information about how to properly handle a restart due to a
    > configuration change.
     
    > I highly recommend you spend the time figuring out how to do this
    correctly
    > then wasting time on a hack that will cause other problems.
     
    -------------------------------------------------------------------------------------------------

     

    Robert <rcopelan@gmail.com> Dec 31 12:21PM -0800 ^
     
    Yes, I agree and even said in my original post that I was working to
    understand how to make that work correctly. Still would be interested
    to know why the manifest entry doesn't seem to be working as
    documented.
     

     

    Anil Philip <anil.rita@gmail.com> Dec 31 02:07PM -0600 ^
     
    Alright, I created an ubuntu partition, installed git, repo, eclipse,
    downloaded the eclair branch of android and built it.
    Created a Java project using 'existing src' with the android root directory.
    Was wondering how I should run/step through the Desk Clock application.
    Since there is no ADT plugin, If I "Run as Java Application" it simply
    brings up a list of internal and library modules like Svc, Command shell...
    Should I run the emulator in the debugger and then click on the alarm clock
    app? (Debugging the emulator with Eclipse
    http://source.android.com/source/using-eclipse.html)
     
     
     
    --
    thanks,
    Anil Philip
    Please let us know if you know anyone with an unwanted pregnancy, willing to
    place for adoption. http://longingtoadopt.com

     

    "longingtoadopt.com" <anil.rita@gmail.com> Dec 31 12:09PM -0800 ^
     
    Alright, I created an ubuntu partition, installed git, repo, eclipse,
    downloaded the eclair branch of android and built it.
    Created a Java project using 'existing src' with the android root directory.
    Was wondering how I should run/step through the Desk Clock application.
    Since there is no ADT plugin, If I "Run as Java Application" it simply
    brings up a list of internal and library modules like Svc, Command shell...
    Should I run the emulator in the debugger and then click on the alarm clock
    app? (Debugging the emulator with Eclipse
    http://source.android.com/source/using-eclipse.html)

     

    Dianne Hackborn <hackbod@android.com> Dec 31 12:14PM -0800 ^
     

    > Indeed. This is called "eating your own dogfood", and it's a highly
    > valuable part of creating a high-quality product.
     
    Crappy Android has been improving over the last year as work has been done
    to update the various apps to use various final SDK APIs that weren't
    available when they were first written.
     
    This is often a fair amount of work, and means desired features or bug fixes
    can't be done, so sometimes it is slow going.
     
    If it is something you feel strongly about, many app developers would
    probably be happy to review contributions.
     
    Btw you can determine if an app is building against the public SDK by
    looking for LOCAL_SDK_VERSION in its Android.mk. A quick scan of
    Gingerbread shows that these app build against the public SDK:
     
    Calculator, Camera, DeskClock, Gallery3D, Mms, Music, Protips,
    QuickSearchBox, Tag, and LatinIME.
     
    For the original poster -- DeskClock is the new AlarmClock. The AlarmClock
    code has not been used since at least 2.2.
     
    --
    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.

     

    Dianne Hackborn <hackbod@android.com> Dec 31 12:16PM -0800 ^
     

    > Calculator, Camera, DeskClock, Gallery3D, Mms, Music, Protips,
    > QuickSearchBox, Tag, and LatinIME.
     
    (And it looks like Email may be joining this illustrious list for
    Honeycomb.)
     
    --
    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.

     

    John Gaby <jgaby@gabysoft.com> Dec 31 11:32AM -0800 ^
     
    I seem to have a memory leak when running under version 1.6 of the
    OS. I have a custom view group which contains some controls and I set
    it to be the current view via a call to setContentView(vg). If I then
    create a second view group and set it as the active view via
    setContentView(newVg), the first view group is never freed (even when
    I force a garbage collection).
     
    Note that this works fine for versions 2.0 and above, so it is
    possible that 1.6 has some kind of bug. If so, does anyone know of a
    workaround? I can post a simple example of this problem if it would
    help.
     
    Thanks.

     

    Nikola <nikola1010@gmail.com> Dec 31 07:59PM +0100 ^
     

    >> Why? I would like to store it in database.
     
    > Because ".tmp" is not an image format I'm aware of.
     
    > Never said that you have to save file with image extension. Why would you
    have to do that? Does system checks file extensions?
     
     
     
     
    Besides that, a Google Search for "ACTION_IMAGE_CAPTURE" shows some promise
     
    >> Done it already and didn't find anything that could resolve this problem.
     
    > Then you found this first hit and tried both alternate URIs?
     
    > http://stackoverflow.com/questions/1910608/android-action-image-capture-intent
     
    Yea I saw that.
     
     
    Thanks for helping.
     
    --
    God is Real, unless declared Integer.
    J. Allan Toogood, FORTRAN programmer

     

    TreKing <trekingapp@gmail.com> Dec 31 01:07PM -0600 ^
     

    > Never said that you have to save file with image extension. Why would you
    > have to do that? Does system checks file extensions?
     
    I don't know, but if you're trying to save an image to a file, you might as
    well make sure you have a reasonable extension for the file type. Probably
    won't make a different, but who knows.
     
    Then you found this first hit and tried both alternate URIs?
     
    >> http://stackoverflow.com/questions/1910608/android-action-image-capture-intent
     
    > Yea I saw that.
     
    Then I don't know what to tell you. Sorry.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Dianne Hackborn <hackbod@android.com> Dec 31 11:02AM -0800 ^
     

    > I saw some applications that moves the InputMethod to the top.
     
    I very much doubt you did. The IME currently can only be on the bottom.
     
    --
    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.

     

    Dianne Hackborn <hackbod@android.com> Dec 31 10:59AM -0800 ^
     
    I regularly put work into the API demos each release. See for example the
    evolution of the Service class. There is just a large amount of stuff
    there, and not a lot of time to work on it. If you have a particular part
    you would like to see improved, I'd be happy to review contributions.
     
     
    --
    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.

     

 Topic: app security
    Dianne Hackborn <hackbod@android.com> Dec 31 10:58AM -0800 ^
     

    > So -- how about getting credentials from the Cloud (over SSL)
    > and hiding in AccountManager's Account?
     
    Though again, this hasn't protected you, just made it harder. Your data is
    still there on the device, for someone with root access to find and
    retrieve.
     
    --
    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.

     

    John Oliver <shreddedcheddar@gmail.com> Dec 31 10:56AM -0800 ^
     
    Bump? Anyone?
     

     

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

    Nikola <nikola1010@gmail.com> Dec 31 07:05PM +0100 ^
     
    Hi,
     
    trying to capture image and display it but getting FileNotFound for
    following code. Anybody willing to take a look at it?
     
     
     
    public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    private static final int CAMERA_PIC_REQUEST = 1337;
    Button btn1;
    ImageView image;
     
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     
    setContentView(R.layout.main);
     
    final File path = new File(
    Environment.getExternalStorageDirectory(), getPackageName() );
     
    Toast.makeText(this, path.toString() , Toast.LENGTH_SHORT).show();
     
     
    Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,
    Uri.fromFile(getTempFile(this)) );
    startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
     
     
    image = (ImageView) findViewById(R.id.fotografija);
    //image.setImageBitmap(thumbnail);
     
    btn1 = (Button) findViewById(R.id.button1);
    btn1.setOnClickListener(new View.OnClickListener() {
     
    public void onClick(View v) {
    Intent cameraIntent = new
    Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,
    Uri.fromFile(getTempFile(v.getContext())) );
    startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
    }
    });
     
     
    }
     
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent
    data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == CAMERA_PIC_REQUEST) {
    if(resultCode == RESULT_OK){
    Toast.makeText(this, "Captured! ",
    Toast.LENGTH_SHORT).show();
     
    final File file = getTempFile(this);
     
    try {
    Bitmap captureBmp = Media.getBitmap(getContentResolver(),
    Uri.fromFile(file) );
     
    image.setImageBitmap(captureBmp);
     
     
    } catch (FileNotFoundException e) {
    Toast.makeText(this, "FileNotFoundException",
    Toast.LENGTH_SHORT).show();
    e.printStackTrace();
    } catch (IOException e) {
    Toast.makeText(this, "IOException",
    Toast.LENGTH_SHORT).show();
    e.printStackTrace();
    }
     
     
    }else if(resultCode == RESULT_CANCELED){
    Toast.makeText(this, "User canceled!",
    Toast.LENGTH_SHORT).show();
     
    }
    }
     
    }
     
     
    private File getTempFile(Context context){
    //it will return /sdcard/image.tmp
    final File path = new File(
    Environment.getExternalStorageDirectory(), context.getPackageName() );
    if(!path.exists()){
    path.mkdir();
    }
    return new File(path, "image.tmp");
    }
    }
     
     
     
    --------------------------------------------------------------------------------------------------------------
     
     
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.helloandroid"
    android:versionCode="1"
    android:versionName="1.0">
     
    <uses-feature android:name="android.hardware.camera"></uses-feature>
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     
    <application android:icon="@drawable/icon"
    android:label="@string/app_name" android:debuggable="true">
    <activity android:name=".HelloAndroid"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    </application>
     
     
    </manifest>
     
     
     
    --
    God is Real, unless declared Integer.
    J. Allan Toogood, FORTRAN programmer

     

    TreKing <trekingapp@gmail.com> Dec 31 12:32PM -0600 ^
     

    > Anybody willing to take a look at it?
     
     
    Giving your file that should hold an image a ".tmp" extension is
    questionable. Besides that, a Google Search for "ACTION_IMAGE_CAPTURE" shows
    some promise ...
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Nikola <nikola1010@gmail.com> Dec 31 07:42PM +0100 ^
     

    >> Anybody willing to take a look at it?
     
    > Giving your file that should hold an image a ".tmp" extension is
    > questionable.
     
    Why? I would like to store it in database.
     
     
     
     
    > Besides that, a Google Search for "ACTION_IMAGE_CAPTURE" shows some promise
    > ...
     
    Done it already and didn't find anything that could resolve this problem.
     
     
    Is is very interesting that intent doesn't return any path or similar for
    picture that is taken.
    There is no info ,and believe me I've searched for , that feature like that
    exists.
    Of all the things I think getting path of taken picture whould be most
    useful.
     
     
    --
    God is Real, unless declared Integer.
    J. Allan Toogood, FORTRAN programmer

     

    TreKing <trekingapp@gmail.com> Dec 31 12:49PM -0600 ^
     

    > Giving your file that should hold an image a ".tmp" extension is
    >> questionable.
     
    > Why? I would like to store it in database.
     
    Because ".tmp" is not an image format I'm aware of.
     
     
    > Besides that, a Google Search for "ACTION_IMAGE_CAPTURE" shows some promise
    >> ...
     
    > Done it already and didn't find anything that could resolve this problem.
     
    Then you found this first hit and tried both alternate URIs?
    http://stackoverflow.com/questions/1910608/android-action-image-capture-intent
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Faheem Khatri <faheemkhatri88@gmail.com> Dec 31 11:24PM +0500 ^
     
    but there is no function which takes argument to set the settings, as
    *public static final String WIFI_STATIC_DNS1*
    it only return the value , not set the value, i ll get syntax error if i try
    to set the values from this.
     
    2010/12/30 Kostya Vasilyev <kmansoft@gmail.com>
     

     

    Pent <tasker@dinglisch.net> Dec 31 08:44AM -0800 ^
     
    I've had the same with N1 since 2.2.1 (hard to say if it was that
    update that broke it).
     
    Pent
     

     

    Pent <tasker@dinglisch.net> Dec 31 08:47AM -0800 ^
     
    Does a reboot not fix it BTW ?
     
    Works every time here, real pain though.
     
    Annoyingly, as soon as I select reboot from the normal dialog, the USB
    notification appears.
     
    Pent

     

    greg <sepesi@eduneer.com> Dec 31 09:38AM -0800 ^
     
    Thanks for the reply.
     
    Once the Nexus S USB connection stopped working, I have not been able
    to revive it. I have tried
     
    - rebooting my laptop (running Vista),
    - performing a Factory reset on the Nexus S,
    - uninstalling and installing the Google USB driver (version 4.0), and
    - fiddling with Nexus S Settings that have anything to do with USB
    (i.e., "USB debugging", "Erase USB storage", "USB tethering").
     
    My Nexus One USB connection continues to work with the same laptop.
     
    - Greg
     

     

    Sarwar Erfan <erfanonline@gmail.com> Dec 31 09:46AM -0800 ^
     
    On Friday, December 31, 2010 11:38:57 PM UTC+6, greg wrote:
     
    > My Nexus One USB connection continues to work with the same laptop.
     
    > And with the same USB cable?
     
    Regards
    Sarwar Erfan

     

    greg <sepesi@eduneer.com> Dec 31 10:12AM -0800 ^
     
    Thanks for the reply.
     
    Yes, I tried the same cable.
     
    I just discovered that removing the Nexus S battery for about a minute
    is enough to restore the USB functionality. (Compared to swapping
    phones at BestBuy, removing the battery is a great convenience. :*)
     
    - Greg
     

     

    Robert <rcopelan@gmail.com> Dec 31 09:48AM -0800 ^
     
    I have an application that I am trying to stop the automatic restart
    when the screen is rotated. I put android:configChanges="orientation|
    keyboardHidden" into the Manifest (copied below) but the screen still
    rotates and the OnCreate is called (verified by writing to the log in
    OnCreate). Have I missed something else that is required to stop
    this default action?
     
    The reason I want to do this is that the app is accessing a webserver
    via an AsyncTask and I'd like to stop the restart until I can figure
    out how to link the background task to the new pid that is created.
    I've read some pages on it but not yet clear how to do that.
     
    Sorry for maybe some terminology that isn't correct. Hopefully the
    issue is clear though. Thanks for any pointers to information that
    may help.
     
    Robert
     
     
     
     
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.copelan.android.reunionplanner"
    android:versionCode="1"
    android:installLocation="auto" android:versionName="0.1.0">
    <application android:icon="@drawable/icon" android:label="@string/
    app_name">
    <activity android:name=".ReunionPlanner"
    android:label="@string/app_name">
    android:configChanges="orientation|keyboardHidden"
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category
    android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
     
    </activity>
     
    <activity android:name="Preferences"
    android:label="Preferences"></activity>
    <activity android:name=".About"
    android:label="About"
    android:theme="@android:style/Theme.Dialog">
    </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
     
    <uses-permission android:name="android.permission.INTERNET"></uses-
    permission>
    <uses-permission
    android:name="android.permission.ACCESS_NETWORK_STATE"></uses-
    permission>
    </manifest>

     

    TreKing <trekingapp@gmail.com> Dec 31 11:55AM -0600 ^
     
    > an AsyncTask and I'd like to stop the restart until I can figure out how to
    > link the background task to the new pid that is created. I've read some
    > pages on it but not yet clear how to do that.
     
    Quoting the docs for that property:
     
    *Note:* Using this attribute should be avoided and used only as a
    last-resort. Please read Handling Runtime
    Changes<http://developer.android.com/guide/topics/resources/runtime-changes.html>
    for
    more information about how to properly handle a restart due to a
    configuration change.
     
    I highly recommend you spend the time figuring out how to do this correctly
    then wasting time on a hack that will cause other problems.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Dec 31 10:05AM -0600 ^
     

    > I make a call to my number and got the busy tone".
     
     
    Please tell me you mean you used a different phone to call your development
    phone ... because if you're calling your development phone with your
    development phone ... well ...
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    XiaoXiong Weng <admin@littlebearz.com> Dec 31 12:02PM -0500 ^
     
    Wouldn't that just goto the voicemail?
     
    Erh, when I send text to myself it works J
     

     
    From: android-developers@googlegroups.com
    [mailto:android-developers@googlegroups.com] On Behalf Of TreKing
    Sent: Friday, December 31, 2010 11:06 AM
    To: android-developers@googlegroups.com
    Subject: Re: [android-developers] SMS sending through HTC Desire
     

     
    On Thu, Dec 30, 2010 at 2:22 AM, Jawwad Farooq <jawwad.farooq@gmail.com>
    wrote:
     
    I make a call to my number and got the busy tone".
     
     
    Please tell me you mean you used a different phone to call your development
    phone ... because if you're calling your development phone with your
    development phone ... well ...
     
    ----------------------------------------------------------------------------
    ---------------------
    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

     

 Topic: Need Info
    TreKing <trekingapp@gmail.com> Dec 31 10:44AM -0600 ^
     

    > Will that be possible?
     
     
    Nope, sorry.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Dec 31 10:26AM -0600 ^
     

    > I had still facing this problem. Can anyone please solve this one?
     
     
    Mark already gave you two options. If you were trying the first, you did not
    follow what he said.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    John Lussmyer <johnlussmyer@gmail.com> Dec 31 08:23AM -0800 ^
     
    I've used the NetBeans and MyEclipse GUI editors extensively. They are very
    nice.
    The Android thing in Eclipse is pretty much a waste of time. Bizarre things
    happen when you try to drag controls or layouts in. Items end up in totally
    unexpected places, with attributes that you can't seem to control. The huge
    properties menu isn't very helpful either.
     
    After just a few minutes of attempting to use the GUI editor, I gave up and
    just edited the XML directly. Much easier, quicker, and with better control
    of what you get. I don't even bother previewing my layouts with the GUI
    editor, as it frequently leaves out controls entirely.
     

     

    wolf <wolfy1992@gmail.com> Dec 31 08:22AM -0800 ^
     
    when paid apps will be available to buy in greece ?
     
    if i live in greece can i make paid apps and sell them (via android
    marketplace) ?
     
     
    -thanks!!!

     

    JRock <developer@earthblood.com> Dec 31 08:09AM -0800 ^
     
    The recent market application changes now show a large icon for your
    app in the upper left hand side of the screen when viewing the app's
    listing....for my app, however, it is still showing the tiny icon in
    the middle of a huge white rectangle.
     
    From the Developer console I have uploaded the new entry for a high
    resolution icon of 512 X 512 dimensions, and I assume that this is the
    icon that is supposed to be showing, yet, as I mentioned, it is not.
    I have no idea what the 512 X 512 Icon is used for if not to display
    in the market listing.
     
    Does anyone know what is going on here? How do I make the proper sized
    icon appear in the market display?
     
    Thanks for your help.

     

    TreKing <trekingapp@gmail.com> Dec 31 10:17AM -0600 ^
     

    > From the Developer console I have uploaded the new entry for a high
    > resolution icon of 512 X 512 dimensions, and I assume that this is the
    > icon that is supposed to be showing, yet, as I mentioned, it is not.
     
    I have no idea what the 512 X 512 Icon is used for if not to display
    > in the market listing.
     
    It's not and I don't think anyone knows what it's for.
     
     
    > Does anyone know what is going on here? How do I make the proper
    > sized icon appear in the market display?
     
    You need to upload an image to the *Promotional Graphic* section.
     
    Why the Promotional Graphics that is now used in the new Market is NOT
    required, but this random, unexplained 512X512 icon IS required, is beyond
    me. Android Market Interns strike again!
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Dec 31 10:13AM -0600 ^
     

    > Any code example to do this layout for both portrait and
    > landscape orientation?
     
    The likelihood of finding code examples that perfectly solve the particular
    layout problem you are having at any given time is pretty much zero.
     
     
    However, this is a pretty simple layout. Looks a like a two-row, two-column
    table, with each cell containing a centered vertical linear layout with an
    image and text. Then play with the padding and margins until it meets your
    needs.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Byron Penner <bapenner818@gmail.com> Dec 31 08:03AM -0800 ^
     
    U sure he's not just looking for the input type of textmultiline????
     
     

     

    DulcetTone <dulcettone@gmail.com> Dec 31 07:56AM -0800 ^
     
    I am not keen on testing 1.5 and such "sort of" tests usually are a
    waste of time on Android.
     
    Certainly there must be a means of finding and deleting this data?
    I've been told it goes onto the SD card, but I see it nowhere for
    manual deletion.
     
    tone
     

     

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

Comments: (0)

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

    TreKing <trekingapp@gmail.com> Dec 31 09:35AM -0600 ^
     

    > some advice?
     
     
    I have many TextViews with a lot of text that causes them to wrap and they
    always wrap around the words (as in your second example).
    Is that all you're doing? Just setting text and it shows up that way?
    Weirdness.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Phil Endecott <spam_from_google@chezphil.org> Dec 31 07:09AM -0800 ^
     
    Thanks Kostya, this is just what I needed.
     
     
    > http://developer.android.com/reference/android/util/DisplayMetrics.html
     
    > Note that some devices don't correctly report actual resolution (xdpi /
    > ydpi).
     
    Does "some devices" include anything that I care about? How wrong is
    the value?
     
    Are there any popular devices where x and y density are different?
     
     
    Phil.

     

    Bob Kerns <rwk@acm.org> Dec 31 07:03AM -0800 ^
     
    Can I suggest adding links (perhaps not real hyperlinks, but
    conceptual links at least) from the API documentation to the relevant
    API examples?
     
    I think you'd get a lot more value from the work you put into the API
    demos this way.
     
    Also, I'd concur with the recent comment, but not the tone, that a lot
    of the API demo classes are quite poorly named. Even if you know that
    there IS an API demo for what you want to find, it can quite difficult
    to locate it.
     
    Think of it as, the API demos could use a bit more product marketing
    to get them to their intended audience. :=)
     

     

    Bob Kerns <rwk@acm.org> Dec 31 06:55AM -0800 ^
     
    Just to clarify -- I'm NOT saying the current state doesn't have huge
    usability problems! (And so did the previous state).
     
    I'm only disagreeing with the sentiment that "real programmers only
    want to use the XML, and ignore the GUI". Even now, when it works
    right (and I can figure out how to use it), it's a time savings.
     
    When it's not, I end up reformatting and fixing the XML.
     
    My point is, it's quite worth the Android teams' time improving this.
    It's NOT just newbies who don't understand the XML who will benefit.
     
    In fact, I think it would be a good goal to make the UI expose the
    functionality so clearly, usably, completely, and unambiguously that
    knowing the XML offers no benefit to the "real" developer (unless
    you're writing automated transformations on it).
     

     

    H <me@howardb.com> Dec 31 05:26AM -0800 ^
     
    You could stick a try/catch block in, but I doubt it would catch *most* of
    the bugs. Remember that your request for a track simply gets added to the
    database at that point and then some time later the dispatcher picks
    requests up from the database and sends them (although if you ask it to
    dispatch immediately you might catch them, but due to the use of handlers, I
    still doubt it). So your try/catch in your code would only catch errors from
    the first part and not the second.
     
    From the ACRA reporting in my app for the previous release of the analytics,
    the vast majority of my errors were coming from the latter part of the
    process where it was trying to read back from the database or failed during
    the sending part or failed when removing entries from the database.
     
    The analytics team did state they fixed a load of bugs in this latest
    release. I don't know if it's against the rules or not, but I decompiled the
    latest release and built it natively into my app and that allowed me to
    stick in a sprinkling of my own try/catch clauses around spots that I
    thought looked tetchy. I haven't released this yet..

     

    blindfold <seeingwithsound@gmail.com> Dec 31 06:14AM -0800 ^
     
    You may be right, although the crash reports that I have all suggest
    that they were triggered from direct calls to
    GoogleAnalyticsTracker.trackEvent() in my code leading to
    "java.lang.IllegalStateException: no transaction pending". Judiciously
    sprinkling try-catch blocks is a great way to further "uglify" source
    code, so maybe I'll just live with the occasional crashes until Google
    fixes the problem, given that thus far only 3 out of 5000 app runs
    gave me crashes.
     
    Thanks
     
     

     

    H <me@howardb.com> Dec 31 06:21AM -0800 ^
     
    Looking in the analytics source after you've called trackEvent(), I suspect
    that error is coming out when it is using a database transaction to insert
    the event into the database. Once inserted, it calls endTransaction as well
    as setTransactionSuccessful. Both of these do this check:
     
    if (!mLock.isHeldByCurrentThread()) {
    throw new IllegalStateException("no transaction pending");
    }
     
    So it could be worth checking to see if you are tracking the event from a
    thread that has ended, or calling dispatch from a different thread...?
     
    HTH.

     

    blindfold <seeingwithsound@gmail.com> Dec 31 06:55AM -0800 ^
     
    Hmm, I have only one global tracker object that I create in the
    onCreate() of my main activity, and with a regular dispatch interval
    through the format tracker.start("UA-12345-0", nseconds, this), so I'd
    say that it all works from one alive thread. However, in one pair of
    crash logs the first GoogleAnalyticsTracker.trackEvent() crash occurs
    after my app had been running for some time, while the second
    GoogleAnalyticsTracker.trackEvent() crash occurs immediately at app
    startup only 3 minutes later, for the same device FINGERPRINT,
    suggesting that indeed some sort of lock had lived on even across runs
    to cause a second crash because the second run would not be owning the
    lingering lock. This was for a Samsung GT-I5800 running Android 2.1-
    update1.
     

     

    Nasir <itsnasir@gmail.com> Dec 31 06:13AM -0800 ^
     
    Hey guys,
     
    I've stuck in a BIG problem in my Android application. I've an
    ListActivity and at bottom of ListView I've and EditBox. Whenever user
    clicks on EditBox, Virtual keyboard appears covering EditBox and user
    is not able to view what he is typing.
     
    I've read lots of posts to resolve this problem but couldn't find its
    solution, reading http://developer.android.com/resources/articles/on-screen-inputs.html
    couldn't resolve my problem.
     
    In my manifest file, I've used
    android:windowSoftInputMode="stateVisible|adjustResize" for
    ListActivity as well.
     
    You help is much appreciated!!
     
    Thanks!

     

    Federico Paolinelli <fedepaol@gmail.com> Dec 31 06:50AM -0800 ^
     
    Having your view wrapped into a scroll view should make the trick.
    <?xml version="1.0" encoding="utf-8"?>
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true">
     
    </ScrollView>
     
    To be honest, I never tried it with a listview, but it worked quite
    well with my text + edit text views.
     
    Hope this helps,
     
     
    Federico
     

     

    TreKing <trekingapp@gmail.com> Dec 31 08:33AM -0600 ^
     

    > Any ideas what might be wrong?
     
     
    Did you try http*s*?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

 Topic: app security
    jacek <jacek.ambroziak@gmail.com> Dec 31 06:15AM -0800 ^
     
    I know that everybody can get their Twitter etc. api_key (+ secret).
    The same goes for Google Storage, Amazon S3 credentials, etc.
    My issue is that I do not want *my* credentials stolen
    and the bad guy pretending to be me
    with all the dire consequences.
     
    So -- how about getting credentials from the Cloud (over SSL)
    and hiding in AccountManager's Account?
     

     

    asinha <asinha.vocollect@gmail.com> Dec 31 05:35AM -0800 ^
     
    I am trying to write a service which runs as background process and
    invoke my task (in application) at 9am everyday.
     
    My service is:
     
    public class DateService extends Service {
     
    //expressed in milliseconds
    private final long ONCE_PER_DAY = 1000 * 60 * 60 * 24;
    private final int ONE_DAY = 1;
    private final int NINE_AM = 9;
    private final int ZERO_MINUTES = 0;
     
    @Override
    public void onCreate() {
    Thread thr = new Thread(null, mTask, "DateService");
    thr.start();
    }
     
    @Override
    public void onDestroy() {
    }
     
     
    Runnable mTask = new Runnable() {
    public void run() {
    TimerTask myTask = new MyTask();
     
    //perform the task once a day at 9 a.m., starting tomorrow
    morning
    Timer timer = new Timer();
    timer.scheduleAtFixedRate(myTask, getTomorrowMorning9am(),
    ONCE_PER_DAY);
     
    // Done with our work... stop the service!
    DateService.this.stopSelf();
    }
    };
     
    @Override
    public IBinder onBind(Intent intent) {
    return mBinder;
    }
     
     
    private final IBinder mBinder = new Binder() {
    @Override
    protected boolean onTransact(int code, Parcel data, Parcel
    reply,
    int flags) throws RemoteException {
    return super.onTransact(code, data, reply, flags);
    }
    };
     
    private Date getTomorrowMorning9am() {
    Calendar tomorrow = new GregorianCalendar();
    tomorrow.add(Calendar.DATE, ONE_DAY);
    Calendar result = new GregorianCalendar(
    tomorrow.get(Calendar.YEAR),
    tomorrow.get(Calendar.MONTH),
    tomorrow.get(Calendar.DATE),
    NINE_AM,
    ZERO_MINUTES
    );
    return result.getTime();
    }
     
    }
     
    Is this the right way to write my service? How would I verify my
    service?

     

    TreKing <trekingapp@gmail.com> Dec 31 07:38AM -0600 ^
     

    > Is this the right way to write my service?
     
    No. Use AlarmManager.
     
     
    > How would I verify my service?
     
    Test it?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Kostya Vasilyev <kmansoft@gmail.com> Dec 31 05:07PM +0300 ^
     
    31.12.2010 16:35, asinha пишет:
     
    > [snip]
     
    > Is this the right way to write my service? How would I verify my
    > service?
     
    This is error-prone, since a service can get kicked out of memory at any
    time, and all threads (including the thread used by Java timers) will
    terminate.
     
    Set an Alarm with AlarmManager, it avoids the issues caused by
    interference from process lifecycles:
     
    http://developer.android.com/reference/android/app/AlarmManager.html
     
    --
    Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

     

    bharath <dg.bharath@gmail.com> Dec 31 06:02AM -0800 ^
     
    Hi All,
     
    Is it possible to write a JNI to access GPS / Wifi / USB HAL layer
    function? If possible, please post the sample code.
     
     
     
    Thanks
    Bharath

     

    Doug Gordon <gordonwd@gmail.com> Dec 31 09:02AM -0500 ^
     
    Among other things, my app displays photos in an ImageView in a popup
    Dialog. These images come out of a database that is created on the
    user's PC. Before storing them in the database, I resize them for max
    dimensions of 320x320 pixels.
     
    So, in almost all cases, on the Android device I simply display the
    photos at their "natural" dimension, which fits nicely on almost all
    screens. However, I have at least one customer with an HTC Wildfire
    which, even though its screen is 3.2", has only QVGA dimensions
    (240x320). With my current code, the photos do seem to be resized by the
    system to display within the screen boundaries, but the rest of the
    views in the dialog (caption, buttons, etc.) get "pushed off the screen"
    and are not visible or usable.
     
    Obviously I need to handle this case by setting some specific dimensions
    on the ImageView when running on a QVGA device, but what is the best
    approach? Should I use DisplayMetrics to discover the dimensions and
    adjust accordingly? This would work, but seems like it might be too
    low-level of an approach. Could I put dimension the image in the XML in
    some way using "dips"?
     
    (By the way, it's interesting that Android considers this class of
    display to be a "small screen" for Manifest purposes, but at 3.2" it's
    not physically all that smaller than a lot of other devices with higher
    res.)

     

    Sarwar Erfan <erfanonline@gmail.com> Dec 31 05:33AM -0800 ^
     
    On Wednesday, December 29, 2010 7:20:42 PM UTC+6, guich wrote:
     
    > I saw some applications that moves the InputMethod to the top.
     
    I will appreciate very much if you can give me link/name of *at least one*Android application that makes Soft Input Panel to appear from top.
    Thanks in advance.
     
    Regards
    Sarwar Erfan

     

    Ramesh Solanki <rkindia1986@gmail.com> Dec 31 06:41PM +0530 ^
     
    Hi ,
    I need some help regarding Use Of Yahoo API in android
    can any body help me how i can fetch all the contacts from yahoo
    contact list from android
    thanks in advance
     
     
    --
    Thanks & regards
    Ramesh Solanki
    Dignizant technology
    Surat India
    Email: rkindia1986@gmail.com
    rkindia1986@yahoo.co.in

     

    TreKing <trekingapp@gmail.com> Dec 31 07:21AM -0600 ^
     

    > I need some help regarding Use Of Yahoo API in android
     
     
    If the crux of your problem is using the Yahoo API, you should ask your
    question on a forum dedicated to the Yahoo API.
     
    If the crux of your problem is specifically related to Android, please
    elaborate what Android-specific problem you are having.
     
    -------------------------------------------------------------------------------------------------
    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