[android-developers] How to publish app on android market from India

2011-11-12 Thread Rahul Verma


-- 
You received this message because you are subscribed to the Google
Groups Android 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: Urgent help required

2011-11-12 Thread skink


Thomas napisał(a):
 Hello,

 You state you want to share this on a public network.  What is the URL
 where the html  and and other files live?  The code is straight
 forward enough if that is what you want to do.

 Best,
 Tom B

OP problem is that he has at least some files as app resources stored
in /res/raw folder and typical HTTP server can only access files
stored in the file system so he needs either to copy all resources he
wants to share to some location in the file system or modify his
server to access app resources.

When trying the second scenario, docs/guide/topics/resources/providing-
resources.html says:


raw/
Arbitrary files to save in their raw form. To open these resources
with a raw InputStream, call Resources.openRawResource() with the
resource ID, which is R.raw.filename.

However, if you need access to original file names and file hierarchy,
you might consider saving some resources in the assets/ directory
(instead of res/raw/). Files in assets/ are not given a resource ID,
so you can read them only using AssetManager.


so probably it would be better to save his resources in /res/assets/
folder since those resources can be accessed by name and not by id.

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android 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 publish app on android market from India

2011-11-12 Thread Raghav Sood
The same way you would for any other country. Sign up for an account, and
upload it with the details. You cannot sell paid apps from India.

Thanks

On Sat, Nov 12, 2011 at 1:51 PM, Rahul Verma rahulsgonnar...@gmail.comwrote:

  --
 You received this message because you are subscribed to the Google
 Groups Android 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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
You received this message because you are subscribed to the Google
Groups Android 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: Is it possible that LINK/CALL a class in another package as a library or plug-in?

2011-11-12 Thread Build account
I'm considering a kind of plug-in system.
Is there any example to implement this?
(I had reviewed tic-tac-toe and others, but I couldn't found clear
answer).

Pls comment me more about how to implement detail or code snippet.

Thx

On Nov 12, 4:13 pm, BCS fa829...@gmail.com wrote:
 there are (definitely) possibilities ~ pls provide some technical
 scope of how powerful need to be - situation better if all packages
 signed with same key = there are ways to do it

 On Nov 12, 1:06 am, Build account newandroi...@gmail.com wrote:



  Hello.

  Can we call a package 'com.sample.lib' from 'com.sample.main' which
  installed as separate apks?
  In order to split a large support class file from main app
  since this is optional function.

  Any possiblities, please let me know!!- 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: Is it possible that LINK/CALL a class in another package as a library or plug-in?

2011-11-12 Thread hhenne
In my keyboard app (http://www.maxikeys.com) the keyboard LAYOUTS are
services provided as seperate apks, which dynamically plugs in  the
keyboard ENGINE service.
You have to make an intent to the plugin service and a
serviceConnection with callback methods , and then call the
bindService method.
I'm not able to give you the code - but the rest is just details.

Hardy Henneberg
http://www.maxikeys.com


On Nov 12, 12:19 pm, Build account newandroi...@gmail.com wrote:
 I'm considering a kind of plug-in system.
 Is there any example to implement this?
 (I had reviewed tic-tac-toe and others, but I couldn't found clear
 answer).

 Pls comment me more about how to implement detail or code snippet.

 Thx

 On Nov 12, 4:13 pm, BCS fa829...@gmail.com wrote:







  there are (definitely) possibilities ~ pls provide some technical
  scope of how powerful need to be - situation better if all packages
  signed with same key = there are ways to do it

  On Nov 12, 1:06 am, Build account newandroi...@gmail.com wrote:

   Hello.

   Can we call a package 'com.sample.lib' from 'com.sample.main' which
   installed as separate apks?
   In order to split a large support class file from main app
   since this is optional function.

   Any possiblities, please let me know!!- 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] Sending SMS message: Delivered pending intent is not broadcasted on emulator

2011-11-12 Thread Ali Chousein
Hi,

I'm experimenting with sending SMS text messages from one emulator to
another. The blueprint of the code is as given below. The SMS message
is sent successfully to the target emulator. In the code I receive the
broadcast received when the SMS is sent sucessfully (e.g. I see the
message Received SENT-onReceive in the logcat). However, I never
receive the broadcast receiver when the SMS is delivered sucessfully
(e.g. I don't see the message Received DELIVERED-onReceive in the
logcat). Has anyone experienced a similar behavior before? My source
emulator is (Target Name: Google APIs; Platform: 2.1-update1; API
Level: 7) and my target emulator is (Target Name: Android 2.1-update1;
Platform: 2.1-update1; API Level: 7).

Thank you in advance,

String phoneNum = 5556;
String SENT = SMS_SENT;
String DELIVERED = SMS_DELIVERED;

this.registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.i(TAG, Received SENT-onReceive);
.
.
}
}, new IntentFilter(SENT));

this.registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.i(TAG, Received DELIVERED-onReceive);
.
.
}
}, new IntentFilter(DELIVERED));

String message = Test SMS message;
PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, new
Intent(SENT), 0);
PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0, new
Intent(DELIVERED), 0);
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNum, null, message, sentPI, deliveredPI);

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android 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] What unit is on AudioTrack.getMinBufferSize()

2011-11-12 Thread Ólafur Egilsson
Does anyone know what the number that AudioTrack.getMinBufferSize()
returns represents ?
Is it bytes, shorts, frames, samples, ... ?

see: 
http://developer.android.com/reference/android/media/AudioTrack.html#getMinBufferSize(int,%20int,%20int)

-- 
You received this message because you are subscribed to the Google
Groups Android 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] What unit is on AudioTrack.getMinBufferSize()

2011-11-12 Thread Gergely Juhász
bytes

On 12 November 2011 14:17, Ólafur Egilsson olaf...@gmail.com wrote:
 Does anyone know what the number that AudioTrack.getMinBufferSize()
 returns represents ?
 Is it bytes, shorts, frames, samples, ... ?

 see: 
 http://developer.android.com/reference/android/media/AudioTrack.html#getMinBufferSize(int,%20int,%20int)

 --
 You received this message because you are subscribed to the Google
 Groups Android 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] Android operating system

2011-11-12 Thread Jim Graham
On Thu, Nov 10, 2011 at 09:54:26AM -0800, pavan kumar wrote:
 1) How android operating system different from other operating system?
 2) What are the advantages that we have with this operating system?
 3) How the hardware parts supports. What is the basis for it.
 Suggest me a site to make me build hardware parts.

Let me see if I've got this right  Since you are posting in a list
where the topic is application development for the Android OS using
the Android SDK, I must assume that you are trying to create an Android
app that will go out and actually BUILD Android hardware, is that
correct?

If so, good luck.  If not, and if you really expect to get an answer,
find and post in the CORRECT group (hint:  THIS IS NOT THAT GROUP).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups Android 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 implement sync mobile data base and online mysql server

2011-11-12 Thread Ratheesh Valamchuzhy
plse go thrugh this
http://www.helloandroid.com/tutorials/connecting-mysql-database

-- 
You received this message because you are subscribed to the Google
Groups Android 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: gathering all chats messages to be in one application

2011-11-12 Thread yael876

Thank for your reply, i didn't ask but i will.
 i hope they will tell me.

On Nov 11, 6:03 am, TreKing treking...@gmail.com wrote:
 On Thu, Nov 10, 2011 at 12:17 AM, yael876 yael...@gmail.com wrote:
  can you help me with that please? how can i get messages of
  other applications?

 You ask the developers of those other applications how they're providing
 their data. There is nothing in the SDK that allows you just read the data
 of another app willy nilly.

 --- 
 --
 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: Urgent help required

2011-11-12 Thread Jim Graham
On Fri, Nov 11, 2011 at 02:30:05AM -0800, Sunil Mishra wrote:
 home.html
 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
 www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
 
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
   head
 titleODMS/title

This is code for you web server?  I never knew that a complete web
SERVER could be written in HTML.  Strange.  VERY strange.  So what
processes the HTML that your web server is written with?  Post the
relevant parts of the java code for your web server's web server
if you need help developing your app.  Or you might just try writing
a web server that doesn't need a web server to run it if, for some
reason, you feel the need to write your own web server for the
Android

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups Android 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 read data off a website into an Android app

2011-11-12 Thread Brion Emde
Take a look at the WebView sample here:
http://developer.android.com/resources/tutorials/views/index.html

On Nov 11, 6:06 am, Jungle Jim jjjungle...@gmail.com wrote:
 I need to write an android app that will read data off a webpage and
 then display it in an activity in my app. Unfortunately, I am fairly
 new to both android and java.

 Does anyone know of a sample program that can get me started?

 Thanks.

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


[android-developers] Does this Bluetooth call execute in the UI thread?

2011-11-12 Thread RLScott
I am trying to understand the Bluetooth example given in the Android
Developer docs and I am wondering about this issue:

The example shows a ConnectedThread class which extends the standard
Thread class.  There is a custom constructor and a run() method which
executes in the newly-created thread, managing the input stream.  But
this ConnectedThread class also exposes another method - write(byte[]
bytes), which is supposed to be called from the main UI thread.  But
doesn't the code in this methods actually execute in the main UI
thread?  If so, then why does write(byte[] bytes) look like this:

/* Call this from the main Activity to send data to the remote
device */
public void write(byte[] bytes) {
try {
mmOutStream.write(bytes);
} catch (IOException e) { }
}

and are told that mmOutStream.write() is a blocking call.  So why does
the official Bluetooth sample show the main UI calling a blocking
method, unless this code is somehow executed by the worker thread.
But I thought that only the code within the run() method is executed
in the worker thread.  Can someone clear up this confusion for 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: Thresholding a Bitmap

2011-11-12 Thread Brion Emde
Take a look at the ZXing library. They use a monochrome bitmap class
that is the basis of the barcode scanning, and the algorithms to turn
photo bitmaps into the monochrome form. Using that might help you.

http://code.google.com/p/zxing/

On Nov 11, 12:13 am, melakamc melak...@gmail.com wrote:
 How to Threshold a bitmap in android?

-- 
You received this message because you are subscribed to the Google
Groups Android 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] Password Swipe Panel

2011-11-12 Thread Qin Ding
I'd like to build a password swipe panel for my application.  My basic
requirement is when user tries to start my application, rather than
presenting a traditional login page with username and password and submit
button, I'd like to challenge the user with a panel of 9 balls, user needs
to swipe on the balls and records what balls are on the swipe path from the
beginning of the swipe till the swipe is ended.

There are many mobile devices using this to unlock the devices. I wonder if
someone can share their code, and/or experience with me. Or direct me to a
right direction.  Thank you very much.

D

-- 
You received this message because you are subscribed to the Google
Groups Android 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] NFC App self-launched

2011-11-12 Thread tarun sablok
You can restrict launching of your app when the card is brought close  by
mentioning  the Data type as well in the NDEF intent ... i was also facing
the same problem so i included the data field in the NDEF intent  part and
everytihng worked fine .

On Fri, Nov 11, 2011 at 10:27 PM, k0nig k0nig.cor...@gmail.com wrote:

 Hello, I'm a begginer in android, I have a NFC App works correctly
 except for one thing, when I close a tag to my phone this suggest
 other app but not mine. I had search about this but don't find a
 solution, my manifest is:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=leer.Etiqueta
  android:versionCode=1
  android:versionName=1.0
uses-sdk android:minSdkVersion=10 /
uses-permission android:name=android.permission.NFC/uses-
 permission

application android:icon=@drawable/icon android:label=@string/
 app_name
activity android:name=.LeerEtiquetaActivity
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
intent-filter
action
 android:name=android.nfc.action.NDEF_DISCOVERED /
category
 android:name=android.intent.category.DEFAULT /
/intent-filter
intent-filter
action
 android:name=android.nfc.action.TECH_DISCOVERED/
/intent-filter
intent-filter
action
 android:name=android.nfc.action.TAG_DISCOVERED/
/intent-filter

meta-data
 android:name=android.nfc.action.TECH_DISCOVERED
android:resource=@xml/tecnologia /
/activity
/application
uses-feature android:name=android.hardware.nfc
 android:required=true /
 /manifest


 I thought that a TECH_DISCOVERED launch my application but it does not

 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

-- 
You received this message because you are subscribed to the Google
Groups Android 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] transferring information from one application to another

2011-11-12 Thread Narendra Singh Rathore
Hi all, I used intent for switching from one application to another by the
following code:


Intent i = new Intent(Intent.ACTION_MAIN);

PackageManager manager = getPackageManager();

i = manager.getLaunchIntentForPackage(package name);

i.addCategory(Intent.CATEGORY_LAUNCHER);

startActivity(i);



Can anyone plz suggest me how to transfer access to particular information
in another application/package.

-- 
You received this message because you are subscribed to the Google
Groups Android 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] Get position in GLSurfaceView

2011-11-12 Thread s.rawat
what do u mean by position??
..pain is temporary.quitting lasts forever..



On Fri, Nov 11, 2011 at 5:42 AM, Victor Basurto victor.b.r@gmail.comwrote:

 Hi, i am doing an app with the camera with  GLSurfaceView, but when i
 want to get the position of an image that i drawn previously in the
 camera view i don't know how can i get the position of the image
 respect to the camera view , Thanks for your 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

-- 
You received this message because you are subscribed to the Google
Groups Android 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: Obsoleting 1.5

2011-11-12 Thread jtoolsdev
Because on a 7 the older tabbed system looks and works just fine.  10 and 
larger it is absurd so using the different layout worked.

-- 
You received this message because you are subscribed to the Google
Groups Android 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] A Universal Contact us first before rating poorly statement for Customers?

2011-11-12 Thread Binxalot
I'm pretty fed up with the marketplace and the way it works.  We're
starting to place a disclaimer at the bottom of our app description
text:

We strive to provide a solid gaming experience to everyone but this
ultimately impossible due to the way Android OS was made available on
multiple devices, running various hardware specs across multiple
mobile carriers. If our game does not work on your particular
Smartphone or device please contact us directly before writing a
negative review. We take ALL customer feedback seriously and we will
help you, really, we mean it. Thanks for downloading our games and
supporting independent developers! 

The reason we need to put this on our marketplace description page is
because people keep writing comments like Force closed on my Mytouch
4g with 1 star. That phone just came out! How the heck are we suppose
to know that phone would force crash?  It's getting ridiculous that I
have to read comments like these while being unable to respond to
them.  What developer in this group wants an unhappy customer?

Google, do something to help. If the app force closes at least give
the customer the option to contact the developer before throwing them
right back to the marketplace page with the rate this app button
staring the disappointed customer in the face.  I'm so fed up with
this that I'm seriously going to stop considering android as our
target OS. It's going to be an afterthought like blackberry and
windows phone. I can much more easily just concentrate on iPhone
development like everyone else so please stop tempting me.

Does anyone here have a way they catch these types of force close
issues that don't result in a send feedback screen being shown?  We
do get feedback from the crash reports, but some crashes don't show
the send feedback window, and some people don't send the reports in.
We do fix the problem when the pop up immediately as well. So aside
from having to add the above disclaimer does anyone else have
alternative solution?

I know some of you are going to say don't put out buggy apps (and we
do test constantly) but anyone who's been doing this for a while knows
that you can't support all phones and devices, especially if they are
new model phones just released, its impossible, especially when you
add in customers that have rooted phones with memory managers on them,
when you add that in its almost like developing for windows 95 all
over 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] A Universal Contact us first before rating poorly statement for Customers?

2011-11-12 Thread Mark Murphy
On Sat, Nov 12, 2011 at 1:02 PM, Binxalot binxa...@gmail.com wrote:
 Does anyone here have a way they catch these types of force close
 issues that don't result in a send feedback screen being shown?

Sure. Catch the exception. Typically, for unhandled exceptions, you
use Thread and setDefaultUncaughtExceptionHandler(). Then, take a look
at solutions like ACRA for capturing and collection the stack trace
and related data.

 I know some of you are going to say don't put out buggy apps (and we
 do test constantly) but anyone who's been doing this for a while knows
 that you can't support all phones and devices, especially if they are
 new model phones just released, its impossible, especially when you
 add in customers that have rooted phones with memory managers on them,
 when you add that in its almost like developing for windows 95 all
 over again.

Then only distribute to devices that you have tested it on. Or, add in
some amount of analytics to see what devices you are currently
supporting successfully, and distribute to them as well. Plus ensure
you have all the right uses-feature, uses-configuration, and
compatible-screens elements in the manifest. You can filter devices
via the Developer Console for the Market.

Then, start using solutions like apkudo, TestDroid Cloud, and
LessPainful to extend your testing to more devices. Or, borrow devices
at local GTUG/Android Developer Group meetings. Those that seem to
work OK you can add back into your distribution.

Eventually, once you get enough devices that you are comfortable with,
across a range of screen sizes/densities and other
configurations/features/versions of relevance, you might consider
lifting your device exclusions and distributing to all devices again,
addressing problems only as they arise.

It is not impossible to support all phones and devices, especially
if they are new model phones just released. However, it is probably
more difficult for games and other apps that push the envelope on
device capabilities.

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android 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] transferring information from one application to another

2011-11-12 Thread TreKing
On Sat, Nov 12, 2011 at 11:19 AM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 Can anyone plz suggest me how to transfer access to particular information
 in another application/package.


Transfer access ? If you're looking to pass data, just put them in the
intent object itself.

-
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] transferring information from one application to another

2011-11-12 Thread Narendra Singh Rathore
ok, so u mean..in the same way transferring data from an activity to
another.
I need to try it first.

-- 
You received this message because you are subscribed to the Google
Groups Android 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] Please help me out with problem of indefinite service

2011-11-12 Thread TreKing
On Fri, Nov 11, 2011 at 10:15 PM, phannguyen pcnguye...@gmail.com wrote:

 Dear all,
 I have an app that contains Activity A and MyService which this service
 runs in background indefinitely.


No it doesn't - that's not possible.


 I want myservice run in background indefinitely


Again, that's not possible.


 and activity A can bind and unbind every time it Start and Stop. this
 service run on the same process of my application.


I believe you just call bindService(), which states that it will create the
Service if it needs to.

-
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: A Universal Contact us first before rating poorly statement for Customers?

2011-11-12 Thread BCS
I think we have an issue here that should be expanded -some- as I
was looking at Mark's work and that person pumps out a feed of well-
done work that is consistent with what you are asking but when I went
yesterday trying once-again to see what was going on I found reason
to believe Android  our only competitor hold literally twice the
market of tv  internet combined 

then some other stuff better not discussed .duh,..

It is inconsistent to have Georgia Cracker running side-by-side with
4 billion device users who for any practical will eventually leave a
device on the counterit just does not make sense

If we are taking the lead on the industry and have already wiped
traditional media from the leader-board then it is time we examined
the model

Even for your example I immediately think of Dianne Hackborn ['s]
reply I saw early in my efforts here on the matter of the image
scaling tool not being implemented by all vendors ~ as for your
windows 95 the first thing I did was start writing a build-driver as
do it for you is - rather obviously - not working and not going to
work

Not surprisingly the first code I wrote here was a throwaway for a GUI
designer - implemented SHA-256 on a base class .

here we go again 

you can forget placing disclaimers = we need to find another approach

what that is I do not know

On Nov 12, 12:02 pm, Binxalot binxa...@gmail.com wrote:
 I'm pretty fed up with the marketplace and the way it works.  We're
 starting to place a disclaimer at the bottom of our app description
 text:

 We strive to provide a solid gaming experience to everyone but this
 ultimately impossible due to the way Android OS was made available on
 multiple devices, running various hardware specs across multiple
 mobile carriers. If our game does not work on your particular
 Smartphone or device please contact us directly before writing a
 negative review. We take ALL customer feedback seriously and we will
 help you, really, we mean it. Thanks for downloading our games and
 supporting independent developers! 

 The reason we need to put this on our marketplace description page is
 because people keep writing comments like Force closed on my Mytouch
 4g with 1 star. That phone just came out! How the heck are we suppose
 to know that phone would force crash?  It's getting ridiculous that I
 have to read comments like these while being unable to respond to
 them.  What developer in this group wants an unhappy customer?

 Google, do something to help. If the app force closes at least give
 the customer the option to contact the developer before throwing them
 right back to the marketplace page with the rate this app button
 staring the disappointed customer in the face.  I'm so fed up with
 this that I'm seriously going to stop considering android as our
 target OS. It's going to be an afterthought like blackberry and
 windows phone. I can much more easily just concentrate on iPhone
 development like everyone else so please stop tempting me.

 Does anyone here have a way they catch these types of force close
 issues that don't result in a send feedback screen being shown?  We
 do get feedback from the crash reports, but some crashes don't show
 the send feedback window, and some people don't send the reports in.
 We do fix the problem when the pop up immediately as well. So aside
 from having to add the above disclaimer does anyone else have
 alternative solution?

 I know some of you are going to say don't put out buggy apps (and we
 do test constantly) but anyone who's been doing this for a while knows
 that you can't support all phones and devices, especially if they are
 new model phones just released, its impossible, especially when you
 add in customers that have rooted phones with memory managers on them,
 when you add that in its almost like developing for windows 95 all
 over 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] Selecting a location from google map and send it to an Application

2011-11-12 Thread TreKing
On Fri, Nov 11, 2011 at 10:00 AM, Hacktor dr.sukruer...@gmail.com wrote:

 Is there any sample code or tutorial for Selecting a location from google
 map (like restaurant, school etc) and forward to the application which
 includes more information about that place?


That would require the Maps app to return that as a result, which AFAIK it
does not. You can achieve this functionality with your own MapActivity and
perhaps using the Google Places API. Not exactly as easy as asking Google
Maps, but it's doable.

-
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] Way to save edittext box data in the xml code itself?

2011-11-12 Thread TreKing
On Mon, Nov 7, 2011 at 9:42 AM, Neeta sgupta.t...@gmail.com wrote:

 Is there a way of saving data users have entered in an EditText box in the
 xml itself?


 What is the xml itself ?

 I don't want to have to write Java code to have to grab the entered data
 and save it.


That would be like 5 lines of Java code.

-
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] transferring information from one application to another

2011-11-12 Thread tarun sablok
just add  the data  by  using the functions putExtra()  on the intent
object and extract it at the receiving activity by using
 getIntent().getExtra()


On Sun, Nov 13, 2011 at 12:10 AM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 ok, so u mean..in the same way transferring data from an activity to
 another.
 I need to try it first.


 --
 You received this message because you are subscribed to the Google
 Groups Android 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] Looking for more coders

2011-11-12 Thread Farhan Tariq
Sounds really cool, but how would you ensure anyone that he would
really get paid? As in, you  could just elope with the code and all,
without having to pay a penny to the resource you get along ! If you
got any convincing ideas, i would be more than happy to join in.

On Thu, Nov 10, 2011 at 6:19 PM, Alexander Turda
gamingpione...@gmail.com wrote:
 Hi to all. If you are dev(beginner exp,medium exp,or even high) and you
 don't have a job/want to make money/start making apps,games for android,you
 might want to join us.
 What you may ask:
 Do I get money?
 You get money only if the app/game is sold,in fact,all of us get money only
 if the game/app is sold.
 If it's sold,how much I get?
 Simple,we split the proffit.Now we are only 2,so it's not really a big deal.
 What kind of games/apps are we going to make?
 The first rule is to make something that doesn't exist.
 Ok,but what if I have to make something,but I don't really know how to?
 We're a team,if you don't know how to do something,we are going to help
 you.Keep in might that we're not looking for super exp. devs!
 What about you guys? What do you know?
 Like I said,I'm still a learner,and even after 5 years I will still be a
 learner. I developed 1 game(sudoku with a tutorial) and I developed 1 game
 myself.The other guy worked more on apps.This is the game made by
 me: http://imageshack.us/f/717/gameprew.png/
 Ok what else is needed?
 We're a team,so we must talk at least 1 time every day.Also,everything you
 develop,will have to be uploaded to our code page(I'll show you how if you
 don't know).
 Respect ofcourse.
 Keeping up to date the other members.If you finished a small part of the
 app,post on our group page,let us know what you made.
 We also require some wanting,I mean ok,you don't know how to make
 something,you don't have any ideea how you can make it work,but YOU must
 search for that.Ofcourse we'll help you,but there are many things that you
 can find on google,so don't ask for any stupid thing,help!

 Some exp:
 Yes,we're not expecting expers here,but we're looking for someone with a
 little exp. We would be very happy,if you would send us some details about
 ONE app or game that was made by you(don't care if it's a simple app).

 That's what we require,if you think you can do what I said above,you are
 free to mail me to join.Like I said, money will come only if we work
 together,and only if we all trully want to finish a project we start.
 Waiting for your e-mails!

 --
 You received this message because you are subscribed to the Google
 Groups Android 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] Does this Bluetooth call execute in the UI thread?

2011-11-12 Thread Kristopher Micinski
I don't remember offhand, but the code might just be like that, it's
supposed to be a simple example.  There's an easy way to find out.
Take your debugger, put a breakpoint on that line of the code and find
out what thread you're in!

kris

On Sat, Nov 12, 2011 at 11:20 AM, RLScott fixthatpi...@yahoo.com wrote:
 I am trying to understand the Bluetooth example given in the Android
 Developer docs and I am wondering about this issue:

 The example shows a ConnectedThread class which extends the standard
 Thread class.  There is a custom constructor and a run() method which
 executes in the newly-created thread, managing the input stream.  But
 this ConnectedThread class also exposes another method - write(byte[]
 bytes), which is supposed to be called from the main UI thread.  But
 doesn't the code in this methods actually execute in the main UI
 thread?  If so, then why does write(byte[] bytes) look like this:

    /* Call this from the main Activity to send data to the remote
 device */
    public void write(byte[] bytes) {
        try {
            mmOutStream.write(bytes);
        } catch (IOException e) { }
    }

 and are told that mmOutStream.write() is a blocking call.  So why does
 the official Bluetooth sample show the main UI calling a blocking
 method, unless this code is somehow executed by the worker thread.
 But I thought that only the code within the run() method is executed
 in the worker thread.  Can someone clear up this confusion for 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


-- 
You received this message because you are subscribed to the Google
Groups Android 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] onCreate vs onStart

2011-11-12 Thread bob
How does a layman decide which initialization code goes in onCreate
and which initialization code goes in onStart?

-- 
You received this message because you are subscribed to the Google
Groups Android 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: Does this Bluetooth call execute in the UI thread?

2011-11-12 Thread BCS
the official Bluetooth sample show the main UI calling a blocking 
method because it is wrong ~ I went through a not-dis-similar issue
with an experienced code engineer with a lifetime of writing code
trying to explain to a musician from euro trying to get a midi device
coded - a thread is a path of exec and other than a few system
issues around security and reliability has ( usually ) almost no
effect on what happens or how and why it happens = the sooner you can
call start() on a thread and let it run the sooner the main() thread
can release

if you block it you throw ANR = simple / factual / real

there are several issues that get too convoluted to figure out in a
simple discussion group post but I got it working after a while ~ this
android thing already has a major portion of what is hard to figure
out already boiler-plated in with an event-handler implemented as
interfaces

maybe not here ~ fast read looks like:

BluetoothAdapter.getDefaultAdapter()

which would be in a run method of a class you write then you just do
Thread yourClassObject dot start() on it which sets it running and do
everything in the code of that class and let main() return 

a thread is actually an instruction pointer in the cpu ~ not the
code you are looking at -the code only describes a path of exec for
the instruction pointer to follow
On Nov 12, 5:15 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 I don't remember offhand, but the code might just be like that, it's
 supposed to be a simple example.  There's an easy way to find out.
 Take your debugger, put a breakpoint on that line of the code and find
 out what thread you're in!

 kris







 On Sat, Nov 12, 2011 at 11:20 AM, RLScott fixthatpi...@yahoo.com wrote:
  I am trying to understand the Bluetooth example given in the Android
  Developer docs and I am wondering about this issue:

  The example shows a ConnectedThread class which extends the standard
  Thread class.  There is a custom constructor and a run() method which
  executes in the newly-created thread, managing the input stream.  But
  this ConnectedThread class also exposes another method - write(byte[]
  bytes), which is supposed to be called from the main UI thread.  But
  doesn't the code in this methods actually execute in the main UI
  thread?  If so, then why does write(byte[] bytes) look like this:

     /* Call this from the main Activity to send data to the remote
  device */
     public void write(byte[] bytes) {
         try {
             mmOutStream.write(bytes);
         } catch (IOException e) { }
     }

  and are told that mmOutStream.write() is a blocking call.  So why does
  the official Bluetooth sample show the main UI calling a blocking
  method, unless this code is somehow executed by the worker thread.
  But I thought that only the code within the run() method is executed
  in the worker thread.  Can someone clear up this confusion for 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

-- 
You received this message because you are subscribed to the Google
Groups Android 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] onCreate vs onStart

2011-11-12 Thread Mark Murphy
On Sat, Nov 12, 2011 at 6:56 PM, bob b...@coolgroups.com wrote:
 How does a layman decide which initialization code goes in onCreate
 and which initialization code goes in onStart?

I wouldn't think as much about onStart() as onResume().

Stuff that you want ONLY going on while the activity is in the
foreground would be initialized in onResume() and cleaned up in
onPause().

Stuff that has little ongoing cost and therefore can remain set up
even while the activity is in the background can be initialized in
onCreate() and cleaned up (if needed) in onDestroy().

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android 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: Does this Bluetooth call execute in the UI thread?

2011-11-12 Thread RLScott


On Nov 12, 7:57 pm, BCS fa829...@gmail.com wrote:
 the official Bluetooth sample show the main UI calling a blocking
 method because it is wrong ..

Well, if it is wrong, then what would be the proper solution?  I have
one that suits my application, but it is not very general.  It works
like this:

The worker thread that is processing the InputStream blocks on every
read() call.  But after each read() call I will insert a check for any
data the UI thread has set aside for output.  If there is anything
there, then I will write it out, signal the main UI thread that I have
sent out that data, and then loop back to the blocking call on
read().  The reason that this solution is not general is that it
relies on the application being one where InputStream data is coming
in regularly, regardless of data being sent out.  Otherwise the worker
thread might block indefinitely on the read() even though there is
data waiting to be sent out on the OutputStream.  Fortunately my
application is not of this sort.  The InputStream receives data every
100 msec., and my OutputStream data can afford to wait until the next
completed read() to send out its data.

I suppose a more general solution would be to create two separate
threads - one for the InputStream and one for the OutputStream.  Has
anyone here ever taken that approach?

(By the way, BCS, I am well aware that a chunk of code is not
inherently in one thread or another, but in the example cited, it is
clear that the write() method was called from main UI thread.)

-- 
You received this message because you are subscribed to the Google
Groups Android 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] Location - GPS/Network

2011-11-12 Thread Siva Prakash
Hi

I'm trying to take the current location using GPS or Network which ever is
connected. The following code works fine to me if my mobile connected with
WiFi or GPS turned ON. But if both of them turned ON/Connected then it
doesnt give me any result

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 3000,
0, new GeoUpdateHandler());

Location location = null;
location = locationManager.getLastKnownLocation(provider);
 if (location == null)
{
 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
200, 0, new GeoUpdateHandler());
location = locationManager.getLastKnownLocation(provider);
}


Always Im getting location NULL if both off them connected.

What is wrong here ?

Thanks

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

[android-developers] Re: Does this Bluetooth call execute in the UI thread?

2011-11-12 Thread BCS
insert a block of code in ( where ever you want it ) then  ... uh, so
I can think, a lot of people dont get it on that thread thing which
you clearly seem to grasp,... anyway you write code for any data the
UI thread has set aside for output and just put that right after the
read ( where ever you put that ) and so it is like:

Thread WorkerThread( Object referenceToWhereItAllStarted){
  // now you can drive the UI from the WorkerThread ..
  Object UIThing = referenceToWhereItAllStarted; //

All you have to do to implement the two thread solution is go read
enough bouncing balls demo code until one is not propagating
blunders like double checked locking and it is even possible to have
both threads driving the same exact code with nothing more than
storage class synchronized

Everybody give Barrier as the canonical Thread Demo but that is not
how my mind works ~ barriers are true evil cloaked in code

you write a few checks and if code does not complete in some
reasonable time then doSomethingElse(); ( or just runs in a loop on
boolean done )

doSomethingElse(); does not have to be exit - you can write handlers
for that state to suit both your code style as well as customer/
application constraints

a lot of people would not be able to sync() on new
Thread(this).start();

my suggestion for what you have described is not to do waits on 100ms
but rather just do checks on the style of

if
( time dot now )

( time + wait )

 {return;}

else { doSomething();}

you usually get the timecheck backwards but they have it right in the
Timer classes you just have to give yourself dozens of times coding it
and not think you got it right until you cannot prove your code wrong

for the code you are describing the os / system should have effective
wrappers around all the driver code such that it runs correctly and if
not trying to fix it results in good guesses that end up with weekend
calls or whole company in ruination

if you have crash-boxes you can test to destruction on it you are way
ahead of the unlucky ...

On Nov 12, 8:24 pm, RLScott fixthatpi...@yahoo.com wrote:
 On Nov 12, 7:57 pm, BCS fa829...@gmail.com wrote:

  the official Bluetooth sample show the main UI calling a blocking
  method because it is wrong ..

 Well, if it is wrong, then what would be the proper solution?  I have
 one that suits my application, but it is not very general.  It works
 like this:

 The worker thread that is processing the InputStream blocks on every
 read() call.  But after each read() call I will insert a check for any
 data the UI thread has set aside for output.  If there is anything
 there, then I will write it out, signal the main UI thread that I have
 sent out that data, and then loop back to the blocking call on
 read().  The reason that this solution is not general is that it
 relies on the application being one where InputStream data is coming
 in regularly, regardless of data being sent out.  Otherwise the worker
 thread might block indefinitely on the read() even though there is
 data waiting to be sent out on the OutputStream.  Fortunately my
 application is not of this sort.  The InputStream receives data every
 100 msec., and my OutputStream data can afford to wait until the next
 completed read() to send out its data.

 I suppose a more general solution would be to create two separate
 threads - one for the InputStream and one for the OutputStream.  Has
 anyone here ever taken that approach?

 (By the way, BCS, I am well aware that a chunk of code is not
 inherently in one thread or another, but in the example cited, it is
 clear that the write() method was called from main UI thread.)

-- 
You received this message because you are subscribed to the Google
Groups Android 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: Thresholding a Bitmap

2011-11-12 Thread Melaka Atalugamage
thank you very much.

On 12 November 2011 21:55, Brion Emde brione2...@gmail.com wrote:

 Take a look at the ZXing library. They use a monochrome bitmap class
 that is the basis of the barcode scanning, and the algorithms to turn
 photo bitmaps into the monochrome form. Using that might help you.

 http://code.google.com/p/zxing/

 On Nov 11, 12:13 am, melakamc melak...@gmail.com wrote:
  How to Threshold a bitmap in android?

 --
 You received this message because you are subscribed to the Google
 Groups Android 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




-- 

*Kind Regards
*

*Melaka Atalugamage*

Freelance Software Developer/Photographer(find me on
deviantArthttp://melakamc.deviantart.com/
)

(email: melak...@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] Custom made Clikable buttons

2011-11-12 Thread s.rawat
HI ,
Is it possible to make  the custom clickable buttons (from the clip art ,
button image, or any fancy looking figure) and add to the android UI, just
like paper camera Application http://www.youtube.com/watch?v=Y2a4QGGLQUM.
I have  been trying the same on Honeycomb and they ave something good xml
editor features where we can do such type of thing , not sure, plz share
your thoughts or slap a lmgtfy link for me. sorry for my desperation and
laziness..But trust me , something else is keeping me
busy...Tech of-course..will post my experiences...!!
Rgds,
Softy

-- 
You received this message because you are subscribed to the Google
Groups Android 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] Library projects -- Build path error

2011-11-12 Thread J
Hi,

  I've just upgraded my instalation of the Android SDK and I'm facing
a new problem. Let's see if someone else have faced it.

  I've created a project AppCore, and a projects App. AppCore is a
library project (project - properties - android - Is Libray), while
App and AppAds have AppCore as library (project - properties -
android - Library - Add - AppCore). (1)

  Clean, rebuild,... and App does not build (AppCore does build
without problem). The error is:

The project cannot be built until build path errors are resolved

  project - properties - Java Build Path shows no errors. The
Libraries tab shows a new entry Library Projects pointing to AppCore.

  This problem happens both to new project I create after the upgrade
of the SDK and the ADT plugin, as well as to old projects that I have
created before the upgrade. No need to tell that those old projects
were compiling without problem with the old SDK/ADT.

  So I open .classpath and find this:

classpath
classpathentry kind=src path=src/
classpathentry kind=src path=gen/
classpathentry kind=con
path=com.android.ide.eclipse.adt.ANDROID_FRAMEWORK/
classpathentry kind=con
path=com.android.ide.eclipse.adt.LIBRARIES/
classpathentry kind=output path=bin/classes/
/classpath

  After a lot of trial-error, I've found that if I remove the
LIBRARIES entry, the build path error does not show (of course, it
complains about a lot of missing classes).

  Any further idea? Any hint?


(1): You probably guess that I will create a project AppAds, and that
AppCore is the shared code, while App is the paid version and AppAds
is the free version with Ads. App clases extends AppCore classes.

-- 
You received this message because you are subscribed to the Google
Groups Android 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