Re: [android-developers] Use standard system browser for OAuth / Keep browser out of history

2011-04-11 Thread Tomas Prochazka
For example possibility to close browser and go back to preview task would 
be great. But now is to late. It would be usable after few year.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Invalidating a Canvas view that is part of setContentView()

2011-04-11 Thread Enrique López Mañas
Hello Kostya,

Thanks for the response. However, I don't know how to use the method
findViewById in here:

View myView = (View)findViewById(MyView);

What I understand is that findViewById () method should receive the id
of an attribute. But MyView is just a class, it has not been
instanciated, we just set the content in the main class FingerPrint by
using setContentView(new MyView(this));

Any idea on how to use the findViewById to access MyView?

Thanks in advance.

On 7 Apr., 13:33, Kostya Vasilyev kmans...@gmail.com wrote:
 Keep a reference to MyView in the activity, just like you would normally
 do with:

 findViewById(... buttonSomethingOrOther ... )

 Add methods to MyView to do what you need.

 Call those methods as necessary, just like you can call
 mButton.setEnabled(false); or whatever.

 -- Kostya

 07.04.2011 15:26, Enrique López Mañas пишет:



  Hello,

  Using the example from the API FingerPaint as a basis, I have
  something similar to the following structure:

  public class FingerPaint extends GraphicsActivity
           implements ColorPickerDialog.OnColorChangedListener {

             [...]

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(new MyView(this));
      [...]
  }

  The class that has been set as contentView (MyView) contains a Canvas:

       public class MyView extends View {
          [..]
           public Canvas  mCanvas;
          [..]
  }

  How could I access this mCanvas in order to redraw it when an external
  event is triggered (i.e., clicking a button from the menu). Obviously
  I can access them from FingerPaint, since the attributes from MyView
  are not inherited, but I can't neither access MyView directly, since
  it is absorbed by the class FingerPrint.

  Any idea, before redesigning the classes?

  Thanks!

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Invalidating a Canvas view that is part of setContentView()

2011-04-11 Thread Enrique López Mañas
Hello Kostya,

Thanks for the response. However, I don't know how to use the method
findViewById in here:

View myView = (View)findViewById(MyView);

What I understand is that findViewById () method should receive the id
of an attribute. But MyView is just a class, it has not been
instanciated, we just set the content in the main class FingerPrint by
using setContentView(new MyView(this));

Any idea on how to use the findViewById to access MyView?

Thanks in advance.

On 7 Apr., 13:33, Kostya Vasilyev kmans...@gmail.com wrote:
 Keep a reference to MyView in the activity, just like you would normally
 do with:

 findViewById(... buttonSomethingOrOther ... )

 Add methods to MyView to do what you need.

 Call those methods as necessary, just like you can call
 mButton.setEnabled(false); or whatever.

 -- Kostya

 07.04.2011 15:26, Enrique López Mañas пишет:



  Hello,

  Using the example from the API FingerPaint as a basis, I have
  something similar to the following structure:

  public class FingerPaint extends GraphicsActivity
           implements ColorPickerDialog.OnColorChangedListener {

             [...]

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(new MyView(this));
      [...]
  }

  The class that has been set as contentView (MyView) contains a Canvas:

       public class MyView extends View {
          [..]
           public Canvas  mCanvas;
          [..]
  }

  How could I access this mCanvas in order to redraw it when an external
  event is triggered (i.e., clicking a button from the menu). Obviously
  I can access them from FingerPaint, since the attributes from MyView
  are not inherited, but I can't neither access MyView directly, since
  it is absorbed by the class FingerPrint.

  Any idea, before redesigning the classes?

  Thanks!

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ImageView on SlidingDrawer not responding to click event

2011-04-11 Thread Jason
Hi folks,

I have an ImageView contained in a TableLayout within the handle
component of a SlidingDrawer and I'm trying to capture the click event
on the ImageView but it doesn't seem to be fired.

Obviously the SlidingDrawer is capturing the event to handle it
according to the rules governing its behavior, but I would have
expected the event to be populated down to all child views.. which it
doesn't seem to be.

I have a structure somewhat like this:

SlidingDrawer
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/slider
android:layout_width=fill_parent
android:layout_height=wrap_content
android:handle=@+id/panelHandle
android:content=@+id/panelContent
android:allowSingleTap=false
TableLayout
android:layout_width=fill_parent
android:layout_height=36dp
android:stretchColumns=1
android:id=@+id/panelHandle
TableRow
ImageView
android:id=@+id/slider_refresh
android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@drawable/refresh
android:paddingRight=8dp/
/TableRow
/TableLayout

LinearLayout
android:id=@+id/panelContent
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
ListView
android:id=@+id/section_list
android:layout_width=fill_parent
android:layout_height=fill_parent
android:divider=#CC
android:cacheColorHint=#
android:background=@color/white
android:dividerHeight=1px /
/LinearLayout
/SlidingDrawer

I'm wanting to capture the onClick event on the slider_refresh
view:

View sliderRefresh = findViewById(R.id.slider_refresh);
sliderRefresh.bringToFront();
sliderRefresh.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
LogSystem.getLogger().info(Refresh clicked);

}
});

But the event doesn't seem to be populated onto this view.

Anyone got any clue as to how I can capture this event?

Thanks

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


[android-developers] PDF view in android

2011-04-11 Thread koushik
Hi All,

 I've able to show pdf using Vudroid library after download the pdf
from a link in android. But i need to show pdf as page by page with
background download rest pages. Right now my program download the
whole pdf and then showing in android app. Is it possible to show pdf
first come pages(page 1 or 2) after completion of download and rest
will download in background service.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] help for encryption of sd card storage?

2011-04-11 Thread Hitendrasinh Gohil
hi,

I am downloading file from server and write this file to  sd card.now
i want to encrypt this file so that only my application can access
this file.

i) if i can encrypt the file path only that can be access on
decrypting it?

which is the best encryption algorithem i can use for?


thankx

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: PDF view in android

2011-04-11 Thread Zsolt Vasvari
This is not an Adroid question.  Sure, you can download in the
background, but whether you can display a partially downloaded file
depends on the file format, in this case, PDF.I have no idea.


On Apr 11, 2:38 pm, koushik visit.kous...@gmail.com wrote:
 Hi All,

  I've able to show pdf using Vudroid library after download the pdf
 from a link in android. But i need to show pdf as page by page with
 background download rest pages. Right now my program download the
 whole pdf and then showing in android app. Is it possible to show pdf
 first come pages(page 1 or 2) after completion of download and rest
 will download in background service.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: My first app

2011-04-11 Thread Sven
It seems you started your app from inside the main.xml. then the
main.out.xml is generated. usualy you have to delete this file, then
go into a java source and start app from there. it have something to
do with the eclipse run settings. i hope this helps and was your prob

On Apr 10, 11:31 pm, TreKing treking...@gmail.com wrote:
 On Fri, Apr 8, 2011 at 10:29 PM, anik rebellion.a...@gmail.com wrote:
  Please see if anyone can fix.

 Did you try reading the errors and looking at the files / lines they
 indicate for what could be wrong?

  Please reply as early as possible.

 I hope this is early enough for you!

 -
 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Access the Activity stack

2011-04-11 Thread Dianne Hackborn
Not programmatically.  For debugging, you can use adb shell dumpsys
activity.

On Sun, Apr 10, 2011 at 9:35 PM, Julius Spencer jul...@msa.co.nz wrote:

 Hi,

 Just wondering, is it possible to look at an application's Activity stack?
  I'd like to be able to look at the stack and see if the previous Activity
 on the stack is the same as the one on the top.

 Regards,
 Julius.

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Use of Live Wallpaper as a background in android application

2011-04-11 Thread Dianne Hackborn
activity android:name=... android:theme=@android:style/Theme.Wallpaper
/

On Sun, Apr 10, 2011 at 9:26 PM, swapnil kamble swap.kam...@gmail.comwrote:

 Hi All,
   I am trying to set my application's background with live
 wallpaper. With the older static wallpaper mechanism, there was one API
 getWallpaper(), using which we were able to get current wallpaper's
 drawable and use it as a background in our own application. Now I am looking
 for a API or mechanism using which I could also make my application's
 background act as current live wallpaper. Basically whenever user sets the
 live wallpaper, along with HOME /Launcher activity, it should take effect in
 my application as well.

 What is the key, when I say set wallpaper it gets applied to HOME
 activity ? Is it somewhere in Wallpaperservice or HOME activity ?

 Does anyone has any ideas about this ?

 Thanks
 Swapnil

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: MiFare Classic detection

2011-04-11 Thread Michael Roland
Hallo Domnic,

 My resource file looks like
 resources xmlns:xliff=urn:oasis:names:tc:xliff:document:1.2
     tech-list
         techandroid.nfc.tech.NfcA/tech
         techandroid.nfc.tech.NfcB/tech
         techandroid.nfc.tech.NfcF/tech
         techandroid.nfc.tech.NfcV/tech
         techandroid.nfc.tech.Ndef/tech
         techandroid.nfc.tech.NdefFormatable/tech
         techandroid.nfc.tech.MifareClassic/tech
     /tech-list
 /resources

Right, this tech-list won't trigger on any tag. Take a look at the
documentation at [url]http://developer.android.com/reference/android/
nfc/NfcAdapter.html#ACTION_TECH_DISCOVERED[/url]. It says that tech-
list combines its tech entries with AND. So you are trying to
listen for a tag that is NfcA AND NfcB AND NfcF AND NfcV at the same
time. However a tag will only be detected as one RF technology.

To listen for multiple tag technologies you would need multiple tech-
list entries (they are then combined with logical OR.)

If you want to detect only MIFARE Classic, a filter like this would
suffice:
resources xmlns:xliff=urn:oasis:names:tc:xliff:document:1.2
tech-list
techandroid.nfc.tech.MifareClassic/tech
/tech-list
/resources

Of course every MIFARE tag uses the RF technology NfcA, so a filter
like this will also work:
resources xmlns:xliff=urn:oasis:names:tc:xliff:document:1.2
tech-list
techandroid.nfc.tech.NfcA/tech
techandroid.nfc.tech.MifareClassic/tech
/tech-list
/resources

br,
Michael

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using Google Calendar API

2011-04-11 Thread Jens
Are you running this on an emulator? They typically do not contain the
calendar or calendar provider applications.

You can build (from the platform sources) and install your own
calendar provider APK on the emulator though.


On 10 Apr, 21:08, New Developer secur...@isscp.com wrote:
 anyone solved the use of Google Calendar API ?

 tried the method  from  http://jimblackler.net/blog/?p=151
 content://calendar/calendars   and    
 content://com.android.calendar/calendars

 I get the ERROR
 Failed to find provider info for com.android.calendar

 when I try the  google gdata  api's

 I have the jar files connected via  external libraries
 but this generates, compiles and shows no errors but executes with this 
 runtime ERROR

 Could not find class 'com.google.gdata.client.calendar.CalendarService',

 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: In-app billing problem

2011-04-11 Thread ishihata
Hello Ivan/Kostya/Sebastian,

I thought this problem is serious, so I contributed the issue to
Market billing issue tracker for attention.
http://code.google.com/p/marketbilling/issues/detail?id=7
I would like you to add your information here too.

Thanks a lot!

On Apr 11, 5:49 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Sebastian  Ishihata,

 I can also confirm this, although my sample size is much smaller:

 - Moto Milestone, 2.1u1, test purchase for android.test.purchased never
 completes;

 Weird logcat messages:

  D/vending ( 1521): [1] BaseBuyPageActivity.onOrderResponse(): state:
  CART_PURCHASE response: [PurchaseResult=OK]
  D/        ( 1521): unable to unlink
  '/data/data/com.android.vending/cache/AVMC_PSU0FfaW5hcHA6b3JnLmttYW4uV2lmaU1hbmFnZXI6YW5kcm9pZC50ZXN0LnB1cmNoYXNlZA':
  No such file or directory (errno=2)
  D/        ( 1521): unable to unlink
  '/data/data/com.android.vending/cache/AVMC_SU0FfaW5hcHA6b3JnLmttYW4uV2lmaU1hbmFnZXI6YW5kcm9pZC50ZXN0LnB1cmNoYXNlZA':
  No such file or directory (errno=2)

 followed by



  W/GTalkService( 1364): [DataMsgMgr] broadcast intent callback:
  result=CANCELLED forIntent { act=android.intent.action.REMOTE_INTENT
  cat=[com.android.vending.billing.IN_APP_NOTIFY] (has extras) }
  W/GTalkService( 1364): TODO: implement reportNoReceiverError!

 - Samsung Galaxy S, 2.2, test purchase completes successfully. No weird
 messages in logcat.

 Needless to say, both tests are using the same .apk, release signed, etc.

 -- Kostya

 10.04.2011 22:28, Sebastian Pereyro ?:









  Hi,

  Thanks for your info Ishihata, very useful. Now I am thinking more and
  more that this is a market issue.

  I am having the problem on a Motorola Cliq with Android 2.1-update1. I
  am in the US, so I don't think it is related to the country you are
  testing from.

  I would suggest adding your information here:
 http://code.google.com/p/android/issues/detail?id=16042q=in-app%20bi...
  http://code.google.com/p/android/issues/detail?id=16042q=in-app%20bi...

  Thanks

  Seba

  On Sat, Apr 9, 2011 at 2:27 AM, ishihata ishihata.k.t...@gmail.com
  mailto:ishihata.k.t...@gmail.com wrote:

      Hello,

      I am worried of the same problem, too.
      Logcat says as follows.
      WARN/GTalkService(1268): [DataMsgMgr] broadcast intent callback:
      result=CANCELLED forIntent { act=android.intent.action.REMOTE_INTENT
      cat=[com.android.vending.billing.IN_APP_NOTIFY] (has extras) }
      WARN/GTalkService(1268): TODO: implement reportNoReceiverError!

      I think that this problem happens on Android 1.6 and 2.1, but does not
      happen on Android 2.2.
      I tried the dungeons example with some models and followings are the
      result.
      NG means this problem happened.

      IS01 (Android 1.6) NG
      IS03 (Android 2.1) NG
      IS04 (Android 2.1) NG
      IS05 (Android 2.2) OK
      IS06 (Android 2.2) OK
      Desire (Android 2.2) OK
      Desire HD (Android 2.2) OK
      003SH (Android 2.2) OK
      005SH (Andoird 2.2) OK
      Libero (Android 2.2) OK
      Streak (Android 2.2) OK
      Xperia (Android 2.1) NG
      T-01C (Android 2.1) NG

      # I am in Japan so there are many local models for Japan...

      Isn't this a bug of the market app?

      On Apr 9, 5:19 pm, Kostya Vasilyev kmans...@gmail.com
      mailto:kmans...@gmail.com wrote:
       FWIW,

       It's still not working for me - although it worked fine two or three
       days ago.

       Same phone, same account, same modified Dungeons sample. In
      fact, I made
       no changes at all.

       Now purchases for android.test.* are sent to Market, but never
      get any
       response. This is as if I was running the unsigned debug build on my
       test phone, but I'm running a signed release build. I even tried
       removing and adding back the test account in Market profile, no
      change.

       They are presently rolling out per-country pricing for in-app
      billing,
       perhaps it's related.

       PS - I don't see a way to set country-specific prices in my
      console. All
       I see is USD with no way to choose another currency. Their email
      said
       available immediately.

       -- Kostya

       09.04.2011 4:23, Seba ?:

        Hi Ivan/Kostya,

        I am having the exact same problem, and I am also seeing the same
        output regarding the GTalkService.

        Seba
        --
        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
      mailto:android-developers@googlegroups.com
        To unsubscribe from this group, send email to
        android-developers+unsubscr...@googlegroups.com
      mailto:android-developers%2bunsubscr...@googlegroups.com
        For more options, visit this group at
       http://groups.google.com/group/android-developers?hl=en

       --
       Kostya 

[android-developers] Re: My first app

2011-04-11 Thread Peter Webb
An obvious suggestion: don't start by trying to write an app.

Start by compiling and running a demo application, and progressively
modifying it until it does what you want. There are hundreds of these
demos in the SDK and on the net illustrating all types of apps.

Keep fixing problems as they appear and you are never more than one
undo from working code, and errors like this are easy to find and fix.



On Apr 9, 1:29 pm, anik rebellion.a...@gmail.com wrote:
 Hi every one,
 I just started with my android application but facing problem when i
 build the application or when i run my application.Please see if
 anyone can fix.Please reply as early as possible.

 this is what is shown at Console Tab on Eclipse IDE.
 [2011-04-08 20:26:03 - Golf2] Error in an XML file: aborting build.
 [2011-04-08 20:26:03 - Golf2] res\layout\main.xml:0: error: Resource
 entry main is already defined.
 [2011-04-08 20:26:03 - Golf2] res\layout\main.out.xml:0: Originally
 defined here.
 [2011-04-08 20:26:03 - Golf2] C:\anroid apps\Golf2\res\layout
 \main.out.xml:1: error: Error parsing XML: no element found

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Intent not received after application started

2011-04-11 Thread Gorka
Hi,

Yes, I have the onNewIntent method declared as you said.

@Override
public void onNewIntent(Intent intent) {
Log.d(TAG,  On New Intent);
}

The problem is that i don´t get the message.


On 9 abr, 09:34, nadam a...@anyro.se wrote:
 Make sure onNewIntent is overridden correctly. Should look like this:

 @Override
 public void onNewIntent(Intentintent) {
     ...

 }

 On 8 Apr, 16:11, Gorka gork...@gmail.com wrote:







  Hi,

  I am trying to read NFC tags with my Nexus S mobile.

  In my Manifest file I have theintentfiltered:

           intent-filter
                  action
  android:name=android.nfc.action.NDEF_DISCOVERED/

                          data android:mimeType=*/* /

                   category
  android:name=android.intent.category.DEFAULT/
          /intent-filter

  When the mobile detects a tag and theintentis created by the system,
  my application is started. So, the filter works fine.

  The problem is that, once the application is opened viaIntent, if the
  mobile detects another NDEF_DISCOVERED the application doesnot
  receive it.

  I have implemented the onNewIntent method, but it isnotcalled. I
  also have added the android:launchMode=singleTop line to my
  activity.

  Does anyone know can I solve my problem?

  Thanks and bye.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: In-app billing problem

2011-04-11 Thread Kostya Vasilyev

Ah. Didn't know there is a bug tracker specifically for billing.

I just added my data to the issue.

Now, the great thing is, there are only three bugs in in-app billing:

http://code.google.com/p/marketbilling/issues/list

( Ok, four. I just entered another one )

-- Kostya

11.04.2011 11:33, ishihata пишет:

Hello Ivan/Kostya/Sebastian,

I thought this problem is serious, so I contributed the issue to
Market billing issue tracker for attention.
http://code.google.com/p/marketbilling/issues/detail?id=7
I would like you to add your information here too.

Thanks a lot!



--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] HOW TO GET THE TRASACTION NOTIFICATION WHILE NETWORK GOES.

2011-04-11 Thread bins
hi,

while the transaction is in process and my application crashes.So how
will get the information about that transaction.As I am just waiting
for the confirm notification.How can I test this scenario with the
Static Values.?

Can any one please help..

thanks
bins

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Use of Live Wallpaper as a background in android application

2011-04-11 Thread swapnil kamble
Thanks a lot Dianne.

Worked like a charm.


On Mon, Apr 11, 2011 at 12:34 PM, Dianne Hackborn hack...@android.comwrote:

 activity android:name=... android:theme=@android:style/Theme.Wallpaper
 /

 On Sun, Apr 10, 2011 at 9:26 PM, swapnil kamble swap.kam...@gmail.comwrote:

 Hi All,
   I am trying to set my application's background with live
 wallpaper. With the older static wallpaper mechanism, there was one API
 getWallpaper(), using which we were able to get current wallpaper's
 drawable and use it as a background in our own application. Now I am looking
 for a API or mechanism using which I could also make my application's
 background act as current live wallpaper. Basically whenever user sets the
 live wallpaper, along with HOME /Launcher activity, it should take effect in
 my application as well.

 What is the key, when I say set wallpaper it gets applied to HOME
 activity ? Is it somewhere in Wallpaperservice or HOME activity ?

 Does anyone has any ideas about this ?

 Thanks
 Swapnil

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@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.




-- 
Swapnil

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: RTP on MediaPlayer

2011-04-11 Thread Giorgio Ascani
Can anyone help me?

On Apr 4, 12:15 pm, Giorgio Ascani gasc...@gmail.com wrote:
 Hi, I've implemented RTSP on Android MediaPlayer using VLC as rtsp
 server with this code:

 # vlc -vvv /home/marco/Videos/pippo.mp4 --sout
 '#rtp{dst=192.168.100.246,port=6024-6025,sdp=rtsp://
 192.168.100.243:8080/test.sdp}'

 and on the Android project:
 --- 
 ---

 Uri videoUri = Uri.parse(rtsp://192.168.100.242:8080/test.sdp);

         videoView.setVideoURI(videoUri);
         videoView.start();
 --- 
 ---

 This works fine but if I'd like also to play live stream RTP so I
 copied the sdp file into the sdcard (/mnt/sdcard/test.sdp) and setting
 vlc:

 # vlc -vvv /home/marco/Videos/pippo.mp4 --sout
 '#rtp{dst=192.168.100.249,port=6024-6025}'

 I tried to play the stream RTP setting the path of the sdp file
 locally:
 --- 
 ---
 Uri videoUri = Uri.parse(/mnt/sdcard/test.sdp);

         videoView.setVideoURI(videoUri);
         videoView.start();
 --- 
 ---

 But I got an error:

 D/MediaPlayer( 9616): Couldn't open file on client side, trying server
 side
 W/MediaPlayer( 9616): info/warning (1, 26)
 I/MediaPlayer( 9616): Info (1,26)
 E/PlayerDriver(   76): Command PLAYER_INIT completed with an error or
 info PVMFFailure
 E/MediaPlayer( 9616): error (1, -1)
 E/MediaPlayer( 9616): Error (1,-1)
 D/VideoView( 9616): Error: 1,-1

 Does anyone know where's the problem? I'm I wrong or it's not possible
 to play RTP on MediaPlayer?

 Cheers

 Giorgio

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Intent not received after application started

2011-04-11 Thread Gorka
Hi,

Here is the message I get when the phone detects the tag.
As I said, the first time the app is started, but the second time
nothing happens.

I/ActivityManager (107): Starting intent:
{act=android.nfc.action.NDEF_DISCOVERED typ=text/plain flg=0x0100
cmp=com.android.nfcvoicereader/.nfcvoicereader (has extras) } from pid
189

Thanks.

On 11 abr, 09:48, Gorka gork...@gmail.com wrote:
 Hi,

 Yes, I have the onNewIntent method declared as you said.

 @Override
     public void onNewIntent(Intent intent) {
     Log.d(TAG,  On New Intent);

 }

 The problem is that i don´t get the message.

 On 9 abr, 09:34, nadam a...@anyro.se wrote:







  Make sure onNewIntent is overridden correctly. Should look like this:

  @Override
  public void onNewIntent(Intentintent) {
      ...

  }

  On 8 Apr, 16:11, Gorka gork...@gmail.com wrote:

   Hi,

   I am trying to read NFC tags with my Nexus S mobile.

   In my Manifest file I have theintentfiltered:

            intent-filter
                   action
   android:name=android.nfc.action.NDEF_DISCOVERED/

                           data android:mimeType=*/* /

                    category
   android:name=android.intent.category.DEFAULT/
           /intent-filter

   When the mobile detects a tag and theintentis created by the system,
   my application is started. So, the filter works fine.

   The problem is that, once the application is opened viaIntent, if the
   mobile detects another NDEF_DISCOVERED the application doesnot
   receive it.

   I have implemented the onNewIntent method, but it isnotcalled. I
   also have added the android:launchMode=singleTop line to my
   activity.

   Does anyone know can I solve my problem?

   Thanks and bye.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Multiple screen support in 2d opengl game

2011-04-11 Thread devstudent
For those developing games, what are some tips you can offer for
supporting multiple screen sizes?

Supplying multiple copies of each resource for different densities? Or
simply using high density resources and scaling down for lower
densities?

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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] File Browser: can not data folder access

2011-04-11 Thread Kostya Vasilyev

11.04.2011 2:41, bahtiyar kara пишет:
I know that if ı create a file in internal memory, it s saved under 
/data/data directory.

Is it wrong?


No, that's correct. Just don't hard-code /data/data/package - rather 
use Context.openFileInput  / openFileOutput / getFilesDir.


and when ı list files in my application, for example ı want to open an 
image or an mp3 file in internal directory in this folder.

I think ı need to access there? or I think wrong?


An application has access to its own files.

But not to files of other applications. Other applications don't have 
access to your files either.




What ı want to do:

I want to create some directories and files in android and then
I want to list them a file browser firstly.


Depends on where some directories and files are.


What do you should me?
Do you should I need to do them in sd card?


If  you need to have files that are visible by other applications, then 
yes, using the memory card is a simple way to achieve that. Make sure 
you read this:


http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

-- Kostya



Many thanks for helping...



--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Regarding Video Capture

2011-04-11 Thread yogendra G
Hi All,

Can Any one help me in coding with both video and audio in android...?? I
have my video app in which audio not workin so plz help me out in this...

Regards,
Yogi

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Intent not received after application started

2011-04-11 Thread Gorka
Hi,

Here I am once again.

I have seen that if I minimize the app, when I detect a new tag the
application is restarted and the OnRestart and OnResume methods are
called. But the OnNewIntent is not received.

But the way, if the application is restarted, how can I get the
activity that was called¿?

On 11 abr, 10:22, Gorka gork...@gmail.com wrote:
 Hi,

 Here is the message I get when the phone detects the tag.
 As I said, the first time the app is started, but the second time
 nothing happens.

 I/ActivityManager (107): Starting intent:
 {act=android.nfc.action.NDEF_DISCOVERED typ=text/plain flg=0x0100
 cmp=com.android.nfcvoicereader/.nfcvoicereader (has extras) } from pid
 189

 Thanks.

 On 11 abr, 09:48, Gorka gork...@gmail.com wrote:







  Hi,

  Yes, I have the onNewIntent method declared as you said.

  @Override
      public void onNewIntent(Intent intent) {
      Log.d(TAG,  On New Intent);

  }

  The problem is that i don´t get the message.

  On 9 abr, 09:34, nadam a...@anyro.se wrote:

   Make sure onNewIntent is overridden correctly. Should look like this:

   @Override
   public void onNewIntent(Intentintent) {
       ...

   }

   On 8 Apr, 16:11, Gorka gork...@gmail.com wrote:

Hi,

I am trying to read NFC tags with my Nexus S mobile.

In my Manifest file I have theintentfiltered:

         intent-filter
                action
android:name=android.nfc.action.NDEF_DISCOVERED/

                        data android:mimeType=*/* /

                 category
android:name=android.intent.category.DEFAULT/
        /intent-filter

When the mobile detects a tag and theintentis created by the system,
my application is started. So, the filter works fine.

The problem is that, once the application is opened viaIntent, if the
mobile detects another NDEF_DISCOVERED the application doesnot
receive it.

I have implemented the onNewIntent method, but it isnotcalled. I
also have added the android:launchMode=singleTop line to my
activity.

Does anyone know can I solve my problem?

Thanks and bye.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ImageView on SlidingDrawer not responding to click event

2011-04-11 Thread Jason
ok.. for anyone else out there.. I have devised (hacked?) a solution
to this... but it's a bit clumsy.

First I created a custom ImageView in which I added an
OnLayoutListener interface...

public class CustomImageView extends ImageView {

private final Rect bounds = new Rect();

private OnLayoutListener onLayoutListener;

public CustomImageView(Context context, AttributeSet attrs, int
defStyle) {
super(context, attrs, defStyle);
}

public CustomImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}

public CustomImageView(Context context) {
super(context);
}

@Override
protected void onLayout(boolean changed, int left, int top, int
right, int bottom) {
super.onLayout(changed, left, top, right, bottom);

if(onLayoutListener != null) {

if(changed) {
bounds.left = left;
bounds.top = top;
bounds.right = right;
bounds.bottom = bottom;
}

onLayoutListener.onLayout(bounds);
}

}

public final OnLayoutListener getOnLayoutListener() {
return onLayoutListener;
}

public final void setOnLayoutListener(OnLayoutListener
onLayoutListener) {
this.onLayoutListener = onLayoutListener;
}

public static interface OnLayoutListener {
public void onLayout(Rect bounds);
}
}

Then in my activity, I get a reference to the SlidingDrawer and the
CustomImageView

final CustomImageView sliderRefresh = (CustomImageView)
findViewById(R.id.slider_refresh);
final SlidingDrawer slider = (SlidingDrawer)
findViewById(R.id.slider);

// Create a rect to contain the coordinates of the image
final Rect imageRect = new Rect();

And add a listener to the image view

sliderRefresh.setOnLayoutListener(new 
OnLayoutListener() {
@Override
public void onLayout(Rect bounds) {

sliderRefresh.getGlobalVisibleRect(imageRect);
}
});

Then reset the coordinates when the slider is opened/closed:

slider.setOnDrawerOpenListener(new 
OnDrawerOpenListener() {

@Override
public void onDrawerOpened() {

sliderRefresh.getGlobalVisibleRect(imageRect);
}
});

slider.setOnDrawerCloseListener(new 
OnDrawerCloseListener() {

@Override
public void onDrawerClosed() {

sliderRefresh.getGlobalVisibleRect(imageRect);
}
});

Finally in the slider touch listener, see if the touch event was
inside the image

slider.setOnTouchListener(new OnTouchListener() {

@Override
public boolean onTouch(View v, MotionEvent 
event) {
if(event.getAction() == 
MotionEvent.ACTION_DOWN) {

if(imageRect.contains((int)event.getRawX(),
(int)event.getRawY())) {
// Handle the click here
return true;
}
}
return false;
}
});


Let's face it.. it's a hack.. but it works.

On Apr 10, 11:37 pm, Jason jason.poli...@gmail.com wrote:
 Hi folks,

 I have an ImageView contained in a TableLayout within the handle
 component of a SlidingDrawer and I'm trying to capture the click event
 on the ImageView but it doesn't seem to be fired.

 Obviously the SlidingDrawer is capturing the event to handle it
 according to the rules governing its behavior, but I would have
 expected the event to be populated down to all child views.. which it
 doesn't seem to be.

 I have a structure somewhat like this:

 SlidingDrawer
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/slider
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:handle=@+id/panelHandle
         android:content=@+id/panelContent
         android:allowSingleTap=false
         TableLayout
                 android:layout_width=fill_parent
                 

[android-developers] EditText in Activity show keyboard immediatly

2011-04-11 Thread pedr0
Hi at all,

I have an activity with one EditText in layout, when Activity is
showed immediatly edittext is focused and keyboard is showed, how
avoid it?



--
undefined

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [Map] Conflict in to MapController between Zoom Level and AnimateTo ?

2011-04-11 Thread olivier
Dear,

I meet the following problem with the MapApi.

When I click on a POI, I call MapController.animateTo to center the
Map on the Poi

My problem is on some Zoom Level, when MapController.animateTo is
called, the map is moving away from the POI.
It's seemed that it's when I zoom In.
If I zoom back, the MapController.animateTo, is working find.

Does some meet that problem and know a way to fix it ?

(I use the default zoom of the map api)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] EditText in Activity show keyboard immediatly

2011-04-11 Thread luiX_
Have you tried to manually set the initial focus to any other element in the
activity?
El 11/04/2011 10:59, pedr0 pulsarpie...@gmail.com escribió:
 Hi at all,

 I have an activity with one EditText in layout, when Activity is
 showed immediatly edittext is focused and keyboard is showed, how
 avoid it?



 --
 undefined

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: EditText in Activity show keyboard immediatly

2011-04-11 Thread pedr0

How do that?

On 11 Apr, 11:05, luiX_ lui...@gmail.com wrote:
 Have you tried to manually set the initial focus to any other element in the
 activity?
 El 11/04/2011 10:59, pedr0 pulsarpie...@gmail.com escribió:







  Hi at all,

  I have an activity with one EditText in layout, when Activity is
  showed immediatly edittext is focused and keyboard is showed, how
  avoid it?

  --
  undefined

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

--
undefined

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] EditText in Activity show keyboard immediatly

2011-04-11 Thread TremendousTurtle
You can suppress the keyboard show using InputMethodManager in  
onFocusChanged listener.


On Apr 11, 2011 4:59pm, pedr0 pulsarpie...@gmail.com wrote:

Hi at all,





I have an activity with one EditText in layout, when Activity is



showed immediatly edittext is focused and keyboard is showed, how



avoid it?









--



undefined





--



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+unsubscr...@googlegroups.com



For more options, visit this group at



http://groups.google.com/group/android-developers?hl=en


--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] 3D Image

2011-04-11 Thread Marcin Orlowski
On 9 April 2011 23:28, khaled anaqwa khaled.adnan.ana...@gmail.com wrote:

 any one have a good tutorial how to create 3D image
 form datarow


Get your dataraw, transfor/map to 3d space if needed  or use directly and
just draw as you wish.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Secure requests to a Webservice via Android

2011-04-11 Thread Marcin Orlowski
On 10 April 2011 19:45, elioncho elion...@gmail.com wrote:

 I've and android application which sends post requests to a web
 service. I want to secure the communication between the two and was
 wondering which is the best approach:

 1) Make https requests


It sufficies for most tasks just to secure communication chanel (i.e. with
said
SSL)


 2) Encrypt the request params via an encryption algorithm and decrypt
 on the web service (I found one called SimpleCryto

 http://www.tutorials-android.com/learn/How_to_encrypt_and_decrypt_strings.rhtml
 )


You may encrypt data being sent if needed, but you barely really need it if
you use SSL. Major security concern is that someone may be tapping the
wire but (if SSL is used with rigth size key like 2048 bits) suffices
nowadays.


Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to mark touch points in an image

2011-04-11 Thread Marcin Orlowski
On 10 April 2011 15:38, neohacker arunscari...@gmail.com wrote:

 Hi,
 In my project there is an image. When user touches any place in image
 it should be marked with a cross sign. Also we have to clear this
 crosses on button click. I managed to display the image. What i have
 to do in the ontouchlistener() function to display the  cross point??


What about just painting on your bitmap at tap coords?

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] help for encryption of sd card storage?

2011-04-11 Thread Marcin Orlowski
On 11 April 2011 08:47, Hitendrasinh Gohil hitendra.virtuei...@gmail.comwrote:


 i) if i can encrypt the file path only that can be access on
 decrypting it?


This is file path: /sdcard/my-file.foo. This is just string. If you
encrypt it will look i.e. like ne87hfi8xs4rkdjxbkvcv. How this is expected
to make *content* of your file safer?


 which is the best encryption algorithem i can use for?


There's no best encryption algorithm. Choose that one that suits your
needs bests, considering complexity, strength, type and computing power
needed to encrypt your dataset in the acceptable time.


Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Reusable HttpResponse in android network programming?

2011-04-11 Thread mathcat
Hi geeks!

As using the network package which apache provides, we usually do :
HttpResponse resp = httpClient.execute(httpRequest);

When I retrieve the HttpEntity object of the response, open the
InputStream and extract the data in it, the HttpResponse object
becomes unusable. If I try to do the thing again, exception occurs.

Here I wish to reuse the HttpResponse, mostly for caching. But the
HttpResponse object returned is type interface, I cannot call clone.

Is there any way I can reuse the HttpResponse ?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Emulator is crashing a lot

2011-04-11 Thread mudit
Hi,

I am trying to test my app on android emulator. So as soon as, i am
choosing run the application, a new window pops up on the screen and
after taking 1-2 minutes, it goes not responding.

I also tried running the emulator separately using AVD manager. Using
this, i am able to start the emulator; but after 3-4 minutes - it goes
not responding.

OS- Windows 7 32 bit [ intel pentium 3.00 GHZ + 2GB RAM]

Java - 1.6

Android SDK - i have the latest SDK with 3.0 OS

IDE - eclipse Helios Service Release 2.

Plz help, i am unable to do anything.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Advantage of services over multi threading ??

2011-04-11 Thread Tushar Baviskar
What is the need of services in android, as same thing can be achieved
by starting new task also?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: EditText in Activity show keyboard immediatly

2011-04-11 Thread pedr0
I solved using

android:windowSoftInputMode=stateHidden

Tag in manifest file for my activity.

Thanks!


On 11 Apr, 11:12, tremendoustur...@gmail.com wrote:
 You can suppress the keyboard show using InputMethodManager in  
 onFocusChanged listener.

 On Apr 11, 2011 4:59pm, pedr0 pulsarpie...@gmail.com wrote:







  Hi at all,
  I have an activity with one EditText in layout, when Activity is
  showed immediatly edittext is focused and keyboard is showed, how
  avoid it?
  --
  undefined
  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

--
undefinedI

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to prevent the app be killed by “unmount media”(change to usb storage mode)

2011-04-11 Thread Nicholas Johnson
No, the app is immediately killed. AFAIK, the only way to prevent this is to 
store the app on internal memory instead of the SD card.

Nick

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] 3D Image

2011-04-11 Thread Khaled Anaqwa
I don't have any idea , If you have good resource share it

On Mon, Apr 11, 2011 at 12:13 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:


 On 9 April 2011 23:28, khaled anaqwa khaled.adnan.ana...@gmail.comwrote:

 any one have a good tutorial how to create 3D image
 form datarow


 Get your dataraw, transfor/map to 3d space if needed  or use directly and
 just draw as you wish.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *

  --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 

Khaled Anaqwa

0569195951

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Main Activity Launches On Stack Every Time Home Screen Icon Is Clicked

2011-04-11 Thread String
A couple of things to keep in mind:

First, launcher icons are simply shortcuts to intents, and these intents 
point to specific activities, not to your app as a whole. In the case of 
your main launcher icon, the one in the app drawer, the target activity is 
the one in your manifest with this intent filter:

intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter

In your case, I'm guessing that's the LoginActivity. What you probably need 
to do is insert a check in its onCreate() method to reopen the 
BrowseActivity if the user's already logged in. Something like:

if (loggedIn) {
startActivity(new Intent(this, BrowseActivity.class));
finish();
}

It may seem like a huge hack, but it's not really, not in the context of 
launcher intent shortcuts.

Second, keep in mind that the activity *stack* is exactly that - a stack of 
the recently-opened activities in your app. By default, opening an activity 
simply adds it to that stack, on top of whatever was already there. If you 
want different behavior, look at the stack-control intent flags (
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
).

String

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Invalidating a Canvas view that is part of setContentView()

2011-04-11 Thread lbendlin
Kostya said you should keep a reference to the view, because there is no 
Android equivalent to findViewById().
 
You might also find it by walking the view hierarchy recursively but that 
might be too costly.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Invalidating a Canvas view that is part of setContentView()

2011-04-11 Thread Kostya Vasilyev

Yes. The original code as posted was:

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
[...]

This can be changed to:

*private MyView mMyView;*

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
*mMyView = **new MyView(this);*
*setContentView(mMyView);*
[...]

To make MyView redraw, you can just call mMyView.invalidate() from the 
activity. For other tasks, you can add methods to MyView, and call them 
from the activity.


-- Kostya

11.04.2011 14:40, lbendlin ?:
Kostya said you should keep a reference to the view, because there is 
no Android equivalent to findViewById().
You might also find it by walking the view hierarchy recursively but 
that might be too costly.

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] 3D Image

2011-04-11 Thread Marcin Orlowski
No. In general your question is so generic that it barely makes a question
to answer. It's like  asking how can I build a car?. The answer is get
the tools and build it.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*



On 11 April 2011 12:21, Khaled Anaqwa khaled.adnan.ana...@gmail.com wrote:

 I don't have any idea , If you have good resource share it

 On Mon, Apr 11, 2011 at 12:13 PM, Marcin Orlowski 
 webnet.andr...@gmail.com wrote:


 On 9 April 2011 23:28, khaled anaqwa khaled.adnan.ana...@gmail.comwrote:

 any one have a good tutorial how to create 3D image
 form datarow


 Get your dataraw, transfor/map to 3d space if needed  or use directly and
 just draw as you wish.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *

  --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Khaled Anaqwa

 0569195951


  --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: When to set android:anyDensity to what value?

2011-04-11 Thread lbendlin
Our application is used when driving,  and spends most of its life as a 
service, Not a single user has yet complained about grainy or jagged images, 
menu icons or some such in the UI part. The service occasionally shows 
custom toasts that cover the whole screen, and for these we use 300x300 
pixel images . Looks perfect across all devices (although it has a bit of a 
performance hit on the older phones, but then again it is infrequent). YMMV

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: When to set android:anyDensity to what value?

2011-04-11 Thread Kostya Vasilyev

11.04.2011 14:58, lbendlin пишет:
Our application is used when driving, and spends most of its life as a 
service, Not a single user has yet complained


They don't want to risk their life by looking closer :)

about grainy or jagged images, menu icons or some such in the UI part. 
The service occasionally shows custom toasts that cover the whole 
screen, and for these we use 300x300 pixel images . Looks perfect 
across all devices (although it has a bit of a performance hit on the 
older phones, but then again it is infrequent). YMMV 


--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Map] Conflict in to MapController between Zoom Level and AnimateTo ?

2011-04-11 Thread lbendlin
Are you using MyLocationOverlay on that map?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] List Selector Problem

2011-04-11 Thread Laxmi Verma
Hi,

I am facing problem with list selector.

The code is as follows:

*1) Applied list selector in the listview layout*

ListView
android:id=@+id/android:list
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1
android:listSelector=@drawable/selector_list
/

*2) list_selector.xml*

?xml version=1.0 encoding=utf-8?
selector xmlns:android=http://schemas.android.com/apk/res/android;
item android:state_focused=true state_selected=false
android:drawable=@drawable/black/
item android:state_focused=false state_selected=true
android:drawable=@drawable/black/
item android:state_focused=false state_selected=true
android:drawable=@drawable/grey/
/selector


Still it is not taking any effect on the list item getting displayed.  The
default color is coming on selection instead of customised one.
I will be grateful if any help is provided on this

Thanks!!

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

Re: [android-developers] HOW TO GET THE TRASACTION NOTIFICATION WHILE NETWORK GOES.

2011-04-11 Thread allandt bik-elliott (thefieldcomic.com)
/caps

/ignore



On 11 April 2011 08:57, bins bins1...@gmail.com wrote:

 hi,

 while the transaction is in process and my application crashes.So how
 will get the information about that transaction.As I am just waiting
 for the confirm notification.How can I test this scenario with the
 Static Values.?

 Can any one please help..

 thanks
 bins

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Video Streaming Using Darwin Streaming Server(DSS) through Ethernet LAN

2011-04-11 Thread saha
 I have my Blaze board running Gingerbread, Connected to my Desktop
and i am able to ping from PC to Board.

How do i connect DSS with android through Ethernet LAN?

I tried the following code but its not working. Whats the problem with
following code?

try
{
  for (EnumerationNetworkInterface en = NetworkInterface
.getNetworkInterfaces(); en.hasMoreElements();)
  {
NetworkInterface intf = en.nextElement();

if (intf.getName().startsWith(eth))
{

try
{
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(rtsp://+DSS-IP
+/+sample_50kbit.3gp);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepare();
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnVideoSizeChangedListener(this);
 
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMediaPlayer.setLooping(true);
   }
catch (Exception e)
  {
 Log.e(TAG, error:  + e.getMessage(), e);
  }

  }
  }
}
catch (SocketException ex)
 {  }

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Video Streaming Using Darwin Streaming Server(DSS) through Ethernet LAN

2011-04-11 Thread saha devan
 I have my Blaze board running Gingerbread, Connected to my Desktop
and i am able to ping from PC to Board. Installed DSS on Desktop and i am
successful in testing with VLC ( by playing
 rtsp://+DSS-IP +/+sample_50kbit.3gp).

How do i connect DSS with android through Ethernet LAN?

I tried the following code but its not working. Whats the problem with
following code?

try
{
  for (EnumerationNetworkInterface en = NetworkInterface
.getNetworkInterfaces(); en.hasMoreElements();)
  {
NetworkInterface intf = en.nextElement();

if (intf.getName().startsWith(eth))
{

try
{
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(rtsp://+DSS-IP
+/+sample_50kbit.3gp);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepare();
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnVideoSizeChangedListener(this);

mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMediaPlayer.setLooping(true);
   }
catch (Exception e)
  {
 Log.e(TAG, error:  + e.getMessage(), e);
  }

  }
  }
}

catch (SocketException ex)
 {  }

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: When to set android:anyDensity to what value?

2011-04-11 Thread lbendlin
That's exactly the point. Mobile utility applications have very short UI 
usage cycles. Users usually don't take the time to look for that jagged 
edge, they get the information they need and carry on.
 
(Having said that I still get wound up each time I look at the built in 
Android web browser because I can't help noticing the horizontal 
misalignment between the address text field and the load progress bar... 
Pathetic, I know.)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] File Browser: can not data folder access

2011-04-11 Thread bahtiyar kara
Thanks for your advices Kostya.I will try to do them...

2011/4/11 Kostya Vasilyev kmans...@gmail.com

 11.04.2011 2:41, bahtiyar kara пишет:

  I know that if ı create a file in internal memory, it s saved under
 /data/data directory.
 Is it wrong?


 No, that's correct. Just don't hard-code /data/data/package - rather
 use Context.openFileInput  / openFileOutput / getFilesDir.


  and when ı list files in my application, for example ı want to open an
 image or an mp3 file in internal directory in this folder.
 I think ı need to access there? or I think wrong?


 An application has access to its own files.

 But not to files of other applications. Other applications don't have
 access to your files either.



 What ı want to do:

 I want to create some directories and files in android and then
 I want to list them a file browser firstly.


 Depends on where some directories and files are.


  What do you should me?
 Do you should I need to do them in sd card?


 If  you need to have files that are visible by other applications, then
 yes, using the memory card is a simple way to achieve that. Make sure you
 read this:


 http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

 -- Kostya


 Many thanks for helping...



 --
 Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Bahtiyar Kara
İstanbul University-Computer Engineering
0554 797 45 37

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How do i upload the file from android mobile to public server

2011-04-11 Thread snehalal gangadharam
Thanks for your reply,'

I have found the problem, FTP is not working in my device, i have given ftp
site and tested.
i got  you do not have permission to open this page,
ftp://mirror.csclub.uwaterloo.ca/index.html:..

i have did some googling , i havent get successful solutions,
what settings should i do to enable FTP in my HTC android phone.

Thanks  Regards
Aswini
On Fri, Apr 8, 2011 at 3:40 PM, Nicholas Johnson metthejohn...@gmail.comwrote:

 It seems like your error is occurring at line 203 in the FtpURLConnection
 class. Find out what's at the line, and you'll be closer to solving your
 problem.

 W/System.err( 1281):  at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:203)

   --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Access the Activity stack

2011-04-11 Thread harsh chandel
ActivityManager am = (ActivityManager)
getSystemService(Service.ACTIVITY_SERVICE);
ListActivityManager.RunningAppProcessInfo processes;
processes = am.getRunningAppProcesses();
for(ActivityManager.RunningAppProcessInfo info: processes) {
Log.i(Process:, info.processName);
}


On Apr 11, 9:35 am, Julius Spencer jul...@msa.co.nz wrote:
 Hi,

 Just wondering, is it possible to look at an application's Activity stack?  
 I'd like to be able to look at the stack and see if the previous Activity on 
 the stack is the same as the one on the top.

 Regards,
 Julius.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] 3D Image

2011-04-11 Thread Khaled Anaqwa
In my project I will draw 3d image form CT Scan by using datarow


On Mon, Apr 11, 2011 at 1:52 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 No. In general your question is so generic that it barely makes a question
 to answer. It's like  asking how can I build a car?. The answer is get
 the tools and build it.


 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *



 On 11 April 2011 12:21, Khaled Anaqwa khaled.adnan.ana...@gmail.comwrote:

 I don't have any idea , If you have good resource share it

 On Mon, Apr 11, 2011 at 12:13 PM, Marcin Orlowski 
 webnet.andr...@gmail.com wrote:


 On 9 April 2011 23:28, khaled anaqwa khaled.adnan.ana...@gmail.comwrote:

 any one have a good tutorial how to create 3D image
 form datarow


 Get your dataraw, transfor/map to 3d space if needed  or use directly and
 just draw as you wish.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *

  --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Khaled Anaqwa

 0569195951


  --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 

Khaled Anaqwa

0569195951

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Advantage of services over multi threading ??

2011-04-11 Thread Mark Murphy
On Mon, Apr 11, 2011 at 5:54 AM, Tushar Baviskar
tushar.konn...@gmail.com wrote:
 What is the need of services in android, as same thing can be achieved
 by starting new task also?

No, the same thing (whatever that is) cannot be achieved by
starting new task also. Services and tasks have virtually nothing in
common and certainly are not interchangeable.

http://developer.android.com/guide/topics/fundamentals/services.html

-- 
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 Android Development_ Version 3.6 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How do i upload the file from android mobile to public server

2011-04-11 Thread Nicholas Johnson
I don't think that the FTP ports are inherently disabled, so there's no need 
to try and enable it. I built a quick FTP client server for my phone and 
it works fine.

Nick

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Regarding Video Capture

2011-04-11 Thread TreKing
On Mon, Apr 11, 2011 at 3:35 AM, yogendra G yogi2...@gmail.com wrote:

 Can Any one help me in coding with both video and audio in android...?? I
 have my video app in which audio not workin so plz help me out in this...


You might consider possibly, maybe, perhaps giving *some* information as to
what your problem is if you expect help.

-
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How do i upload the file from android mobile to public server

2011-04-11 Thread Kostya Vasilyev

Yes, but there is also the passive / active mode thing to consider...

Active mode requires a connection from the server to the client, which 
doesn't work through NATs and firewalls (although a smart proxy on the 
NAT/firewall can help). Passive mode should work.


-- Kostya

11.04.2011 16:09, Nicholas Johnson пишет:
I don't think that the FTP ports are inherently disabled, so there's 
no need to try and enable it. I built a quick FTP client server for 
my phone and it works fine.


Nick
--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Launch Gallery App at folder level instead of All pictures

2011-04-11 Thread swapnil kamble
Hi All,
  I want to launch Gallery app for image selection. I am using
following code,

Intent intent = new Intent();
intent.setType(image/*);
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,Select Picture), 1);

But its launching ImageGallery activity, and directly going inside All
pictures folder which includes images from all folders. Whereas I am
looking for a parent level view, so that user can go inside other folders
also.

Any ideas ?

Thanks in advance,

Swapnil

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Launch Gallery App at folder level instead of All pictures

2011-04-11 Thread swapnil kamble
I checked with froyo also. Looks like in froyo All pictures is not there.
By default, shows folders present.

On Mon, Apr 11, 2011 at 6:09 PM, swapnil kamble swap.kam...@gmail.comwrote:

 Hi All,
   I want to launch Gallery app for image selection. I am using
 following code,

 Intent intent = new Intent();
 intent.setType(image/*);
 intent.setAction(Intent.ACTION_GET_CONTENT);
 startActivityForResult(Intent.createChooser(intent,Select Picture), 1);

 But its launching ImageGallery activity, and directly going inside All
 pictures folder which includes images from all folders. Whereas I am
 looking for a parent level view, so that user can go inside other folders
 also.

 Any ideas ?

 Thanks in advance,

 Swapnil




-- 
Swapnil

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Image processing in Android

2011-04-11 Thread Tancho
Yep, checked the whole memory table ..
everything seems clear, however I always get a Bitmap exceeds VM
Budget and the Bitmap is 64x64

On Apr 11, 1:33 am, lbendlin l...@bendlin.us wrote:
 http://www.eclipse.org/mat/

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Intent not received after application started

2011-04-11 Thread Gorka
Hi,

I don´t know if someone is reading me, but I don´t give up :). Maybe
that could be useful for someone in the future.
My Manifest file looks like that rigth now:

intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.LAUNCHER /
/intent-filter
intent-filter
 action android:name=android.nfc.action.NDEF_DISCOVERED/
 data android:mimeType=*/* /

 category android:name=android.intent.category.DEFAULT/
/intent-filter

What is happening rigth now is that, if I start by myself the
application, it runs ok and I get the onNewIntent messages I am
supposed to used. So the application reads all the tags. However, if
the application is started when it detects a tag, it doesn´t receive
onNewIntent messages anymore.

Does anyone know how to solve this?
I continue reading ...

Bye.


On 11 abr, 10:36, Gorka gork...@gmail.com wrote:
 Hi,

 Here I am once again.

 I have seen that if I minimize the app, when I detect a new tag the
 application is restarted and the OnRestart and OnResume methods are
 called. But the OnNewIntent is not received.

 But the way, if the application is restarted, how can I get the
 activity that was called¿?

 On 11 abr, 10:22, Gorka gork...@gmail.com wrote:







  Hi,

  Here is the message I get when the phone detects the tag.
  As I said, the first time the app is started, but the second time
  nothing happens.

  I/ActivityManager (107): Starting intent:
  {act=android.nfc.action.NDEF_DISCOVERED typ=text/plain flg=0x0100
  cmp=com.android.nfcvoicereader/.nfcvoicereader (has extras) } from pid
  189

  Thanks.

  On 11 abr, 09:48, Gorka gork...@gmail.com wrote:

   Hi,

   Yes, I have the onNewIntent method declared as you said.

   @Override
       public void onNewIntent(Intent intent) {
       Log.d(TAG,  On New Intent);

   }

   The problem is that i don´t get the message.

   On 9 abr, 09:34, nadam a...@anyro.se wrote:

Make sure onNewIntent is overridden correctly. Should look like this:

@Override
public void onNewIntent(Intentintent) {
    ...

}

On 8 Apr, 16:11, Gorka gork...@gmail.com wrote:

 Hi,

 I am trying to read NFC tags with my Nexus S mobile.

 In my Manifest file I have theintentfiltered:

          intent-filter
                 action
 android:name=android.nfc.action.NDEF_DISCOVERED/

                         data android:mimeType=*/* /

                  category
 android:name=android.intent.category.DEFAULT/
         /intent-filter

 When the mobile detects a tag and theintentis created by the system,
 my application is started. So, the filter works fine.

 The problem is that, once the application is opened viaIntent, if the
 mobile detects another NDEF_DISCOVERED the application doesnot
 receive it.

 I have implemented the onNewIntent method, but it isnotcalled. I
 also have added the android:launchMode=singleTop line to my
 activity.

 Does anyone know can I solve my problem?

 Thanks and bye.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Using Google Calendar API

2011-04-11 Thread New Developer
Thanks,  Jens

Yes this is on the emulator

Can you please tell me more about the Platform sources option  and tutorials to 
explain just what to do
Thanks in advance


On Apr 11, 2011, at 3:10 AM, Jens wrote:

 Are you running this on an emulator? They typically do not contain the
 calendar or calendar provider applications.
 
 You can build (from the platform sources) and install your own
 calendar provider APK on the emulator though.
 
 
 On 10 Apr, 21:08, New Developer secur...@isscp.com wrote:
 anyone solved the use of Google Calendar API ?
 
 tried the method  from  http://jimblackler.net/blog/?p=151
 content://calendar/calendars   and
 content://com.android.calendar/calendars
 
 I get the ERROR
 Failed to find provider info for com.android.calendar
 
 when I try the  google gdata  api's
 
 I have the jar files connected via  external libraries
 but this generates, compiles and shows no errors but executes with this 
 runtime ERROR
 
 Could not find class 'com.google.gdata.client.calendar.CalendarService',
 
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Advantage of services over multi threading ??

2011-04-11 Thread luiX_
well... I'll say very little in common, but that's true: you cannot do the
same with a service and an extra thread as the thread depends on the main
Activity and it dies when the Activity does :P

2011/4/11 Mark Murphy mmur...@commonsware.com

 On Mon, Apr 11, 2011 at 5:54 AM, Tushar Baviskar
 tushar.konn...@gmail.com wrote:
  What is the need of services in android, as same thing can be achieved
  by starting new task also?

 No, the same thing (whatever that is) cannot be achieved by
 starting new task also. Services and tasks have virtually nothing in
 common and certainly are not interchangeable.

 http://developer.android.com/guide/topics/fundamentals/services.html

 --
 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 Android Development_ Version 3.6 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Advantage of services over multi threading ??

2011-04-11 Thread Mark Murphy
On Mon, Apr 11, 2011 at 10:24 AM, luiX_ lui...@gmail.com wrote:
 an extra thread as the thread depends on the main
 Activity and it dies when the Activity does :P

Not really.

If you fork a thread from an Activity, and you do not stop the thread,
that thread will keep rolling along. However, if there are no live
components (e.g., no activities or services started), Android may
terminate the process in the not-too-distant future, and that will
nuke the thread at that point.

-- 
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 Android Development_ Version 3.6 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Advantage of services over multi threading ??

2011-04-11 Thread Kostya Vasilyev

A thread certainly does not depend on Activity.

Java Threads do not die or do anything else when an activity is 
closed, because they have no knowledge of activities and have nothing to 
do with Android (as should be apparent by the package name: Thread is 
defined in java.lang).


A service does not necessarily use threads, either. By default, a 
Service's callbacks are executed on the UI thread, just like Activity 
callbacks or BroadcastReceiver callbacks. Not every service is an 
IntentService (which does use threads) or creates threads in some other way.


And that's really the difference: a Service is a thing that Android is 
aware of, which can be used to various ends.


A service can be started or bound by other components, and/or given a 
foreground priority, which affect the process's lifetime, can be 
communicated with using Intents or AIDL, possibly by other applications. 
Last but not least, a service is visible to the user via the Settings 
app. None of this applies to a Java Thread.


On the other hand, plain Threads have their use too, where none of the 
above is needed or desired.


-- Kostya

11.04.2011 18:24, luiX_ ?:
well... I'll say very little in common, but that's true: you cannot 
do the same with a service and an extra thread as the thread depends 
on the main Activity and it dies when the Activity does :P


2011/4/11 Mark Murphy mmur...@commonsware.com 
mailto:mmur...@commonsware.com


On Mon, Apr 11, 2011 at 5:54 AM, Tushar Baviskar
tushar.konn...@gmail.com mailto:tushar.konn...@gmail.com wrote:
 What is the need of services in android, as same thing can be
achieved
 by starting new task also?

No, the same thing (whatever that is) cannot be achieved by
starting new task also. Services and tasks have virtually nothing in
common and certainly are not interchangeable.

http://developer.android.com/guide/topics/fundamentals/services.html

--
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 Android Development_ Version 3.6 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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Advantage of services over multi threading ??

2011-04-11 Thread luiX_
Sorry, my bad :(

2011/4/11 Mark Murphy mmur...@commonsware.com

 On Mon, Apr 11, 2011 at 10:24 AM, luiX_ lui...@gmail.com wrote:
  an extra thread as the thread depends on the main
  Activity and it dies when the Activity does :P

 Not really.

 If you fork a thread from an Activity, and you do not stop the thread,
 that thread will keep rolling along. However, if there are no live
 components (e.g., no activities or services started), Android may
 terminate the process in the not-too-distant future, and that will
 nuke the thread at that point.

 --
 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 Android Development_ Version 3.6 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Using Google Calendar API

2011-04-11 Thread Marcin Orlowski
On 10 April 2011 21:08, New Developer secur...@isscp.com wrote:

 anyone solved the use of Google Calendar API ?

 tried the method  from   http://jimblackler.net/blog/?p=151
 content://calendar/calendars   and
 content://com.android.calendar/calendars


This is not Google Calendar API. This is Calendar content provider you refer
too. These two are two completely different things, even they, in the end,
touch Google's Calendar content.

I get the ERROR
 Failed to find provider info for com.android.calendar
 when I try the  google gdata  api's


I got a feeling you try to access wrong thing with wrong tools


 I have the jar files connected via  external libraries


What for? Content proviver access does not need 3rd party libs to be used.



 Could not find class 'com.google.gdata.client.calendar.CalendarService',


Never seen anything like this on any devices. I suspect you totally got
things wrong. Plus, note, that Calendar API is not part of SDK (which sucks,
but that's what it is) and some devices may come with totally different app
for calendar. And finally, as already said, emulator does not feature
Calendar app, therefore no releated content provider exists. You may try to
copy Calendar related APKs from devices - it *might* work but I never tried
it myself as plugging usb the cable to the device worked perfect for me for
that task.


Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: 3d engine advices

2011-04-11 Thread elix
It is nice to see at least one response from this huge group :).

I'll develop games, I'll not port smt from desktop. Creating whole
game environments in opengl would be difficult for a single developer,
that's why I'm looking for engines.

jmonkey have nice tools for desktop but it seems that they are not
mature enough on android. I shall have a look at libgdx..


On Apr 10, 6:01 pm, Nicholas Johnson metthejohn...@gmail.com wrote:
 Are you trying to port a 3D desktop game to Android, or just create
 something new? If you're already familiar with using OpenGL on the desktop,
 it's actually not that big of a transition to OpenGL ES 1.x or 2.0. The API
 is reduced to its basics, but still offers almost everything you need.

 Now, here's a big caveat: I have *not* released any games onto the market
 using OpenGL (only 2D games which use the canvas directly from a customized
 View). However, I'm currently experimenting with OpenGL ES 2.0 and I'm very
 pleased with my initial results.

 As to the 2nd part of your question, no, I have no experience with any 3D
 engines you've listed. But, I'm sure somebody on this forum does.

 Nick

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Using Google Calendar API

2011-04-11 Thread Marcin Orlowski
On 11 April 2011 15:52, New Developer secur...@isscp.com wrote:


 Yes this is on the emulator


You may plant Calendar.apk from your device and it will work. Still it may
be better just o debug

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*



 Can you please tell me more about the Platform sources option  and
 tutorials to explain just what to do
 Thanks in advance


 On Apr 11, 2011, at 3:10 AM, Jens wrote:

  Are you running this on an emulator? They typically do not contain the
  calendar or calendar provider applications.
 
  You can build (from the platform sources) and install your own
  calendar provider APK on the emulator though.
 
 
  On 10 Apr, 21:08, New Developer secur...@isscp.com wrote:
  anyone solved the use of Google Calendar API ?
 
  tried the method  from  http://jimblackler.net/blog/?p=151
  content://calendar/calendars   and
  content://com.android.calendar/calendars
 
  I get the ERROR
  Failed to find provider info for com.android.calendar
 
  when I try the  google gdata  api's
 
  I have the jar files connected via  external libraries
  but this generates, compiles and shows no errors but executes with this
 runtime ERROR
 
  Could not find class 'com.google.gdata.client.calendar.CalendarService',
 
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Conflict in to MapController between Zoom Level and AnimateTo ?

2011-04-11 Thread olivier
I used a personnal ItemizedOverlay,

I extend OnTap(int index) where I call
MapController.animato(GeoPoint)

The coordinate of the geopoint are always the same but the animation
goes wrong depending of the zoom level

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] In-app billing refunds

2011-04-11 Thread Kostya Vasilyev
The documentation lists three states for a managed purchase: Purchased, 
Canceled, Refunded.


The sample code makes a point of treating Refunded as Purchased, 
commented as nice for the user. I agree.


But - I don't see a way to refund an in-app purchase in my Google 
Checkout console:


https://checkout.google.com/sell/orders

I can open a particular order, and that only has a button to Cancel 
entire order. Doing this sets purchase state to Canceled (1), not 
Refunded (2), which makes sense, since it says Cancel, not Refund.


Am I missing something? Anyone know where the Refund an order button is?

--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android - Preventing Application data or files being deleted thru “Clear Data” settings option

2011-04-11 Thread Jacob
Hi all

I have an Android application that stores about 25-40K of private app
data in few files. By default sytem stores these files in the
directory /data/data/'my app package'/files. When the user goes to
Setting-Applications-Manage Applications-'My app package' and
chooses the Clear data option, all the files, databases folders for
this app is being deleted. I need to keep my data on the device until
the app is uninstalled.

Is there a way to keep my application data on the device somewhere
without being deleted? My device is not rooted. My app is not meant to
be on rooted devices.

Note: I saw the /data/data/'my app package'/lib directory is not being
deleted using the clear data option. But I couldn't programatically
write to this direcroty. I get permission denied. Is there a way to
use this directory to store my data? Is there a way to use NDK (not
worked on it yet) to keep the data safe? Is there a way to keep the
data in application reosurce or something like a DLL resource in
Windows programing.

Any help please to get me out of this jam? I would really appreciate
it.

I have posted this on stackoverflow site also. I hope I am not
violating any rules. I apologize if i did.

Thank you; have a good day.
Jacob

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] In-app billing refunds

2011-04-11 Thread TreKing
On Mon, Apr 11, 2011 at 10:30 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 Am I missing something? Anyone know where the Refund an order button is?


I don't know if in-app billed stuff works different, but normally there's a
Refund some money... option link to the left of that Cancel entire order
button. Though it's poorly named as you can't refund some - it's all or
nothing.

Also, with normal purchases, canceling and refunding is essentially the
same.

-
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Using Google Calendar API

2011-04-11 Thread Marcin Orlowski
This post was sent by mistake (I managed to hit send instead of discard).
Sorry for the confusion it may have caused

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*



On 11 April 2011 17:08, Marcin Orlowski webnet.andr...@gmail.com wrote:


 On 11 April 2011 15:52, New Developer secur...@isscp.com wrote:


 Yes this is on the emulator


 You may plant Calendar.apk from your device and it will work. Still it may
 be better just o debug



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android - Preventing Application data or files being deleted thru “Clear Data” settings option

2011-04-11 Thread Marcin Orlowski
On 11 April 2011 17:57, Jacob jacobroutolo...@gmail.com wrote:


this app is being deleted. I need to keep my data on the device until
 the app is uninstalled.


Tell your users to keep hands off this button. Store something on SD card
to flag  you shall have your data and if you got no data but this file
exists
complain and stop working. But I think you shall rather rethink your goals.
Is there *really* any reason you bother this button?


 Is there a way to keep my application data on the device somewhere
 without being deleted?


SD card?


 My device is not rooted. My app is not meant to
 be on rooted devices.


Unless you test if device is rooted or not, it in fact means nothing.


 Note: I saw the /data/data/'my app package'/lib directory is not being
 deleted using the clear data option. But I couldn't programatically
 write to this direcroty. I get permission denied. Is there a way to
 use this directory to store my data?


Yes. You need root :)

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android - Preventing Application data or files being deleted thru “Clear Data” settings option

2011-04-11 Thread TreKing
On Mon, Apr 11, 2011 at 10:57 AM, Jacob jacobroutolo...@gmail.com wrote:

 I need to keep my data on the device until the app is uninstalled.


Why? If the user wants to wipe their data, why not let them?

-
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] In-app billing refunds

2011-04-11 Thread Kostya Vasilyev

11.04.2011 19:53, TreKing ?:
On Mon, Apr 11, 2011 at 10:30 AM, Kostya Vasilyev kmans...@gmail.com 
mailto:kmans...@gmail.com wrote:


Am I missing something? Anyone know where the Refund an order
button is?


I don't know if in-app billed stuff works different, but normally 
there's a Refund some money... option link to the left of that 
Cancel entire order button. Though it's poorly named as you can't 
refund some - it's all or nothing.


There is - but it's grayed out.



Also, with normal purchases, canceling and refunding is essentially 
the same.


The documentation treats them differently, and so does the Dungeons sample.

I was actually going to use that to issue a refund to a couple of people 
who helped me (with artwork and testing), seeing how the code treats 
Refunded as Purchased. The idea being that they would buy the in-app 
product, I would refund the purchase, and the app would keep working for 
them.


The checkout window that the users see on the device tells them contact 
the developer for refunds. Canceling an order would refund the money, so 
at least that works, but keeping the app working would be a nice touch.


Anyway. Filed a bug about this in the billing tracker.

http://code.google.com/p/marketbilling/issues/detail?id=11

--
Kostya Vasilyev -- http://kmansoft.wordpress.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Compiling Android Source

2011-04-11 Thread Andrew
Thanks for that suggestion. I downloaded and compiled Cyanogenmod's tree and 
it compiled the first time no problem. Now when compiling the application I 
am trying to test and modify (ADWLauncher), I get the following errors

packages/apps/android_packages_apps_Launcher/gen/com/android/launcher/Manifest.java:10:
 
duplicate class: com.android.launcher.Manifest
public final class Manifest {

packages/apps/android_packages_apps_Launcher/gen/com/android/launcher/R.java:10:
 
duplicate class: com.android.launcher.R
public final class R {

packages/apps/android_packages_apps_Launcher/src/com/android/launcher/Launcher.java:1371:
 
cannot find symbol
symbol  : variable SOURCE
location: class android.app.SearchManager
appSearchData.putString(SearchManager.SOURCE, 
launcher-search);

So an error in two generated files, and a reference to a SearchManager field 
that doesn't exist.

I am at a for a way of correcting them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Compiling Android Source

2011-04-11 Thread Andrew
And actually, those errors are the same as the ones I was getting when 
compiling the AOSP. It could be the problem with it was just the additional 
package it was trying to build that had an error. I will try compiling the 
AOSP version without the problematic package and see if it makes a 
difference...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Emulator is crashing a lot

2011-04-11 Thread Andrew
I have also been experiencing issues with the honeycomb emulator (Ubuntu 
10.10). I am just hoping that the source gets released soon so I can build 
it from scratch and load that image into the emulator...

In the mean time, I suggest using 2.2 or 2.3 for developing, then move it 
over once the 3.0 emulator functions properly.

Of course, if someone knows of a fix that would be awesome...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] package 3g data

2011-04-11 Thread Sarath Krishna
Hi,

I want to write a code for tracking 3g data usage in my phone. Can
anyone please tell me which android package should I use for this
purpose.

thanks in advance

sarath

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] package 3g data

2011-04-11 Thread XiaoXiong Weng
Um. I believe the netsentry source code is available in google code.
On 4/11/2011 12:35 PM, Sarath Krishna wrote:
 Hi,

 I want to write a code for tracking 3g data usage in my phone. Can
 anyone please tell me which android package should I use for this
 purpose.

 thanks in advance

 sarath



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android - Preventing Application data or files being deleted thru “Clear Data” settings option

2011-04-11 Thread Mark Murphy
On Mon, Apr 11, 2011 at 11:57 AM, Jacob jacobroutolo...@gmail.com wrote:
 I need to keep my data on the device until
 the app is uninstalled.

Please treat your users with respect. It is their device, not yours.
If they wish to clear the data, that is their choice.

If you have data that you do not want them to clear, don't put it on
the device. Access it from the Internet instead.

 My app is not meant to
 be on rooted devices.

Your users can and will root their phones, if they so choose.

 Note: I saw the /data/data/'my app package'/lib directory is not being
 deleted using the clear data option. But I couldn't programatically
 write to this direcroty. I get permission denied. Is there a way to
 use this directory to store my data?

I doubt it.

 Is there a way to use NDK (not
 worked on it yet) to keep the data safe?

I doubt it.

 Is there a way to keep the
 data in application reosurce or something like a DLL resource in
 Windows programing.

You can package whatever data you want with your APK (e.g., assets/),
and that data cannot be removed except by uninstalling, but that is
not modifiable at runtime.

-- 
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 Android Development_ Version 3.6 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Conflict in to MapController between Zoom Level and AnimateTo ?

2011-04-11 Thread lbendlin
I was more concerned that MyLocationOverlay could have interfered with the 
map movement. 
 
Does it happen on all zoom levels, or just 19 and up? Are you rotating the 
map?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Image processing in Android

2011-04-11 Thread Yahel
Bitmap memory management is buggy and completely unintuitive. It does
not show in MAT as it is allocated in another place and not counted in
the heap. Well it is counted but not easily released or something.

My app is all about images(a world of faces), and here is how I get it
to work most of the time :

//decodes image and scales it to reduce memory consumption
private Bitmap decodeFile(File f){
try {

//decode image size
BitmapFactory.Options o = new BitmapFactory.Options();
o.inJustDecodeBounds = true;
BitmapFactory.decodeStream(new FileInputStream(f),null,o);

//Find the correct scale value. It should be the power of
2.
final int REQUIRED_SIZE=480;
int width_tmp=o.outWidth, height_tmp=o.outHeight;
int sampleSize=1;
while(true){
if(width_tmp/2REQUIRED_SIZE || height_tmp/
2REQUIRED_SIZE)
break;
width_tmp/=2;
height_tmp/=2;
sampleSize*=2;
}


//decode with inSampleSize
Bitmap bitmap = null;
boolean cacheHasBeenCleared = false;

BitmapFactory.Options options = new
BitmapFactory.Options();
options.inSampleSize=sampleSize;
byte[] tempBuffer=new byte[8000];
options.inTempStorage = tempBuffer;

while ( (bitmap == null)  (sampleSize  64) ) {
try {
bitmap = BitmapFactory.decodeStream(new 
FileInputStream(f),
null, options);
} catch (OutOfMemoryError e) {

if (!cacheHasBeenCleared) {
this.clearMemoryCache();

//Try to free up some memory
System.gc();
System.runFinalization();
System.gc();

cacheHasBeenCleared = true;
}

sampleSize *=2;
}
}

return bitmap;

} catch (FileNotFoundException e) {}
return null;
}

The idea is to try to decode the file at top quality. If that throws
out of memory error, it tries to free memory and reopen the file but
with a smaller scale. Rinse and repeat.

Oh and don't think the second system.gc() can be removed that would be
so naïve of you :D That's Android framework we're talking about :D

Good luck with your app.

Yahel

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ImageView

2011-04-11 Thread b_t
Hi,

I have to do things with an ImageView after it
has got a size. For example set an animation which
depends on the size of the ImageView.

What is the official way to do size-dependent things?

I tried to create a new class from ImageView and
overwrite onMeasure. It worked on my phone but didn't
on the emulator?

Is there a good way to do it without creating a new class?

Thanks,
T.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: My first app

2011-04-11 Thread anik ralhan
Yes i did the same and the problem was fixed.Thanks everyone for giving so
many helpful suggestions.


On Sun, Apr 10, 2011 at 11:52 PM, Sven sirdarthna...@googlemail.com wrote:

 It seems you started your app from inside the main.xml. then the
 main.out.xml is generated. usualy you have to delete this file, then
 go into a java source and start app from there. it have something to
 do with the eclipse run settings. i hope this helps and was your prob

 On Apr 10, 11:31 pm, TreKing treking...@gmail.com wrote:
  On Fri, Apr 8, 2011 at 10:29 PM, anik rebellion.a...@gmail.com wrote:
   Please see if anyone can fix.
 
  Did you try reading the errors and looking at the files / lines they
  indicate for what could be wrong?
 
   Please reply as early as possible.
 
  I hope this is early enough for you!
 
 
 -
  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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*
--
Anik Ralhan*
*3rd year Student *
*Chitkara University*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] WebView Image Scaling

2011-04-11 Thread Jake Basile


I am writing an image viewer that downloads a PNG from a remote server, 
saves it to storage, and then opens it in a WebView so that I get 
multi-touch zoom for free. These images are usually going to be documents, 
so the user will want to be able to zoom in very far. I am sending down 
images of sufficient resolution to enable this, but the WebView seems to be 
helping me by scaling my image to the screen size to start out with. This 
means that my image is much too low resolution to be properly zoomed in on. 

I have searched around for this, and I have found some other people 
encountering a similar../d/msg/android-developers/ZXiqdqa8Tos/I_J8YR1As94J 
problem ../d/topic/android-developers/oc4e-SwFJbY/discussion, but the only 
possible solution I found was to cut the image up into tiles and reassemble 
them using HTML before loading it in the view. This seems like a kludge, and 
I am asking if anyone has either a way to turn off that scaling, or an 
alternative method to get what I need.

The code that initializes the WebView:

viewer = (WebView)findViewById(R.id.activity_imageviewer_webview);
viewer.setBackgroundColor(0);
WebSettings settings = viewer.getSettings();
settings.setJavaScriptEnabled(false);
settings.setBuiltInZoomControls(true);
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);

The code that loads the image into the WebView:

viewer.loadUrl(Uri.fromFile(imageFile).toString());

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Fragment backstack and action bar

2011-04-11 Thread jotobjects
Our designers like the idea of integrating the action bar with the
back stack, but we haven't found a realistic way to do that.  We have
been jumping through hoops with work arounds like adding empty
transactions to the back stack (with no removes or adds) and keeping
track of where we are and restoring the tabs and fragments to the
state at that point.  Seems like we have departed quite a ways from
the supported behavior of the fragment back stack.

A related thing is we don't want the activity to exit when the back
button is pressed if there have been a series of action bar tab
selections that we want to traverse back through.

Does anyone have any thoughts about how to organize the UI to get a
good user experience with the action bar and fragment back stack that
works with the Honeycomb use case model?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] WebView Image Scaling

2011-04-11 Thread Mark Murphy
On Mon, Apr 11, 2011 at 1:42 PM, Jake Basile jakerbas...@gmail.com wrote:
 I am writing an image viewer that downloads a PNG from a remote server,
 saves it to storage, and then opens it in a WebView so that I get
 multi-touch zoom for free. These images are usually going to be documents,
 so the user will want to be able to zoom in very far. I am sending down
 images of sufficient resolution to enable this, but the WebView seems to be
 helping me by scaling my image to the screen size to start out with. This
 means that my image is much too low resolution to be properly zoomed in on.

 I have searched around for this, and I have found some other people
 encountering a similar problem, but the only possible solution I found was
 to cut the image up into tiles and reassemble them using HTML before loading
 it in the view. This seems like a kludge, and I am asking if anyone has
 either a way to turn off that scaling, or an alternative method to get what
 I need.

 The code that initializes the WebView:

 viewer = (WebView)findViewById(R.id.activity_imageviewer_webview);
 viewer.setBackgroundColor(0);
 WebSettings settings = viewer.getSettings();
 settings.setJavaScriptEnabled(false);
 settings.setBuiltInZoomControls(true);
 settings.setUseWideViewPort(true);
 settings.setLoadWithOverviewMode(true);

 The code that loads the image into the WebView:

 viewer.loadUrl(Uri.fromFile(imageFile).toString());

If the image is big enough to warrant zooming, it might well be too
big for your heap space, in which case you'd need to tile it, anyway.

Beyond that, I would think it would be simpler just to implement your
own zoom logic on an ImageView:

http://blogs.sonyericsson.com/developerworld/category/tutorials/zoom/
http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847
http://stackoverflow.com/questions/3055133/android-multitouch-image-zooming/3059280#3059280

or use existing multi-touch-enabled widgets:

http://code.google.com/p/android-pinch/

-- 
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 Android Development_ Version 3.6 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using Google Calendar API

2011-04-11 Thread Jens
If you cannot find precompiled APKs of the calendar and calendar
provider (i.e. lift them from an actual Android device) you can build
the platform yourself:

http://source.android.com/source/initializing.html

and build your own SDK - it should contain the APKs you're looking
for. Optionally, you can copy the APKs from the build and install them
on the emulator you're already running.

Most devices should contain at least the provider but you should take
proper care and consider that you are effectively trying to integrate
with a 3rd party app that is different between different versions of
Android (such as the different URI authorities used by the provider)
and vendors (We've patched this particular provider for one phone
manufacturer already).

On 11 Apr, 09:52, New Developer secur...@isscp.com wrote:
 Thanks,  Jens

 Yes this is on the emulator

 Can you please tell me more about the Platform sources option  and tutorials 
 to explain just what to do
 Thanks in advance

 On Apr 11, 2011, at 3:10 AM, Jens wrote:

  Are you running this on an emulator? They typically do not contain the
  calendar or calendar provider applications.

  You can build (from the platform sources) and install your own
  calendar provider APK on the emulator though.

  On 10 Apr, 21:08, New Developer secur...@isscp.com wrote:
  anyone solved the use of Google Calendar API ?

  tried the method  from  http://jimblackler.net/blog/?p=151
  content://calendar/calendars   and    
  content://com.android.calendar/calendars

  I get the ERROR
  Failed to find provider info for com.android.calendar

  when I try the  google gdata  api's

  I have the jar files connected via  external libraries
  but this generates, compiles and shows no errors but executes with this 
  runtime ERROR

  Could not find class 'com.google.gdata.client.calendar.CalendarService',

  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how do i devlope an android keybord

2011-04-11 Thread Jens
The developer sample doesn't work anymore?

http://developer.android.com/resources/samples/SoftKeyboard/index.html

On 9 Apr, 21:13, ariel arielgordon...@gmail.com wrote:
 so i will try to rephrase my question.

 how i can build a keybord.

 On Apr 9, 2:10 am, Spiral123 cumis...@gmail.com wrote:

  hi Ariel.

  can you rephrase your statement as a question please?  When you say
  it dont run like keybord what do you mean?

  How did you try to run it?  In what way did it not run like keybord?

  On Apr 8, 7:09 am, ariel arielgordon...@gmail.com wrote:

   i try to dwonload SoftKeyboardLanguagePackTemplate but it dont run
   like keybord

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity Restart On Rotate Phone

2011-04-11 Thread anik ralhan
hey can you please send me the steps that you followed,actually m also
facing the same problem

On Sun, Apr 10, 2011 at 2:56 PM, Me tonasirin...@gmail.com wrote:

 Hi thanks group  I solved this one 



 On Mon, Apr 11, 2011 at 1:34 AM, TreKing treking...@gmail.com wrote:

 On Sun, Apr 10, 2011 at 1:12 AM, Jons Jean tonasirin...@gmail.comwrote:

 problem is this when I rotate phone its activity got restart , How I can
 handle it ?


 Read the documentation. This is covered extensively in the life cycle
 documentation.

 From google I find the way to handle this to add below line in menifest
 fine  I add this line but same problem  ,
  android:configChanges=orientation


 That's a hack around the main problem of saving state. Doing this so that
 you don't have to save your state will only mask the problem. You may not
 restart on orientation change, but your app will restart when you press Home
 and come back to it some time later. You should be able to handle this and
 switching orientation is the quickest and easiest way to test this.


 -
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 ---
 Regards :
Muhammad Nasir Aftab
 ---

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*
--
Anik Ralhan*
*3rd year Student *
*Chitkara University*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Emulator is crashing a lot

2011-04-11 Thread jtoolsdev
They would often take 3-4 retries on my 2.4 Ghz Ubuntu installation.
So on Friday I built a 64-bit 3 core Ubuntu machine and now they all
boot perfectly in 1 minute. Haven't run a 3.0 emulator on it yet.

On Apr 11, 9:21 am, Andrew andrew.g.crich...@gmail.com wrote:
 I have also been experiencing issues with the honeycomb emulator (Ubuntu
 10.10). I am just hoping that the source gets released soon so I can build
 it from scratch and load that image into the emulator...

 In the mean time, I suggest using 2.2 or 2.3 for developing, then move it
 over once the 3.0 emulator functions properly.

 Of course, if someone knows of a fix that would be awesome...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: unwanted scrollbar is coming in gridview

2011-04-11 Thread pakistancan
try setting layout_weight


--Ali


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Emulator is crashing a lot

2011-04-11 Thread Andrew Crichton
Well, I don't have problems with any of the other emulators at all, so I
can't think of a reason for my system to be the problem. I would be
interested to hear how you fair running the 3.0 emulator.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: 3d engine advices

2011-04-11 Thread Leigh McRae
I looked around at engines at one point and libgdx was the best for 
targeting Android IMHO.  The ability to develop most of your game on the 
PC is a ginormous advantage.  Your work flow will be much, much better.


The only thing I found with libgdx is that the engine made a wrapper 
around the OpenGL interface.   The problem is that both the Android and 
PC versions have to pay the over head of the interface.  What I did for 
my engine is make a copy of the OpenGL ES in Android and wire it to the 
PC version of OpenGL.  So the Android path has less over head.


As a note, I wrote Tank Recon 3D by myself in 3-4 months.  While the 
run-time engine does require a large body of work if you stay on target 
and only do exactly what you need to do it can be done.  Also you can 
count on a large amount of work involved in getting your assets into the 
game.  IIRC libgdx doesn't have assets loaders and plugins for content 
creation packages.


On 4/11/2011 10:57 AM, elix wrote:

It is nice to see at least one response from this huge group :).

I'll develop games, I'll not port smt from desktop. Creating whole
game environments in opengl would be difficult for a single developer,
that's why I'm looking for engines.

jmonkey have nice tools for desktop but it seems that they are not
mature enough on android. I shall have a look at libgdx..


On Apr 10, 6:01 pm, Nicholas Johnsonmetthejohn...@gmail.com  wrote:

Are you trying to port a 3D desktop game to Android, or just create
something new? If you're already familiar with using OpenGL on the desktop,
it's actually not that big of a transition to OpenGL ES 1.x or 2.0. The API
is reduced to its basics, but still offers almost everything you need.

Now, here's a big caveat: I have *not* released any games onto the market
using OpenGL (only 2D games which use the canvas directly from a customized
View). However, I'm currently experimenting with OpenGL ES 2.0 and I'm very
pleased with my initial results.

As to the 2nd part of your question, no, I have no experience with any 3D
engines you've listed. But, I'm sure somebody on this forum does.

Nick


--
Leigh McRae
http://www.lonedwarfgames.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   >