[android-developers] Re: Android Market Licensing: Now Available!

2010-08-27 Thread String
I suggest you start a new thread for this issue; this sticky topic
is better used for generalized discussion of LVL, not debugging of
individual issues.

String

On Aug 26, 5:31 am, Feelsocial feelsocial.andr...@gmail.com wrote:
 Hi String , i have uploaded and saved my new licensed version 2 of my
 application on market. And testing on my emulator but its still not
 allowing. My version 2 is still not published? Moreover, application
 licensed version 1 was running fine.Help me plzz..

 Thanks,

 On Aug 21, 2:29 pm, String sterling.ud...@googlemail.com wrote:







  I think you need to upload an APK with versioncode=2 to your Market
  console. You don't need to publish it, but you do need to upload and
  save that version before LVL will give a correct response for it.

  String

  On Aug 21, 9:15 am, Feelsocial feelsocial.andr...@gmail.com wrote:

   Hi all,

   I am facing the problem in licensing of my old published paid apps.
   Basically i have paid app which is published by version code 1. I
   implemented the license code on it, it working fine to me. Licensing
   server giving the response or allow that you can use it. But once i
   changed version code from 1 to 2 in manifest file, then licensing
   service not allow to use the app.Server giving the response dont
   allow. I not understanderd, y it has relation with version code? i
   can't publish the update version.???

   Moreover, i am already login to my publisher account, i have setting
   of LICENSED in edit profile section.

   Is any body can help me?.. Help

   On Jul 28, 1:19 am, Kaj Bjurman kaj.bjur...@gmail.com wrote:

I saw that entry, and have a question.

What will happen if the user doesn't have network connectivity? Many
users turn of data traffic when they travel to other countries, but
the probably still want to use the licensed applications.

On 27 Juli, 19:55, Trevor Johns trevorjo...@google.com wrote:

 Android fans,
 For those of you who haven't already heard through our blog, we've
 just launched the Android Market licensing service:

http://android-developers.blogspot.com/2010/07/licensing-service-for-...

 From the above blog post:

 This simple and free service provides a secure mechanism to manage
 access to all Android Market paid applications targeting Android 1.5
 or higher. At run time, with the inclusion of a set of libraries
 provided by us, your application can query the Android Market
 licensing server to determine the license status of your users. It
 returns information on whether your users are authorized to use the
 app based on stored sales records.

 Developer documentation is available here:

http://developer.android.com/guide/publishing/licensing.html

 Happy coding!

 --
 Trevor Johns
 Google Developer Programs, Androidhttp://developer.android.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: Can we install Android SDK on windows 7 if yes then how ?

2010-08-27 Thread Lorensius W. L. T
Works perfectly on win7 without no issues so far. Recomendded win7 64 bit,
faster...

On Fri, Aug 27, 2010 at 12:45 PM, Indrajit Kumar indermba1...@gmail.comwrote:

 Hey u can use eclipse and then install ur amdroid sdk... this works on win
 7 ...

 On Thu, Aug 26, 2010 at 10:53 PM, Chris Stewart cstewart...@gmail.comwrote:

 I've been developing mostly on Windows 7 with no issues at all.  I used
 the basic instructions in the Developer Guide.  I've also done some
 development on my Ubuntu netbook, which wasn't _quite_ as simple, but pretty
 simple.

 --
 Chris Stewart
 http://chriswstewart.com

 Fantasy 
 Footballhttp://chriswstewart.com/android-applications/fantasy-football/- 
 Android app for MFL fantasy football owners
 Fantasy Football 
 Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
  Android app for all fantasy football fanatics
 Social 
 Updaterhttp://chriswstewart.com/android-applications/social-updater/- An 
 easy way to send your status blast to multiple social networks



 On Thu, Aug 26, 2010 at 1:02 PM, Matty busbus...@gmail.com wrote:

 I followed the standard instructions on Windows 7, and everything
 works great.

 On Aug 25, 6:07 pm, Mark Murphy mmur...@commonsware.com wrote:
  On Wed, Aug 25, 2010 at 4:09 AM, Abbas stahaab...@gmail.com wrote:
   Can we install Android SDK on windows 7
 
  Yes.
 
   if yes then how ?
 
  By following the instructions for installing the Android SDK on
  Windows, presumably:
 
  http://developer.android.com/sdk/index.html
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy
 
  _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Inderjit Kumar
 9049235798

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




-- 
Kind Regards

- Lorensius W. L. T -
- http://www.londatiga.net -

-- 
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: Android Emulator vs iPhone emulator (Why does it take so long)

2010-08-27 Thread scur...@gmail.com
  Yes, it may be *extremely* challenging, but someone has
overcome this difficulty. Check this video out  -
http://www.youtube.com/watch?v=zAV4Jbmuhc4. It is on Windows and runs
apps. Looks like it's fast.

On Aug 24, 2:41 pm, Dianne Hackborn hack...@android.com wrote:
 On Tue, Aug 24, 2010 at 1:12 PM, Vedran Rodic vro...@gmail.com wrote:
  Both things contribute to iPhone development being significantly faster.
  I wish google did something like this for Android 3.0.

 This requires building the entire platform to run as native code on the host
 machine, as well as compiling a different version of the app if it has
 native code to run on the host.

 This is not going to happen any time soon.

 In fact you can build a simulator version of Android that runs on Linux.
  Ultimately though this is not very useful for app development because it
 has low fidelity with the real platform -- it can't use separate processes
 for each app, etc.

 Also being able to build a simulator that runs on Windows or Mac would be
 *extremely* challenging.  It is not too bad on a Linux desktop, because
 Android is based on Linux.  However making it run on another kernel would
 mean introducing a very significant compatibility layer across some large
 section of user space to allow it to run on these very different kernels.

 You'll notice that the iPhone simulator only runs on Mac.

 I don't think the significant effort to get a production quality Android
 simulator, that ends up only being able to run on Linux, would be anywhere
 near worth the effort.

 Also, as has been pointed out, you should only need to boot the emulator
 once.  After that you keep it running and just reinstall your app on it...
  just like working with a device.

 --
 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] UI Monkey questions

2010-08-27 Thread Samuh
Is it possible to subject only a few activities of an application to
events generated by UI Monkey tool?

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] Re: Excellent UI Design from TAT

2010-08-27 Thread argon gold
 And do you know if they designed purely beased on Android UI Framework
including OpengGL or they have integrated their own extensions of framework
to achieve such effects?

Regards,
argongold

On Fri, Aug 27, 2010 at 10:49 AM, Dianne Hackborn hack...@android.comwrote:

 TAT did the UI design for Android 1.0.

   On Thu, Aug 26, 2010 at 6:25 PM, argon gold argongol...@gmail.comwrote:

   Sure, their design is innovative and unique.

 Is it possible based on current UI frame work we can obtain such effects
 and slick design. What I Konw TAT has design their own frame work beside
 using OpengGL and they are selling  only to Vendors.

 Is any one from Google UI Team can comment on it.

 Regards,
 argongold



 On Fri, Aug 27, 2010 at 1:10 AM, Bret Foreman bret.fore...@gmail.comwrote:

 Very nice. Google should buy them and offer this stuff as part of the
 standard Android dev platform. Or maybe Google is already working on
 something just as slick.

 --
 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.comandroid-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.comandroid-developers%2bunsubscr...@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.comandroid-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

[android-developers] Re: String being truncated when its long

2010-08-27 Thread ko5tik
I do following ( much the same as you ), but instead bothering with
readline()
I just use HTTP Client code  to retrieve string:

 HttpGet get = new HttpGet(pullUrl + ?since= + since);
 HttpResponse response = httpClient.execute(get);
 JSONArray jsonArray = new JSONArray(new
JSONTokener(EntityUtils.toString(response.getEntity(;

And BTW - not buffer size shall be not 8000, but 8192 ;)

regards,
On Aug 27, 1:25 am, Achanta krishna.acha...@gmail.com wrote:
 Hi Jake,

 I was actually doing this without the response handler. I tried that
 one only when I started facing this problem. But the result is the
 same.

 On Aug 26, 5:21 pm, Jake Radzikowski radzikowski.j...@gmail.com
 wrote:

  Could you try removing the responseHandler?

  On Thu, Aug 26, 2010 at 4:13 PM, Achanta krishna.acha...@gmail.com wrote:
   I Tested your suggestions by setting UTF-8 and I also tried the same
   by removing the length 8000. But it still does the same thing.
   Thank you for the response though.

   This thing is driving me nuts.

   On Aug 26, 4:58 pm, Jake Radzikowski radzikowski.j...@gmail.com
   wrote:
reader = new BufferedReader(new InputStreamReader(inputStream), 8000);
   I'm
gunna guess that 8000 has something to do with it :). I usually use the
following:

reader = new BufferedReader(new InputStreamReader(inputStream, 
UTF-8));

On Thu, Aug 26, 2010 at 3:40 PM, Achanta krishna.acha...@gmail.com
   wrote:

 I am trying to get a JSON response from our server and the response
 string seems is always being truncated when the string length reaches
 to around 5525 characters.

 HttpClient httpClient = new DefaultHttpClient();
 HttpPost post = new HttpPost(URL);
 ResponseHandlerString responseHandler= new BasicResponseHandler();
 String testResponse = httpClient.execute(post, responseHandler);

 I also tried this by using HttpEntity and reading the response stream.
 But that also truncates the string at approximately that length.

            HttpClient httpClient = new DefaultHttpClient();
            HttpPost post = new HttpPost(URL);
 //          HttpGet get = new HttpGet(URL);

            HttpResponse response = null;
            HttpEntity entity = null;
            InputStream inputStream = null;
            BufferedReader reader = null;
            String result = ;
            try {
                response = (HttpResponse)httpClient.execute(post);
                entity = response.getEntity();
                if(entity != null){
                    inputStream = entity.getContent();
                }
                reader = new BufferedReader(new
 InputStreamReader(inputStream), 8000);
                StringBuffer builder = new StringBuffer();
                String line = reader.readLine();
                while(line != null){
                    Log.v(tag, int max: +Integer.MAX_VALUE);
                    Log.v(tag, LINE: +line
 +reader.toString());
                    Log.v(tag, reader: +reader.toString());
                    builder.append(line+\n);
                    line = reader.readLine();
                }
                inputStream.close();
                result = builder.toString();
            } catch (ClientProtocolException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } finally{
                if(inputStream != null){
                    try{
                        inputStream.close();
                    }catch(IOException e){
                        e.printStackTrace();
                    }
                }
            }

 Please let me know how I can handle this problem. I used this post as
 the reference while creating this.

http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu.
   ..

 I tested the link in my browser and it does return the complete JSON.
 So I am sure the issue is with my code in android.

 Thank you.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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] Re: Contact Icons

2010-08-27 Thread William Ferguson
Anyone?

On Aug 26, 6:12 pm, William Ferguson william.ferguson...@gmail.com
wrote:
 I want to reuse those icons displayed by the Contacts app that
 represent the different types of Contact.
 Ie Contacts-Create Contact asks Save contact to and gives options
 like Phone, SIM, Google which each have an icon.

 I've searched through the SDK and even through the source but I can't
 find anything like the 3 icons displayed.

 The Phone contact icon is a white phone on a green background.
 The SIM icon is a green SIM card with gold contacts.
 And the Google icon is a white lower case 'g' on a black background.

 Are these icons common to all phones or are they specific the Galaxy
 S?

 Does anyone known where I can find 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] remote db connection

2010-08-27 Thread vineeshkc
pls give me remote db connection code

-- 
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] Nested dialog and have a child dialog return a string to update EditText file in Parent Dialog, is this possible?

2010-08-27 Thread Mystique


How to do this part correctly?
// Start How do I do this part correction?

EditText ppString = (EditText)
layout1.findViewById(R.id.p_string);
ppString.setText(pString);

// End How do I do this part correction?

I try to put in handler - runInUIThread seems that I cannot declare
layout1.findViewById(R.id.p_string), if I use only
findViewById(R.id.p_string) I can run but crash.

What I want to do is to have user input a form display as dialog
format, pressing a button will start a child dialog (dialog2)
accepting some radio button to generate a String result to update and
display a EditText field in Dialog1.

Is this possible? How do I do it?

---code---
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case ADD_DIALOG_ID:
LayoutInflater inflater1 = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View layout1 =
inflater1.inflate(R.layout.add_pwd, (ViewGroup)
findViewById(R.id.content0));
final AlertDialog.Builder builder1 = new
AlertDialog.Builder(this);

final Button genButton = (Button)
layout1.findViewById(R.id.genpass_button);

genButton.setOnClickListener(new
Button.OnClickListener() {
@Override
public void onClick(View v) {
showDialog(GEN_DIALOG_ID);

// Start How do I do this part correction?

EditText ppString = (EditText)
layout1.findViewById(R.id.p_string);
ppString.setText(pString);

// End How do I do this part correction?

}
});

builder1.setView(layout1);
// Now configure the AlertDialog
builder1.setTitle(R.string.app_name);
AlertDialog newPDialog = builder1.create();
return newPDialog;

case GEN_DIALOG_ID:
Main.this.removeDialog(ADD_DIALOG_ID);
LayoutInflater inflater2 = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View layout2 =
inflater2.inflate(R.layout.generate_pwd, (ViewGroup)
findViewById(R.id.generate_pwd));
final AlertDialog.Builder builder2 = new
AlertDialog.Builder(this);

RadioGroup radioGroup = (RadioGroup)
layout2.findViewById(R.id.password_type);
radioGroup.setOnCheckedChangeListener(new
OnCheckedChangeListener()
{
@Override
public void onCheckedChanged(RadioGroup group, int
checkedId) {
//---displays the ID of the RadioButton that
is checked---
switch (checkedId) {
case R.id.this:
ToastBox(Lowercase);
Type = -l;
break;
case R.id.that:
ToastBox(Uppercase);
passwordType = -u;
break;
}
}
});

builder2.setView(layout2);
// Now configure the AlertDialog
builder2.setTitle(R.string.sword_type);

builder2.setPositiveButton(android.R.string.ok, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
try {
final EditText pLength = (EditText)
layout2.findViewById(R.id.p_length);
ppLength =
Integer.parseInt(pLength.getText().toString());
pString = 
PGenerator.GetRandomP(pType, pLength);
} catch (Exception e) {
// TODO Auto-generated 
catch block
e.printStackTrace();
}

Main.this.removeDialog(GEN_DIALOG_ID);
showDialog(ADD_DIALOG_ID);
}
});

builder2.setNegativeButton(android.R.string.cancel, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
// We forcefully dismiss and remove the Dialog, 
so it
// cannot be used again (no cached info)
Main.this.removeDialog(GENPASSWORD_DIALOG_ID);

[android-developers] Re: android 2.1 issue

2010-08-27 Thread Indicator Veritatis
If it wasn't very useful, then why is it still appearing on a stack
trace in 2.1? Android itself is using it, so it must be useful --
unless you still have a lot of useless crap that needs to be removed
even from 2.1;)

And what did you hope to achieve by hedging, saying may have been?
It WAS included. I found it in the copy of the docs at
http://www.androidjavadoc.com/1.0_r1_src/android/app/ActivityThread.html
It is (was) in the android.app package. So if it is no longer
supported, it should have been marked in newer SDK's as deprecated.
Why wasn't it?

In any case, I take it the modern way of managing the execution of the
Activity's main thread is to use Handler and Looper, NOT use
ActivityThread, leaving all other 'managing' of the thread to the
system.

On Aug 26, 8:27 pm, Dianne Hackborn hack...@android.com wrote:
 ActivityThread is a private implementation of the framework.  It may have
 been accidentally included in the SDK in 1.0, but if it was it wasn't very
 useful.

 On Thu, Aug 26, 2010 at 7:47 PM, Indicator Veritatis mej1...@yahoo.comwrote:

  Just to make sure we know exactly which method you are really talking
  about, it is always a good idea to specify which package the method
  under discussion is in. I assume you are talking about the
  openStream() method of the URL class in package java.net (openstream
  came up with exact matches only in posts).

  If so, the answer is yes, it is still supported. In fact, it is hard
  to imaging using the URL class without it.

  I'll give away another little trade secret too: I figured this out by
  doing a Google query with keys android developer openstream.

  So now that we know your first guess was wrong, openStream() is still
  supported, your stack trace only tells us a null pointer exception
  (NPE) took place, but it does not show which line of your code might
  have triggered this.

  Now what I would like to know is why the ActivityThread mentioned in
  your trace is documented in the 1.0 version of the Android Javadocs,
  but not in the most current (2.2) online docs. But this might not help
  here anyway.

  Back to your problem: when the internal Android code comes back with a
  NPE, it usually means you left something uninitialized or improperly
  initialized: I often see this, for example, with the MediaPlayer if
  the URL is not squeaky clean and the website online. But since you
  gave a stack trace including only our own code, we cannot help you
  figure out which thing was left improperly initialized.

  On Aug 22, 4:30 pm, AUandroid thevk...@gmail.com wrote:
   Hi All,

   I have a app that runs properly on andorid 1.6 and on my test G1
   phone. It is force closing on the new Android 2.1 phones.I am parsing
   XML( from internet) and displaying in a listview.   Is the
   openstream() method no longer supported. If I debug the app in api
   level 7, xml is correctly parsed when I step execute it, as soon as I
   hit continue the app gives the following stack. Any ideas?

   here is the stack

   Thread [3 main] (Suspended (exception NullPointerException))
           ViewRoot.draw(boolean) line: 1373
           ViewRoot.performTraversals() line: 1114
           ViewRoot.handleMessage(Message) line: 1633
           ViewRoot(Handler).dispatchMessage(Message) line: 99
           Looper.loop() line: 123
           ActivityThread.main(String[]) line: 4363
           Method.invokeNative(Object, Object[], Class, Class[], Class, int,
   boolean) line: not available [native method]
           Method.invoke(Object, Object...) line: 521
           ZygoteInit$MethodAndArgsCaller.run() line: 860
           ZygoteInit.main(String[]) line: 618
           NativeStart.main(String[]) line: not available [native method]

  --
  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.comandroid-developers%2bunsubscr...@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] Facing licensing issue in already published paid app

2010-08-27 Thread Feelsocial
HI Trevor Johns. i am testing in AVD of froyo 2.2 (Google API) and
login with my market account in google account. The question is that
when i changed the my app version from 1 to 2, google licensing server
not allowing me to use app. Where when i again change it to 2 from 1,
its allowin me to use app. So in short, app version 1 is working fine
where app version 2 not.What mistake i am doing ? Please help me

-- 
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: Facing licensing issue in already published paid app

2010-08-27 Thread Feelsocial
Yes Don. I am also not knowing whats the issue at our end?

On Aug 22, 12:25 pm, Don donal.morris...@gmail.com wrote:
 Hello,
 I had some problems with one of my published apps, where the licensing
 would always fail (even though my other apparently were fine).
 I had to re-create my eclipse project to sort the problem. Doesn't
 really make sense why, but it worked...
 Don

 On Aug 21, 9:16 am, Feelsocial feelsocial.andr...@gmail.com wrote:

  Hi all,

  I am facing the problem in licensing of my old published paid apps.
  Basically i have paid app which is published by version code 1. I
  implemented the license code on it, it working fine to me. Licensing
  server giving the response or allow that you can use it. But once i
  changed version code from 1 to 2 in manifest file, then licensing
  service not allow to use the app.Server giving the response dont
  allow. I not understanderd, y it has relation with version code? i
  can't publish the update version.???

  Moreover, i am already login to my publisher account, i have setting
  of LICENSED in edit profile section.

  Is any body can help me?.. Help



-- 
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: Android bitmap allocation weirdness

2010-08-27 Thread Viktor
Why wouldn't nulling b mark the array for garbage collection? What
other pointers to the array could there be?

I tried your suggestions with no success.

On Aug 25, 6:23 pm, DanH danhi...@ieee.org wrote:
 OK, I see that you're nulling b between the two allocations.  But
 that doesn't assure that all pointers to the array are destroyed.  Try
 placing the = new and = null statements in a called method ( just
 for grins return b from that method and assign it in your original
 method).

 On Aug 25, 10:40 am, DanH danhi...@ieee.org wrote:



  The first array is 20 MB.  The second is also 20 MB.  What's the
  problem?

  On Aug 24, 4:28 pm, Viktor vilainpe...@gmail.com wrote:

   I'm having some trouble understanding why this code

   public class BitmapAllocTest extends Activity {
       /** Called when the activity is first created. */
       @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           byte[] b = new byte[20 * 1000 * 1000];
           b = null;
          Bitmap.createBitmap(2500, 2000,Bitmap.Config.ARGB_);
       }}

   throws an OutOfMemory exception on a device with a 24mb heap limit. If
   I comment out either of the allocations it runs fine. I was under the
   impression that the java vm would try to garbage collect before
   throwing OutOfMemory exceptions.

   I suspect it having to do withandroidallocating the bitmaps on the
   native heap.

   PS. This is a clone from my stackoverflow 
   questionhttp://stackoverflow.com/questions/3546635/android-bitmap-allocation-...
   which hasn't gotten a satisfactory answer yet.- Hide quoted text -

 - Show quoted text -

-- 
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: Facing licensing issue in already published paid app

2010-08-27 Thread Pent
 I am facing the problem in licensing of my old published paid apps.
 Basically i have paid app which is published by version code 1. I
 implemented the license code on it, it working fine to me. Licensing
 server giving the response or allow that you can use it. But once i
 changed version code from 1 to 2 in manifest file, then licensing
 service not allow to use the app.

The server version on the market server must match the one in the
manifest.

Pent

-- 
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] Atul Raut wants to chat

2010-08-27 Thread Atul Raut
---

Atul Raut wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-f1868ff544-3e674e51b3-aDDvxbZRH4BnV3YIsCdYypg1QhM
You'll need to click this link to be able to chat with Atul Raut.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Atul Raut, visit:
http://mail.google.com/mail/a-f1868ff544-3e674e51b3-aDDvxbZRH4BnV3YIsCdYypg1QhM

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
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: android 2.1 issue

2010-08-27 Thread Dianne Hackborn
On Fri, Aug 27, 2010 at 12:14 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 If it wasn't very useful, then why is it still appearing on a stack
 trace in 2.1? Android itself is using it, so it must be useful --
 unless you still have a lot of useless crap that needs to be removed
 even from 2.1;)


It's part of the framework implementation.  There are lots of things in the
internal framework impl that you'll see in stack traces.


 And what did you hope to achieve by hedging, saying may have been?
 It WAS included. I found it in the copy of the docs at
 http://www.androidjavadoc.com/1.0_r1_src/android/app/ActivityThread.html
 It is (was) in the android.app package. So if it is no longer
 supported, it should have been marked in newer SDK's as deprecated.
 Why wasn't it?


Oh...  what the heck is that?  That isn't official documentation.  It looks
like someone is generating Java docs from the raw source code, but not
taking into account the @hide annotations to hide things from the SDK docs
that aren't available to apps.  I wouldn't trust anything I see in that doc.


 In any case, I take it the modern way of managing the execution of the
 Activity's main thread is to use Handler and Looper, NOT use
 ActivityThread, leaving all other 'managing' of the thread to the
 system.


ActivityThread has *never* been an application API.  It doesn't have
anything intended for direct use by apps.  You also don't manage the main
app thread; the framework does that, with this and various other classes.
 You can just use the normal Handler facility to enqueue messages/runnables
on the main thread.

-- 
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] Re: Excellent UI Design from TAT

2010-08-27 Thread Dianne Hackborn
On Thu, Aug 26, 2010 at 11:22 PM, argon gold argongol...@gmail.com wrote:

  And do you know if they designed purely beased on Android UI Framework
 including OpengGL or they have integrated their own extensions of framework
 to achieve such effects?


I have no idea what they are doing now.  I just know they designed much of
the UI that appeared in Android 1.0.  Just the design, mind you; the
implementation was done with the current Android framework.

-- 
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] Re: Android Emulator vs iPhone emulator (Why does it take so long)

2010-08-27 Thread Dianne Hackborn
Great, go use that.  And contributions are welcome as well.

On Thu, Aug 26, 2010 at 11:18 PM, scur...@gmail.com scur...@gmail.comwrote:

  Yes, it may be *extremely* challenging, but someone has
 overcome this difficulty. Check this video out  -
 http://www.youtube.com/watch?v=zAV4Jbmuhc4. It is on Windows and runs
 apps. Looks like it's fast.

 On Aug 24, 2:41 pm, Dianne Hackborn hack...@android.com wrote:
  On Tue, Aug 24, 2010 at 1:12 PM, Vedran Rodic vro...@gmail.com wrote:
   Both things contribute to iPhone development being significantly
 faster.
   I wish google did something like this for Android 3.0.
 
  This requires building the entire platform to run as native code on the
 host
  machine, as well as compiling a different version of the app if it has
  native code to run on the host.
 
  This is not going to happen any time soon.
 
  In fact you can build a simulator version of Android that runs on
 Linux.
   Ultimately though this is not very useful for app development because it
  has low fidelity with the real platform -- it can't use separate
 processes
  for each app, etc.
 
  Also being able to build a simulator that runs on Windows or Mac would be
  *extremely* challenging.  It is not too bad on a Linux desktop, because
  Android is based on Linux.  However making it run on another kernel would
  mean introducing a very significant compatibility layer across some large
  section of user space to allow it to run on these very different kernels.
 
  You'll notice that the iPhone simulator only runs on Mac.
 
  I don't think the significant effort to get a production quality Android
  simulator, that ends up only being able to run on Linux, would be
 anywhere
  near worth the effort.
 
  Also, as has been pointed out, you should only need to boot the emulator
  once.  After that you keep it running and just reinstall your app on
 it...
   just like working with a device.
 
  --
  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.comandroid-developers%2bunsubscr...@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] Re: Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-27 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/26/10 17:54 , Chris Stewart wrote:
 Yeah I can imagine.  I think what you should focus on is that your
downloads
 are _steadily_ rising.  That's really what matters most and so if that
 continues and your position isn't being affected, negatively, I wouldn't
 worry too much about it.
Hmmm... I disagree. We have discussed that there could be non-worrying
reasons for the phenomenon (*), but of course downloads increasing and
active installations not increasing may be as well the warning of a
problem. For instance, you're advertising your application in such a
way that users are really excited about it, but the app doesn't match
their expectations; or they are searching for some feature that is in
the app, but they can't find it (for an usability design problem). I
suppose that in this case, sooner or later you also get a negative
review, tough.

(*) Reading that so many of us seem to be experiencing the same thing
at the same moment, I'm guessing whether it's a market bug... it would
be nice to eventually have a feedback from the Google engineers
confirming that on their side everything is fine.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkx3cCsACgkQeDweFqgUGxe0EgCgmBPrhYB8nVlh0E4ddQll9bbG
kPYAmLnfJVe9kJR6zWpT5YsRP0iJPrs=
=nR6O
-END PGP SIGNATURE-

-- 
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: Bluetooth listening to the RFCOMM connection failed.

2010-08-27 Thread Ryan Wang
One more thing. I am working for java app. The only api for bluetooth
is list in the SDK. I cannot call the internal package. and cannot use
javax.obex things.

-- 
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] Home button in Beagle board

2010-08-27 Thread SREEHARI
Hi All,

I am testing some android apps in a beagle board with Android 2.1. But
I came to know that there is no home button in the board. I have to
test some home apps also. How will I get the Home Button press?? Is
there any way to do this?

Thanks,
SREEHARI

-- 
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] Home button in Beagle board

2010-08-27 Thread SREEHARI
Hi All,

I am testing some android apps in a beagle board with Android 2.1. But
I came to know that there is no home button in the board. I have to
test some home apps also. How will I get the Home Button pressed?? Is
there any way to do this?

Thanks,
SREEHARI

-- 
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] detecting/intercepting incoming calls

2010-08-27 Thread Ray Thomson
Hi folks,

I was trying to come up with an app that works on the call that a user gets
on his phone. For this I wanted to know whether it is possible for me to get
intimated when a call comes to the phone and is it possible to intercept the
same. I tried to go through quite a few forums but could not get conclusive
evidence on how to achieve this.

Does anyone have an idea whether this is feesible and if so then how?

-- 
Thanks,
Ray

-- 
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: J2ME to Android

2010-08-27 Thread Indicator Veritatis
Since Android does not include the javax.microedition package, one
should not expect an exact equivalent. But we do have the
org.apache.conn and org.apache.http.* packages; some of us think these
are much better than anything in javax.microedition!

One should still expect to use a very little bit from java.net, e.g.
the Url and Uri classes.

On Aug 26, 1:40 pm, kypriakos demet...@ece.neu.edu wrote:
 Does anyone know the equivalent of these imports from J2ME to
 Android?

 import javax.microedition.io.Connector;
 import javax.microedition.io.HttpConnection;
 import javax.microedition.io.SocketConnection;
 import javax.microedition.io.StreamConnection;

 Also, I needed to import midpapi20.jar but I don't want to use
 packages
 outside Android into my app -- would I be able to find most of the
 related packages in Android libs?

 Thanks very much

-- 
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: back_key implementation

2010-08-27 Thread SREEHARI

Hi Praveen,

   Assume there are 3 activities A, B and C.
   A is the 1st one. A starts B and B starts C. Usually when we click
back button from C activity it will go to B. But u want the control to
go to activity A, rite

After starting the activity C from B, you can finish the activity B.
So that A will be there on the top of C in the stack. So A will get
called when u click back from C.

Regards,

SREEHARI

-- 
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: Home button in Beagle board

2010-08-27 Thread AJ
from adb shell type the following command
adb shell input keyevent 3


Thanks,
AJ

On Aug 27, 1:15 pm, SREEHARI sreehari.madhusooda...@wipro.com wrote:
 Hi All,

 I am testing some android apps in a beagle board with Android 2.1. But
 I came to know that there is no home button in the board. I have to
 test some home apps also. How will I get the Home Button pressed?? Is
 there any way to do this?

 Thanks,
 SREEHARI

-- 
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 upgrade android emulator to Android2.2 froyo.

2010-08-27 Thread SREEHARI
You need to get new ADT version also
( ADT-0.9.7 will do)

REgards,
SREEHARI

-- 
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] getting a java.lang.VerifyError

2010-08-27 Thread pramod.deore
I had write one application in that I am reading a image and sending
it to the server , I am using Base64OutputStream class . I had tried
it in core java and image is encoded successfully, But when I am using
same logic in android then I am getting error as
java.lang.VerifyError .


And Logcat gives following error as

08-27 14:11:35.285: ERROR/AndroidRuntime(371): Uncaught handler:
thread main exiting due to uncaught exception
08-27 14:11:35.405: ERROR/AndroidRuntime(371): java.lang.VerifyError:
org.apache.commons.codec.binary.Base64OutputStream
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
com.micro.encodeImage.EncodeImage.encodeImage(EncodeImage.java:46)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
com.micro.encodeImage.EncodeImage.onCreate(EncodeImage.java:35)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.os.Looper.loop(Looper.java:123)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
android.app.ActivityThread.main(ActivityThread.java:4203)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
java.lang.reflect.Method.invokeNative(Native Method)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
java.lang.reflect.Method.invoke(Method.java:521)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
08-27 14:11:35.405: ERROR/AndroidRuntime(371): at
dalvik.system.NativeStart.main(Native Method)


how to solve this issue?

-- 
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: Problem with interecepting outgoing calls on HTC Desire

2010-08-27 Thread billas
As it seems the HTC Desire (2.2) responds to setResultData(null)
wich will stop the out dial. Then you can place a new intent
(Action.CALL) to call the new number.
Not so nice workaround, but as a user you hardly notice it.

On 26 Aug, 14:42, billas tobias.bil...@gmail.com wrote:
 Here to. Exact same problem. Tested onHTCDesire2.2 (not working).
 It seems like it ignoring the resultData from the broadcastreceiver.
 Earlier tested onHTCHero build 2.73.405.x (android 1.5) where the
 Dialer application doesn't even send a broadcast!!
 Current build onHTCHero (android 2.1) works perfectly.

 I'm getting a bit desperate for a good workaround

 ./tobias

 On 18 Aug, 21:31, Denis Souza denis.so...@gmail.com wrote:



  I'm getting the exact same problem.
  I have an app that changes the number being dialed.
  It works on everything except theHTCDesirewith Android 2.2. Works
  withDesireon 2.1 and with any other device I tested with 2.2. There
  are reports from several of my users using 2.2 devices and it works on
  all of them except for theHTCDesire.

  I'm think it might be a bug introduced byHTC.

  If you find a workaround let me know.. I'm still looking...

  Denis Souza

  On Aug 18, 10:20 am, Nicolas Zerr nicolas.z...@gmail.com wrote:

   Hello,

   I'm having troubles with intercepting outgoing calls. In fact, it
   works perfectly on emulator 2.1 and 2.2, and was running also
   perfectly on myHTCDesirewhen i was in 2.1 version.

   Here is some source code :

   package com.testcallcatch.test;

   import android.content.BroadcastReceiver;
   import android.content.Context;
   import android.content.Intent;
   import android.util.Log;

   public class OutgoingCallReceiver extends BroadcastReceiver {
       @Override
       public void onReceive(Context context, Intent intent) {
           Log.d(LOOK HERE, - + getResultData());
           setResultData(0123456789);
           Log.d(LOOK HERE, Setting to 0123456789);
       }

   }

   And the manifest :

   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
           package=com.testcallcatch.test android:versionCode=1
           android:versionName=1.0
           application android:icon=@drawable/icon android:label=@string/
   app_name

                   activity android:name=.TestCallCatch 
   android:label=@string/
   app_name
                           intent-filter
                                   action 
   android:name=android.intent.action.MAIN /
                                   category 
   android:name=android.intent.category.LAUNCHER /
                           /intent-filter
                   /activity

                   receiver android:name=.OutgoingCallReceiver
                           intent-filter android:priority=2147483646
                                   action 
   android:name=android.intent.action.NEW_OUTGOING_CALL /
                           /intent-filter
                   /receiver
           /application

           uses-sdk android:minSdkVersion=7 /

           uses-permission
   android:name=android.permission.PROCESS_OUTGOING_CALLS/uses-
   permission
   /manifest

   As you can see, it is a very simple sample, but it's not working on
  HTCDesireunder 2.2 . I suspect this comes fromHTC, but I wonder if
   there are other devices with this bug.

   The app replaces each called number by 01232456789. Don't forget to
   uninstall the application once done ;)

   So I'm searching people for testing this little app :

   - People who haveHTC2.2 device
   - People who have other devices that run 2.2 android version.

   Maybe someone has already solved this problem?

   Thanks a lot in advance,

   Nicolas

-- 
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: getting a java.lang.VerifyError

2010-08-27 Thread pramod.deore
I think it is because Base64OutputStream is with API level 8 and I am
testing it on G1. But suppose I want to develop an application which
read image and encode it in Base64 format then how to do that using
small byte array like 10240 bytes.

-- 
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] Return value of 0 from getWallpaperDesiredMinimumWidth/Height()

2010-08-27 Thread String
Hi all,

Been chasing this bug for the last couple of days with a helpful user
who owns a Garminfone. The app in question includes wallpapers; on
compliant 2.1+ devices it uses live wallpaper, but for others (like
the Garminfone, which is stuck on 1.6), it just uses
Context.setWallpaper(). In order to generate a wallpaper bitmap of the
correct size, I first call Context.getWallpaperDesiredMinimumWidth()
and ...Height(). This has worked fine on every other handset I know
of, but on the Garminfone, these functions apparently return 0.

So, a few questions for the group...

First, has anyone run across this before, on any handset? If so, any
tips? I doubt that there's anything I'm doing wrong - these functions
are dead simple - but anything's possible, of course.

Second, any good ideas for a workaround? I tried making a reasonable
guess like this:

final DisplayMetrics dm = getResources().getDisplayMetrics();
if ((wallWidth = 0) || (wallHeight = 0)) {  // these are the values
returned from getDesired...
wallHeight = Math.max(dm.widthPixels, dm.heightPixels);
wallWidth  = Math.min(dm.widthPixels, dm.heightPixels) * 2;
}

This would work on virtually any other handset known to man. But
unfortunately, the Garmin user reported that the resulting wallpaper
was the wrong aspect ratio; from his description, I'm thinking that it
shouldn't have the * 2. I'm not going to hardcode THAT in, however.

Finally, does anyone know how to go about getting something added to
the Compatibility Test Suite? It strikes me that this is a flaw in the
basic Garminfone SDK implementation. I looked through the CDD, but the
only mentions of wallpaper in there are about the newer, live ones. So
this is probably another test case that should be added to the CTS
itself.

Thanks,

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] How to open a nested child PreferenceScreen

2010-08-27 Thread booooooooooooo

Hi

I have a PreferenceScreen that is defined in XML that serves all the
preferences for my application. This PreferenceScreen also has a child
PreferenceScreen nested within it. My implementing class is called
PreferencesActivity. I know I can open the main Preferences window via
startActivity(new Intent(this, PreferencesActivity.class)); but how do
I go about opening the child PreferenceScreen via an Intent?

please help me its urgent requirement for me

regards.
vinod yadav

-- 
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: LVL returns LICENSED with anonymous accounts...

2010-08-27 Thread Mark Carter
Can anyone else confirm this please?

On Aug 20, 11:27 am, Mark Carter mjc1...@googlemail.com wrote:
 This is not what I'm seeing.

 I'm writing a new app which has never been published or in draft.

 I have two devices. One (N1, running 2.2), I'm logged into my main
 Google account (which has the Developer account). The other (Hero
 running 2.1-update1) is a test account I use (no developer account).

 When I use the N1, I always get the response specifed in my Dev
 Console settings.
 When I use the Hero, I always get ERROR_NOT_MARKET_MANAGED.

 It appears the logic goes something like this for non-Market
 (published or draft) apps:

 Check the user has a Dev account.
 If so, use the response set there.
 If not, return ERROR_NOT_MARKET_MANAGED.

 Notice, its the setting for the user, not the dev (because theMarket
 does not know who the dev is), that is used.

 Anyone confirm this?

 On Aug 7, 1:26 am, Trevor Johns tjo...@google.com wrote:



  If an app is not published AND not draft, then you'll get
  ERROR_NOT_MARKET_MANAGED.

  If an app is in draft (never published), then we sendLICENSEDfor all
  requests for that app.

  If an app is published (or has been published then unpublished), then
  the response
  is driven by the dev console settings for the developer/testers, and purely
  by purchase history for everyone else.

  --
  Trevor Johns
  Google Developer Programs, Androidhttp://developer.android.com

  On Thu, Aug 5, 2010 at 4:18 AM, Mark Carter mjc1...@googlemail.com wrote:
   So to confirm. If an app is not published (nor draft) then the response is
   dictated by the user's (i.e. the user running the app, not the one who
   developed the app) setting in the Dev Console. If the user does not have a
   Dev account (like many beta testers) then the response will be like 
   Respond
   normally?

   If the app is published (or draft) then the response is driven primarily 
   by
   the dev's console settings and secondarily by theMarketlicense server
   (storing who has paid for what).

    I think the first part could catch a lot of people out...

   On 5 August 2010 11:03, Trevor Johns tjo...@google.com wrote:

   If the app isn't in AndroidMarket, the license server will return
   ERROR_NOT_MARKET_MANAGED. LicenseValidator considers that to be a fatal
   error due to programmer error, and should invoke the applicationError()
   callback method.

   My understanding from the server team is that uploading a draft version 
   is
   supposed to be sufficient to avoid getting ERROR_NOT_MARKET_MANAGED. (In 
   the
   case of existing applications, you'll also need to increment your version
   code.)

   The other way you'll avoid this is precisely as Mark mentioned. If we
   don't find the application, we check to see if the current user has a
   developer account, and will send a test response (if one is set) using 
   the
   user's RSA keypair.

   --
   Trevor Johns

   On Wed, Aug 4, 2010 at 12:30 AM, Kirky rob.kirkbr...@gmail.com wrote:

   Trevor,

   Can you clarify what the licensing server returns if the App is not in
   the AndroidMarket? In my experience (and it seems other people) it is
   returningLICENSED. This does not seem sensible to me.

   Thanks

   Rob

   On Aug 4, 3:23 am, Trevor Johns tjo...@google.com wrote:

   --
   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.comandroid-developers%2Bunsubs
cr...@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.comandroid-developers%2Bunsubs
cr...@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.comandroid-developers%2Bunsubs
cr...@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] How can I disable an item of ListView?

2010-08-27 Thread optimusgeek
When I have a list view and there are 3 items which can choose by
user, I wanna show only choosable items to user because of some
reason. but I could not find any method in ListView or ArrayAdapter
class. Is there a solution?


protected void onCreate(Bundle savedInstanceState) {
..
menuList = new ArrayListString();
menuList.add(getResources().getText(R.string.apple).toString());
menuList.add(getResources().getText(R.string.banana).toString());
menuList.add(getResources().getText(R.string.grape).toString());

ArrayAdapterString adapter;
adapter = new ArrayAdapterString(this,
android.R.layout.simple_list_item_1, menuList);

ListView list = (ListView)findViewById(R.id.menuList);
list.setAdapter(adapter);
list.setOnItemClickListener(mItemClickListener);

}

for example, I wanna disable the second 'banana' item.
There are what I want exactly on the emulator, in sub menus of
Settings. and I looked at source of settings.
Almost settings menu are implemented with PreferenceActivity
It doesn't look like my code. In there, I found a method like below.
  Preference btSettings = findPreference(KEY_BT_SETTINGS);
  btSettings.setEnabled(false);

I think that's what I want. but Is there a solution based on my code?
rather than using PreferenceActivity.


-- 
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! Strange exception on HTC Hero

2010-08-27 Thread Ilya Shinkarenko
hi all,

just released the new version of Tennis Math, after starting the
Statistics activity, the following exception is thrown:

I/ActivityManager(   76): Starting activity: Intent {
cmp=com.tennismath.ui.android/.StatisticsActivity (has extras) }
W/dalvikvm( 9847): threadid=3: thread exiting with uncaught exception
(group=0x4001e390)
E/AndroidRuntime( 9847): java.lang.NullPointerException
E/AndroidRuntime( 9847):at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
E/AndroidRuntime( 9847):at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
E/AndroidRuntime( 9847):at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
E/AndroidRuntime( 9847):at android.view.View.draw(View.java:6538)
E/AndroidRuntime( 9847):at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
E/AndroidRuntime( 9847):at android.view.View.draw(View.java:6538)
E/AndroidRuntime( 9847):at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1866)
E/AndroidRuntime( 9847):at
android.view.ViewRoot.performTraversals(ViewRoot.java:1118)
E/AndroidRuntime( 9847):at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 9847):at
android.app.ActivityThread.main(ActivityThread.java:4595)
E/AndroidRuntime( 9847):at 
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 9847):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

this is NOT reproducible on G1 / Nexus / emulator

any ideas?

thanks!
ilya

-- 
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: Can we install Android SDK on windows 7 if yes then how ?

2010-08-27 Thread Abbas
Thankyou All, I installed and It's working koool on windows 7.


Lots of questions coming up ! ! =)

once again thanks for all your support. !



On Aug 27, 2:17 am, Lorensius W. L. T lor...@londatiga.net wrote:
 Works perfectly on win7 without no issues so far. Recomendded win7 64 bit,
 faster...

 On Fri, Aug 27, 2010 at 12:45 PM, Indrajit Kumar 
 indermba1...@gmail.comwrote:





  Hey u can use eclipse and then install ur amdroid sdk... this works on win
  7 ...

  On Thu, Aug 26, 2010 at 10:53 PM, Chris Stewart 
  cstewart...@gmail.comwrote:

  I've been developing mostly on Windows 7 with no issues at all.  I used
  the basic instructions in the Developer Guide.  I've also done some
  development on my Ubuntu netbook, which wasn't _quite_ as simple, but 
  pretty
  simple.

  --
  Chris Stewart
 http://chriswstewart.com

  Fantasy 
  Footballhttp://chriswstewart.com/android-applications/fantasy-football/- 
  Android app for MFL fantasy football owners
  Fantasy Football 
  Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
   Android app for all fantasy football fanatics
  Social 
  Updaterhttp://chriswstewart.com/android-applications/social-updater/- An 
  easy way to send your status blast to multiple social networks

  On Thu, Aug 26, 2010 at 1:02 PM, Matty busbus...@gmail.com wrote:

  I followed the standard instructions on Windows 7, and everything
  works great.

  On Aug 25, 6:07 pm, Mark Murphy mmur...@commonsware.com wrote:
   On Wed, Aug 25, 2010 at 4:09 AM, Abbas stahaab...@gmail.com wrote:
Can we install Android SDK on windows 7

   Yes.

if yes then how ?

   By following the instructions for installing the Android SDK on
   Windows, presumably:

  http://developer.android.com/sdk/index.html

   --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit...

   _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubs­cr...@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.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
  Inderjit Kumar
  9049235798

  --
  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.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Kind Regards

 - Lorensius W. L. T -
 -http://www.londatiga.net-- Hide quoted text -

 - Show quoted text -

-- 
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: String being truncated when its long

2010-08-27 Thread Droid
I think you are hitting a capacity limit of the android and should
chunk it somehow at say 3000 chars and store the chars somewhere not
in memory.
Droid



On Aug 27, 12:13 am, Achanta krishna.acha...@gmail.com wrote:
 I Tested your suggestions by setting UTF-8 and I also tried the same
 by removing the length 8000. But it still does the same thing.
 Thank you for the response though.

 This thing is driving me nuts.

 On Aug 26, 4:58 pm, Jake Radzikowski radzikowski.j...@gmail.com
 wrote: reader = new BufferedReader(new InputStreamReader(inputStream), 
 8000); I'm
  gunna guess that 8000 has something to do with it :). I usually use the
  following:

  reader = new BufferedReader(new InputStreamReader(inputStream, UTF-8));

  On Thu, Aug 26, 2010 at 3:40 PM, Achanta krishna.acha...@gmail.com wrote:

   I am trying to get a JSON response from our server and the response
   string seems is always being truncated when the string length reaches
   to around 5525 characters.

   HttpClient httpClient = new DefaultHttpClient();
   HttpPost post = new HttpPost(URL);
   ResponseHandlerString responseHandler= new BasicResponseHandler();
   String testResponse = httpClient.execute(post, responseHandler);

   I also tried this by using HttpEntity and reading the response stream.
   But that also truncates the string at approximately that length.

              HttpClient httpClient = new DefaultHttpClient();
              HttpPost post = new HttpPost(URL);
   //          HttpGet get = new HttpGet(URL);

              HttpResponse response = null;
              HttpEntity entity = null;
              InputStream inputStream = null;
              BufferedReader reader = null;
              String result = ;
              try {
                  response = (HttpResponse)httpClient.execute(post);
                  entity = response.getEntity();
                  if(entity != null){
                      inputStream = entity.getContent();
                  }
                  reader = new BufferedReader(new
   InputStreamReader(inputStream), 8000);
                  StringBuffer builder = new StringBuffer();
                  String line = reader.readLine();
                  while(line != null){
                      Log.v(tag, int max: +Integer.MAX_VALUE);
                      Log.v(tag, LINE: +line
   +reader.toString());
                      Log.v(tag, reader: +reader.toString());
                      builder.append(line+\n);
                      line = reader.readLine();
                  }
                  inputStream.close();
                  result = builder.toString();
              } catch (ClientProtocolException e) {
                  e.printStackTrace();
              } catch (IOException e) {
                  e.printStackTrace();
              } finally{
                  if(inputStream != null){
                      try{
                          inputStream.close();
                      }catch(IOException e){
                          e.printStackTrace();
                      }
                  }
              }

   Please let me know how I can handle this problem. I used this post as
   the reference while creating this.

  http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu...

   I tested the link in my browser and it does return the complete JSON.
   So I am sure the issue is with my code in android.

   Thank you.

   --
   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.comandroid-developers%2Bunsubs
cr...@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: Paid vs Free, My Early Experience

2010-08-27 Thread Zsolt Vasvari
So in the week that I changed my 325 characters from a feature list to
a catchy blurb, my sales have doubled.  So I believe in this theory
that feature list don't sell.

On Aug 20, 7:14 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 This has been a good discussion.

 As an experiment, I just changed my description from afeaturelistto
 a clever blurb.  Will report back if my sales/downloads have gone up
 or down.  My app is in a category where I would think that features
 matter and people look for them.  So I am guessing that I am shooting
 myself in the foot, but it's worth trying for a week.

-- 
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: J2ME to Android

2010-08-27 Thread michal.g...@gmail.com
How about using a semi-automated service to convert J2ME to Android ?
Give it a try - free for eval purposes. Take a look at www.upontek.com,
or send me your jar to michal.g...@upontek.com

Thanks 

On 27 אוגוסט, 11:28, Indicator Veritatis mej1...@yahoo.com wrote:
 Since Android does not include the javax.microedition package, one
 should not expect an exact equivalent. But we do have the
 org.apache.conn and org.apache.http.* packages; some of us think these
 are much better than anything in javax.microedition!

 One should still expect to use a very little bit from java.net, e.g.
 the Url and Uri classes.

 On Aug 26, 1:40 pm, kypriakos demet...@ece.neu.edu wrote:



  Does anyone know the equivalent of these imports from J2ME to
  Android?

  import javax.microedition.io.Connector;
  import javax.microedition.io.HttpConnection;
  import javax.microedition.io.SocketConnection;
  import javax.microedition.io.StreamConnection;

  Also, I needed to import midpapi20.jar but I don't want to use
  packages
  outside Android into my app -- would I be able to find most of the
  related packages in Android libs?

  Thanks very much-הסתר טקסט מצוטט-

 -הראה טקסט מצוטט-

-- 
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: J2ME to Android

2010-08-27 Thread Sena Gbeckor-Kove
The hardware is out there for it now. Is he willing to pay for it to be 
developed? If not then we need to get it done and out on the market calling in 
favours. Do you have a graphics person that could do graphics for free?

Could  you plan out the feature set and an IA and I'll get it realised asap.

Cheers
S


---

Sena Gbeckor-Kove
CTO/Founder - imKon 

UK : +44 7788 146652 
s...@imkon.com|www.imkon.com
 
Asia (Singapore) :
35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore

Europe (London) :
145-157 St John's St, EC1V 4PY London, UK

On 27 Aug 2010, at 13:05, michal.g...@gmail.com wrote:

 How about using a semi-automated service to convert J2ME to Android ?
 Give it a try - free for eval purposes. Take a look at www.upontek.com,
 or send me your jar to michal.g...@upontek.com
 
 Thanks 
 
 On 27 אוגוסט, 11:28, Indicator Veritatis mej1...@yahoo.com wrote:
 Since Android does not include the javax.microedition package, one
 should not expect an exact equivalent. But we do have the
 org.apache.conn and org.apache.http.* packages; some of us think these
 are much better than anything in javax.microedition!
 
 One should still expect to use a very little bit from java.net, e.g.
 the Url and Uri classes.
 
 On Aug 26, 1:40 pm, kypriakos demet...@ece.neu.edu wrote:
 
 
 
 Does anyone know the equivalent of these imports from J2ME to
 Android?
 
 import javax.microedition.io.Connector;
 import javax.microedition.io.HttpConnection;
 import javax.microedition.io.SocketConnection;
 import javax.microedition.io.StreamConnection;
 
 Also, I needed to import midpapi20.jar but I don't want to use
 packages
 outside Android into my app -- would I be able to find most of the
 related packages in Android libs?
 
 Thanks very much-הסתר טקסט מצוטט-
 
 -הראה טקסט מצוטט-
 
 -- 
 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



smime.p7s
Description: S/MIME cryptographic signature


[android-developers] Which device should i buy to test My Custom Input Method Application

2010-08-27 Thread sameer kamble
Dear Sir,

1. I am in the process of creating an Input Method for Android
devices. I using Eclipse(3.4) IDE and have Android (1.5 and 2.2) SDK.
2. Currently i am doing testing on the Emulator. But i wish to test it
on actual Android device.
3. Can you please tell me which ideal device should i buy to test my
application
4. Is there any lead device assigned by Android for a given SDK.
5. I intend to sign and publish my application so can you please tell
me is there any Certification criteria which i have to follow

Please help me on this issue.

regards,
Sameer Kamble

-- 
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] Which device should i buy to test My Custom Input Method Application

2010-08-27 Thread { Devdroid }
On 27 August 2010 13:20, sameer kamble sameerbkam...@gmail.com wrote:

 1. I am in the process of creating an Input Method for Android
 devices. I using Eclipse(3.4) IDE and have Android (1.5 and 2.2) SDK.
 2. Currently i am doing testing on the Emulator. But i wish to test it
 on actual Android device.

It depends on your target OS. If you got for 1.5-2.2 then one device may
not be enough as you may need at least one for each OS version. However
if you want just one, I'd go for any with Android 1.6 - it's quite popular OS
yet and sometimes oddly buggy so apps can behave differently on simulator
(they work) and on real devices (crashes).

-- 
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] Read the data in Intent

2010-08-27 Thread { Devdroid }
On 26 August 2010 20:26, crajesh crajesh2...@gmail.com wrote:
 Hi all,

   i am new in android how read the data from server using intent

Intent is not for reading data from remote servers.

-- 
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: Negative comment causing drop in sales

2010-08-27 Thread nation-x
I suspect that alot of comments... especially on free apps are
competitors... not just trolls. I have had people post comments that
were entirely untrue about my apps before... in addition, you can
never underestimate the stupidity of the average user. I have had some
negative comments because the idiot couldn't figure out that there was
a menu button on his phone... so they didn't know how to access the
features of the app. Another thing that is annoying is this app does
not look appealing... what kind of comment is that and why would
anyone take the time to make such a comment?

Android Workz

On Aug 26, 9:50 pm, abowman abow...@gmail.com wrote:
 The marketplace should allow developers to easily respond to negative
 feedback the way Ebay allows sellers to respond to negative feedback
 from buyers.

 Right now, it is way too easy for a user to sabotage an application.

 On Aug 26, 3:27 pm, TreKing treking...@gmail.com wrote:

  On Thu, Aug 26, 2010 at 2:14 PM, Doug beafd...@gmail.com wrote:
   It may just be that Google is collecting enough data to make a
   strong assertion about what comments are actually spam or unhelpful
   (since comments != email, we can't just use known patterns).  I'd like
   to give Google the benefit of the doubt on this one.

  I'd like to as well, but there are apps on the market that have been around
  for a very long time, that get updated regularly to just show up in the
  Just In list, rated 2 starts or less, with comments from people stating
  things like Report this user as spam.

  I think there are definitely at least a handful of apps for which this holds
  true (granted, this is an assumption) and yet nothing has been done about
  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] Re: App breaks for some users after they update from the Market

2010-08-27 Thread TreKing
On Thu, Aug 26, 2010 at 1:18 PM, TreKing treking...@gmail.com wrote:

 On Thu, Aug 26, 2010 at 12:42 PM, Dianne Hackborn hack...@android.comwrote:

 - See if having them clear data first before trying to uninstall solves
 the problem.


 I'll have someone try this next time I get an email and report back.


OK, so had two more emails yesterday and told them to clear their data by
going through the manage applications screen. I made no mention of
uninstalling and re-installing. One got back to me last night and confirmed
that this worked for her. I did not hear back from the other, which I assume
means she's happy and it worked for her as well.

So, apparently a complete uninstall is not necessary - there's something
wrong in the data. So now the question is what's going wrong in the app data
that would cause the app code to return null pointers on stuff that's not
relying on app data?

Side-note, after several more reports in the dev console and comments about
force close issues, I decided to put out another update instructing people
to uninstall - reinstall. This was, of course, just 10 minutes before the
nice lady got back to me and let me know clearing data worked.

-
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] How can I disable an item of ListView?

2010-08-27 Thread Mark Murphy
On Fri, Aug 27, 2010 at 5:52 AM, optimusgeek choongb...@gmail.com wrote:
 When I have a list view and there are 3 items which can choose by
 user, I wanna show only choosable items to user because of some
 reason. but I could not find any method in ListView or ArrayAdapter
 class. Is there a solution?

Implement areAllItemsEnabled() and isEnabled() as you see fit in a
subclass of ArrayAdapter.

-- 
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.1 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: JDOM in Android 2.1 or earlier

2010-08-27 Thread gcstang
Just my 2 cents but JDOM is inherently slower than other XML
processors and on a mobile platform that's usually not what you want,
you should use SAX or something that's built into the API (if
possible).

I know using SAX and some other methods are a bit more work however if
you're parsing on a mobile platform your users will appreciate it.

On Aug 26, 2:45 am, als evaristok...@gmail.com wrote:
 Nobody could do it?

 I'm going to do some tests changing the input xml, adding aliases for
 namespaces and so on. Maybe that exception appears only in some cases
 and I can make it work.

-- 
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] .pfx SSL Certificate

2010-08-27 Thread Ajay
Hi,
   Does anyone know how we can include an SSL certificate (.pfx) with
our App?

Thank you,
AJ

-- 
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 Lat and Long about one bus line from google maps

2010-08-27 Thread TreKing
On Thu, Aug 26, 2010 at 8:40 PM, pyleaf lg.feixi...@gmail.com wrote:

 i want to know the info about NewYork.


Again, this will vary by transit system and New York (state, city?) has
quite a few.


 how can i get the info?


I have no idea, but the transit systems' web sites seems like a good place
to start.

-
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

[android-developers] Activity pause timeout for HistoryRecord?

2010-08-27 Thread sansu
Hi,

Some times alarm dialog is not displayed and no ringing or vibrate
after alarm triggered.
After the Alarm activity is started, it is immediately paused I think
this is the cause Activity pause timeout for HistoryRecord. Does any
one know when it will happen and how to fix this? Here is the full log

08-02 06:47:00.107 I/ActivityManager( 1295): Starting activity: Intent
{ flg=0x1004
cmp=com.android.apps.clock/.alarm.AlarmAlertFullScreen (has extras) }
08-02 06:47:00.657 D/PowerManagement( 1295): (PowerManagerService)
sending ordered bcast for ACTION_SCREEN_ON
08-02 06:47:00.867 W/BackupManagerService( 1295): dataChanged but no
participant pkg='com.android.providers.settings' uid=10004
08-02 06:47:00.877 W/PowerManagerService( 1295):
setScreenBrightnessMode: 0 ,  false
08-02 06:47:01.007 D/AlarmManager( 1295): Added alarm Alarm{2e6c2120
type 0 com.android.apps.clock} type:RTC_WAKEUP when: At 8/2/10 8:05 AM
08-02 06:47:01.107 D/PowerManagement( 1295): (ActivityThread)
dispatched SCREEN_ON to com.android.server.InputMethodManagerService
$ScreenOnOffReceiver
08-02 06:47:01.107 D/PowerManagement( 1295): (ActivityThread)
dispatched SCREEN_ON to com.android.server.NotificationManagerService
$2
08-02 06:47:01.127 D/StatusBarPolicy( 1295): ACTION_SCREEN_ON Release
midleIntent_releasewifiwakelock
08-02 06:47:01.127 D/PowerManagement( 1295): (ActivityThread)
dispatched SCREEN_ON to com.android.server.status.StatusBarPolicy$1
08-02 06:47:01.137 D/PowerManagement( 1433): (ActivityThread)
dispatched SCREEN_ON to com.android.internal.telephony.RIL$1
08-02 06:47:01.147 W/ActivityManager( 1295): Activity pause timeout
for HistoryRecord{2ebc1ac8
com.android.apps.clock/.alarm.AlarmAlertFullScreen}
08-02 06:47:01.177 D/PowerManagement( 1295): (ActivityThread)
dispatched SCREEN_ON to android.service.wallpaper.WallpaperService
$Engine$1
08-02 06:47:01.177 D/PowerManagement( 1433): (ActivityThread)
dispatched SCREEN_ON to
com.android.internal.telephony.gsm.GsmDataConnectionTracker$1

-- 
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: Android bitmap allocation weirdness

2010-08-27 Thread Tom Gibara
Viktor, This question comes up in various guises. I think your problem is
explained by some old posts I made on this thread.

http://groups.google.com/group/android-developers/browse_thread/thread/ee5e49740cd54eaa/ec3614a46c5eb79f

http://groups.google.com/group/android-developers/browse_thread/thread/ee5e49740cd54eaa/ec3614a46c5eb79f
Tom.

On 27 August 2010 08:34, Viktor vilainpe...@gmail.com wrote:

 Why wouldn't nulling b mark the array for garbage collection? What
 other pointers to the array could there be?

 I tried your suggestions with no success.

 On Aug 25, 6:23 pm, DanH danhi...@ieee.org wrote:
  OK, I see that you're nulling b between the two allocations.  But
  that doesn't assure that all pointers to the array are destroyed.  Try
  placing the = new and = null statements in a called method ( just
  for grins return b from that method and assign it in your original
  method).
 
  On Aug 25, 10:40 am, DanH danhi...@ieee.org wrote:
 
 
 
   The first array is 20 MB.  The second is also 20 MB.  What's the
   problem?
 
   On Aug 24, 4:28 pm, Viktor vilainpe...@gmail.com wrote:
 
I'm having some trouble understanding why this code
 
public class BitmapAllocTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
byte[] b = new byte[20 * 1000 * 1000];
b = null;
   Bitmap.createBitmap(2500, 2000,Bitmap.Config.ARGB_);
}}
 
throws an OutOfMemory exception on a device with a 24mb heap limit.
 If
I comment out either of the allocations it runs fine. I was under the
impression that the java vm would try to garbage collect before
throwing OutOfMemory exceptions.
 
I suspect it having to do withandroidallocating the bitmaps on the
native heap.
 
PS. This is a clone from my stackoverflow questionhttp://
 stackoverflow.com/questions/3546635/android-bitmap-allocation-...
which hasn't gotten a satisfactory answer yet.- Hide quoted text -
 
  - Show quoted text -

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

[android-developers] Re: Creating a JTree-like widget for Android?

2010-08-27 Thread FractalBob
Thanks for the pointer. It seems the objection to a JTree like view is
that you'd run out of space on a small screen, but that's not valid,
since you could wrap the tree in a scrollview.

I guess I'll have to abandon my project until a tree view of some kind
makes it to Android, as I don't want to use menus as suggested in the
link; it would be too klunky, IMO.

On Aug 26, 4:58 pm, TreKing treking...@gmail.com wrote:
 On Thu, Aug 26, 2010 at 12:56 PM, FractalBob ruom...@gmail.com wrote:
  Does anyone know if it's possible to extend this to an arbitrary number
  of levels?

 See this recent 
 thread:http://groups.google.com/group/android-developers/browse_thread/threa...

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


[android-developers] Re: Paid vs Free, My Early Experience

2010-08-27 Thread Tomáš Hubálek
Mark, you are definitely right. There are few things that Google
should do better to help us market out products:

- allow to buy and sell in majority of the world
- make useful android market web site with short app url that we could
advertise. I really don't think that offer APK on my website is good
idea even if it is free.
- improve payment and licensing
- I would like to make some contests, but how to do discount
cupons or free licenses on current market?
- introduce more payment methods - in app purchase, selective
prices for different users/regions

I believe that Android is awesome from technical point of view. But
Google should hire somebody from Apple into Marketing team as current
Android Marketing team is even not able to copy what is usual in
Apple's world for years.

Just my 2 cents
Tom


On 22 srp, 00:03, Mark Murphy mmur...@commonsware.com wrote:
 On Sat, Aug 21, 2010 at 8:10 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
  Every seller of products and services on planet Earth has access to
  the most dizzying array of marketing tools in human history

  Could you elaborate, especially on the free ones? I have no marketing
  budget.

 Step #1: Build a Web site that does a decent job of explaining what
 your app does, probably in more than 325 characters

 Step #2: Add easy ways to get from the Web site to your app:

 -- market: URL for those browsing on their phone
 -- QR code for the market: URL for those knowing about Barcode Scanner
 or Google Goggles
 -- a good search term for which you'll come up #1 (if not be the only
 entry) when they search for you on the Market
 -- Chrome2Phone direct install
 -- download the APK from your site (if it's free, or you have a free
 version they can try)
 -- links to alternative market(s) you are in, for those who have
 Market-less devices

 Step #3: Steer people to the Web site, using the marketing tools that
 have been discussed, ad nauseum, for the past decade-plus, in Web
 sites, books, magazines, etc.

 In your case, I'd start with an email sig. Then, set up a blog, or be
 useful with your Twitter account, or do something else to keep your
 name out there. Find where your customers usually visit online and
 figure out how your links can get there (e.g., sigs in discussion
 board posts, somebody else blogs a review of your app, run a contest).
 Add value wherever you can, so that your marketing isn't purely seen
 as self-serving. Do SEO work on the Web site so that you climb
 steadily in the search rankings for likely search terms. And so on.

 There are many, many books available for learning how to market
 yourself online. Pick one that is relatively new (I wouldn't go older
 than 2007), since the techniques change. Be prepared to translate any
 concrete advice those books offer into other technologies that may
 have arrived since the book came out (e.g., Google Buzz). Understand
 that those books aren't specifically written for Android developers,
 and so some percentage of the techniques that they describe aren't
 necessarily relevant for you. Subscribe to the blogs or Twitter feeds
 of people with great insight (e.g., I follow Seth Godin). Continuously
 monitor other successful Android apps and reverse-engineer how they're
 driving their traffic. And so on.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.1 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: Problem with interecepting outgoing calls on HTC Desire

2010-08-27 Thread Denis Souza
Just had a report a few days ago from a user on HTC Desire (2.2) that
says a previous version of my app worked fine. This is confirmed since
I sent him a previous version and it worked. It might be just this one
case since I've had another user say it didn't work with the same
previous version.

I'm trying to find out exactly which change made the difference (both
versions do essentially the same thing with subtle differences) so I
sent him a changed version to test it. If I find out anything I'll
post it here, but don't hold your breath.. he's not very responsive.

The workaround placing a new Intent seems reasonable in these cases. I
think I'll add an option in my app for people having this issue though
it's awful that I even have to think about doing that. One would think
a company like HTC would test the whole API before releasing a new ROM
(after all they sure take their time to do it).

On Aug 27, 5:48 am, billas tobias.bil...@gmail.com wrote:
 As it seems the HTC Desire (2.2) responds to setResultData(null)
 wich will stop the out dial. Then you can place a new intent
 (Action.CALL) to call the new number.
 Not so nice workaround, but as a user you hardly notice it.

 On 26 Aug, 14:42, billas tobias.bil...@gmail.com wrote:







  Here to. Exact same problem. Tested onHTCDesire2.2 (not working).
  It seems like it ignoring the resultData from the broadcastreceiver.
  Earlier tested onHTCHero build 2.73.405.x (android 1.5) where the
  Dialer application doesn't even send a broadcast!!
  Current build onHTCHero (android 2.1) works perfectly.

  I'm getting a bit desperate for a good workaround

  ./tobias

  On 18 Aug, 21:31, Denis Souza denis.so...@gmail.com wrote:

   I'm getting the exact same problem.
   I have an app that changes the number being dialed.
   It works on everything except theHTCDesirewith Android 2.2. Works
   withDesireon 2.1 and with any other device I tested with 2.2. There
   are reports from several of my users using 2.2 devices and it works on
   all of them except for theHTCDesire.

   I'm think it might be a bug introduced byHTC.

   If you find a workaround let me know.. I'm still looking...

   Denis Souza

   On Aug 18, 10:20 am, Nicolas Zerr nicolas.z...@gmail.com wrote:

Hello,

I'm having troubles with intercepting outgoing calls. In fact, it
works perfectly on emulator 2.1 and 2.2, and was running also
perfectly on myHTCDesirewhen i was in 2.1 version.

Here is some source code :

package com.testcallcatch.test;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OutgoingCallReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d(LOOK HERE, - + getResultData());
        setResultData(0123456789);
        Log.d(LOOK HERE, Setting to 0123456789);
    }

}

And the manifest :

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
        package=com.testcallcatch.test android:versionCode=1
        android:versionName=1.0
        application android:icon=@drawable/icon 
android:label=@string/
app_name

                activity android:name=.TestCallCatch 
android:label=@string/
app_name
                        intent-filter
                                action 
android:name=android.intent.action.MAIN /
                                category 
android:name=android.intent.category.LAUNCHER /
                        /intent-filter
                /activity

                receiver android:name=.OutgoingCallReceiver
                        intent-filter android:priority=2147483646
                                action 
android:name=android.intent.action.NEW_OUTGOING_CALL /
                        /intent-filter
                /receiver
        /application

        uses-sdk android:minSdkVersion=7 /

        uses-permission
android:name=android.permission.PROCESS_OUTGOING_CALLS/uses-
permission
/manifest

As you can see, it is a very simple sample, but it's not working on
   HTCDesireunder 2.2 . I suspect this comes fromHTC, but I wonder if
there are other devices with this bug.

The app replaces each called number by 01232456789. Don't forget to
uninstall the application once done ;)

So I'm searching people for testing this little app :

- People who haveHTC2.2 device
- People who have other devices that run 2.2 android version.

Maybe someone has already solved this problem?

Thanks a lot in advance,

Nicolas

-- 
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] Sysinfo CPU load in DDMS not working with 2.2 devices?

2010-08-27 Thread Patrick
After updating to Froyo on a Nexus One, the CPU load pie
chart graph is no longer displayed when connected with the
standalone DDMS.  It still shows up for an AVD with 2.1,
however.

Is there some setting, something I can turn on/off on the
N1 so that DDMS can display its CPU load again? Is this
a known change/issue going from 2.1 to 2.2?

This is with the latest SDK (android-8 platform) running
under Vista 64bit.

Anybody have any ideas?

-- 
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: Flickering.

2010-08-27 Thread Frank Weiss
First a question: Is the flickering on the emulator or a device?
Emulator is much slower than a device.

-- 
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: App breaks for some users after they update from the Market

2010-08-27 Thread Carl Whalley
Might be throwing in a food-for-thought curveball here but I wonder if
there's a difference between updating an app that's running and one
which isn't?

On Aug 26, 8:23 pm, TreKing treking...@gmail.com wrote:
 On Thu, Aug 26, 2010 at 1:56 PM, Doug beafd...@gmail.com wrote:
  I don't have anything helpful to add, TreKing, but I did want you to know
  that a small minority of my users see random breakage on update and a
  reinstall fixes them right up.

 Just knowing others are having the same issue is helpful. With
 enough anecdotes we can begin to pinpoint commonalities and
 hopefully unearth the root cause of the problem. If anyone else has had this
 issue, please share any details you may have.
 Thanks.

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


[android-developers] Re: Paid vs Free, My Early Experience

2010-08-27 Thread Federico Paolinelli
But without the feature list, how will you catch people that are
looking for your app 's features?
This may work if your app is well ranked in the list maybe...

On 27 Ago, 12:55, Zsolt Vasvari zvasv...@gmail.com wrote:
 So in the week that I changed my 325 characters from a feature list to
 a catchy blurb, my sales have doubled.  So I believe in this theory
 that feature list don't sell.

 On Aug 20, 7:14 pm, Zsolt Vasvari zvasv...@gmail.com wrote:



  This has been a good discussion.

  As an experiment, I just changed my description from afeaturelistto
  a clever blurb.  Will report back if my sales/downloads have gone up
  or down.  My app is in a category where I would think that features
  matter and people look for them.  So I am guessing that I am shooting
  myself in the foot, but it's worth trying for a week.

-- 
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: Paid vs Free, My Early Experience

2010-08-27 Thread Chris Stewart
 So in the week that I changed my 325 characters from a feature list to
 a catchy blurb, my sales have doubled.  So I believe in this theory
 that feature list don't sell.

A few questions:

* Put some context around doubled.  From 1 to 2, 100 to 200, 1,000 to 2,000?
* How many cancels are in these numbers?  I've got to believe that with a
less informative, and more catchy message, people know less about what
they're buying and end up canceling when they find out it's not what they
expect.
* It would be interesting to see the before and after descriptions you're
using in the market for your app.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for MFL fantasy football owners
Fantasy Football
Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
Android app for all fantasy football fanatics
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 27, 2010 at 6:55 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 So in the week that I changed my 325 characters from a feature list to
 a catchy blurb, my sales have doubled.  So I believe in this theory
 that feature list don't sell.

 On Aug 20, 7:14 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
  This has been a good discussion.
 
  As an experiment, I just changed my description from afeaturelistto
  a clever blurb.  Will report back if my sales/downloads have gone up
  or down.  My app is in a category where I would think that features
  matter and people look for them.  So I am guessing that I am shooting
  myself in the foot, but it's worth trying for a week.

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

Re: [android-developers] Re: Creating a JTree-like widget for Android?

2010-08-27 Thread TreKing
On Fri, Aug 27, 2010 at 9:20 AM, FractalBob ruom...@gmail.com wrote:

 Thanks for the pointer.


You're welcome!


 It seems the objection to a JTree like view is that you'd run out of space
 on a small screen, but that's not valid,
 since you could wrap the tree in a scrollview.


That's one objection. The other problem is that the size of the items in the
list would either have to be very small to accommodate the whole list, or,
if you wrap it in a scroll view, require scrolling in every direction just
to navigate the thing as sub-nodes expand.

The benefit of a JTree type control is it presents a simplified overview of
a complex hierarchy. On a mobile platform, you mostly lose that simplified
overview and it can result in more complexity and confusion.


 I guess I'll have to abandon my project until a tree view of some
 kind makes it to Android, as I don't want to use menus as suggested in
 the link;


If you're abandoning your project because one type of control is not
available, your project was not worth doing to begin with.

If you're going to wait until it makes it to Android, you're probably going
to waiting quite a long time.

If you think this type of control would actually be usable / preferable for
you project, there is absolutely nothing stopping you from writing your own
custom view and adapter that meets your needs.

it would be too klunky, IMO.


No more so than trying to navigate an entire tree on a single screen with
the size, scrolling, and selection issues it would present.

Good luck with your project, if you decide to continue it.

-
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

[android-developers] Changing from one dev machine to another, keystore question

2010-08-27 Thread Chris Stewart
To this point, I've been doing development on multiple machines but always
packaging for deployment on the same machine.  If I want to package for
deployment on another machine, will simply copying the keystore file to the
new machine do the trick?  Anything else I need to be concerned about when
doing this?

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for MFL fantasy football owners
Fantasy Football
Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
Android app for all fantasy football fanatics
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks

-- 
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] Unsuccessful install of successful built apk

2010-08-27 Thread Rutton
Hello,
I have a problem with installing an apk (which includes jni libs) on
the simulator. The apk is built successfully, but running as Android
Application from within eclipse and executing adb install -r path/to/
apk runs also successful, but the app doesn't show up on the app-
screen in the simulator.
The following is the logcat during the install of the app. I don't see
much evidence that there is something wrong with the apk, so I don't
know whats going on there. Can someone help me with this? Are there
more debugging options for adb install? Or what can I do to provide
more info to solve the problem? Thank you.

Cheers,
Rutton.

D/AndroidRuntime(  346):
D/AndroidRuntime(  346):  AndroidRuntime START

D/AndroidRuntime(  346): CheckJNI is ON
D/AndroidRuntime(  346): --- registering native functions ---
D/dalvikvm(  309): GC_EXPLICIT freed 130 objects / 7008 bytes in 94ms
D/PackageParser(   72): Scanning package: /data/app/vmdl37168.tmp
I/PackageManager(   72): Removing non-system
package:de.studiorutton.visualsmove
I/ActivityManager(   72): Force stopping package
de.studiorutton.visualsmove uid=10036
D/PackageManager(   72): Scanning package de.studiorutton.visualsmove
I/PackageManager(   72): Package de.studiorutton.visualsmove codePath
changed from /data/app/de.studiorutton.visualsmove-2.apk to /data/app/
de.studiorutton.visualsmove-1.apk; Retaining data and using new
I/PackageManager(   72): /data/app/de.studiorutton.visualsmove-1.apk
changed; unpacking
D/installd(   35): DexInv: --- BEGIN '/data/app/
de.studiorutton.visualsmove-1.apk' ---
D/dalvikvm(  353): DexOpt: load 63ms, verify 34ms, opt 2ms
D/installd(   35): DexInv: --- END '/data/app/
de.studiorutton.visualsmove-1.apk' (success) ---
W/PackageManager(   72): Code path for pkg :
de.studiorutton.visualsmove changing from /data/app/
de.studiorutton.visualsmove-2.apk to /data/app/
de.studiorutton.visualsmove-1.apk
W/PackageManager(   72): Resource path for pkg :
de.studiorutton.visualsmove changing from /data/app/
de.studiorutton.visualsmove-2.apk to /data/app/
de.studiorutton.visualsmove-1.apk
I/ActivityManager(   72): Force stopping package
de.studiorutton.visualsmove uid=10036
I/installd(   35): move /data/dalvik-cache/
d...@app@de.studiorutton.visualsmove-1@classes.dex - /data/dalvik-
cache/d...@app@de.studiorutton.visualsmove-1@classes.dex
D/PackageManager(   72): New package installed in /data/app/
de.studiorutton.visualsmove-1.apk
D/dalvikvm(   72): GC_FOR_MALLOC freed 8374 objects / 480872 bytes in
141ms
I/ActivityManager(   72): Force stopping package
de.studiorutton.visualsmove uid=10036
D/dalvikvm(   72): GC_EXPLICIT freed 3662 objects / 207416 bytes in
170ms
W/RecognitionManagerService(   72): no available voice recognition
services found
I/installd(   35): unlink /data/dalvik-cache/
d...@app@de.studiorutton.visualsmove-2@classes.dex
D/AndroidRuntime(  346): Shutting down VM
D/dalvikvm(  346): Debugger has detached; object registry had 1
entries

-- 
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: Unsuccessful install of successful built apk

2010-08-27 Thread Rutton
   Hi,

On 27 Aug., 17:50, { Devdroid } webnet.andr...@gmail.com wrote:
  W/RecognitionManagerService(   72): no available voice recognition
  services found

 What about this?

Well, I don't do any Voice Recognition.
Without posting the code here, I just use an Activity, a GLSurfaceView
(with Renderer) and lots ;-) of jni drawing stuff. The jni-lib just
uses the stuff provided by the ndk.
And the AndroidManifest.xml is very basic:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=de.studiorutton.visualsmove
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name android:debuggable=true/application

uses-sdk android:targetSdkVersion=8 android:minSdkVersion=8/
uses-sdk
/manifest

So, the question is, where is this RecognitionManagerService related
to?

-- 
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] Unsuccessful install of successful built apk

2010-08-27 Thread { Devdroid }
On 27 August 2010 17:38, Rutton rut...@web.de wrote:

 more debugging options for adb install? Or what can I do to provide
 more info to solve the problem? Thank you.

 W/RecognitionManagerService(   72): no available voice recognition
 services found

What about this?

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


[android-developers] Error when adding a library project

2010-08-27 Thread Bret Foreman
I've moved some of my common code into a library project so that
multiple projects can access it. I created an empty project, set it to
be a library in the properties screen, then imported some classes.

Next, I created a new (non library) project and added my new library
project to it. Immediately upon rebuild, I get the following error:

ERROR: Unknown option '--auto-add-overlay'
Android Asset Packaging Tool

What does this mean?

-- 
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: String being truncated when its long

2010-08-27 Thread DanH
I certainly hope that available Android memory is more than 3000
characters.

On Aug 27, 5:14 am, Droid rod...@gmail.com wrote:
 I think you are hitting a capacity limit of the android and should
 chunk it somehow at say 3000 chars and store the chars somewhere not
 in memory.
 Droid

 On Aug 27, 12:13 am, Achanta krishna.acha...@gmail.com wrote:

  I Tested your suggestions by setting UTF-8 and I also tried the same
  by removing the length 8000. But it still does the same thing.
  Thank you for the response though.

  This thing is driving me nuts.

  On Aug 26, 4:58 pm, Jake Radzikowski radzikowski.j...@gmail.com
  wrote: reader = new BufferedReader(new InputStreamReader(inputStream), 
  8000); I'm
   gunna guess that 8000 has something to do with it :). I usually use the
   following:

   reader = new BufferedReader(new InputStreamReader(inputStream, UTF-8));

   On Thu, Aug 26, 2010 at 3:40 PM, Achanta krishna.acha...@gmail.com 
   wrote:

I am trying to get a JSON response from our server and the response
string seems is always being truncated when the string length reaches
to around 5525 characters.

HttpClient httpClient = new DefaultHttpClient();
HttpPost post = new HttpPost(URL);
ResponseHandlerString responseHandler= new BasicResponseHandler();
String testResponse = httpClient.execute(post, responseHandler);

I also tried this by using HttpEntity and reading the response stream.
But that also truncates the string at approximately that length.

           HttpClient httpClient = new DefaultHttpClient();
           HttpPost post = new HttpPost(URL);
//          HttpGet get = new HttpGet(URL);

           HttpResponse response = null;
           HttpEntity entity = null;
           InputStream inputStream = null;
           BufferedReader reader = null;
           String result = ;
           try {
               response = (HttpResponse)httpClient.execute(post);
               entity = response.getEntity();
               if(entity != null){
                   inputStream = entity.getContent();
               }
               reader = new BufferedReader(new
InputStreamReader(inputStream), 8000);
               StringBuffer builder = new StringBuffer();
               String line = reader.readLine();
               while(line != null){
                   Log.v(tag, int max: +Integer.MAX_VALUE);
                   Log.v(tag, LINE: +line
+reader.toString());
                   Log.v(tag, reader: +reader.toString());
                   builder.append(line+\n);
                   line = reader.readLine();
               }
               inputStream.close();
               result = builder.toString();
           } catch (ClientProtocolException e) {
               e.printStackTrace();
           } catch (IOException e) {
               e.printStackTrace();
           } finally{
               if(inputStream != null){
                   try{
                       inputStream.close();
                   }catch(IOException e){
                       e.printStackTrace();
                   }
               }
           }

Please let me know how I can handle this problem. I used this post as
the reference while creating this.

   http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu...

I tested the link in my browser and it does return the complete JSON.
So I am sure the issue is with my code in android.

Thank you.

--
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.comandroid-developers%2Bunsubs
 cr...@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] Changing from one dev machine to another, keystore question

2010-08-27 Thread Chris Stewart
If I'm understanding your first sentence, I'm at work and cannot test it for
myself right now.

I'm not sure what you're saying beyond that point.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for MFL fantasy football owners
Fantasy Football
Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
Android app for all fantasy football fanatics
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 27, 2010 at 11:48 AM, { Devdroid } webnet.andr...@gmail.comwrote:

 On 27 August 2010 17:11, Chris Stewart cstewart...@gmail.com wrote:
  To this point, I've been doing development on multiple machines but
 always
  packaging for deployment on the same machine.  If I want to package for
  deployment on another machine, will simply copying the keystore file to
 the
  new machine do the trick?  Anything else I need to be concerned about
 when
  doing this?

 Why not just testing yourself? Private key is just what you need to do so,
 so if you copy keystore to other machine and sign with it then you just
 signed
 your app right.

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

[android-developers] Re: getPreviewSize() bad result on Froyo emulator

2010-08-27 Thread als
Yesterday I tried that buffered methods in a real device (HTC Desire)
and it didn't work either. Now I'm wondering if I use it the wrong
way. My code is this:

Parameters params = mCamera.getParameters();
mPixelFormat = PixelFormat.YCbCr_420_SP;
params.setPreviewFormat(mPixelFormat);
mCamera.setParameters(params);

Size previewSize = mCamera.getParameters().getPreviewSize();
int bytesPerPixel = ImageFormat.getBitsPerPixel(mPixelFormat);
int bufferSize = Math.round(bytesPerPixel/8.0f * previewSize.height *
previewSize.width);
byte[] buffer = new byte[bufferSize];
mCamera.addCallbackBuffer(buffer);

Is that code ok? Again, if I hardcode the buffer size (in the Desire
case 800*480*2) it works well. could anyone make that methods work?

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] .pfx SSL Certificate

2010-08-27 Thread Jake Radzikowski
Toss it in the resource folder? or are you asking how to load it?

On Fri, Aug 27, 2010 at 6:01 AM, Ajay aja...@gmail.com wrote:

 Hi,
   Does anyone know how we can include an SSL certificate (.pfx) with
 our App?

 Thank you,
 AJ

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

[android-developers] Re: Error when adding a library project

2010-08-27 Thread Bret Foreman
I should also note that removing the library does not make the project
build. In fact all the R resources are shown as unresolved. It appears
that adding the new library breaks the R builder.

-- 
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: JDOM in Android 2.1 or earlier

2010-08-27 Thread als
Thanks for the answer. I agree JDOM is slower and uses lot more memory
than a SAX parser, but we already have the implementation in JDOM, and
we wanted to reuse it, at least for the moment. Reuse is allways
faster and in software development you never have enough time. If we
finish the project soon we'll think about develop another parser.

By the way, in the first link i wrote ( 
http://code.google.com/p/android-rome-feed-reader/
) they patched JDOM 1.1.1 and now it's working ok. 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] Changing from one dev machine to another, keystore question

2010-08-27 Thread Greg Donald
On Fri, Aug 27, 2010 at 10:11 AM, Chris Stewart cstewart...@gmail.com wrote:
 To this point, I've been doing development on multiple machines but always
 packaging for deployment on the same machine.  If I want to package for
 deployment on another machine, will simply copying the keystore file to the
 new machine do the trick?  Anything else I need to be concerned about when
 doing this?

I have re-packaged my apps using the same keystore file on Linux,
Windows, and Mac without any issues.


-- 
Greg Donald
destiney.com | gregdonald.com

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


[android-developers] Re: Unsuccessful install of successful built apk

2010-08-27 Thread Rutton
Allright. Got it.
In an undelightful delirium I must have messed up the
AndroidManifest.xml.
I added an actitvity section and the apk shows now up in the emulator.
Thanks, for pointing out that there goes something wrong with the
initiation.

Cheers,
Rutton.

-- 
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: Android bitmap allocation weirdness

2010-08-27 Thread Viktor
I read the thread you posted and I agree that this is probably the
same problem. Is this behaviour from android working as intended or
can we expect it to be fixed in later releases? Also did you ever find
a workaround, I read the part about not allocating large memory chunks
but sometimes that's necessary for some of the applications I'm
writing.

BR Viktor

On Aug 27, 4:19 pm, Tom Gibara tomgib...@gmail.com wrote:
 Viktor, This question comes up in various guises. I think your problem is
 explained by some old posts I made on this thread.

 http://groups.google.com/group/android-developers/browse_thread/threa...

 http://groups.google.com/group/android-developers/browse_thread/threa...
 Tom.

 On 27 August 2010 08:34, Viktor vilainpe...@gmail.com wrote:



  Why wouldn't nulling b mark the array for garbage collection? What
  other pointers to the array could there be?

  I tried your suggestions with no success.

  On Aug 25, 6:23 pm, DanH danhi...@ieee.org wrote:
   OK, I see that you're nulling b between the two allocations.  But
   that doesn't assure that all pointers to the array are destroyed.  Try
   placing the = new and = null statements in a called method ( just
   for grins return b from that method and assign it in your original
   method).

   On Aug 25, 10:40 am, DanH danhi...@ieee.org wrote:

The first array is 20 MB.  The second is also 20 MB.  What's the
problem?

On Aug 24, 4:28 pm, Viktor vilainpe...@gmail.com wrote:

 I'm having some trouble understanding why this code

 public class BitmapAllocTest extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         byte[] b = new byte[20 * 1000 * 1000];
         b = null;
        Bitmap.createBitmap(2500, 2000,Bitmap.Config.ARGB_);
     }}

 throws an OutOfMemory exception on a device with a 24mb heap limit.
  If
 I comment out either of the allocations it runs fine. I was under the
 impression that the java vm would try to garbage collect before
 throwing OutOfMemory exceptions.

 I suspect it having to do withandroidallocating the bitmaps on the
 native heap.

 PS. This is a clone from my stackoverflow questionhttp://
  stackoverflow.com/questions/3546635/android-bitmap-allocation-...
 which hasn't gotten a satisfactory answer yet.- Hide quoted text -

   - Show quoted text -

  --
  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.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
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: Sharing code between apps as in Eclipse

2010-08-27 Thread Warren
Gentlemen you are amazing. Thank you. I am currently reading about and
testing the Library Project approach outlined in the link. You are
right, this is designed exactly for my use case.

Warren



On Aug 26, 10:54 am, Juhani pleafh...@gmail.com wrote:
 You will have to use Android library projects instead of simply
 referring to the other project in Eclipse. That will create the R
 class to both projects.
 Follow instructions 
 here:http://developer.android.com/guide/developing/eclipse-adt.html#librar...
 to get it going.

 On Aug 26, 4:39 pm, Warren warrenba...@gmail.com wrote:



  I have ten, possibly more, apps I'm developing that all share logic.
  50-75% of the logic is the same - perfect for some time of library or
  code sharing. However, after reading the posts here and trying to
  share code in Eclipse, I'm not sure that's going to work. I tried
  going to project - properties - build path - link source and adding
  the src and gen folders of the project with the shared code and then
  importing the classes I need. That seems to work in the IDE, but gives
  an error during runtime: class not found. This seems to be a common
  error for people attempting this.

  I am slowly deciding that shared code is not the best approach in this
  scenario. Android doesn't seem to work well with this type of code
  sharing. For one thing resources are not packed in libraries, but
  references (R.whatever) must exist so as not to create errors. This
  can be designed around, but the effort and headache is probably worse
  than simply creating multiple copies.

  What are you thoughts on the topic?  My experience seems typical,
  based on what I've read. Is it? Have you experienced success or
  failure with sharing code and/or custom libraries?  Am I off-base in
  thinking that multiple code copies will be smoother sailing than
  fighting the shared code approach?

-- 
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: Paid vs Free, My Early Experience

2010-08-27 Thread Chris Stewart
I'm really curious to get more context around that.  Frankly, I'm interested
and if I can get more info I might give it a shot myself.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for MFL fantasy football owners
Fantasy Football
Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
Android app for all fantasy football fanatics
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 27, 2010 at 11:30 AM, TreKing treking...@gmail.com wrote:

 On Fri, Aug 27, 2010 at 10:08 AM, Chris Stewart cstewart...@gmail.comwrote:

 * Put some context around doubled.  From 1 to 2, 100 to 200, 1,000 to
 2,000?
 * How many cancels are in these numbers?  I've got to believe that with a
 less informative, and more catchy message, people know less about what
 they're buying and end up canceling when they find out it's not what they
 expect.
 * It would be interesting to see the before and after descriptions you're
 using in the market for your app.


 Yes, yes, and yes. Also:
 * Did you update at any point in this time frame?
 * Did you happen to get featured at any point in this time frame?
 * Were there any new Android devices released in this time frame?

 While your anecdote is indeed interesting, it definitely warrants exploring
 the other factors that may have been involved.
 A one week experiment for one app is not, statistically speaking,
 sufficient proof  to believe in this theory that feature list don't
 sell.

 An interesting follow up to this experiment would be to change your
 description back to what you had originally and see if your sales are cut in
 half. Though I don't know if that's something you're interested in finding
 out =P


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

Re: [android-developers] Re: Android bitmap allocation weirdness

2010-08-27 Thread Tom Gibara
I'd categorize it as a consequence of present VM implementation; something
that could be improved rather than something that needs to be fixed (note
that no one has actually corroborated whether my understanding of this
memory allocation is correct).

Whether it's possible to improve the current memory allocation model without
trading off too many of its benefits is a question for the engineers
responsible, and whether this is something that is worth spending
development time on is another question again. I don't know how the present
situation is regarded by the Android engineers.

For my part, I don't see it as a very high priority. I try to write
applications that stay comfortably below their maximum memory allocation, so
I don't generally find it a cause of errors in my applications. Naturally
there are exceptions, applications that allocate data structures based on
external data can't easily avoid memory spikes when processing large inputs.
When a flat memory profile isn't attainable, pre-allocating your bitmaps may
be the only workaround, though this may have the consequence of making
out-of-memory conditions more frequent and not less.

As ever, it depends on the application.

Tom.

On 27 August 2010 17:09, Viktor vilainpe...@gmail.com wrote:

 I read the thread you posted and I agree that this is probably the
 same problem. Is this behaviour from android working as intended or
 can we expect it to be fixed in later releases? Also did you ever find
 a workaround, I read the part about not allocating large memory chunks
 but sometimes that's necessary for some of the applications I'm
 writing.

 BR Viktor

 On Aug 27, 4:19 pm, Tom Gibara tomgib...@gmail.com wrote:
  Viktor, This question comes up in various guises. I think your problem is
  explained by some old posts I made on this thread.
 
  http://groups.google.com/group/android-developers/browse_thread/threa...
 
  http://groups.google.com/group/android-developers/browse_thread/threa..
 .
  Tom.
 
  On 27 August 2010 08:34, Viktor vilainpe...@gmail.com wrote:
 
 
 
   Why wouldn't nulling b mark the array for garbage collection? What
   other pointers to the array could there be?
 
   I tried your suggestions with no success.
 
   On Aug 25, 6:23 pm, DanH danhi...@ieee.org wrote:
OK, I see that you're nulling b between the two allocations.  But
that doesn't assure that all pointers to the array are destroyed.
  Try
placing the = new and = null statements in a called method (
 just
for grins return b from that method and assign it in your original
method).
 
On Aug 25, 10:40 am, DanH danhi...@ieee.org wrote:
 
 The first array is 20 MB.  The second is also 20 MB.  What's the
 problem?
 
 On Aug 24, 4:28 pm, Viktor vilainpe...@gmail.com wrote:
 
  I'm having some trouble understanding why this code
 
  public class BitmapAllocTest extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  byte[] b = new byte[20 * 1000 * 1000];
  b = null;
 Bitmap.createBitmap(2500, 2000,Bitmap.Config.ARGB_);
  }}
 
  throws an OutOfMemory exception on a device with a 24mb heap
 limit.
   If
  I comment out either of the allocations it runs fine. I was under
 the
  impression that the java vm would try to garbage collect before
  throwing OutOfMemory exceptions.
 
  I suspect it having to do withandroidallocating the bitmaps on
 the
  native heap.
 
  PS. This is a clone from my stackoverflow questionhttp://
   stackoverflow.com/questions/3546635/android-bitmap-allocation-...
  which hasn't gotten a satisfactory answer yet.- Hide quoted text
 -
 
- Show quoted text -
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -

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

[android-developers] Re: String being truncated when its long

2010-08-27 Thread DanH
My knowledge of the HTTP protocol is poor to begin with, and my bad
memory doesn't improve it, but I vaguely recall that a single HTTP
transfer is limited to 5000-odd characters (the precise number being
somewhat variable) by the packet sizes used in the network.  But
normally the software used on each end should hide this sensitivity so
that you can deal in complete data streams up to some significantly
larger limit.

It could be that something in your config is causing this transfer
size to be exposed.  It's also possible that your coding style is
opening you up to being sensitive to data stream values.  In
particular, null may be being returned from readLine at the end of the
block, even though there is more data in the transmission.  (I don't
know that such is possible -- just speculating.)

Finally, it's possible that the failure is occurring on the
transmission end, perhaps due to an EOF character embedded in the
source data or some such.

On Aug 26, 5:40 pm, Achanta krishna.acha...@gmail.com wrote:
 I am trying to get a JSON response from our server and the response
 string seems is always being truncated when the string length reaches
 to around 5525 characters.

 HttpClient httpClient = new DefaultHttpClient();
 HttpPost post = new HttpPost(URL);
 ResponseHandlerString responseHandler= new BasicResponseHandler();
 String testResponse = httpClient.execute(post, responseHandler);

 I also tried this by using HttpEntity and reading the response stream.
 But that also truncates the string at approximately that length.

             HttpClient httpClient = new DefaultHttpClient();
             HttpPost post = new HttpPost(URL);
 //          HttpGet get = new HttpGet(URL);

             HttpResponse response = null;
             HttpEntity entity = null;
             InputStream inputStream = null;
             BufferedReader reader = null;
             String result = ;
             try {
                 response = (HttpResponse)httpClient.execute(post);
                 entity = response.getEntity();
                 if(entity != null){
                     inputStream = entity.getContent();
                 }
                 reader = new BufferedReader(new
 InputStreamReader(inputStream), 8000);
                 StringBuffer builder = new StringBuffer();
                 String line = reader.readLine();
                 while(line != null){
                     Log.v(tag, int max: +Integer.MAX_VALUE);
                     Log.v(tag, LINE: +line
 +reader.toString());
                     Log.v(tag, reader: +reader.toString());
                     builder.append(line+\n);
                     line = reader.readLine();
                 }
                 inputStream.close();
                 result = builder.toString();
             } catch (ClientProtocolException e) {
                 e.printStackTrace();
             } catch (IOException e) {
                 e.printStackTrace();
             } finally{
                 if(inputStream != null){
                     try{
                         inputStream.close();
                     }catch(IOException e){
                         e.printStackTrace();
                     }
                 }
             }

 Please let me know how I can handle this problem. I used this post as
 the reference while creating 
 this.http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu...

 I tested the link in my browser and it does return the complete JSON.
 So I am sure the issue is with my code in android.

 Thank you.

-- 
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] Is there a way to request permissions from a user as you need them?

2010-08-27 Thread Dianne Hackborn
No it must be done at install time.  Honestly, this is better than prompting
the user all over the place when they are actually trying to do some other
task -- they are more likely to look at permissions (and as a whole) when
the task at hand is installing an app.

You can't intercept URIs without going through a system UI where the user
decides what to do.  Also at that point the task they are doing is look at
this thing I selected, so the decision they are making (pick which will
show the thing they are wanting to look at) is relevant to their task at
hand.

On Fri, Aug 27, 2010 at 9:34 AM, Greg Giacovelli miyamo...@gmail.comwrote:

 I suspect there has to be. I mean I saw for bluetooth there is. I was
 wondering why it is not as easy for the other permissions. I mean heck
 we can intercept urls without even asking a user for the most part, so
 I would have to suspect that permissions have to have this ability.


 -Greg

 --
 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.comandroid-developers%2bunsubscr...@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] Taking a Picture

2010-08-27 Thread Pedro Teixeira
This tapping on screen to take a picture is revealing itself a big  
pain...
I've tried rearranging the code according to my needs. I implemented  
the class TappableSurfaceView with out success...
I'm wondering.. is a SurfaceView still tappable even if we have  
something overlaying it? Let's say a picture, or a piece of text? Does  
that work ? Maybe I'm loosing my time with an impossible thing..



On Aug 27, 2010, at 12:28 AM, Mark Murphy wrote:


On Thu, Aug 26, 2010 at 5:50 PM, Pedro Teixeira
pedroteixeir...@gmail.com wrote:

Can anyone help?
I just have the camera working.. and nothing more.. my device  
doesnt react

to anything, touch, click.. whatever


Here is yet another sample project, showing a SurfaceView used for
video playback, that responds to touch events:

http://github.com/commonsguy/vidtry

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


Pedro Teixeira

www.pedroteixeira.org

--
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: getting a java.lang.VerifyError

2010-08-27 Thread DanH
 VerifyError is produced for one of two reasons:

1) The class file being read contains stuff that is just plain illegal/
not recognized by the VM.  This could be due to compiler error,
malicious modification, garbling in transmission, or the class file
being a later version than the VM recognizes.

2) The external APIs that the class file references are somehow
different from those the class file was originally compiled against.
Eg, the SomeExernalClass.getMyFruit method that used to return a Peach
object is now returning a Kumquat.

On Aug 27, 3:47 am, pramod.deore deore.pramo...@gmail.com wrote:
 I had write one application in that I am reading a image and sending
 it to the server , I am using Base64OutputStream class . I had tried
 it in core java and image is encoded successfully, But when I am using
 same logic in android then I am getting error as
 java.lang.VerifyError .

 And Logcat gives following error as

 08-27 14:11:35.285: ERROR/AndroidRuntime(371): Uncaught handler:
 thread main exiting due to uncaught exception
 08-27 14:11:35.405: ERROR/AndroidRuntime(371): java.lang.VerifyError:
 org.apache.commons.codec.binary.Base64OutputStream
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.micro.encodeImage.EncodeImage.encodeImage(EncodeImage.java:46)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.micro.encodeImage.EncodeImage.onCreate(EncodeImage.java:35)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1123)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2364)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2417)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.access$2100(ActivityThread.java:116)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.os.Looper.loop(Looper.java:123)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.main(ActivityThread.java:4203)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:791)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 dalvik.system.NativeStart.main(Native Method)

 how to solve this issue?

-- 
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: Paid vs Free, My Early Experience

2010-08-27 Thread Brad Gies


Well.. that's good to hear... but of course... one week's sales on one 
app is not proof...


BUT... there is a wealth of proof of the concept... Hundreds of years of 
marketing almost every type of product ever made :).


I have done quite a bit of research into marketing over the years, and 
there is no question it works.. and there are exceptions, but very few 
exceptions. From working with other developers, I've also learned that 
most developers believe their product is one of those exceptions :). 
They just can't get the concept because it's not how their brain works.


 You might want to keep quiet on your results :). After all, let the 
other developers think like developers, and your app can have the sales 
:). Good marketing wins out over good technology almost every time... of 
course.. if you have both.. you're unbeatable :).


I will be honest though... and the feature list would be more likely to 
sell it to me :). But then, I am a developer, and I think like a 
developer. So, I've learned (and accepted) that you can't ignore the 
fact that most of the people on the planet think differently than I do.


Anyway.. great to hear, and good luck.

Brad.


On 27/08/2010 3:55 AM, Zsolt Vasvari wrote:

So in the week that I changed my 325 characters from a feature list to
a catchy blurb, my sales have doubled.  So I believe in this theory
that feature list don't sell.

On Aug 20, 7:14 pm, Zsolt Vasvarizvasv...@gmail.com  wrote:

This has been a good discussion.

As an experiment, I just changed my description from afeaturelistto
a clever blurb.  Will report back if my sales/downloads have gone up
or down.  My app is in a category where I would think that features
matter and people look for them.  So I am guessing that I am shooting
myself in the foot, but it's worth trying for a week.


--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

--
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: Paid vs Free, My Early Experience

2010-08-27 Thread TreKing
On Fri, Aug 27, 2010 at 10:08 AM, Chris Stewart cstewart...@gmail.comwrote:

 * Put some context around doubled.  From 1 to 2, 100 to 200, 1,000 to
 2,000?
 * How many cancels are in these numbers?  I've got to believe that with a
 less informative, and more catchy message, people know less about what
 they're buying and end up canceling when they find out it's not what they
 expect.
 * It would be interesting to see the before and after descriptions you're
 using in the market for your app.


Yes, yes, and yes. Also:
* Did you update at any point in this time frame?
* Did you happen to get featured at any point in this time frame?
* Were there any new Android devices released in this time frame?

While your anecdote is indeed interesting, it definitely warrants exploring
the other factors that may have been involved.
A one week experiment for one app is not, statistically speaking, sufficient
proof  to believe in this theory that feature list don't sell.

An interesting follow up to this experiment would be to change your
description back to what you had originally and see if your sales are cut in
half. Though I don't know if that's something you're interested in finding
out =P

-
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

[android-developers] Is there a way to request permissions from a user as you need them?

2010-08-27 Thread Greg Giacovelli
I suspect there has to be. I mean I saw for bluetooth there is. I was
wondering why it is not as easy for the other permissions. I mean heck
we can intercept urls without even asking a user for the most part, so
I would have to suspect that permissions have to have this ability.


-Greg

-- 
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: Flickering.

2010-08-27 Thread greg
I cant do it widout the thread coz i need a sleep or a delay after
each 30 degree drawing,

To be consistent, shouldn't Thread be Dread?  (sorry, couldn't
resist)

You've ruled out using AsyncTask rather than your Thread and sleeps?

On Aug 27, 1:48 am, tina lincon tina.theresalin...@wipro.com wrote:
 Any idea hw to remove d flickering???pls do help 

 On Aug 26, 7:21 pm, tina lincon tina.theresalin...@wipro.com wrote:

  I am doing an application-infinitely rotating 3D cylinder in
  openGl.The speed varies with finger touch but wen i reduce the speed,i
  can see  flickering happening in animation towards right and
  left.Initialy I thought it is because of the linked list im updating
  but found out there is no such problem with my linked list .I'm using
  a thread here for a small delay after each 30 degree rotation
  drawing.I cant do it widout the thread coz i need a sleep or a delay
  after each 30 degree drawing,if i remove the thread and implement the
  code in thread inside my onDraw frame, the curvature rotation itself
  goes and it appears that images are just left shifting n right
  shifting coz the sleep is not getting identified in onDraw frame.So i
  cant implement my logic here widout using thread..so thread is a must
  in my logic but i guess the flickering is due to my thread...Is the
  flickering issue during animation because of the thread?please do help
  me with this flickering issue..dis is d thread part im using in my
  code.
  Runnable r1=new Runnable()
                  {
                          //Thread t1=new Thread(r1);
                          //t1.start();

                          public void run()
                          {
                                  //t1.start();
                                  while(true){

                                          if(rotateFlagRight)
                                           {
                                                  mRenderer.rotationFlag = 1;
                                                  
  //System.out.println(positive value of dx+dx);

                                                  for(int i=0;i=30;i++)
                                                  {
                                                  mRenderer.mAngleXX= i;
                                                          if ((dx10) 
  (dx50))
                                                          {
                                                                  try {
                                                                              
      Thread.sleep(100);
                                                                          } 
  catch (InterruptedException e1) {}
                                                          }
                                                          else if ((dx50) 
  (dx100))
                                                          {
                                                                  try {
                                                                              
      Thread.sleep(10);
                                                                          } 
  catch (InterruptedException e1) {}
                                                          }
                                                          else if ((dx100) 
  (dx150))
                                                     {
                                                                  try {
                                                                              
      Thread.sleep(8);
                                                                          } 
  catch (InterruptedException e1) {}
                                                     }
                                                          else if ((dx150) 
  (dx200))
                                                     {
                                                                  try {
                                                                              
      Thread.sleep(7);
                                                                          } 
  catch (InterruptedException e1) {}
                                                     }
                                                          else if ((dx200) 
  (dx250))
                                                    {
                                                                  try {
                                                                              
      Thread.sleep(5);
                                                                          } 
  catch (InterruptedException e1) {}
                                                    }
                                                          else if ((dx250) 
  (dx300))
                                                    {
                                                                  try {
                                                            

Re: [android-developers] Changing from one dev machine to another, keystore question

2010-08-27 Thread Brad Gies


Sure... the key is the same, no matter what machine it's on. I've even 
emailed it to myself and installed it on different machines.




On 27/08/2010 8:53 AM, Chris Stewart wrote:
If I'm understanding your first sentence, I'm at work and cannot test 
it for myself right now.


I'm not sure what you're saying beyond that point.

--
Chris Stewart
http://chriswstewart.com

Fantasy Football 
http://chriswstewart.com/android-applications/fantasy-football/ - 
Android app for MFL fantasy football owners
Fantasy Football Insider 
http://chriswstewart.com/android-applications/fantasy-football-insider/ 
- Android app for all fantasy football fanatics
Social Updater 
http://chriswstewart.com/android-applications/social-updater/ - An 
easy way to send your status blast to multiple social networks




On Fri, Aug 27, 2010 at 11:48 AM, { Devdroid } 
webnet.andr...@gmail.com mailto:webnet.andr...@gmail.com wrote:


On 27 August 2010 17:11, Chris Stewart cstewart...@gmail.com
mailto:cstewart...@gmail.com wrote:
 To this point, I've been doing development on multiple machines
but always
 packaging for deployment on the same machine.  If I want to
package for
 deployment on another machine, will simply copying the keystore
file to the
 new machine do the trick?  Anything else I need to be concerned
about when
 doing this?

Why not just testing yourself? Private key is just what you need
to do so,
so if you copy keystore to other machine and sign with it then you
just signed
your app right.

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


--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

--
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] upload image to php server problem

2010-08-27 Thread CMF
Hi all, i have read through the internet and get some solutions on
upload image to php server, but when i tried to use those codes, I
cannot get the image uploaded to the server. Could anyone can help me
to fix it?


Android Code:
i have added uses-permission
android:name=android.permission.INTERNET /

package com.test.upload;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class testupload extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
doFileUpload();
}

private void doFileUpload()
{
HttpURLConnection connection = null;
DataOutputStream outputStream = null;
DataInputStream inputStream = null;

String pathToOurFile = /sdcard/a.jpg;
String urlServer = http://myserver/testupload.php;;
String lineEnd = \r\n;
String twoHyphens = --;
String boundary =  *;

int bytesRead, bytesAvailable, bufferSize;
byte[] buffer;
int maxBufferSize = 1*1024*1024;

try
{
FileInputStream fileInputStream = new FileInputStream(new
File(pathToOurFile) );

URL url = new URL(urlServer);
connection = (HttpURLConnection) url.openConnection();

// Allow Inputs  Outputs
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);

// Enable POST method
connection.setRequestMethod(POST);

connection.setRequestProperty(Connection, Keep-Alive);
connection.setRequestProperty(Content-Type, multipart/form-
data;boundary=+boundary);

outputStream = new
DataOutputStream( connection.getOutputStream() );
outputStream.writeBytes(twoHyphens + boundary + lineEnd);
outputStream.writeBytes(Content-Disposition: form-data; name=
\uploadedfile\;filename=\ + pathToOurFile +\ + lineEnd);
outputStream.writeBytes(lineEnd);

bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, maxBufferSize);
buffer = new byte[bufferSize];

// Read file
bytesRead = fileInputStream.read(buffer, 0, bufferSize);

while (bytesRead  0)
{
outputStream.write(buffer, 0, bufferSize);
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, maxBufferSize);
bytesRead = fileInputStream.read(buffer, 0, bufferSize);
}

outputStream.writeBytes(lineEnd);
outputStream.writeBytes(twoHyphens + boundary + twoHyphens +
lineEnd);

// Responses from the server (code and message)
int serverResponseCode = connection.getResponseCode();
String serverResponseMessage = connection.getResponseMessage();

fileInputStream.close();
outputStream.flush();
outputStream.close();
}
catch (Exception ex)
{
//Exception handling
}
}
}


/
*/
server php code:
i have make the permmision of uploads/ to 777
and the upload.php to 755

?php
$target_path  = uploads/;
$target_path = $target_path . basename( $_FILES['uploadedfile']
['name']);
if(move_uploaded_file($_FILES['uploadedfile']['name'], $target_path))
{
 echo The file .  basename( $_FILES['uploadedfile']['name']).
  has been uploaded;
} else{
 echo There was an error uploading the file, please try again!;
}
?

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


Re: [android-developers] Changing from one dev machine to another, keystore question

2010-08-27 Thread { Devdroid }
On 27 August 2010 17:11, Chris Stewart cstewart...@gmail.com wrote:
 To this point, I've been doing development on multiple machines but always
 packaging for deployment on the same machine.  If I want to package for
 deployment on another machine, will simply copying the keystore file to the
 new machine do the trick?  Anything else I need to be concerned about when
 doing this?

Why not just testing yourself? Private key is just what you need to do so,
so if you copy keystore to other machine and sign with it then you just signed
your app right.

-- 
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: getting a java.lang.VerifyError

2010-08-27 Thread DanH
Of course, note that Android has its own version of Base64OutputSteam
at android.util.  If you have Java source that was compiled against
the one of the other versions it will need to be recompiled for
Android.

On Aug 27, 3:47 am, pramod.deore deore.pramo...@gmail.com wrote:
 I had write one application in that I am reading a image and sending
 it to the server , I am using Base64OutputStream class . I had tried
 it in core java and image is encoded successfully, But when I am using
 same logic in android then I am getting error as
 java.lang.VerifyError .

 And Logcat gives following error as

 08-27 14:11:35.285: ERROR/AndroidRuntime(371): Uncaught handler:
 thread main exiting due to uncaught exception
 08-27 14:11:35.405: ERROR/AndroidRuntime(371): java.lang.VerifyError:
 org.apache.commons.codec.binary.Base64OutputStream
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.micro.encodeImage.EncodeImage.encodeImage(EncodeImage.java:46)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.micro.encodeImage.EncodeImage.onCreate(EncodeImage.java:35)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1123)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2364)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2417)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.access$2100(ActivityThread.java:116)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.os.Looper.loop(Looper.java:123)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 android.app.ActivityThread.main(ActivityThread.java:4203)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:791)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
 dalvik.system.NativeStart.main(Native Method)

 how to solve this issue?

-- 
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: remote db connection

2010-08-27 Thread DanH
I'm trying to remember the line from that old Cagney movie --
something like I don't know which is more merciful -- to ignore him
or tell him there is none.

There is no remote DB paradigm in Android.  Rather, you are
encouraged to have the server end provide a REST interface with
which you can interact.

On Aug 27, 1:29 am, vineeshkc kcvine...@gmail.com wrote:
 pls give me remote db connection code

-- 
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: Handling the R object in a library

2010-08-27 Thread DanH
I haven't used this, but it might be what you're looking for:
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject

On Aug 26, 5:59 pm, Bret Foreman bret.fore...@gmail.com wrote:
 I moved some of my useful utility code into a library where multiple
 projects can easily access it. Among those utility classes is one that
 parses values out of some files in the res folder using the following
 call:

                 myXmlParser =
 passedInContext.getResources().getXml(passedInResourceID);

 Where passedInContext is of type Context and passedInResourceID is an
 int and both are passed into the utility class from the calling
 package.

 When I build a project that uses the library I get the following
 error:

  --custom-package generates R.java into a different package.

 What should I do to get an XmlResourceParser or XMLPullParser for an
 xml file in the res folder in this case?

-- 
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: Paid vs Free, My Early Experience

2010-08-27 Thread Yahel
Actually, in this case Zsolt did better :

He removed the feature list and compared his product with top-of-the-
line desktop application that do the same thing.
And of course he used the try it risk-free 24 hours refund argument :)

I can tell you it would really work better on me than the bullet
list :)

And I have to say it is a very clever message Zsolt.

Keep up the good work.

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] Shipping Android App from India

2010-08-27 Thread Roy
Hi All,

I am an android developer from India. I came to know that only
developers in the countries listed in the following link can sell
priced applications.

http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswer=138294

Can someone shed some light over it? Is there a way or a work around
to sell App from unsupported countries like India?

Thanks in advance.

-Roy

-- 
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] Stopping fling in Gallery

2010-08-27 Thread Agus
Hi,

You can abort fling effect by extending the Gallery class and
overriding the onFling method,
Inside the method, dont call the super method, just return true;



On Tue, Jul 28, 2009 at 4:20 PM, Brady brady.kro...@gmail.com wrote:

 Hi everyone,

 I'd like to handle a fling gesture in Gallery and stop the animation
 when the next image is fully displayed on screen. I've successfully
 captured the fling gesture in my GestureListener.

 However when I try to call mGallery.clearAnimation() but it doesn't
 stop the fling. I've looked at the Gallery.java source and it would be
 great to have access to the mScroller to tell it to abort the
 animation.

 The only luck I've had so far is to dispatch two MotionEvents to the
 Gallery view: a quick TouchDown and TouchUp which stops the animation.
 There must be a better way :) I'd appreciate your help!

 Thanks,
 Brady
 --~--~-~--~~~---~--~~
 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: Paid vs Free, My Early Experience

2010-08-27 Thread Chris Stewart
Bah, you've convinced me to at least give it a try.  I'll let you all know
if I see any difference.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for MFL fantasy football owners
Fantasy Football
Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
Android app for all fantasy football fanatics
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 27, 2010 at 1:19 PM, Yahel kaye...@gmail.com wrote:

 Actually, in this case Zsolt did better :

 He removed the feature list and compared his product with top-of-the-
 line desktop application that do the same thing.
 And of course he used the try it risk-free 24 hours refund argument :)

 I can tell you it would really work better on me than the bullet
 list :)

 And I have to say it is a very clever message Zsolt.

 Keep up the good work.

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

[android-developers] Re: Licensing server, app cracked.

2010-08-27 Thread sblantipodi
no news on the imminent guide where is this guide?

On Aug 26, 5:37 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 Is this the guide you are talking about?
 To ensure the security of your application, particularly for a paid
 application that uses licensing and/or custom constraints and
 protections, it's very important to obfuscate your application code.
 Properly obfuscating your code makes it more difficult for a malicious
 user to decompile the application's bytecode, modify it — such as by
 removing the license check — and then recompile it.

 Several obfuscator programs are available for Android applications,
 including ProGuard, which also offers code-optimization features. The
 use of ProGuard or a similar program to obfuscate your code is
 strongly recommended for all applications that use Android Market
 Licensing. 

 Is this a guide?

 On Aug 25, 1:26 am, Nick Richardson richardson.n...@gmail.com wrote:

  The guide is linked in the article you posted...

  On Tue, Aug 24, 2010 at 3:53 PM, sblantipodi
  perini.dav...@dpsoftware.orgwrote:

   As title,

  http://android-developers.blogspot.com/2010/08/licensing-server-news

   where is the guide to obfuscate our code?

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

  --
  //Nick Richardson
  //richardson.n...@gmail.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 Market, google checkout minimal sum to be collected before payment.

2010-08-27 Thread sblantipodi
Hi all,
is there a way to set google checkout to pay us only after our balance
surpassed a certain amount?

I want to be payed when I have earned at least 100$, I can't see
dozens of transaction on my bank for only 2$...

-- 
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] Is there anyway to turn USB debuggin on/off

2010-08-27 Thread Arjun
Greetings,

Is there any class or managaer which allows me to turn USB debugging
on/off  in android froyo 2.2.
Please, let me know on how to acheive this.

Thanks,
Arjun.

-- 
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: App breaks for some users after they update from the Market

2010-08-27 Thread TreKing
On Fri, Aug 27, 2010 at 10:01 AM, Carl Whalley
carl.whal...@googlemail.comwrote:

 Might be throwing in a food-for-thought curveball here but I wonder
 if there's a difference between updating an app that's running and one which
 isn't?


Might be. It's only a handful of people (well, more than a handful for me)
but still few in comparison to the total install base, so there's definitely
something they're doing that's triggering the problem.

I would think the update process would kill the app if it's running, but
maybe not.

Also, got confirmation from the second person that clearing the data solved
the problem.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Shipping Android App from India

2010-08-27 Thread Chris Stewart
You've found probably the biggest problem with Android right now.  I can
think of two options:

* Take the transaction outside of the Android Market.  Handle payments
manually through your own website that will give customers access to the
apk.
* Offer your application for free, and hope AdMob or someone can fill enough
ads for you to generate some money.

Unfortunately, Google Checkout is the only official option right now and
that's very limiting.  There have been rumors that Paypal support is coming
and even carrier payments which both would be huge improvements to the
current system.  Of course, there's no official word on either and so
there's no telling when (and if), either will happen.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for MFL fantasy football owners
Fantasy Football
Insiderhttp://chriswstewart.com/android-applications/fantasy-football-insider/-
Android app for all fantasy football fanatics
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 27, 2010 at 1:19 PM, Roy roydeco...@gmail.com wrote:

 Hi All,

 I am an android developer from India. I came to know that only
 developers in the countries listed in the following link can sell
 priced applications.


 http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswer=138294

 Can someone shed some light over it? Is there a way or a work around
 to sell App from unsupported countries like India?

 Thanks in advance.

 -Roy

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

  1   2   >