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

Comments: (0)

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

    harsh chandel <harshdchandel@gmail.com> Jun 30 10:49PM -0700 ^
     
    if you are setting a bitmap in a image view
    you can use getlocationonscreen method
    or getLocationInWindow

     

    Greg Donald <gdonald@gmail.com> Jun 30 10:42PM -0500 ^
     
    > You won't make any money from the ads, but it might be worth having them to
    > convince users to purchase a paid version.
     
    I make lots of money from ads. Greystripe for the win.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    Spooky <spooky130u@gmail.com> Jun 30 08:42PM -0700 ^
     
    Thanks to everyone for the very, very helpful responses. Among
    the most helpful are the posts stating that using ads is a good
    way to annoy (or otherwise push) people enough to buy the paid
    version.
     
    As I've mentioned before, I am a cancer survivor, knocked out
    of the job market by cancer and its long-term aftermath (former
    Sr. Network Engineer, and more recently, Special Operations
    Intelligence), very probably permanently. I seriously need to
    either boost or (if I'm REALLY lucky) replace disability....
     
    Right now, in my first app, I am hoping that people will get a
    very positive feeling while viewing my photography---to the point
    that they'll want to go to my jdgapps site and order photo
    posters. IF this app is to make any money, that is where it will
    happen. So the LAST thing I want to do is annoy anyone with ads.
    This would no doubt impact their view of the entire app, and the
    photography within.... Not good
     
    And posts along those lines were EXTREMELY helpful when it came
    to making the decision, ultimately, to not use ads at all right
    now.
     
    Thanks again,
    --jim
     
    --
    73 DE N5IAL (/4) | DMR: So fsck was originally called
    spooky130u@gmail.com | something else.
    http://jdgapps.com/ | Q: What was it called?
    < Running FreeBSD 7.0 > | DMR: Well, the second letter was different.
    ICBM/Hurricane | -- Dennis M. Ritchie, Usenix, June 1998.
    30.44406N 86.59909W

     

    Greg Donald <gdonald@gmail.com> Jun 30 10:47PM -0500 ^
     
    > I'm about to release my first app, and would like some opinions
    > about adding ads and a $2 donation to remove the
    > ads
     
    When you ask someone to give you money in exchange for something, it's
    not a donation, it's a sale. Taxes still apply for example, same
    same.
     
    I always build two versions of every app I make. The free, ad based
    versions always net more income. I don't ask for donations, I just
    make one version free and one not free.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    Greg Donald <gdonald@gmail.com> Jun 30 10:52PM -0500 ^
     
    > from the clicks if you create an app that gets a 10+ thousand
    > downloads a day.  But they are a good incentive for people to upgrade,
    > in my experience.
     
    Why 10+ thousand? Revenue generated from 5K downloads/day is not zero
    simply because it is not 10+ thousand.
     
    Your thinking reminds me of people who only play the lottery when it
    gets up really high. $10M is more than you have, same as $1M is more
    than you have, so what's the difference? Money is money.
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

    Zsolt Vasvari <zvasvari@gmail.com> Jun 30 09:50PM -0700 ^
     
    Fine, 5000+
     
    Whatever, a large number. My point was that it's not worth it for
    apps getting 100 downloads a day.
     

     

    PPCS <mailtorediff@gmail.com> Jun 30 09:54PM -0700 ^
     
    Hello All,
     
    I am a newbie to Android and I am trying to setup Eclipse with the
    downloaded Android repository.
     
    All the documents/links found in Internet explain setting up Eclipse
    for a new project or importing an existing project.
     
    I have downloaded froyo repo but when I am importing a project,
    SoftKeyboard, into Eclipse, it is giving errors. So, could you plz let
    me know if I am doing anything wrong.
     
    Also, I want to be able to modify the stack (framework and libraries).
    Is it possible to do that from Eclipse?
     
    Thanks,
    PPCS
     
    PS: I am new to Java-based coding.

     

    ragupathi ragupathi <ragummrsa@gmail.com> Jun 30 10:30PM -0700 ^
     
    can u post whats your error message!......
     
     

     

    Spiral123 <cumisnic@gmail.com> Jun 30 10:30PM -0700 ^
     
    yes I got the picasa one working.
     
    looking at your error I would check that you have the correct
    libraries included in your project and I'd also check your namespaces.
     
     

     

    ankit <ankit.agg85@gmail.com> Jun 30 10:19PM -0700 ^
     
    I have a problem that using uri = "content://sms/sim" i am able to
    read all the messages saved in sim card but when i am using same uri
    to add message in sim card i am not able to add using insert query
    contentResolver.insert(Uri.parse(content://sms/sim), values);
     
    Can anybody help me to tell what i am doing wrong or is there any
    other way to add messages in sim card. This would a great help for me.

     

    bhaskar bommala <bhaskar04u@gmail.com> Jul 01 10:44AM +0530 ^
     
    Hi,
     
    I am trying to do facebok integration , i have done all the procedure to do
    this ,but wile i am running i am getting error as "Android Projects can not
    be launched ".
    I have made my project as library project in project properties and added
    facebook android SDK too,still getting eror .
    Can someone please help me about this...If you have the sample of how to do
    facebook integration procedure app please send .
     
    Thanks in Advance..
    Bhaskar

     

    Ashwini Verma <ashwini.kumar.verma@gmail.com> Jul 01 10:44AM +0530 ^
     
    Hi All,
    I need to send/receive file from android device to app server.
    I need to write communication channel for both ends. Web-services is
    one way of communicating using ksoap2, but simpler way is to use HTTP post
    to send file from android device.
    What are the problems I may face if I use HTTP post over web-services and
    vice-versa ?
     
    Thanks & Regards
    Ashwini Verma

     

    ragupathi ragupathi <ragummrsa@gmail.com> Jun 30 10:11PM -0700 ^
     
    hi every one,
     
    im new one for in android. im developing one application. im using
    database if i calling new activity to store the values in database it
    working fine. but when i came back to previous activity it not
    reloaded that previous activity. it will display same as old content.
    i need when im clicking back button it reloaded (refresh) all content
    in the activity.. can any one help me pls..
     
     
     
    advance thaks...

     

    keyeslabs <keyesdav@gmail.com> Jun 30 08:57PM -0700 ^
     
    Struggling with the same thing. Anyone find answers besides "just
    make lots and lots of layouts based on resolution"?
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Jun 30 09:52PM -0700 ^
     
    If you want to scale text, you can certainly draw your text to a
    bitmap and scale that.
     

     

    nageswara rao rajana <nagu.rajana@gmail.com> Jul 01 09:44AM +0530 ^
     
    Hi,
     
    In application i have 4 activities, and also exit in my menu option if
    i click exit in any activity it is destroying the current activity
    and displaying the previous activity. But my requirement is if i click
    exit in activity the application should be killed and should
    display the home. Please help me its urgent.
     
    Thanking you,
    Nagu.

     

    Robert Massaioli <robertmassaioli@gmail.com> Jun 30 09:18PM -0700 ^
     
    I think you are failing to understand (or ignoring) the standard workflow of
    and Android App; you are treating it a little too much like a Desktop
    application. Why do you feel like you do even need to close it forever?

     

    nageswara rao rajana <nagu.rajana@gmail.com> Jul 01 09:57AM +0530 ^
     
    Hi vijay,
     
    If i use this code will all activities will destroy in my application
    or they will run in background.
     
    Intent intent = new Intent(Intent.ACTION_MAIN);
    > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    > startActivity(intent);
     
    > Thanking you,
     
    Nagu.

     

    " νιנαソkum@r" <iamvijayakumar@gmail.com> Jul 01 09:49AM +0530 ^
     
    **try this one
     
    Intent intent = new Intent(Intent.ACTION_MAIN);
    intent.addCategory(Intent.CATEGORY_HOME);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
     
    On Fri, Jul 1, 2011 at 9:44 AM, nageswara rao rajana
    > android-developers+unsubscribe@googlegroups.com
    > For more options, visit this group at
    > http://groups.google.com/group/android-developers?hl=en
     
     
     
     
    --
     
     
     
     
    "Nobody can go back and start a new beginning, but anyone can start today
    and make a new ending"
    -----
    Thanks,
    Regards,
    νιנαソαkum@r M
    BloG:http://iamvijayakumar.blogspot.com/
    Mob.No:09048382536(Kerala)
    Mob.No:09751076707(TN)

     

    CrazzyAndroidians <nithin.ibt@gmail.com> Jun 30 09:59PM -0700 ^
     
    Hi,
     
    I am having a strange issue where the cursor in the EditText is not
    visible but I can type and can do all stuff with the editText. The
    scenario is I am giving background image to the editText and and
    setting the textColor to white. The focus is there, then only we can
    type.
     
    I put cursorVisible="true" and tried with lot of trial and error
    methods to make the cursor visible but of no use. From this I came to
    know, if we can color the cursor other than the default color, it will
    be better.
     
    Anybody else have this issue earlier
     
    Thanks

     

    jotobjects <jotobjects@gmail.com> Jun 30 09:04PM -0700 ^
     
    How can you make two MapViews work independently of each other in the
    same application?
     
    We have a tablet app with a lot of room for a large UI. In this case
    we have a Fragment in an Activity derived from MapActivity where we
    show a kind of thumbnail MapView in one corner. Secondly we have a
    popup derived from MapActivity (a dialog basically) that has a larger
    MapView of a different location. So you can still see the first
    thumbnail MapView in the obscured area behind the dialog with the
    second map.
     
    But when the second MapView pops-up in the foreground, the first
    MapView in the background suddenly changes to show part of the second
    map. Then when you exit the popup and the second map goes away the
    first map is still showing part of the second map instead of what it
    was originally showing.
     
    There is a post about this from several years ago (probably there are
    others), but just checking to see if there is anything more recent in
    terms of how to make two MapViews work independently of each other in
    the same application.
     
    http://groups.google.com/group/android-developers/browse_thread/thread/325d99c481d63502/d3ecca37642aea8a?lnk=gst&q=multiple+mapviews#d3ecca37642aea8a

     

    TreKing <trekingapp@gmail.com> Jun 30 11:55PM -0500 ^
     

    > How can you make two MapViews work independently of each other in the same
    > application?
     
    AFAIK, you can't. There is an apparent one-to-one relationship with MapView
    and MapActivity and there is only one MapActivity allowed per process.
     
    http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapActivity.html
     
    > Only one MapActivity is supported per process. Multiple MapActivities
    > running simultaneously are likely to interfere in unexpected and undesired
    > ways.
     
     
    Looks like you found one of the "unexpected and undesired ways".
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    rohit <rjl013519@gmail.com> Jun 30 09:42PM -0700 ^
     
    Are there any intents for generating touch events on android at a
    particular point on the screen?
     
    I would like to generate touch events on the screen using a background
    service on the screen.
     
     
    Thanks in advance.

     

    Greg Donald <gdonald@gmail.com> Jun 30 10:54PM -0500 ^
     
    > many games, like Spider, and others. This kind of games, uses what kind of
    > library to do the graphical interface, can be a Android Native or a third
    > library ?
     
    I have several card games on the market. The library I use to make
    the gui is the Android SDK.
     
     
     
    --
    Greg Donald
    destiney.com | gregdonald.com

     

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

Comments: (0)

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

    Serdel <adam.lichwierowicz@gmail.com> Jun 30 02:58AM -0700 ^
     
    I have a problem with supporting different screen sizes. My
    application has different drawables for mdpi (320x480), hdpi (480x800)
    or ldpi (240x432). I also have different layout for small, normal-
    notlong, normal-long. Every size scaling or placement features are
    done in dp. However my problem is that I need to precisely place an
    element on the screen so it will perfectly fit to the background. One
    example here is an image that I download and show inside a frame that
    is part of the background. Or I also draw a circle (using drawArc) on
    the top of an imageview object and need to place it precisely to fit a
    'black hole' that is on that image. Because the position is dependent
    on the background I place the elements with parent margins. As I wrote
    I am using dp for that. However If I fit my setting for a 320x480 3"
    screen and then change to 3.1" the elements are slightly misplaced and
    don't fit the background. The same if I have 480x800 3.5" device but
    change to 3.6" - the elements are misplaced slightly but that is
    enaught to look poorly in the design. What can I do about it? I am
    sure there has to be a way to achieve this on any screen size - i.e.
    games must use some kind of that mechanism and they work on any screen
    size. Can any one help?
     
    PS: I have read the 'Supporting Multiple Screens' article from
    dev.android.com, so please don't paste the link. I tried to read it
    carefully but if you think I must have missed sth. than feel free to
    point out where is the answer to my problem on that site.
     
    PS: I have also another question that is a little bit connected: how
    to distinguish 480x800 and 480x854, or 240x400 and 240x432 to provide
    different drawables for them?

     

    Serdel <adam.lichwierowicz@gmail.com> Jun 30 03:37AM -0700 ^
     
    I am sorry but I don't get this one. Dpi is screen density as far as I
    understood... DPI- dots per inch... so the number of pixels on a inch
    area on the screen. So isn't it screen density?
     

     

    Brad Gies <rbgies@gmail.com> Jun 30 02:05PM -0700 ^
     
    You won't make any money from the ads, but it might be worth having them
    to convince users to purchase a paid version.
     
    Sincerely,
     
    Brad Gies
    -----------------------------------------------------------------------
    MaxHOMEValue.com
    Kelowna, British Columbia, Canada
    email: bgies@maxhomevalue.com
    http://maxhomevalue.com http://bgies.com
    -----------------------------------------------------------------------
     
     
    On 30/06/2011 1:38 PM, Spooky wrote:

     

    TreKing <trekingapp@gmail.com> Jun 30 04:11PM -0500 ^
     

    > You won't make any money from the ads, but it might be worth having them to
    > convince users to purchase a paid version.
     
     
    This, though I disagree that you won't make any money from ads. If you wait
    long enough, you'll eventually be able to afford a trip to the dollar store.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Spooky <spooky130u@gmail.com> Jun 30 02:21PM -0700 ^
     
    > On Thu, Jun 30, 2011 at 4:05 PM, Brad Gies <rbg...@gmail.com> wrote:
    > > You won't make any money from the ads, but it might be worth
    > > having them to convince users to purchase a paid version.
     
    And that worries me...the fact that the ads might end up being
    too obtrusive and turn people away....
     
    > This, though I disagree that you won't make any money from ads.
    > If you wait long enough, you'll eventually be able to afford a
    > trip to the dollar store.
     
    LOL :-) But...would I be able to BUY anything at the dollar
    store? Or would that involve another period of waiting long
    enough? :-)
     
    Sounds like my revised initial opinion (revised in that I had
    been thinking ads/$2 donation until about 30 minutes ago) is
    now confirmed.
     
    I'll just release it as a free app tomorrow.
     
    Oh, one more question, and an RTFM with a pointer to the FM
    is what I'm looking for here: I want to add an initial
    screen that only runs the first time (like the user agreement
    I see on most apps) that basically states that the photos in
    the app are all copyrighted by me. Where would I find the docs
    on how to do this?
     
    Thanks,
    --jim
     
    --
    73 DE N5IAL (/4) | DMR: So fsck was originally called
    spooky130u@gmail.com | something else.
    http://jdgapps.com/ | Q: What was it called?
    < Running FreeBSD 7.0 > | DMR: Well, the second letter was different.
    ICBM/Hurricane | -- Dennis M. Ritchie, Usenix, June 1998.
    30.44406N 86.59909W

     

    TreKing <trekingapp@gmail.com> Jun 30 05:07PM -0500 ^
     

    > And that worries me...the fact that the ads might end up being
    > too obtrusive and turn people away....
     
    I doubt ads alone would drive people away. Most free apps have them and
    people are used to it. As long as you have the "pay to get rid of them
    option" it's up to the user to decide if they'd rather deal with them or
    not.
     
    Now if you released an single app with ads and no alternative, that might
    annoy the people that would pay to get rid of them.
     
    IMO, ads are a perfectly good way to annoy people to throw a few bucks your
    way to get rid of them.
     
     
     
    > LOL :-) But...would I be able to BUY anything at the dollar
    > store? Or would that involve another period of waiting long
    > enough? :-)
     
    Nope - you'd waste the money on bus fare to get there. =P
     
     
    > user agreement I see on most apps) that basically states that the photos
    > in the app are all copyrighted by me. Where would I find the docs on how to
    > do this?
     
    IDK, but this is fairly straighforward - pseudocode:
     
    if (!sharepreference.getBoolean("showed eula?", false))
    {
    showEULA();
    sharedpreference.setBoolean("showed eula?", true);
    }
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Spooky <spooky130u@gmail.com> Jun 30 03:29PM -0700 ^
     
    > On Thu, Jun 30, 2011 at 4:21 PM, Spooky <spooky1...@gmail.com> wrote:
     
    > I doubt ads alone would drive people away. Most free apps have
    > them and people are used to it.
     
    True. But then we get back to the "I know exactly zilch about
    how to do this..." and the point that I didn't mention, but
    probably should, that if I have to go back to coding on this app,
    the migraines will no doubt return (same post-cancer stuff I've
    bored people here about too many times already). I think I'll
    save that for new apps. :-)
     
    > showEULA();
    > sharedpreference.setBoolean("showed eula?", true);
     
    > }
     
    Ok, thanks ... that'll work, too. :-)
     
    I also added it to the usage/about text file in assets.
     
    I can't release it until tomorrow (only have about $3
    of the required $25 sign-up fee left this month, so it
    has to come out of next month's disability check), so
    I'll deal with the final details tomorrow, along with
    getting the app signed, obfuscated (if I need to do
    that with a free app---I'll read up on that tomorrow),
    on the market, etc.
     
    Then I'll post over in the new app announcements group
    in the Android Forums to let people know it's out there.
     
    Thanks,
    --jim
     
    --
    73 DE N5IAL (/4) | DMR: So fsck was originally called
    spooky130u@gmail.com | something else.
    http://jdgapps.com/ | Q: What was it called?
    < Running FreeBSD 7.0 > | DMR: Well, the second letter was different.
    ICBM/Hurricane | -- Dennis M. Ritchie, Usenix, June 1998.
    30.44406N 86.59909W

     

    Zsolt Vasvari <zvasvari@gmail.com> Jun 30 07:48PM -0700 ^
     
    I'd say the apps are only worth it as a money-making venture purely
    from the clicks if you create an app that gets a 10+ thousand
    downloads a day. But they are a good incentive for people to upgrade,
    in my experience.
     
     

     

    Neil <wanhui@gmail.com> Jun 30 07:03PM -0700 ^
     
    Thanks Marcin. Do you mean I lock the activity orientation and rotate
    the views by myself? We also tried this but the problem is we can not
    rotate the Honeycomb system bar which is unacceptable.
     
    Or do you mean after the activity rotation, I rotate my SurfaceView
    back to the desired orientation? This also does not seem to work
    because I do a directly memery copy from my native buffer to the
    native window of the SurfaceView. So once the view is rotated by the
    system, my buffer does not match it and setting the rotation simply
    rotates the wrong data.
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Jun 30 07:45PM -0700 ^
     
    Yes. I do this all the time.
     
    Let's say you have a vew "A"
     
    layout:
     
    Create a A-port layout, which is just a copy of the portrait oriented
    A
    Create a new A layout that <include> A-port
     
    layout-land:
     
    Create a A-land layout, which is just a copy of landscape oriented A
    Create a new A layout that <include> A-land
     
    layout-xlarge-v11 (or just layout-xlarge):
     
    Create a new A layout that <include> A-land. It's a copy of the A
    from layout-land
     
     
    So, with this setup, on Honeycomb (or any XLARGE device, depending on
    the folder you used), the layout used will always be layout-land. On
    other devices, it will use the appropriately oriented layout.
     
     
     
     
     
     

     

    TreKing <trekingapp@gmail.com> Jun 30 05:16PM -0500 ^
     
    On Thu, Jun 30, 2011 at 4:46 PM, Felix Garcia Lainez <
     
    > On this method i iterate over an array of GeoPoints and using a canvas y
    > connect all points.
     
    What's your actual code?
     
     
    > It works fine more or less, but i am having issues when drawing long routes
    > with many points.
     
    Define "long routes" and "many points".
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Felix Garcia Lainez <fgarcialainez@gmail.com> Jun 30 03:47PM -0700 ^
     
    I use this code:
     
    public class PolylineOverlay extends Overlay
    {
    private ArrayList<GeoPoint> polyline; // Contains set of points to be
    connected.
    private Paint pathPaint = null; // Paint tool that is used to draw
    on the map canvas.
     
    public PolylineOverlay(ArrayList<GeoPoint> polyline, int color)
    {
    this.polyline = new ArrayList<GeoPoint>(polyline);
     
    this.pathPaint = new Paint();
    this.pathPaint.setAntiAlias(true);
    this.pathPaint.setStrokeWidth(4);
    this.pathPaint.setColor(color);
    this.pathPaint.setAlpha(120);
    this.pathPaint.setStyle(Paint.Style.STROKE);
    }
     
    @Override
    public void draw(Canvas canvas, MapView mView, boolean shadow)
    {
    if(!shadow)
    {
    if(polyline != null)
    {
    Projection projection = mView.getProjection();
    Path routePath = new Path();
     
    Point prevPoint = null;
     
    //Add each point to the routePath.
    for(GeoPoint inPoint : polyline)
    {
    Point outPoint = null;
    outPoint = projection.toPixels(inPoint, outPoint);
     
    if(polyline.indexOf(inPoint) == 0)
    routePath.moveTo(outPoint.x, outPoint.y);
    else
    {
    if(isOnePointVisible(prevPoint, outPoint, mView))
    {
    routePath.moveTo(prevPoint.x, prevPoint.y);
    routePath.lineTo(outPoint.x, outPoint.y);
    }
    }
     
    prevPoint = outPoint;
    }
     
    canvas.drawPath(routePath, pathPaint);
    }
    }
     
    super.draw(canvas, mView, shadow);
    }
     
    private boolean isOnePointVisible(Point point, Point point2,
    MapView mapView)
    {
    return (point.x > 0 && point.x < mapView.getWidth() && point.y >
    0 && point.y < mapView.getHeight()) ||
    (point2.x > 0 && point2.x < mapView.getWidth() && point2.y > 0
    && point2.y < mapView.getHeight());
    }
     
    @Override
    public boolean onTap(GeoPoint p, MapView mapView) {
    // Handle tapping on the overlay here
    return false;
    }
    }
     
    About the size with 300 or 400 GeoPoints i am already having
    problems... The method isOnePointVisible is an optimization i did in
    order to try to improve performance (seems to work fine).
     
    Thanks!
     

     

    TreKing <trekingapp@gmail.com> Jun 30 06:39PM -0500 ^
     
    On Thu, Jun 30, 2011 at 5:47 PM, Felix Garcia Lainez <
     
    > About the size with 300 or 400 GeoPoints i am already having problems...
    > The method isOnePointVisible is an optimization i did in order to try to
    > improve performance (seems to work fine).
     
    So I have a very similar overlay to draw routes, with no optimization, and I
    just loaded 7 or 8 of them with no apparent slow down on my Nexus One.
     
    Here are some thoughts:
    - What device are you running on?
    - Are you debugging or is this in release mode?
    - Do you need anti-aliasing? I think that might slow it down.
    - Do you need alpha? That would definitely slow down drawing. Set that to
    solid and see if if helps.
     
    If none of that helps you're going to have to profile your code to get a
    clear picture of what's taking so long.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Felix Garcia Lainez <fgarcialainez@gmail.com> Jun 30 02:46PM -0700 ^
     
    Hello,
     
    The case is that i want to show a route on a MapView. Something simple
    at first sight, simply i created a class that extends overlay and
    implement draw method. On this method i iterate over an array of
    GeoPoints and using a canvas y connect all points. It works fine more
    or less, but i am having issues when drawing long routes with many
    points. The problem is that application is very slow, and sometimes
    MapActivity is closed simply doing a zoom in or zoom out on the map
    with the route drawn...
     
    My question is how to improve performance on this situation....
     
    Thanks!

     

    Jiabin Qin <jiabinq@gmail.com> Jun 30 05:57PM -0700 ^
     
    I this in the onCreate(), I need to first
    setContentView(R.layout.main); to take input from user, but what shall
    I do after that.
    I have a button which I think I can use setOnClickListener() to switch
    to another view onclick, I think that what most apps do like in the
    game, click on the button start, and the game will start.
     
    How shall I achieve?
    Thanks in advance for your kind help!
     
    Jiabin
    singapore

     

    Zsolt Vasvari <zvasvari@gmail.com> Jun 30 06:16PM -0700 ^
     
    Hey, I am in Singapore, too. What company do you work for? Maybe
    they are looking for a competent developer.
     

     

    Guilherme Lunhani <gcravista@gmail.com> Jun 30 07:14PM -0300 ^
     
    Hi all!
     
    I have a little ListView in custom ListActivity with following shape in
    onCreate():
     
    [ListElement 0]:
    [TextView: String a]
    [EditView: String b]
    [ListElement 1]:
    [TextView: String x]
    [EditView: String y]
     
    When perform a click in any of these EditViews (which will have listeners),
    something strange happens:
     
    [ListElement 1]:
    [TextView: String x]
    [EditView: String y]
    [ListElement 0]:
    [TextView: String a]
    [EditView: String b]
     
    but when BACK button of emulator is pressed, the original layout back;
     
    Any Ideas for this behaviour?
     
    Below, i put the code of overrided method in my custom ListAdapter
    (getView()) and the ListActivity
    launched
     
    ListActivity:
     
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     
    //setting bundles to edit new IP and Port
    Bundle bundle =
    getIntent().getExtras()!=null?getIntent().getExtras():null;
     
    setIp(!(bundle.equals(null))?bundle.getString(StartActivity.MY_IP):null);
     
    setPort(!(bundle.equals(null))?bundle.getInt(StartActivity.MY_PORT):null);
     
    //setting list
    setContentView(R.layout.list_layout);
     
    //now set Edit fields
    try {
    setListAdapter(new OSCLayoutAdapter(this,
    getViewWithResources()));
    } catch (Exception e) {
    Log.d(TAG, "cannot possible to set List of Edit Fields ", e);
    }
    }
     
    Overrided method in ListAdapter:
     
    @Override
    public View getView(int position, View convertView, ViewGroup
    parent) {
    View v = convertView;
     
    if(v==null){
    LayoutInflater inflater = (LayoutInflater)
    getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    v = inflater.inflate(R.layout.basic_edit_layout, null);
    TagsHolder tag = new TagsHolder();
    ViewHolder views = new ViewHolder();
     
    Log.d(TAG, "Configuring View "+v.toString());
    Log.w(TAG, " Setting View Tags ");
    switch (getItemViewType(position)) {
    case OSCLayoutOrder.EDIT_IP:
    Log.w(TAG, " Setting sub title tag");
    tag.text = "Set new IP";
    Log.w(TAG, " Setting OSC value tag");
    tag.oscContent = OSCConfigActivity.getIP();
    break;
    case OSCLayoutOrder.EDIT_PORT:
    Log.w(TAG, " Setting sub title tag");
    tag.text = "Set new Port";
    Log.w(TAG, " Setting OSC value tag");
    tag.oscContent =
    String.valueOf(OSCConfigActivity.getPort());
    break;
    }
     
    v.setTag(tag);
     
    try{
     
    Log.i(TAG, " Tags: "+tag.text+", "+tag.oscContent);
     
    //TODO populate Edit fields according tags
    views.textView = (TextView)
    v.findViewById(R.id.textView);
    views.editText = (EditText)
    v.findViewById(R.id.editText);
     
    Log.d(TAG, "Setting children views according tags...");
    views.textView.setText(tag.text);
    views.editText.setText(tag.oscContent);
    views.editText.setTextColor(Color.DKGRAY);
     
    Log.d(TAG, "Setting children listeners...");
    }
    catch (Exception e) {
    Log.e(TAG, "not possible to populate the View");
    return v;
    }
    }
    return v;
    }
    Thanks!

     

    Karthikeyan R <dba.karthik@gmail.com> Jun 30 02:38PM -0700 ^
     
    Hi,
     
    I am sure there is an option to do it.
     
    But its not directly visible on api (May be we should use combination
    of events to achieve this)
     
    Any help in achieving this greatly appreciated.
     
    Thanks
    --Karthik
     
     
     
    On Jun 30, 3:40 pm, Ganesh Vadlakonda <ganesh.v.ko...@gmail.com>
    wrote:

     

    nadam <adam@anyro.se> Jun 30 02:33PM -0700 ^
     
    Didn't work. btn_default_selected/pressed are not public. Probably a
    good reason for that.
    style="@android:style/Widget.Button.Toggle" works though.
     

     

    Sergio Michels <sergiomichelss@gmail.com> Jun 30 06:05PM -0300 ^
     
    Hi,
     
    does anyone have the google-api-java-client-samples (for android) working?
     
    http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs
     
     
    I tried "picasa-atom" that gave me an exception
     
    06-30 18:02:44.419: ERROR/AndroidRuntime(876):
    java.lang.NoClassDefFoundError:
    com.google.api.client.googleapis.GoogleTransport
     
    And "calendar-v2"
     
    06-30 18:07:08.950: ERROR/AndroidRuntime(929):
    java.lang.NoClassDefFoundError: com.google.common.collect.Lists
     
    guava-r09 is in the Maven dependencies.
     
     
    I just download sources in maven though m2e. I need to do something more
    with Maven?
     
    Regards,
    Sérgio

     

    Mark Murphy <mmurphy@commonsware.com> Jun 30 11:53AM -0400 ^
     
    > I'm now wondering if Fragments are the right way to go. According to
    > the design I have, every tab has different fragments, none of which
    > can be reused.
     
    Fragments are primarily designed for reuse between different layout
    structures for phone vs. tablet vs. TV.
     
    > I would also like this app to work on earlier versions. I'm aware that
    > Fragments are backward compatible till v4.
     
    Yes.
     
    > I'm also aware that there
    > are extensions for the ActionBar for pre-3.0 versions.
     
    Only third party ones, and none that support tabs AFAIK. If you see
    one that supports Honeycomb-style tabs, let me know.
     
    > My question is:
    > Does it make sense to go with Fragments considering my design?
     
    If you plan on supporting phones and tablets, unless you have a strong
    reason not to, definitely use fragments.
     
    Now, whether the contents of any given tab are represented by 1, 2,
    42, or 1337 fragments depends on how that content will be organized on
    the phone.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version
    1.9.9 Available!

     

 Topic: TTF File
    bob <bob@coolgroups.com> Jun 30 09:42AM -0700 ^
     
    What is the easiest way to load a custom font from a TTF file and draw
    a string on a Canvas?

     

    John-Z80 <gabi.inside@gmail.com> Jun 30 09:11AM -0700 ^
     
    I've try to copy a very small and easy sample of using MediaPlayer
    (for example in http://developer.android.com/guide/topics/media/index.html)
    but I dont know the reason I get an IllegalStateException.
     
    Code can be sumarized as:
    MediaPlayer mp = MediaPlayer.create(myclass_name_here.this,
    R.raw.clip);
    boolean error=true;
    try {
    mp.prepare();
    error=false;
    } catch (IOException ioe) {
    Log.w("Player","Error: "+ioe.getMessage());
    }
    if(!error) {
    mp.start();
    }
     
    I have a raw directory under res, it has the "clip.mp3" file, I've
    check the file is ok, so why I get a java.lang.IllegalStateException
    in mp.prepare(); I've tested in 2 different android phones.
     
    Best regards.

     

    Mark Murphy <mmurphy@commonsware.com> Jun 30 11:44AM -0400 ^
     
    On Thu, Jun 30, 2011 at 11:23 AM, naveen kumar
    > I am able ndk interface with android code.
     
    > please some one help me how to integrate codec interface with video
    > and api.
     
    For NDK questions, please use the [android-ndk] Google Group.
     
    > i am not getting any link for codec interface.
     
    I doubt that there is one, which is why you should talk to the fine
    people at the [android-ndk] Google Group.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version
    1.9.9 Available!

     

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

Comments: (0)

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

    Sergio Michels <sergiomichelss@gmail.com> Jun 30 05:40PM -0300 ^
     
    Yep, just recreate the emulator (but still slow).
     
    Thanks,
    Sérgio
     
     

     

    Spooky <spooky130u@gmail.com> Jun 30 01:38PM -0700 ^
     
    I'm about to release my first app, and would like some opinions
    about adding ads and a $2 donation to remove the
    ads...specifically, is it worth the effort (keeping in mind that
    I currently know exactly NOTHING about how to do this)....
     
    My app is a simple photo Gallery, showing, in this case, a set
    (one of two, assuming this one isn't a flop) of photos from
    Point Lobos State Preserve in California. In the app, I also
    provide information (via the menu button---and ONLY if the user
    CHOOSES to select the option to view that information) on where
    and how to order photo posters from this set.
     
    Here's the question: would adding ads, and a $2 donation to
    remove said ads, be likely to be worth the effort? Or, could
    doing so actually work against me by turning people away from
    the app?
     
    Any comments/suggestions would be greatly appreciated...even
    if only a simple "forget the ads" or "yeah, do the ads" response.
    :-)
     
    Thanks,
    --jim
     
    PS: If anyone wants to preview the photo set that will be in
    the app, it's online at jdgapps.com. The site will
    eventually serve for both my photography and support for
    Android apps...but it's currently only the former, and
    then currently only for this one photo set....
     
    --
    73 DE N5IAL (/4) | DMR: So fsck was originally called
    spooky130u@gmail.com | something else.
    http://jdgapps.com/ | Q: What was it called?
    < Running FreeBSD 7.0 > | DMR: Well, the second letter was different.
    ICBM/Hurricane | -- Dennis M. Ritchie, Usenix, June 1998.
    30.44406N 86.59909W

     

    Sang Shin <sangshinpassion@gmail.com> Jun 30 04:35PM -0400 ^
     
    Android Programming June 30th, 2011 Webinar - "2D Graphics"
     
    Join us for a Webinar on June 30
     
    <https://www3.gotomeeting.com/register/549215414>
     
    *Space is limited.*
    Reserve your Webinar seat now at:
    https://www3.gotomeeting.com/register/549215414
     
    In this Webinar, we are going to cover "2D Graphics"
     
    *Title:* Android Programming June 30th, 2011 Webinar - "2D Graphics"
    *Date:* Thursday, June 30, 2011
    *Time:* 5:00 PM - 6:00 PM EDT
     
    After registering you will receive a confirmation email containing
    information about joining the Webinar.
     
    *System Requirements*
    PC-based attendees
    Required: Windows® 7, Vista, XP or 2003 Server
     
    Macintosh®-based attendees
    Required: Mac OS® X 10.5 or newer
     

     
     
     
     
    --
    -------------------------------------------------------------------
    Sang Shin, sangshinpassion@gmail.com
    Founder and Chief Instructor of JavaPassion.com
    http://javapassion.com/portal/instructors/sang-shin-schedule (Bio)
    http://www.linkedin.com/in/javapassion (Linkedin)
    @javapassion (Tweeter)
    Life is worth living... with Passion!
    ----------------------------------------------------------------------

     

    Mark Murphy <mmurphy@commonsware.com> Jun 30 09:42AM -0400 ^
     
    > of the task. So I could set a default one, but what happens if I set
    > it twice? Does the second overwrite the first, or will I end up with
    > two alarms?
     
    If the two Intents in the PendingIntents are equivalent, the second
    should overwrite the first, or you could explicitly cancel the first.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version
    1.9.9 Available!

     

    Kostya Vasilyev <kmansoft@gmail.com> Jun 30 05:51PM +0400 ^
     
    Yes, as long as the PendingIntent objects are the same, the alarm will
    be overwritten.
     
    30.06.2011 17:24, Neilz пишет:
     
    --
    Kostya Vasilyev

     

    Suraj Gopalakrishnan <surajjmr@gmail.com> Jun 30 06:05PM +0530 ^
     
    When App-A bound to the remote service, it hit
    1. OnCreate()
    2.OnBind()
    methods
     
    When App-B tried to connect to the remote service, there were no hits.
     
     
    --
    Best Regards,
    Suraj Gopalakrishnan

     

    Suraj Gopalakrishnan <surajjmr@gmail.com> Jun 30 07:25PM +0530 ^
     
    @Kostya
     
    I did define my own interface with AIDL.
     
    But i did not use the binder object returned by the OnBind() method (as it
    was not necessary), since i did not want to use any methods from the remote
    service.
     
    I just want to know whether 2 apps can be bound to a single remote service
     
     
     
    --
    Best Regards,
    Suraj Gopalakrishnan

     

    Indicator Veritatis <mej1960@yahoo.com> Jun 30 02:50AM -0700 ^
     
    What do you want this for? Are you aware of the restrictions on route
    display in the agreement you agreed to to get the Google Maps API key?
    Real-time route display is outright forbidden, and any other
    calculation and display of routes requires reporting to Google.
     
    On Jun 27, 9:34 am, "Md.Fazla Rabbi OPU" <md.fazlara...@gmail.com>
    wrote:

     

    Android K <interconnecttest@gmail.com> Jun 30 03:45PM -0400 ^
     
    Hi,
    I was wondering if there is a way to get a group name and all the contacts -
    name and number in that group. I figured out below how to loop through the
    groups but I have been unable to tie this to contact names and number.
     
    Any help is appreciated.
     
     
    Thanks
     
     
    *final* String[] GROUP_PROJECTION = *new* String[] {
    ContactsContract.Groups.*_ID*, ContactsContract.Groups.*TITLE* };
     
    Cursor groupCursor = managedQuery(ContactsContract.Groups.*CONTENT_URI*,
    GROUP_PROJECTION, *null*, *null*, ContactsContract.Groups.*TITLE* + " ASC");
     
    *if*(groupCursor.moveToFirst()) {
     
    *final* *int* groupIDColumnIndex =
    groupCursor.getColumnIndex(ContactsContract.Groups.*_ID*);
     
    *final* *int* groupTitleColumnIndex =
    groupCursor.getColumnIndex(ContactsContract.Groups.*TITLE*);
     
    *while*(!groupCursor.isAfterLast()) {
     
    String *groupID* = groupCursor.getString(groupIDColumnIndex);
     
    *final* String *name* = groupCursor.getString(groupTitleColumnIndex);
     
    }
     
    groupCursor.close();

     

    Diogo Salaberri <caxixaxi@gmail.com> Jun 30 04:42PM -0300 ^
     
    Hello people..
     
    I was researching some way to developer a Card Game for Android OS. I saw
    many games, like Spider, and others. This kind of games, uses what kind of
    library to do the graphical interface, can be a Android Native or a third
    library ?
     
    In this mail I search for some hints, I hope that you can help me.
     
    Bye, thanks.
     
    --
    Atenciosamente;
    Diogo Bonoto Salaberri
    Bacharel em Ciência da Computação - UFPel

     

    Neilz <neilhornsey@gmail.com> Jun 30 11:21AM -0700 ^
     
    I have this situation quite often, and simply stick to three
    ImageButtons. It means you need pressed and static states for each
    button, controlled by an xml selector as the drawable, and of course
    you have to manage the states yourself, i.e. set the pressed button as
    'pressed' and the other two as static.
     
    If you go down this route, manage the states in a runnable which fires
    about 100millis after the press, so that the default button 'up'
    action doesn't undo your work.
     

     

    nadam <adam@anyro.se> Jun 30 12:09PM -0700 ^
     
    I've done something like that before, but using styled background of
    radiobuttons instead of ImgageButton. Then the state is handled
    automatically (using state checked as well as pressed).
     

     

    nadam <adam@anyro.se> Jun 30 12:24PM -0700 ^
     
    Right, was just hoping for something to give a native look. I guess I
    could style with btn_default_selected and/or btn_default_pressed, but
    I'm not sure if that would be the best option (look good on all
    devices).
     

     

 Topic: Youtube Logo
    JCC <banriou@gmail.com> Jun 30 09:15AM -0700 ^
     
    Fine, then mind giving me a link to a place where I could ask for
    this?
     

     

    Zsombor <scythe213@gmail.com> Jun 30 11:36AM -0700 ^
     
    Hey,
     
    In the Market app, when an application is selected, the TextView
    containing the description of the app. only show the first 3-4 lines
    of the full text. Clicking the 'more' button animates this view, so
    the full text is visible. And this TextView is in a ListView (I
    guess). How can I achieve this in my application, what property should
    be animated in this case on the TextView?
     
    It's quite easy to achieve this without animation, by modifying the
    TextView's maxLines property. But the animation in the Market is too
    smooth to be done simply by animating this property with the new
    animator framework. Any ideas?
     
    Thanks

     

    Mark Murphy <mmurphy@commonsware.com> Jun 30 02:43PM -0400 ^
     
    I don't think that's an animation on the TextView. I think the whole
    TextView is there but is hidden by the "bottom half" of the Market
    listing, and it is that "bottom half" that is performing a
    TranslateAnimation down the screen.
     
    (based on eyeballing the Market app on a Nexus One with Android 2.3.4)
     
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version
    1.9.9 Available!

     

    Mark Murphy <mmurphy@commonsware.com> Jun 30 09:02AM -0400 ^
     

    > Please suggest me how can I accomplish this task.
     
    > The main question is how to notify the broad cast reciver that service
    > has completed its task?
     
    You don't.
     
    Your BroadcastReceiver calls startService() on the Service. Your
    Service does the work. It does not "notify the completion of service
    to the broad cast receiver", because that BroadcastReceiver object has
    been gone for quite a long time. Rather, the Service does *all of the
    work*, including whatever you would expect the BroadcastReceiver to
    have done after "notify the completion of service".
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _The Busy Coder's Guide to *Advanced* Android Development_ Version
    1.9.9 Available!

     

    Kostya Vasilyev <kmansoft@gmail.com> Jun 30 02:24PM +0400 ^
     
    Adam,
     
    For your specific requirements, aligning UI elements with a background
    image, you may be better off writing your own ViewGroup subclass, which
    would combine in one place two pieces:
     
    - The logic to resize the background image based on actual screen
    (rather, view) dimensions;
    - The logic to position the views, taking in consideration how the image
    is scaled.
     
    As for loading the most appropriate image for a given screen size, you
    may want to place all your images under drawable-nodpi, using some sort
    of naming scheme, and do the matching yourself.
     
    -- Kostya
     
    30.06.2011 13:58, Serdel пишет:
     
    --
    Kostya Vasilyev

     

    Adam Ratana <adam.ratana@gmail.com> Jun 30 10:22AM -0700 ^
     
    [{x,y}, r, theta] + [SOHCAHTOA] = {x', y'}?

     

    vikram murari <vicky1.sureit@gmail.com> Jun 30 06:43AM -0800 ^
     
    ** **
     
    ** **
     
    Hi,
    Greeting's
     
    Reply to mvikram@sureitinc.com and vik.sureit@gmail.com.****
     
    ** **
     
    *Title: **SAP ABAP Expert*
     
    *Location: **Tacoma, WA*
     
    *Duration: **Must be on site 07/05/11 to 08/05/11*
     
    Chosen candidate will require a standard background check****
     
    * *
     
    *Job Responsibilities:
     
    *
     
    Resolve errors that have occurred during the upgrade****
     
    Assist in Unit and integration testing. ****
     
    Skill Sets Required:****
     
    SAP ABAP with Utilities experience ****
     
    ** **
     
    *Additional Notes:*
     
    ** **
     
    Candidate should be able to configure changes, if any due to upgrade, on the
    upgraded ECC 6.0 environment and then provide help in resolving issues
    during the integration testing phase. The consultant should be proficient in
    SAP FICO and FICA module with specific upgrade experience to ECC 6.0 so that
    he knows what configuration changes are affected due to upgrade. Candidate
    preferred to be based out of Seattle (Washington) area to avoid travel and
    expenses or on the West Coast.****
     
    ** **
     
    * If interested please fill the following details:***
     
     
    Full Name:****
     
    First Name:****
     
    Last Name:
    Phone Number:
    Home Number:
    Email ID:
    Availability:
    Current Location:
    Visa Status:
    Relocation:
    Face to face:
    Last 4digits of SSN#:
    DOB:
    Employer details:****
     
    ** **
     
    ****
     
    ** **
     
    ** **
     
    Thanks & Regards,****
     
    Vikram m**
     
    [image: cid:image001.png@01CAF18B.E1179E10]****
     
    *SureIT Solutions Inc.
    *1801 W Queen Creek RD | Suite # 3 | Chandler | AZ 85248
    Phone:602-490-0106 FAX: 866-322-0121
    *Email: mvikram@sureitinc.com <ashok@sureitinc.com>*
     
    vik.sureit@gmail.com**
     
    http:// www.sureitinc.com****
     
    gtalk: vik.sureit****
     
    Yahoo IM: vikrammurari044****
     
    ** **
     
    [image: sws]****
     
    ________________________________________________________________________________________________________________________
    **
     
    We offer genuine opportunities and try our best to provide legitimate
    feedback in a timely manner. But the Clients take their own time reviewing
    resumes and scheduling interviews. Hiring's have slowed down in the recent
    past and therefore please be tolerant while we go through the hoops.
    Please send only those candidates who have all the must have experiences
    and can provide verifiable references from last 1-2 years of projects done
    in US. ****
     
    *Please respond with only your pre-existing W2/H1 employees. We reserve the
    right to work directly with all others.
    *(The contents of this e-mail are confidential to the ordinary user of the
    e-mail address to which it was addressed and may also be privileged. If the
    reader of this message is not the intended recipient, any dissemination,
    distribution or copying of the information contained in this Internet
    message is strictly prohibited. If you have received this e-mail in error
    please notify us by telephone or e-mail the sender by replying to this
    message, and then delete the e-mail and other copies of it from your
    computer system. Thank you. We believe this email to be virus free but do
    not warrant that this is the case and we will not accept liability for any
    losses arising from any virus being transmitted unintentionally by us.)****
     
    ______________________________________________________________________________________________________________________
    ****
     
    ** **
     
    ** **

     

    dashman <erjdriver@gmail.com> Jun 30 09:17AM -0700 ^
     
    From my Android app, I access my server using
    https and using java classes (e.g. HttpURLConnection)
     
    Sometimes, I get - but not always and maybe only
    on HTC phones.
     
    " javax.net.ssl.SSLException: Not trusted server certificate"
     
    do a reboot and then works.
     
    but it happens again later on.
     
    the certificate is issued by RapidSSL.
     
    from my desktop browser - FF, IE and Chrome - no complaints.
     
    any help?

     

    Yip <yvp2011@gmail.com> Jun 30 08:49AM -0700 ^
     
    I'm now wondering if Fragments are the right way to go. According to
    the design I have, every tab has different fragments, none of which
    can be reused.
     
    I would also like this app to work on earlier versions. I'm aware that
    Fragments are backward compatible till v4. I'm also aware that there
    are extensions for the ActionBar for pre-3.0 versions. My question is:
    Does it make sense to go with Fragments considering my design?
     
    Thanks in advance...
     

     

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