Re: [android-developers] Android Developer in Redwood City, CA. Must have POS and Android Experience. GC or US Citizen required.

2018-02-23 Thread droid dev
Hi Kristin,
Thanks for reaching out. This position sounds interesting however I reside
in S.Florida and cannot relocate for the next few years.
Is this a remote/telecommute position?

Thnx.
-Oke.

On Feb 23, 2018 12:44 PM, "Kristin"  wrote:

> Android Engineer
>
> We use:
>
> Core technologies
> Android, Java, Gradle, Ottobus, Roboelectric, Mockito, Data Binding
>
> Peripheral Technologies
> AWS, Jenkins, Jira, Sumologic, Elasticsearch You will:
> API integration-- both standard http, and a proprietary messaging format.
> Participate in all phases of software development life cycle and work
> closely with product design.
> Architect and design features, write unit tests, participate in code
> reviews, and deliver production-ready code Update and refactor existing code
> Create views which conform to specifications as defined by the product
> team Refine specifications with the Product Team
> Participate in the interview process You have:
> Deep Android experience with an emphasis on delivering fast and beautiful
> customer-facing applications. Experience writing, debugging, and monitoring
> production systems
> Strong programming competency in Java, and one or more other languages A
> willingness to learn new technologies
> Structured thinker and effective communicator Experience with
> multithreaded systems
>
> Big Plus:
>
> Experience with POS, restaurant, Credit Card, or payment technologies
> Experience working with undocumented APIs
> Experience designing software that monitors and handles the failure of 3rd
> party components
>
> Please contact me if you are interested in this position.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/3b51b94b-40f0-402b-9dd1-
> e96fea12af06%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAGcsFj_%2BNS74tWHzLj6efNCZ1RYXwnB_dD4S%2BwW8ieCih7tWXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] NEED: Pega CSSA Consultant @ Charlotte, NC --- Contract

2018-02-22 Thread droid dev
Hi Martin, thanks for reaching out.
I'm available for good senior Android developer position either in my local
South Florida area or for a fully remote position.
Please let me know if you come across any such opportunities.
Thnx.

-Oke.

On Feb 22, 2018 1:29 PM, "Martin Zeller"  wrote:

> Hi,
>
> This Is *Martin from visionisys Inc,*
>
> This is Reference for Following Position
>
> * Please reply with *Resume, Work Authorization , Rate & Contact
> Details ASAP* *
>
> *Job Title:Pega CSSA Consultant *
>
> *Location:* Charlotte, NC
>
> *Duration:*12+ Months
>
> *Interview Type: *  Phone+ Skype
> *Job Description:*
>
>- 9+ years of application development and implementation experience
>- 5+ years of BPM development experience
>- 5+ years of Pega experience
>- 2+ years of relational database experience
>- 1+ year of SOA (Services Oriented Architecture) experience
>- 1+ years of J2EE experience
>- 1+ year of MQ Series Messaging experience
>- 1+ year of Agile experience
>- Pega Senior System Architect Certification (Pega CSSA)
>- Leads projects and manages development direction of small
>development teams including onshore and offshore resources
>- Experience using CPM and BIX Pega Frameworks
>- Good verbal, written, and interpersonal communication skills
>
>
> Thanks & Regards,
>
> *Martin*
>
> *Visionisys Inc*
>
> Phone: 901-203-2880 <(901)%20203-2880>
>
> E-mail:  mar...@visionisys.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/CAJkGZ%2ByU5_PYkv7QrM%3D%
> 3DJiQZg4UbZG6mheRhpDGSyvHYJipq_g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAGcsFj9vA5mF5j4PsXkxxCoEctf2VExLeeAsMrZNeeoLDTuZSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Senior Android Developer-Scottsdale AZ-Contract

2018-02-22 Thread droid dev
Hi,
Is this a remote position?

On Feb 22, 2018 10:36 AM, "Recruiter I"  wrote:

> Please send me resume at bh...@resource-logistics.com
>
> 9+ years of overall experience is must.
> 4-6 year of expereince in Android application programming (includingJava,
> Android SDK, and Android Studio).
> Experience in the Google Play Store deployment process.
> Preferred experience with third-party frameworks such as Ionic,
> NativeScript, Cordova and ReactJS.
> Experience with automated deployments of mobile apps as well as continuous
> integration.
> Experience with user experience and rapid prototyping.
> Knowledge of API data feeds, ingestion techniques, data mapping, data
> modeling, and best practices for object oriented design patterns.
> ‪‪2+ years JavaScript application development preferred.
> 2+ years of experience using git source code control.
> Experience in Device Management.
> Strong working knowledge of beta testing services.
> Familiarity with cloud message APIs and push notifications.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/CAC%2BR9bUz24aeLgyKYWQjVjOWgWXarz0
> xdyW6MDpHkuh7MHdPkQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAGcsFj8yLz7n6TcRG9NnTJ_n-Q9AJMF%3DLfoeopy_94YwHbC7%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: On Debian Jessie - Android Studio download page says operating system not supported

2016-09-20 Thread Droid Test

Hello Paul,

Thanks for your reply - I'm amazed that anyone saw my post in the middle of 
the spam.

The "Requirements" page says that the Linux version of Android Studio was 
tested on Ubuntu 12.04.  On the upside, that is an LTS version.  On the 
downside, it was released 4 years ago and there are two more recent LTS 
versions.  It's a bit difficult to believe that Google is committed to 
Linux as a development platform if that's the best they can do.  So maybe 
we shouldn't be surprised that the download button for Studio does not work!

On a similar note, the maintainers of Android NDK have recently deprecated 
gcc in favor of Clang (which does not have a copyleft licence) and are 
switching NDK from bash to Python for scripting.  I 'm guessing that they 
want to maximize ease of use for Windows based development platforms;  
looks like Linux platform users will pay the price.

Anyway, for what it is worth, I found that the SDK Tools (but not the 
complete Studio) can be downloaded.  I have not actually tried to install 
these yet, but pass on the following notes in hopes that they may be 
helpful.  I will attempt an install over the next few days and will report 
any results; would appreciate if you or anyone who reads this and tries an 
install would also report.

Jack

Here are my notes:

The following is from:

http://stackoverflow.com/questions/27043522/where-can-i-download-an-older-version-of-the-android-sdk

First check this link to find out what revision number you need.

https://developer.android.com/studio/releases/sdk-tools.html

then use one of these links

http://dl-ssl.google.com/android/repository/tools_r[rev]-windows.zip
http://dl-ssl.google.com/android/repository/tools_r[rev]-linux.zip
http://dl-ssl.google.com/android/repository/tools_r[rev]-macosx.zip

I was able to download:

http://dl-ssl.google.com/android/repository/tools_r25.2.2-linux.zip



On Tuesday, September 20, 2016 at 2:55:14 AM UTC-4, Paul Thomas wrote:
>
>
> Same problem here. Only that I am using Ubuntu 16.04.1 and before that I 
> was on Elementary OS 0.4 and my system also meets all the requirements.
> On Tuesday, September 20, 2016 at 3:17:16 AM UTC+5:30, Droid Test wrote:
>>
>>
>> I want to install Android Studio - or at least Android SDK - on my Debian 
>> Jessie system.
>>
>> When I go to
>>
>> https://developer.android.com/studio/index.html
>>
>> the button on the page says "YOUR OPERATING SYSTEM IS NOT SUPPORTED / SEE 
>> THE REQUIREMENTS".
>>
>> so I click on it and the requirements are:
>>
>>- GNOME or KDE desktop 
>>
>>*Tested on Ubuntu® 12.04, Precise Pangolin (64-bit distribution 
>>capable of running 32-bit applications)*
>>- 64-bit distribution capable of running 32-bit applications
>>- GNU C Library (glibc) 2.11 or later
>>- 2 GB RAM minimum, 8 GB RAM recommended
>>- 2 GB of available disk space minimum,
>>4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and 
>>emulator system image)
>>- 1280 x 800 minimum screen resolution
>>- For accelerated emulator: Intel® processor with support for Intel® 
>>VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit 
>> functionality, 
>>or AMD processor with support for AMD Virtualization™ (AMD-V™)
>>
>> My system meets all the requirements except possibly the last, which 
>> appears  to be optional.
>>
>>
>> - I'm using the Gnome desktop
>>
>> - The distro is 64 bit, and I've installed the 32 bit library packages 
>> lib32stdc++6, lib32ncurses5, lib32z1 and (from wheezy) lib32z2-1.0.
>>
>> - 5.8 GiB of 9.6 GiB RAM is available.
>>
>> - 643 GB of disk is available.
>>
>> - The screen is 1920 x 1080.
>>
>>
>> Just to be absolutely clear, this is not a runtime or even an install 
>> problem, instead the website will not even allow me to access the tarball 
>> to download!
>>
>>
>> Any advice would be greatly appreciated.  The simplest answer would be a 
>> URL on google.com from which I could download the needed tarball.  
>> (There are other websites which claim to make the file available for 
>> download - but who knows what malware they contain!)
>>
>>
>> Jack
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a420953a-766e-42c6-8456-b15df4b67691%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] On Debian Jessie - Android Studio download page says operating system not supported

2016-09-19 Thread Droid Test

I want to install Android Studio - or at least Android SDK - on my Debian 
Jessie system.

When I go to

https://developer.android.com/studio/index.html

the button on the page says "YOUR OPERATING SYSTEM IS NOT SUPPORTED / SEE 
THE REQUIREMENTS".

so I click on it and the requirements are:

   - GNOME or KDE desktop 
   
   *Tested on Ubuntu® 12.04, Precise Pangolin (64-bit distribution capable 
   of running 32-bit applications)*
   - 64-bit distribution capable of running 32-bit applications
   - GNU C Library (glibc) 2.11 or later
   - 2 GB RAM minimum, 8 GB RAM recommended
   - 2 GB of available disk space minimum,
   4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator 
   system image)
   - 1280 x 800 minimum screen resolution
   - For accelerated emulator: Intel® processor with support for Intel® 
   VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality, 
   or AMD processor with support for AMD Virtualization™ (AMD-V™)

My system meets all the requirements except possibly the last, which 
appears  to be optional.


- I'm using the Gnome desktop

- The distro is 64 bit, and I've installed the 32 bit library packages 
lib32stdc++6, lib32ncurses5, lib32z1 and (from wheezy) lib32z2-1.0.

- 5.8 GiB of 9.6 GiB RAM is available.

- 643 GB of disk is available.

- The screen is 1920 x 1080.


Just to be absolutely clear, this is not a runtime or even an install 
problem, instead the website will not even allow me to access the tarball 
to download!


Any advice would be greatly appreciated.  The simplest answer would be a 
URL on google.com from which I could download the needed tarball.  (There 
are other websites which claim to make the file available for download - 
but who knows what malware they contain!)


Jack





-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7d872534-c75d-40f7-b38c-7b0771306af7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Is anybody using amazon S3 for uploading files from android?

2013-09-29 Thread Dev Droid
@Frank LoVecchio  Can you share the code please how did you did uploaded to 
s3 using multipart please ?

On Friday, March 18, 2011 9:34:52 PM UTC+5:30, Frank LoVecchio wrote:

 I've gotten a multipart upload to work, I will give it a shot on 
 Android and get back to you Monday if you haven't gotten this to work 
 yet :) 

 On Feb 24, 12:48 am, ishwarya cishwa...@gmail.com wrote: 
  Hi there, 
  
  I am trying to upload image file from my android app to 
  amazon s3.The problem is that the files are not getting properly 
  uploaded to S3. 
  
  I am using PutObjectRequest as follows to upload file to S3 
  
  PutObjectRequest p=new PutObjectRequest(String 
  
  Bucketname,Stirng key,InputStream in,ObjectMetadata metadata); 
  
  Upload myUpload = tx.upload(p); 
  
  //In ObjectMetadata argument I am passing only the content length 
  
  When viewed through AWS management console to check the properties of 
  the uploaded file, I could see 
  only 32 Bytes of 5.2 KB image file getting uploaded. 
  
  Also, under the Metadata tab of the file in the AWS console, I am able 
  to see the value of the file as application/octet-stream instead of 
  image/jpeg 
  
  I tried doing Multipart upload but it seems to be complex. 
  
  Could somebody help me with this??? 
  
  Thanks in advance.

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


Re: [android-developers] pass parameters between threads

2013-01-22 Thread droid dev
.. What you said there doesn't make sense. A variable has to be explicitly
declared as a class or instance member; it doesn't just magically appear
when you remove a local variable.

I think what John was describing does make sense. He had inadvertently
created a new response var in an inner scope, thereby effectively masking
out his pre-existing instance var of the same name; therefore the response
data was being discarded each time the inner scope was exited.
 On Jan 8, 2013 6:29 PM, John Merlino stoici...@aol.com wrote:

 I have a thread to make a web service request. And then I get the data
 and store it in response variable. Now I need to add items to the map
 on the main thread, but how do i get the response data back in the
 main thread. Here is what I have:

 private void processHistory(final String authkey, final String unitId)
 {
 new Thread(){
 public void run(){
 ListMapString, String response =
 WebService.getHistoryData(today,unitId,authkey);


 myHandler.post(myRunnable);

 }
 }.start();
 }

 final Runnable myRunnable = new Runnable() {
   public void run() {

 IteratorMapString, String iterator =
 response.iterator();

 while(iterator.hasNext()){
 MapString, String item =
 iterator.next();

 mMap.addMarker(new MarkerOptions()
 .position(new
 LatLng(Double.parseDouble(item.get(latitude)),
 Double.parseDouble(item.get(longitude
 .title(item.get(address)));
 }

   }
};

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


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

[android-developers] Re: SeekBars in ListView with crosslink/interlock

2012-11-24 Thread droid
Hi All,
 I use seek bar in list view,i try dynamic change progress (like 
seekbar.setProgress(value);) of  item position 1 in listview, but it is 
also  progress item position 10 with my interaction. can any help me solve 
this problem.
  
thankyou 
prabhu

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: sip demo

2012-09-29 Thread droid Panamax
hey i have also same problem..i have used sip demo and it runs perfectly 
fine on emulator but it is not running on real device samsung galaxy fit 
2.3.4 and samsung galaxy Y 2.3.6...so if u have any solution then plz guide 
me..Thanks in advance..

On Monday, January 30, 2012 3:26:54 PM UTC+5:30, Jagruti Sangani wrote:

 hello, 
 i have used the sip demo which was on 
 http://developer.android.com/guide/topics/network/sip.html 
 link.but i got sipmanager as null result.and also api and voip support 
 result me as false.i m using android 4.0.3 api 15 and try to call from 
 emulator to asterisk.but not work bcz of may be manager as null.so 
 reply me as soon as posible.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 find device dropping installs

2012-05-12 Thread Droid
I have an App that is dropping installs like a stone but I do not see
which device is doing it in my Play beautiful stats. Why? Because all
the devices in the graphic are OK so it must be one below the main
list (in 'others') that my app is crashing.  Any ideas how I can find
out which device is losing installs?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: digital audio input to android phone or tablet

2012-04-06 Thread droid-stricken
Unfortunately, it's a real time app i.e the feed has to be continuous and i 
have a piece of device that's outputting digital audio which i need to 
direct to the android device for recording and analysis.
I have Google Nexus phone from HTC running 2.3.3 and i don't see USB host 
mode option on it. Do you think a Motorola Xoom running 4.0.3 might have 
the USB Host Mode?

And @Chris you say -  You should, *with work,* be able  - i was wondering 
what's the scope of work is really - are we talking about some hardware 
changes or writing a patch in software for a driver and such here? Kindly 
point me to more resources in this regard. I would appreciate it.

Thanks.

On Friday, 6 April 2012 10:09:01 UTC-5, Chris Stratton wrote:

 You should, with work, be able to do input digital audio with one of the 
 more recent devices that has the USB host mode option and an appropriate 
 USB dongle.

 You could also do so via the data network, especially if you can use wifi 
 or do not need to transfer in real time.

 If you do not strictly need a digital audio input, it should be possible 
 to build an analog matching network to couple line audio into the 
 microphone channel of the headset jack (most likely a resistor for 
 attenuation and a capacitor to AC couple).  This may however be mono, and 
 might require optimization for device model to get best performance. 

 On Thursday, April 5, 2012 8:35:35 PM UTC-4, droid-stricken wrote:

 Hi All,

 I was wondering if i could feed digital audio input or line input [either 
 using HDMI or USB or any such interface] into any of the android devices 
 currently out there [phones or tablets does not matter]. AFAIK, built-in 
 microphone is the only means of getting audio [analog at that] into the 
 android system. Correct me if i am wrong pls.

 TIA.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: digital audio input to android phone or tablet

2012-04-06 Thread droid-stricken
Sorry. Just saw  USB host mode is supported in Android 3.1 and higher.  
on the developers website. I would like to know the answer for my remaining 
part of the question.
Thanks all.

On Friday, 6 April 2012 16:17:49 UTC-5, droid-stricken wrote:

 Unfortunately, it's a real time app i.e the feed has to be continuous and 
 i have a piece of device that's outputting digital audio which i need to 
 direct to the android device for recording and analysis.
 I have Google Nexus phone from HTC running 2.3.3 and i don't see USB host 
 mode option on it. Do you think a Motorola Xoom running 4.0.3 might have 
 the USB Host Mode?

 And @Chris you say -  You should, *with work,* be able  - i was 
 wondering what's the scope of work is really - are we talking about some 
 hardware changes or writing a patch in software for a driver and such here? 
 Kindly point me to more resources in this regard. I would appreciate it.

 Thanks.

 On Friday, 6 April 2012 10:09:01 UTC-5, Chris Stratton wrote:

 You should, with work, be able to do input digital audio with one of the 
 more recent devices that has the USB host mode option and an appropriate 
 USB dongle.

 You could also do so via the data network, especially if you can use wifi 
 or do not need to transfer in real time.

 If you do not strictly need a digital audio input, it should be possible 
 to build an analog matching network to couple line audio into the 
 microphone channel of the headset jack (most likely a resistor for 
 attenuation and a capacitor to AC couple).  This may however be mono, and 
 might require optimization for device model to get best performance. 

 On Thursday, April 5, 2012 8:35:35 PM UTC-4, droid-stricken wrote:

 Hi All,

 I was wondering if i could feed digital audio input or line input 
 [either using HDMI or USB or any such interface] into any of the android 
 devices currently out there [phones or tablets does not matter]. AFAIK, 
 built-in microphone is the only means of getting audio [analog at that] 
 into the android system. Correct me if i am wrong pls.

 TIA.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] digital audio input to android phone or tablet

2012-04-05 Thread droid-stricken
Hi All,

I was wondering if i could feed digital audio input or line input [either 
using HDMI or USB or any such interface] into any of the android devices 
currently out there [phones or tablets does not matter]. AFAIK, built-in 
microphone is the only means of getting audio [analog at that] into the 
android system. Correct me if i am wrong pls.

TIA.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 compile/run JUnit 4 tests in Android?

2012-02-15 Thread dan droid
Hi Eric,

you can use *JUnit4Android* (an *Android library* project) to build Android 
test runner applications for your *JUnit4 *tests and test suites.

https://github.com/dthommes/JUnit4Android/wiki

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 issue on Multiple-apk feature.

2012-02-09 Thread droid-stricken
I don't know what the response code is since that's not being put out
to console.
The following is what i see from the LicenseChecker class -

02-09 10:11:50.556: I/LicenseChecker(2224): Binding to licensing
service.
02-09 10:11:50.596: I/LicenseChecker(2224): Calling checkLicense on
service for your_package_name
02-09 10:11:50.596: I/LicenseChecker(2224): Start monitoring timeout.
02-09 10:11:51.126: I/LicenseChecker(2224): Received response.
02-09 10:11:51.126: I/LicenseChecker(2224): Clearing timeout.

The response code is definitely not one of these: LICENSED,
NOT_LICENSED, LICENSED_OLD_KEY because i don't see any of logs from
the signature verification process.

I will try to get more logs - responsecode in specific. But i thought
if someone else was having similar issues, i could save some time.

Thanks.

On Feb 9, 8:33 am, androidmediadeveloper kamathaj...@gmail.com
wrote:
 This is interesting. We are also going along the same route and
 knowing this would help. Dont know if inapp biling suffers frim the
 same.

 What is the response code that comes back on checkaccess ?

 On Feb 8, 11:55 pm, droid-stricken harik...@gmail.com wrote:







  Hi,

  I have two APKs for an application. One targeted to the phone devices
  and the other specifically developed for the tablet. I have
  implemented the standard ServeManaged Licensing policy on both
  versions. I have followed the rules for multiple apks as mentioned in
  the developer's documentation [signing with the same certificate, same
  package name, appropriate versionCode, etc]

  I think i have created the multiple apks correctly because when i
  upload and activate and publish them on the android market portal, i
  did not see any errors or warnings.

  My issue is this -
  1. I bought the version on the phone device and installed it and was
  able to open it successfully.
  2. Then when i switched to the tablet device and searched for the
  application that i just bought on the phone device, i see that the
  PURCHASED status. That's good. The market allowed me to download and
  install the tablet version of the apk. But when i open the application
  on the tablet, it's prompting that i buy it - this prompt is coming
  from my application - that's the code i have placed when the
  licenseChecker comes back with dontallow() status.

  Have any of you faced a similar issue? I cross checked the publisher
  key i am using for licensing and the SALT for the obfuscation process
  - they are the same between the 2 apk versions.

  I can't see where the problem might be.

  It's been almost 3 or 4 hours since i activated both the apk versions
  on the market. Should i allow more time to pass for the LVL server to
  take note? If that were to be the case, i wonder how LVL server
  allowed the phone tablet to work.

  Thanks for reading. Any input is highly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Licensing issue on Multiple-apk feature.

2012-02-08 Thread droid-stricken
Hi,

I have two APKs for an application. One targeted to the phone devices
and the other specifically developed for the tablet. I have
implemented the standard ServeManaged Licensing policy on both
versions. I have followed the rules for multiple apks as mentioned in
the developer's documentation [signing with the same certificate, same
package name, appropriate versionCode, etc]

I think i have created the multiple apks correctly because when i
upload and activate and publish them on the android market portal, i
did not see any errors or warnings.

My issue is this -
1. I bought the version on the phone device and installed it and was
able to open it successfully.
2. Then when i switched to the tablet device and searched for the
application that i just bought on the phone device, i see that the
PURCHASED status. That's good. The market allowed me to download and
install the tablet version of the apk. But when i open the application
on the tablet, it's prompting that i buy it - this prompt is coming
from my application - that's the code i have placed when the
licenseChecker comes back with dontallow() status.

Have any of you faced a similar issue? I cross checked the publisher
key i am using for licensing and the SALT for the obfuscation process
- they are the same between the 2 apk versions.

I can't see where the problem might be.

It's been almost 3 or 4 hours since i activated both the apk versions
on the market. Should i allow more time to pass for the LVL server to
take note? If that were to be the case, i wonder how LVL server
allowed the phone tablet to work.

Thanks for reading. Any input is highly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Play a media file in the assets or res/raw folder in another app

2012-02-03 Thread droid-stricken
Hi All,

I had posted this question yesterday on the stackoverflow. But no one
seems to know the answer or have the time to make to share their
thoughts.

http://stackoverflow.com/q/9124314/693959

Is it possible to play a media file in the application's assets or res/
raw folder in another app like GALLERY or some other external media
player?
I am aware of the content-provider and content-resolver classes. But i
have seen it being used only for sharing the application's database
with other apps. Even if i created a content-provider for this video
file, i am not sure how to consume it i.e be able to launch an intent
and provide the video file as data to the 3rd party app.

Any inputs is highly appreciated.

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: Obsolete proguard file

2011-12-31 Thread Droid
proguard is some type of 3rd party file for version checking or
similar.
I normally ignore them or just delete them.

On Dec 31, 5:38 am, bob b...@coolfone.comze.com wrote:
 Can someone explain in a nutshell what this means?

 Obsolete proguard file; use -keepclasseswithmembers instead of -
 keepclasseswithmembernames

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] After clicking Activate must I click Save too?

2011-12-18 Thread Droid
I should know this but
In Android market I upload a new apk version and hit 'Activate'
button.
Simple question - must I hit the 'Save' button to make users start
updating the App or is 'Activate' enough?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Are push messages only to chosen locations possible?

2011-12-14 Thread Droid
I have a requirement to send push notifications ONLY to phones within
defined locations

I assume push servers cannot know beforehand a location of any
particular phone. So can I
prevent a notification being shown in inappropriately-located phones?

I may not want to disturb people in Canada about a London event, for
example. Is there
code that can achieve 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] Re: Passing big array of strings from Java to JNI

2011-12-14 Thread Droid
I use the intermediary of a serial file in the 'raw' folder - read it
in java or c.
I read this file line by line. Its kinda using a file instead of RAM
to store loads of strings.
Works for large files AFAIK and reads are fast. Also
I do not have the problem of garbage collection or emergency
memory clear outs that can happen (sh-t happens)

Probably not right for you but at least I tried.




On Dec 14, 7:54 am, Peter Staab pixst...@gmx.net wrote:
 Hi,

 I need to pass a list of many strings (can be up to 1) to JNI. The
 strings are stored in a String[] array but if other data structures
 are more appropriate then these would be a valid option too.
 The passing of the string array works fine, but only for low number of
 strings. For bigger array sizes I get the following error:
 ++
 12-14 08:52:51.636: W/dalvikvm(2999): ReferenceTable overflow
 (max=512)
 12-14 08:52:51.636: W/dalvikvm(2999): Last 10 entries in JNI local
 reference table:
 12-14 08:52:51.636: W/dalvikvm(2999):   502: 0x4000e878 cls=Ljava/lang/
 Class; 'Ljava/lang/String;' (284 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   503: 0x4053e290 cls=[B (36
 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   504: 0x405227f0 cls=Ljava/lang/
 String; (28 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   505: 0x4000e878 cls=Ljava/lang/
 Class; 'Ljava/lang/String;' (284 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   506: 0x4053e2b8 cls=[B (36
 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   507: 0x40522870 cls=Ljava/lang/
 String; (28 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   508: 0x4000e878 cls=Ljava/lang/
 Class; 'Ljava/lang/String;' (284 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   509: 0x4053e2e0 cls=[B (36
 bytes)
 12-14 08:52:51.636: W/dalvikvm(2999):   510: 0x405228f0 cls=Ljava/lang/
 String; (28 bytes)
 12-14 08:52:51.640: W/dalvikvm(2999):   511: 0x4000e878 cls=Ljava/lang/
 Class; 'Ljava/lang/String;' (284 bytes)
 12-14 08:52:51.640: W/dalvikvm(2999): JNI local reference table
 summary (512 entries):
 12-14 08:52:51.640: W/dalvikvm(2999):     1 of Ljava/lang/Class; 236B
 12-14 08:52:51.640: W/dalvikvm(2999):   170 of Ljava/lang/Class; 284B
 (1 unique)
 12-14 08:52:51.640: W/dalvikvm(2999):     1 of Ljava/lang/Class; 572B
 12-14 08:52:51.640: W/dalvikvm(2999):   168 of [B 36B (168 unique)
 12-14 08:52:51.640: W/dalvikvm(2999):   171 of Ljava/lang/String; 28B
 (171 unique)
 12-14 08:52:51.640: W/dalvikvm(2999):     1 of [Ljava/lang/String; 28B
 12-14 08:52:51.640: W/dalvikvm(2999): Memory held directly by tracked
 refs is 11956 bytes
 12-14 08:52:51.640: E/dalvikvm(2999): Failed adding to JNI local ref
 table (has 512 entries)
 ++

 What's the best way to pass the strings to my JNI method?

 Regards,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Reading Text Written on Image

2011-12-14 Thread Droid
I don't think this is easy at present. Its not just a library needed
but rather a neural network character recogniser.
AFAIK one is being developed but not ready for java Android at this
time (Dec 2011). But its not so trivial as including
a library and may need JNI.

Just my take - maybe there IS such a library

On Dec 14, 9:50 am, Ankit Kasliwal kasliwalankit2...@gmail.com
wrote:
 Hello Friends,
                     i am trying to read text which written on image so can
 any one tell me
                     what is the best open source Java library that I can
 use to extract text
                     from an image (JPEG, PNG) files?

 --

 Thanks and Regards,

 Ankit Kasliwal
 kasliwalankit2...@gmail.com
 +91-9300-940-136

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Are push messages only to chosen locations possible?

2011-12-14 Thread Droid
Thanks TreKking I can do that now

On Dec 14, 3:00 pm, TreKing treking...@gmail.com wrote:
 On Wed, Dec 14, 2011 at 3:56 AM, Droid rod...@gmail.com wrote:
  So can I prevent a notification being shown in inappropriately-located
  phones?

 public void onReceivePushNotification()
 {
  if (imInAValidLocation())
   showNotification();

 }
  Is there code that can achieve this?

 Yes, see above - but the details are waiting to be written by you.

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

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


[android-developers] Is the same 'push' possible for Android and iPhone

2011-12-14 Thread Droid
I develop for Android AND iPhone (sorry...) and am looking for a push-
receive app for both device types.
I am not sure how to approach this yet. I need a very basic app that
receives push notifications
for each device.

Anyone with some experience that could start me off in a workable
direction?

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


[android-developers] Re: My Newbie problem with compiling the HelloAndroid App

2011-12-04 Thread Droid
You have to right click on the project folder and then find run
I think you are right clicking on R java or something.

Its only the project file at the top that runs

That's my guess.

On Nov 29, 3:48 am, Jerry jsmet...@gmail.com wrote:
 I have Eclipse Gallileo hosting Android 4.0 platform, running on WinOS
 7.  I am trying to write an app that will run on my HTC Desire.  The
 Desire version is 2.2, and no updates are available.  I can follow
 the tutorial and run the programmed HelloAndroid app on the Desire,
 but when I try to build the .xml layout, I can't compile.  The error
 message says that R.layout.main can't be run... because the 4.0
 platform either makes the use of the R.layout.main statement
 impossible, or the fix requires some action on my part that is more
 complicated than I can deal with.

 Can somebody either suggest a different tutorial app for a green
 Android developer like myself, or, somehow, help me get past this
 problem in the HelloAndroid tutorial?

 Thanks for any help.

 Jerry

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ChartDroid 3rd party library for dynamic graphing

2011-11-22 Thread droid-stricken
Hi,

I had posted the same question on StackOverflow y'day and it does not
seem to have strung a chord with users there.
So, i am hoping someone in this group might have some insights to
share -

My question:

Have anyone of you used chartDroid for displaying dynamic graphs esp.
bargraphs? The static case works great right out of the box. I noticed
on AndroidPlot Feature Comparison that dynamic support is not
available. Just wanted to verify if that's still true. If yes, would
you recommend AchartEnngine for dynamic graph display? I am looking at
open source options currently.

Thanks in advance for sharing your experiences.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Building Apps based on System Apps

2011-11-15 Thread CultOf Droid
Dear Droid  Cult,

I've built the latest master branch of 2.3.3 on my Ubuntu 11.10, and
in the process, built all the stock apps.

My aim is to:

1 Add custom features to a system app, and make a standalone,
distributable .Apk, with a different app name/credentials/package, so
that it does not try to replace / update the existing system app. In
doing so, I've come across a couple hurdles - some

a Apps based on system app are built as .apks and .odex files. This
kind of app packaging is NOT distributable, unless you create custom
firmware for the app. I want a regular .apk with classes.dex inside
the Apk. For instance, if I want to make myMail, based on the system
email application, HOW can I make a standalone myMail.apk which is
easily distributable?

b Clearly building in the OS source path makes the app less portable,
as compared to those built with the standard SDK. Any comments on how
to increase portability, if you base your app on a system app?

Thanks!
CultOf Droid

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Render camera preview as scaled quad in NDK / OpenGLES2 app

2011-11-11 Thread Droid Dev'r
Hi,

I have an OpenGLES2 app that does some rendering via NDK (similar to
the way the NDK hello-gl2 sample app does it). I want to get the
camera preview as either NV21 or RGB565 and send the bytes via JNI to C
++, update a texture using those bytes, and finally render a quad with
the updated texture. I've converted NV21 as just grayscale at the
moment, since it's easier, and that looks fine on one phone, but on
another phone I get an image that is 1/2 or 1/4 the height, and it
looks duplicated along the width. RGB565 looks jumpy on one phone
(it's like the image is offset negative units from the top, and the
offset varies). On the other phone, I get the same half height,
duplicated width effect. I'm making sure I lock/unlock a mutex when I
update the texture bytes and when I call glTexImage2D right before
rendering. Could I missing some other thread problem?

Right now, my GLSurfaceView implements surfaceCreated, surfaceChanged,
and surfaceDestroyed. On surfaceChanged(), the camera parameters are
set and the preview is started. My renderer calls a JNI function on
onDrawFrame() which does the actual rendering. The camera buffer's
data is sent via JNI on the PreviewCallback's onPreviewFrame().

Any help is appreciated :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 to add a GLSurfaceView to ViewGroup without making screen go black

2011-11-04 Thread Droid
Have you tried using frames? I say this because stacking
one frame on top of another worked well for me.



On Nov 3, 9:15 pm, Frank L frank.t...@gmail.com wrote:
 Dear All,

 I have a ViewGroup (V) that is the Activity's content view and I draw
 on the V's Canvas directly. At runtime, I create a GLSurfaceView (G)
 whose initial content is set to be the same as the V. Then I call
 V.addView(G) to add G to the top of V. I expect this to be a smooth
 transition and users should not notice any artifacts. However, during
 the transition, the screen goes black for about half a second and then
 G shows up. I am not sure why it is so and is there any way to get rid
 of this effect?

 Best Regards,
 Frank

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: i need to send string (data) from one android device to another android device using bluetooth

2011-11-04 Thread Droid
Why not just send strings without json?
Bluetooth chat example in the sdk does exactly that.

On Nov 3, 12:08 pm, Perumss Naren peru2...@gmail.com wrote:
 *Hi,

     1.  i need to send string (data) from one android device to another
 android device using  bluetooth 

 what i tried:
              SyncDatabase json=new SyncDatabase();
              JSONObject jsonObject= json.GeneratedJSON(HomeActivity.this,
 profile_list.get(position).getId());

              Intent intent = new Intent();
              intent.setAction(Intent.ACTION_SEND);
              intent.setType(text/html);
              intent.putExtra(Intent.EXTRA_STREAM,
              Uri.decode(jsonObject.toString()));
              startActivity(intent);

 it says(Error) :  unsupported format

 Is the right way of sending data(String ) from one android device to
 another android device ?

 2. i need to listen Bluetooth received data that from my application so we
 can check with the UUID.
    is it is possible.

 *
 --
 Regards,

 Perumal.N

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: i need to send string (data) from one android device to another android device using bluetooth

2011-11-04 Thread Droid
Why not just send strings without json?
Bluetooth chat example in the sdk does exactly that.

On Nov 3, 12:08 pm, Perumss Naren peru2...@gmail.com wrote:
 *Hi,

     1.  i need to send string (data) from one android device to another
 android device using  bluetooth 

 what i tried:
              SyncDatabase json=new SyncDatabase();
              JSONObject jsonObject= json.GeneratedJSON(HomeActivity.this,
 profile_list.get(position).getId());

              Intent intent = new Intent();
              intent.setAction(Intent.ACTION_SEND);
              intent.setType(text/html);
              intent.putExtra(Intent.EXTRA_STREAM,
              Uri.decode(jsonObject.toString()));
              startActivity(intent);

 it says(Error) :  unsupported format

 Is the right way of sending data(String ) from one android device to
 another android device ?

 2. i need to listen Bluetooth received data that from my application so we
 can check with the UUID.
    is it is possible.

 *
 --
 Regards,

 Perumal.N

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Should I use the same certifcate for all my apps or a different one per app?

2011-10-29 Thread Droid
Possible to use the same certificate for all of them and try very very
hard not to lose it :)



On Oct 28, 7:27 pm, Ricardo Amaral mas...@ricardoamaral.net wrote:
 I suppose the documentation recommends one certificate per developer, so
 all apps belonging to someone, are, somehow, associated to that one
 developer. But I'm wondering if there is anyone out there using one
 different certificate per app and what are the advantages of doing so? If
 any...

 But that's not really the question I want to make. I'll be releasing a free
 and paid versions of my app and I'm opting for the method where the paid
 app simply unlocks full functionality. I'll be using the process described
 in a thread around these groups. Where you check for the certificates of
 both packages and see if they match. If they do, then the user has unlocked
 the pro version.

 My question is about this specific situation. Is there maybe any reason I
 should use a unique certificate for these 2 apps? And if I release another
 free/paid pair in the same unlock model, I would use another certificate
 for those 2. I could then have another different certificate from the
 previous 2 for all other apps that do not use this unlock method or that
 are simply free.

 Is there any advantage in doing so? Or there is none and I should just use
 a single certificate for everything?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Renderscript on various tablets

2011-10-19 Thread Droid
I tried my renderscript app out on an Asus tablet in a shop. It did
not work :(  Not force closeing but it displayed nothing.

Anyway to check fast renderscript apps? - I cannot afford to test on
every tablet.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] An application that hosts a set of other applications

2011-10-13 Thread droid-stricken
Hi All,

I have posted this question on StackOverFlow. So apologies for those
that find this redundant - but i could not get any ideas (yet) from
that forum. So, i repeat here:

-
I have half a dozen apps that i want to put on Google Market. One of
them are ready and the other are in progress. All these apps are kinda
related - like a suite of apps, you could assume. So, i was wondering
if it would be better to have a separate app (in addition from the
half a dozen apps i wish to develop) and have it serve as a LIBRARY-
app where users can find, purchase and launch the half a dozen apps.

This is conceptually similar to the Google Books free app where the
app serves as a library and users can browse for other books from
within this app and purchase it. The only difference is in my case, it
would be other fully functional independent app instead of a book.

Is there a better way to approach what i am trying to do? Basically, i
need an app that can host a set of mutually independent apps.

If yes, how do i host one app inside an app?

Thanks in advance.
-

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: An application that hosts a set of other applications

2011-10-13 Thread droid-stricken
Thanks for all the inputs.
I like the in-app purchase solution the best since that fits my needs
the best.

Any pointers on how to realize this solution is greatly appreciated. I
am not looking for code per-say but any more information on this
methodology would help greatly.

Thanks.



On Oct 13, 6:00 pm, Studio LFP studio@gmail.com wrote:
 You might want to check out the in-app purchase option if you are trying to
 sell each one separately but also as a group.

 One option is to have the main package that would include all the
 applications as sections. Each section could be a limited free version and
 then use in-app purchase to activate the full version. You could then
 continue to add sections that started out as free test version and give
 people the option to activate the new sections they would like to use.

 The end result would be a single application with a collection of sections
 that could be purchased (or upgraded).

 Steven
 Studio LFPhttp://www.studio-lfp.com







 On Thursday, October 13, 2011 4:17:00 PM UTC-5, droid-stricken wrote:

  Hi All,

  I have posted this question on StackOverFlow. So apologies for those
  that find this redundant - but i could not get any ideas (yet) from
  that forum. So, i repeat here:

  -
  I have half a dozen apps that i want to put on Google Market. One of
  them are ready and the other are in progress. All these apps are kinda
  related - like a suite of apps, you could assume. So, i was wondering
  if it would be better to have a separate app (in addition from the
  half a dozen apps i wish to develop) and have it serve as a LIBRARY-
  app where users can find, purchase and launch the half a dozen apps.

  This is conceptually similar to the Google Books free app where the
  app serves as a library and users can browse for other books from
  within this app and purchase it. The only difference is in my case, it
  would be other fully functional independent app instead of a book.

  Is there a better way to approach what i am trying to do? Basically, i
  need an app that can host a set of mutually independent apps.

  If yes, how do i host one app inside an app?

  Thanks in advance.
  -

  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: An application that hosts a set of other applications

2011-10-13 Thread droid-stricken
Excellent. Thanks all. Thanks @Studio LFP.

On Oct 13, 10:53 pm, Studio LFP studio@gmail.com wrote:
 Check out this link:

 http://developer.android.com/guide/market/billing/index.html

 That's the overview and there are more links at the bottom of that page to
 help get you up and running.

 Steven
 Studio LFPhttp://www.studio-lfp.com







 On Thursday, October 13, 2011 10:14:54 PM UTC-5, droid-stricken wrote:

  Thanks for all the inputs.
  I like the in-app purchase solution the best since that fits my needs
  the best.

  Any pointers on how to realize this solution is greatly appreciated. I
  am not looking for code per-say but any more information on this
  methodology would help greatly.

  Thanks.

  On Oct 13, 6:00 pm, Studio LFP studi...@gmail.com wrote:
   You might want to check out the in-app purchase option if you are trying
  to
   sell each one separately but also as a group.

   One option is to have the main package that would include all the
   applications as sections. Each section could be a limited free version
  and
   then use in-app purchase to activate the full version. You could then
   continue to add sections that started out as free test version and give
   people the option to activate the new sections they would like to use.

   The end result would be a single application with a collection of
  sections
   that could be purchased (or upgraded).

   Steven
   Studio LFPhttp://www.studio-lfp.com

   On Thursday, October 13, 2011 4:17:00 PM UTC-5, droid-stricken wrote:

Hi All,

I have posted this question on StackOverFlow. So apologies for those
that find this redundant - but i could not get any ideas (yet) from
that forum. So, i repeat here:

-
I have half a dozen apps that i want to put on Google Market. One of
them are ready and the other are in progress. All these apps are kinda
related - like a suite of apps, you could assume. So, i was wondering
if it would be better to have a separate app (in addition from the
half a dozen apps i wish to develop) and have it serve as a LIBRARY-
app where users can find, purchase and launch the half a dozen apps.

This is conceptually similar to the Google Books free app where the
app serves as a library and users can browse for other books from
within this app and purchase it. The only difference is in my case, it
would be other fully functional independent app instead of a book.

Is there a better way to approach what i am trying to do? Basically, i
need an app that can host a set of mutually independent apps.

If yes, how do i host one app inside an app?

Thanks in advance.
-

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] Multi apk normal to xlarge

2011-09-14 Thread Droid
I am trying to specify one apk for normal and another for large
layouts. But market always seems to specify small to xlarge and normal
to xlarge. I have no xlarge or large folders and manifest defines
xlarge and large as false.

What am I doing wrong or is this expected behavior?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Multi apk normal to xlarge

2011-09-14 Thread Droid
I cannot find any change to manifest that changes this behavior

On Sep 14, 7:19 am, Droid rod...@gmail.com wrote:
 I am trying to specify one apk for normal and another for large
 layouts. But market always seems to specify small to xlarge and normal
 to xlarge. I have no xlarge or large folders and manifest defines
 xlarge and large as false.

 What am I doing wrong or is this expected behavior?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stats show 5 orders but Orders shows 1 order

2011-09-11 Thread Droid
In two days my market statistics show 5 orders but my orders page
shows only one.
Are orders registered later?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bluetooth signalling between phones?

2011-09-07 Thread Droid
I want to make a bluetooth app that detects the same app in another
phone when near eachother.
Is this possible without pre-pairing the phones?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 best identify my App?

2011-08-24 Thread Droid
Identification of my apps is proving difficult across developer page,
buyers market pages, eclipse project name, phone app name, apk name.

1) My developer page does not give package names and is non-
searchable. I have many apps.
2) The app name string for the phone and app name in buyers market can
be different.
3) The eclipse project name can be different from all the other names.
Also many versions all needing names.
4) The buyers name in market does not always retrieve the right app
form the buyers app name.
5) The version name only allows 30 chars - too small to store my
package names
6) The apk name is just another name for me to cope with...

Use the package name? No...If I know the package name it does not help
finding the app on my developers page because the developer page does
not name the package anywhere AFAIK.

So I cannot think up a good naming method.

Anyone got a full-proof way of identifying apps. There may be a simple
way, but I cannot see it arrrgg.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 exit application

2011-08-24 Thread Droid
System.exit(0) is not recommended because it messes up when a user
brings the app back after a short pause.
Horrible things can happen to what you've got in memory. Its not a
clean or consistent memory wipe IMO.

I think you have to work with the idea that activities are held in
memory for a time in the case of a return by the user to the app.

It is sometimes hard to deal with, but in my experience, I simply have
to go with it. I end up using onStop() and onStart() sometimes. And it
can get complicated.

Sorry if this is not the answer you wanted to hear as I expect you
want a complete close of the app and all its memory contents.
There might be a way of doing that but I don't know it and
System.exit(0 is too unpredictable to use AFAIK.



On Aug 24, 8:19 am, GopalaKrishnan D gopall...@gmail.com wrote:
 i tried finish(); and System.exit(0);

 if i use any one means only current activity closed its not close entire
 app

 Which code i want to use close or exit entire app.

 --
 ~* Regards*
 *GopalaKrishnan 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


[android-developers] Re: How to exit application

2011-08-24 Thread Droid
Its not always so simple to use
android.os.process.killProcess(android.os.Process.myPid()); to close
your app.
1) You cannot detect when the home button has been pressed so when to
call killProcess?  If you are lucky calling it in onStop() somehow may
work but that can get very difficult if you have many activities.
2) Some processes are not stopped by it. I could not use it when
service threads and other non-ui threads were spun up - didn't stop
them. Threads 'in progress' at the time can bring app back to life
after killProcess() called.








On Aug 24, 9:29 am, James 030440...@163.com wrote:
 Very simple. If you are sure you are done, You could just kill
 yourself using
 android.os.process.killProcess(android.os.Process.myPid()); It's the
 same as linux shell command kill.

 On Aug 24, 3:19 pm, GopalaKrishnan D gopall...@gmail.com wrote:







  i tried finish(); and System.exit(0);

  if i use any one means only current activity closed its not close entire
  app

  Which code i want to use close or exit entire app.

  --
  ~* Regards*
  *GopalaKrishnan 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


[android-developers] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-14 Thread Droid
I find too many possible image folders confusing and it does not seem
to make any difference if I make an image in Photoshop as 70 dpi, 150
dpi or whatever - it just makes a bigger or smaller image.

So, can I use just drawable-small, large, xlarge and DROP all my hdpi,
mdpi and ldpi folders (which confuse me).

If I can get away with this, life would be so much easier.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-14 Thread Droid
So on an hdpi screen the icons will be smaller.
So my apps made on a nexus and emulator will
not display as I believe they will. Rather all my images
will be smaller whilst text boxes etc will be the same
(unless I am using dip not sp).
Then drawable-large folder is for large screens with hdpi or
mdpi? And I am not sure whether photoshop's dpi setting
does anything than change the size of the image.

Clearly I need to go to school about all this because I come
from a programming background. At first site I need larger images
for larger dpi screens. Hope I can find out how much larger and
which folder to put them in.







On Aug 14, 5:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Aug 14, 2011 at 4:57 AM, Droid rod...@gmail.com wrote:
  I find too many possible image folders confusing and it does not seem
  to make any difference if I make an image in Photoshop as 70 dpi, 150
  dpi or whatever - it just makes a bigger or smaller image.

 Of course. That's the point. On a high density device, you use a
 high-pixel-count image to result in something that renders the right
 size but has more detail. On a low density device, you use a
 low-pixel-count image to result in something that renders the right
 size (i.e., not blown up huge).

  So, can I use just drawable-small, large, xlarge and DROP all my hdpi,
  mdpi and ldpi folders

 Not really.

   (which confuse me).

 Since screen density is going to be fairly important in all GUI
 programming going forward, perhaps you should consider learning more
 about screen density, rather than thinking you can ignore the problem.

 For example, I am typing this on a notebook with a 15.6 notebook with
 a 1080p (1920x108) display. This is a significantly higher screen
 density than typical notebooks. As a result, icons, text, etc. tend to
 come out smaller, since few programmers or Web designers think about
 screen density. And, sometimes Web designers even actively prevent
 solutions (e.g., can't increase font size using a browser because
 they're doing something screwy that just doesn't respond).

  If I can get away with this, life would be so much easier.

 Not really.

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

 _Android Programming Tutorials_ Version 3.9 Available!

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


Re: [android-developers] Do unique app names mean nothing in the Android Market?

2011-08-08 Thread A droid
Because we prefer to support a company that does more than just charge 3x
more for the same hardware just to use OSX, far more capabilities on our
phones/tablets, with more frequent updates, far easier to develop for.

On Fri, Aug 5, 2011 at 1:11 PM, Amit forum.amit.man...@gmail.com wrote:

 I don know why u people try with android you people go for iPhone if u want
 quality.
 Android is buggy mobile so I suggest be wise decision and try with iPhone
 Thanks


 Sent from my iPhone

 On Aug 6, 2011, at 12:36 AM, Arpit Mathur mathur.ar...@gmail.com wrote:

 @Kostya Thanks for the link to that form. Just dropped them a line. Lets
 see if it does anything.


 On Fri, Aug 5, 2011 at 2:59 PM, Kevin Duffey  andjar...@gmail.com
 andjar...@gmail.com wrote:

 I too can't find it on my 3 devices. I have wondered how search works on
 the market, because many times I can't find anything close to what I type,
 even though what I type often has apps with the same name as what I typed,
 or similar.


 On Fri, Aug 5, 2011 at 10:12 AM, Kostya Vasilyev  kmans...@gmail.com
 kmans...@gmail.com wrote:

 I tried searching for it and couldn't find it either.

 You can try and report this to Google:

 http://www.google.com/support/androidmarket/developer/bin/request.py?contact_type=publishing
 http://www.google.com/support/**androidmarket/developer/bin/**
 request.py?contact_type=**publishing

 -- Kostya

 05.08.2011 21:04, Arpit Mathur пишет:

  I released a free app about a week ago, called TimePiece 
 (https://market.android.com/details?id=com.arpitonline.worldclock
 https://market.android.com/**details?id=com.arpitonline.**worldclock).
 I picked a name pretty close to the end of the dev process since it seemed
 less important. Before publishing to the store I searched for a couple of
 non conflicting terms and picked TimePiece since no-one seemed to have used
 it.

 Its been about a week since I added my app. I can find it by searching
 for arpitonline which is declared in the package and also as the
 publisher, but not by searching for TimePiece (the EXACT name for the app).

 Anyone know why this is? And what is the best convention for naming apps
 for Market release since exact names seem to count for little.

 -arpit

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


 --
 Kostya Vasilyev


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**android-developers@googlegroups.com
 googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**android-developers%2bunsubscr...@googlegroups.com
 unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
  android-developers%2bunsubscr...@googlegroups.com
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 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
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 http://groups.google.com/group/android-developers?hl=en

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

Re: [android-developers] Do unique app names mean nothing in the Android Market?

2011-08-08 Thread A droid
Sorry..my previous post was @Amit.

Does anyone know how we developers can be notified of changes to the market
by google? Do they update anyone of anything? I am a bit lost as to all the
posts on that thread about the market problems.. looks like tons of
developers lost a lot of money. Does google recoup them for their screw up?
It's quite worrisome that something like this happens years after the market
has been around. I am more baffled as to why the search on the phone/tablet
and the web site return different results. That's ridiculous. The service
the phone/tablets use should be the same thing used by the site. They should
get the identical results back with the exception of filtering apps based on
device (type/os version).




On Fri, Aug 5, 2011 at 2:20 PM, A droid adroid2...@gmail.com wrote:

 Because we prefer to support a company that does more than just charge 3x
 more for the same hardware just to use OSX, far more capabilities on our
 phones/tablets, with more frequent updates, far easier to develop for.

 On Fri, Aug 5, 2011 at 1:11 PM, Amit forum.amit.man...@gmail.com wrote:

 I don know why u people try with android you people go for iPhone if u
 want quality.
 Android is buggy mobile so I suggest be wise decision and try with iPhone
 Thanks


 Sent from my iPhone

 On Aug 6, 2011, at 12:36 AM, Arpit Mathur mathur.ar...@gmail.com wrote:

 @Kostya Thanks for the link to that form. Just dropped them a line. Lets
 see if it does anything.


 On Fri, Aug 5, 2011 at 2:59 PM, Kevin Duffey  andjar...@gmail.com
 andjar...@gmail.com wrote:

 I too can't find it on my 3 devices. I have wondered how search works on
 the market, because many times I can't find anything close to what I type,
 even though what I type often has apps with the same name as what I typed,
 or similar.


 On Fri, Aug 5, 2011 at 10:12 AM, Kostya Vasilyev  kmans...@gmail.com
 kmans...@gmail.com wrote:

 I tried searching for it and couldn't find it either.

 You can try and report this to Google:

 http://www.google.com/support/androidmarket/developer/bin/request.py?contact_type=publishing
 http://www.google.com/support/**androidmarket/developer/bin/**
 request.py?contact_type=**publishing

 -- Kostya

 05.08.2011 21:04, Arpit Mathur пишет:

  I released a free app about a week ago, called TimePiece 
 (https://market.android.com/details?id=com.arpitonline.worldclock
 https://market.android.com/**details?id=com.arpitonline.**worldclock).
 I picked a name pretty close to the end of the dev process since it seemed
 less important. Before publishing to the store I searched for a couple of
 non conflicting terms and picked TimePiece since no-one seemed to have 
 used
 it.

 Its been about a week since I added my app. I can find it by searching
 for arpitonline which is declared in the package and also as the
 publisher, but not by searching for TimePiece (the EXACT name for the 
 app).

 Anyone know why this is? And what is the best convention for naming
 apps for Market release since exact names seem to count for little.

 -arpit

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


 --
 Kostya Vasilyev


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**android-developers@googlegroups.com
 googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**android-developers%2bunsubscr...@googlegroups.com
 unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
  android-developers%2bunsubscr...@googlegroups.com
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
 android-developers

[android-developers] JSONObject and JSONArray retrieve data

2011-08-03 Thread Droid
If anyone is having problems getting JSON contents back (it does work
but needs careful coding) I have blogged it:

http://rodsit.wordpress.com/2011/08/03/jsonarray-and-jsonobject-android/

To all those stuck like I was, hope it helps. :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get web data into TextViews?

2011-08-03 Thread Droid
cool endyk, thanks.

On Jul 28, 8:26 am, endyk nit...@gmail.com wrote:
 hello Droid,

 you can use this method to get return string from server

     private InputStream OpenHttpConnection(String urlString)
     throws IOException
     {
         InputStream in = null;
         int response = -1;

         URL url = new URL(urlString);
         URLConnection conn = url.openConnection();

         if (!(conn instanceof HttpURLConnection))
             throw new IOException(Not an HTTP connection);

         try{
             HttpURLConnection httpConn = (HttpURLConnection) conn;
             httpConn.setAllowUserInteraction(false);
             httpConn.setInstanceFollowRedirects(true);
             httpConn.setRequestMethod(GET);
             httpConn.connect();

             response = httpConn.getResponseCode();
             if (response == HttpURLConnection.HTTP_OK) {
                 in =
 httpConn.getInputStream();
             }
         }
         catch (Exception ex)
         {
             throw new IOException(Error connecting);
         }
         return in;
     }

         private String DownloadText(String URL)
     {
         int BUFFER_SIZE = 2000;
         InputStream in = null;
         try {
             in = OpenHttpConnection(URL);
         } catch (IOException e1) {
             // TODO Auto-generated catch block
             e1.printStackTrace();
             return ;
         }

         InputStreamReader isr = new InputStreamReader(in);
         int charRead;
           String str = ;
           char[] inputBuffer = new char[BUFFER_SIZE];
         try {
             while ((charRead = isr.read(inputBuffer))0)
             {
                 //---convert the chars to a String---
                 String readString =
                     String.copyValueOf(inputBuffer, 0,
 charRead);
                 str += readString;
                 inputBuffer = new char[BUFFER_SIZE];
             }
             in.close();
         } catch (IOException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
             return ;
         }
         return str;
     }

 try call this function in your main code, where str is return string
 from server

             String str = DownloadText(http://kabarku.com/androidwww/endyk-
 test.php);
             textView.setText(str);

 extend your self that code, happy coding :)

 On Jul 27, 7:30 pm, Droid rod...@gmail.com wrote:







  I am looking for an example of how to get lines of text from a web
  server query into simple TextViews - NOT WebViews.

  I have found complex examples with all types of extras that make it
  horrifically difficult to follow. This example is way too hard for 
  me:http://www.ibm.com/developerworks/xml/library/x-dataAndroid/

  Can some kind person point me at a straightforward example. I think I
  need an Async Task or some type of web fetch thread involved.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ListView loses its text on orientation change

2011-08-03 Thread Droid
I have a listview that gets its text from an asnyc internet task. But
on orientation change it loses its text and cannot retrieve a new lot.
Any idea? Looks like it gets data but cannot get it through the array
adapter or something similar.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Google Maps API Key no map shown in app

2011-08-02 Thread Droid
I have gone through the process to get my  Android Maps API key
correctly but no map is shown in my app.

This is the case if I sign my apk or not. Does the API Key take a
while to get verified at Google or what is going wrong?

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


[android-developers] How to get web data into TextViews?

2011-07-27 Thread Droid
I am looking for an example of how to get lines of text from a web
server query into simple TextViews - NOT WebViews.

I have found complex examples with all types of extras that make it
horrifically difficult to follow. This example is way too hard for me:
http://www.ibm.com/developerworks/xml/library/x-dataAndroid/


Can some kind person point me at a straightforward example. I think I
need an Async Task or some type of web fetch thread involved.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why does Android restart killed service?

2011-07-27 Thread Droid
The service is on some type of thread which you have not killed. As
far as I remember you have to use a cancel() service commnand in the
java code.

They can be hard to stop if you don't.



On Jul 27, 12:58 pm, m.andrew andreymandyc...@gmail.com wrote:
 Hi!

 I have an application with an activity and a service. The service is
 started by startService() and the activity is bound to it. The
 overridden onStartCommand() method returns START_NOT_STICKY. So I
 suppose that service will not be recreated if it's killed. But it
 will.

 I kill the application process by the command: adb shell kill pid.
 After killing the process the log shows that new process of my
 application is started again and the service is recreated.

 So my question is: Why does Android restart this service (the killed
 process)?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get web data into TextViews?

2011-07-27 Thread Droid
Thanks..

I have an App Engine python script and my Android App requests text
using a url + querystring and returns just simple text, depending on
the query. That's easy I know how to do the App Engine part. And can
display it in a WebView OK.

I want to display this text in a TextView on my Android and need
specific code snippet to do it.

I know that I need an Async or a Thread to do it, but I cannot find
this basic example - they are either WebViews
which I don't want or complex examples that I cannot unravel.

Can someone point me at an easy source code example? TreKing?

A 'word' answer would also be too hard for me.

Thanks if I get an answer...


On Jul 27, 3:21 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 7:30 AM, Droid rod...@gmail.com wrote:
  I am looking for an example of how to get lines of text from a web server
  query into simple TextViews

 Usually you will be hard pressed to find examples that do exactly everything
 you want. Break down the problem.

 What is it your're having trouble with specifically?
 Connecting to a server?
 Reading from it?
 Putting text in a TextView?
 Doing this in the background?
 Communicating between main and worker threads?

 --- 
 --
 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: Why does Android restart killed service?

2011-07-27 Thread Droid
As far as I remember I had to cancel the service specifically. Killing
the App's pid is not sufficient.
Even a timer thread can bring the App back.

I do not know how to do that from adb. From Java code its easy as you
know (service cancel()).

Sorry if I am no help to you. I just remember this problem myself a
month or two ago.




On Jul 27, 1:57 pm, m.andrew andreymandyc...@gmail.com wrote:
 When an application process is killed all threads of this process are
 also killed. If killed application doesn't have a service a new
 process of this application wont start. But if killed application has
 a service a new process will start and service will be recreated. Does
 returned value of onStartCommand() influence on this situation?

 On 27 июл, 16:39, Droid rod...@gmail.com wrote:







  The service is on some type of thread which you have not killed. As
  far as I remember you have to use a cancel() service commnand in the
  java code.

  They can be hard to stop if you don't.

  On Jul 27, 12:58 pm, m.andrew andreymandyc...@gmail.com wrote:

   Hi!

   I have an application with an activity and a service. The service is
   started by startService() and the activity is bound to it. The
   overridden onStartCommand() method returns START_NOT_STICKY. So I
   suppose that service will not be recreated if it's killed. But it
   will.

   I kill the application process by the command: adb shell kill pid.
   After killing the process the log shows that new process of my
   application is started again and the service is recreated.

   So my question is: Why does Android restart this service (the killed
   process)?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Column Freeze in table layout

2011-07-27 Thread Droid Dev
Hi,
I have a requirement where in the left most column of table like
display should be frozen(without any horizontal movement, but should
have vertical movement). Rest of the table layout should move both in
X and Y directions. COuld you please let me know as how this can be
achieved.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get web data into TextViews?

2011-07-27 Thread Droid
OK, I done it now.

On Jul 27, 3:57 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 9:42 AM, Droid rod...@gmail.com wrote:
  I want to display this text in a TextView on my Android and need specific
  code snippet to do it.

 I kind of want to repeat my entire first response.

  I know that I need an Async or a Thread to do it, but I cannot find this
  basic example - they are either WebViews which I don't want or complex
  examples that I cannot unravel.

 There are plenty of examples of AsyncTask and Threads. But, again, finding
 one that perfectly matches your exact requirements is not likely to happen.

 A 'word' answer would also be too hard for me.



 I don't know what a  'word' answer is.

 --- 
 --
 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] Low Maturity or Everyone - Which reaches the most people?

2011-07-17 Thread Droid
Low Maturity or Everyone - Which reaches the most people?

I feel many are putting Low Maturity which imo means for children?
But their apps are in fact for everyone. I don't understand.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 limit outgoing email to 100 characters?

2011-07-15 Thread Droid
My bosses (big) idea is to limit outgoing app emails to 100
characters? I assume I cannot do that in the standard email dialogue?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Min SDK is 4 but it is OK with 3.1

2011-07-12 Thread Droid
My Min SDK is 4 in the manifest but it is OK with 3.1, should I build
with the highest SDK?

I mean what if a phone running SDK 2.2 but built with an app built
with SDK 3.1?


(I should know the answer, but I don't)

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


[android-developers] Re: Galaxy Tab and Market filtering

2011-07-08 Thread Droid
I am guessing that samsung old tab does not 'like' sdk 1.
Sdk 4 is my minimum version because I assume sdk 1 is just 'too old'.

Not very scientific but works for me. :)



On Jul 8, 7:47 am, nadam a...@anyro.se wrote:
 The old Galaxy Tab 7 is said to be a large mdpi device but it uses
 hdpi drawables. I did an experiment to create an app with the
 following restrictions in the manifest.

     uses-sdk android:minSdkVersion=1 /
     uses-feature android:name=android.hardware.touchscreen
 android:required=false /

     compatible-screens 
         screen android:screenSize=large
 android:screenDensity=mdpi /
         screen android:screenSize=large
 android:screenDensity=hdpi /
     /compatible-screens

     supports-screens
       android:smallScreens=false
       android:normalScreens=false
       android:largeScreens=true
       android:xlargeScreens=false
       android:anyDensity=true/

 The Device Availability dialog in the Developer Console tells me that
 this app will not be available in Android Market for any Samsung
 device. In particular, all variations of Galaxy Tab are listed as
 unsupported. Why?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Back Button leads to Black Screen

2011-07-04 Thread Droid Is As Droid Does
Hello developers,


I am currently in the process of writing an application that starts
with a SplashScreen, moves to the MainMenu activity and from there the
user can select an item from the menu and it takes them to another
activity.  Pretty simple use case.

However, when I take the user to any other activity, the back button
stops working.  If I hit the back button from the main menu, the
application is closed.  This is great.  However, if I navigate from
the main menu to another task, and then try to hit the back button, I
get a black screen and the application hangs.

I'm not sure what code to show that would help solve this problem.
I've been tearing my eyes out for the past 4 hours looking at all the
different paths, and can't find anything.  There is nothing in LogCat
after this happens, it's almost like the app just hangs.

MainMenu extends ListActivity and looks like so
intent = new Intent(this, ProgramListActivity.class);
startActivity(intent);

ProgramListActivity is a TabActivity which swaps in views dynamically
depending on which tab is selected.  When the ProgramListActivity
first loads, the first tab is selected and the View is populated for
that tab (which is a ListActivity).

Any help would be greatly appreciated!!

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] Download to internal memory

2011-06-27 Thread droid-stricken
Hi All,

I am using downloadmanager.request enqueue setDestinationUri to
download files.

Is it possible to download the files to the internal memory location
of the device where it can be persistent?

I am using Android 3.1 Xoom device and it does not really have a
functional SD card on it though the app allows us to write to /mnt/
sdcard location.

Any way of storing downloaded file onto internal memory?

TIA

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Loading HTML file from assets folder - path has white spaces in it

2011-06-26 Thread droid-stricken
Hi All,

I am doing the following, but seems not to be working -

mWebView = (WebView) findViewById(R.id.webView1);
mWebView.loadUrl(file:///android_asset/Help File/helpfile.html);

I tried the following -
--
1.
mWebView.loadUrl(file:///android_asset/Help%20File/
helpfile.html); // replaced white space with %20
---

2.
String encodedString = URLEncoder.encode(Help File,utf-8);
mWebView.loadUrl(file:///android_asset/ + encodedString + /
helpfile.html);
--

Neither 1 nor 2 worked.

I am using a device running Android 3.1 but using API-11. Tried other
API-levels such as 8,9,10 and 12. Nothing worked.

Any ideas what i might be doing wrong?

TIA.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Loading HTML file from assets folder - path has white spaces in it

2011-06-26 Thread droid-stricken
Vasvari is right. This is a known bug: Issue 17327:

I tried the same code on a android phone running 2.3.4 (and using api
level 10) and i could not see any issues with the white spaces in the
path.

Thanks all.


On Jun 26, 3:07 am, NaveenShrivastva kumarnaveen.si...@gmail.com
wrote:
 On Sun, Jun 26, 2011 at 1:25 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
  IIRC, this is a know bug.  Please search onhttp://b.android.com

  On Jun 26, 3:46 pm, droid-stricken harik...@gmail.com wrote:
   Hi All,

   I am doing the following, but seems not to be working -

   mWebView = (WebView) findViewById(R.id.webView1);
   mWebView.loadUrl(file:///android_asset/Help File/helpfile.html);

   I tried the following -
   --
   1.
   mWebView.loadUrl(file:///android_asset/Help%20File/
   helpfile.html); // replaced white space with %20
   ---

   2.
   String encodedString = URLEncoder.encode(Help File,utf-8);
   mWebView.loadUrl(file:///android_asset/ + encodedString + /
   helpfile.html);
   --

   Neither 1 nor 2 worked.

   I am using a device running Android 3.1 but using API-11. Tried other
   API-levels such as 8,9,10 and 12. Nothing worked.

   Any ideas what i might be doing wrong?

   TIA.

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

 Please place your html file in asets folder in android then fetch from there
 and display .

 that's try .

 --
 Naveen Shrivastava

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Loading HTML file from assets folder - path has white spaces in it

2011-06-26 Thread droid-stricken
Will i have the same issue if i use raw folder instead of assets?

Thanks.

On Jun 26, 3:42 am, droid-stricken harik...@gmail.com wrote:
 Vasvari is right. This is a known bug: Issue 17327:

 I tried the same code on a android phone running 2.3.4 (and using api
 level 10) and i could not see any issues with the white spaces in the
 path.

 Thanks all.

 On Jun 26, 3:07 am, NaveenShrivastva kumarnaveen.si...@gmail.com
 wrote:







  On Sun, Jun 26, 2011 at 1:25 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
   IIRC, this is a know bug.  Please search onhttp://b.android.com

   On Jun 26, 3:46 pm, droid-stricken harik...@gmail.com wrote:
Hi All,

I am doing the following, but seems not to be working -

mWebView = (WebView) findViewById(R.id.webView1);
mWebView.loadUrl(file:///android_asset/Help File/helpfile.html);

I tried the following -
--
1.
mWebView.loadUrl(file:///android_asset/Help%20File/
helpfile.html); // replaced white space with %20
---

2.
String encodedString = URLEncoder.encode(Help File,utf-8);
mWebView.loadUrl(file:///android_asset/ + encodedString + /
helpfile.html);
--

Neither 1 nor 2 worked.

I am using a device running Android 3.1 but using API-11. Tried other
API-levels such as 8,9,10 and 12. Nothing worked.

Any ideas what i might be doing wrong?

TIA.

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

  Please place your html file in asets folder in android then fetch from there
  and display .

  that's try .

  --
  Naveen Shrivastava

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Speech Recognition in Android

2011-06-23 Thread Droid
The speech recogniser often makes mistakes, so you have to think about
how to handle wrong words. Otherwise its quite easy to feed voice
recognition to text.
There is lots of code on Google to do that. I have a loop that asks if
the text is correct or not. Well, it works fine, but most users do not
like using it unfortunately. I suppose because its slow.





On Jun 23, 9:30 am, khanh_qhi™ khanhqh20...@gmail.com wrote:
 Hi,
 I need build a small application about Speech Recognition based-on Android
 platform, such as: port speech input to text.
 Hence, is there a way/open source that to do for this?

 ---
 Regards,
 Khanh.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Will static variables in a non-activity class remain in memory?

2011-06-20 Thread Droid
I am storing an ArrayList in a static variable in an ordinary (non
activity) java class.
It works correctly when I load it from an activity, but will it be
guaranteed to remain
in memory even when my activity is not calling it often?

Here is the class:

package com.maps.spoken;

import java.util.ArrayList;

public class NoWordRepeats {

public static ArrayListString ar = new ArrayListString();

}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Will static variables in a non-activity class remain in memory?

2011-06-20 Thread Droid
Ok thanks for that. The static ArrayList var will certainly be good
enough for what my app requires. I was worried that it might
dissappear between activities by an agressive memory clear up. :)





On Jun 20, 9:52 pm, Dianne Hackborn hack...@android.com wrote:
 I wouldn't say yes.  Calling it often does not make sure it remains in
 memory.  You are only guaranteed it will remain in memory for as long as
 your app is in the foreground, that is as long as its process is required as
 per:http://developer.android.com/guide/topics/fundamentals/processes-and-...

 Once your app is no longer in the foreground -- because the user pressed
 home, went to a notification, received a call, etc -- then your process may
 be killed at any point and all bets are off.

 On Mon, Jun 20, 2011 at 12:24 PM, Kostya Vasilyev kmans...@gmail.comwrote:





  Yes. This data will stay in memory for as long as the process is alive.

  2011/6/20 Droid rod...@gmail.com

  I am storing an ArrayList in a static variable in an ordinary (non
  activity) java class.
  It works correctly when I load it from an activity, but will it be
  guaranteed to remain
  in memory even when my activity is not calling it often?

  Here is the class:

  package com.maps.spoken;

  import java.util.ArrayList;

  public class NoWordRepeats {

         public static ArrayListString ar = new ArrayListString();

  }

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] Re: How to force close the app when using multiple activity

2011-06-16 Thread Droid
The back button will take user to a non-finished activity - normal
behavior.
The home button should not leave an activity visible, but if you have
a non-ui thread still running then that could bring an activity back
to view.
I kill naughty threads in carefully thought out life cycle methods and
cancel thread methods.

But if you finish(); an activity when going to the next, then it
should not cone back to view unless you start it again with an intent.


On Jun 16, 8:47 am, HariRam hariram1...@gmail.com wrote:
 How to quit the app or force close the app when multiple activity running in
 background. I tried to give system.exit(0), but this will works only having
 single activity. In my app i have 3 activity when i tried system.exit it
 kills that particular activity and go back to previous activity. please
 guide me to solve this..
 --
 Thanks and
 Regards
 Hariram

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: inflate Vs intent

2011-06-16 Thread Droid

I think fragments can do that, but I have not got my head around them
yet.
Also, I have never changed 'part' of a layout just on its own without
redrawing all of it. Sorry I am not much help.



On Jun 16, 2:46 am, New Developer secur...@isscp.com wrote:
 create a simple layout.xml  with a Button and TextEdit

 Then call that layout using  intent  and  then call the same layout using 
 inflate
 and see the difference.

 Droid if you avoid inflate,  is there a way to call intent, but only use part 
 of the screen
 by that I mean I have a home page layout which has a framelayout as part of 
 the screen
 how can I use intent and fill just the framelayout with the new intent's 
 layout ?

 at present I only know that intent will change the whole screen.

 So
 Main layout.xml
 
 |  layout      |    layout 2                    |
 |      1          |                                       |
 |                  |-|
 |                  |  layout 3                      |
 |                  |                                      |
 

 I just want to fill layout 3  with other layouts  using intent,  is this 
 possible ??

 thanks in advance

 On Jun 15, 2011, at 8:00 PM, Dianne Hackborn wrote:



  My head is now exploding.  This discussion makes no sense at all. :p

  On Wed, Jun 15, 2011 at 3:34 PM, Droid rod...@gmail.com wrote:
  Yes, I noticed that inflate code has not so many attributes as in xml
  layout files.
  I generally avoid inflate for the reasons you stated. Not really sure
  what is going on behind the scenes.

  On Jun 15, 6:39 pm, New Developer secur...@isscp.com wrote:
   Thanks

   my OnCreate()  has nothing in it.
   The only thing different is the method of calling the exact same  layout
   1) using intent        and        2) using inflate

   The intent appears normal   the  the inflate appears transparent  even
   when the button is clicked, or text is select the  original highlight 
   color Orange is  gray  under  inflate.

   Thanks

   On Jun 15, 2011, at 10:47 AM, Marcin Orlowski wrote:

You do not run the layout. You do not call it nor call it with the 
intent. All you now comparing is bit nonsense as it is intent sent to 
your application vs inflating xml file. Not much comparable. Check your 
code in activity's onCreate() for anything extra you do there or check 
your code around inflate() to see if you do not miss anything you do in 
onCreate().

Regards,
Marcin Orlowski

Tray Agenda - keep you daily schedule handy...
Date In Tray - current date at glance...
WebnetMobile on Facebook and Twitter

On 15 June 2011 16:33, New Developer secur...@isscp.com wrote:
I have a layout with a button and EditText  fields

IF I call the layout using  intent
intent.setClass(getApplicationContext(), eedsClientActivity.class...
startActivity(

The Buttons have a light gray background neat black text
and the EditText a white background

IF I call the layout using  inflate
inflate.inflate(R.layout.client_single,    parent);

The Buttons have a dull gray background , Large white text
and the EditText appear transparent, almost see through background 
slightly grayish

Why the Difference  it is the same .xml layout ??

What additionally is called By intent  that inflate does not call ?

thanks in advance

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

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

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

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

[android-developers] Re: Cannot handle exception in a thread

2011-06-16 Thread Droid
Thanks to Murphy M for the solution to my problem. It worked like a
charm.

On Jun 14, 12:10 pm, Mark Murphy mmur...@commonsware.com wrote:
 Use runOnUiThread() around your code in the catch block, to have that
 stuff be done on the main application thread.





 On Tue, Jun 14, 2011 at 6:40 AM, Droid rod...@gmail.com wrote:
  I am spinning a thread to go online and get data. But if phone is in a
  network hole (no signal) it throws an exception.
  In the exception I try to call Toast or finish() the activity but both
  those cause a crash.

  Here's the error and my code:
   error is:
  06-14 11:32:01.691: ERROR/AndroidRuntime(7389):
  java.lang.RuntimeException: Can't create handler inside thread that
  has not called Looper.prepare()

  here is the code, note the catch clause at the end which is where my
  problem lies:

  *** 
  **
     private Thread checkUpdate = new Thread() {
         public void run() {
             try {
                 URL updateURL = new URL(http://search.twitter.com/
  search.json?q=+string_from_speaker);
                 URLConnection conn = updateURL.openConnection();
                 ...
             } catch (Exception e) {
  // none of these exception handlers work becaue they are in wrong
  thread!! WTF?
  // NOPE tv1.setText( having trouble getting online); // TODO
  // NOPE Toast.makeText(IconicAgain.this, having trouble getting
  online + e, Toast.LENGTH_LONG).show();
             }
         }
     };
  *** 
  *

  Can I at least stop this thread somehow? Or close the activity
  somehow?

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

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

 Android Training in NYC:http://marakana.com/training/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] Re: inflate Vs intent

2011-06-15 Thread Droid
Yes, I noticed that inflate code has not so many attributes as in xml
layout files.
I generally avoid inflate for the reasons you stated. Not really sure
what is going on behind the scenes.

On Jun 15, 6:39 pm, New Developer secur...@isscp.com wrote:
 Thanks

 my OnCreate()  has nothing in it.
 The only thing different is the method of calling the exact same  layout
 1) using intent        and        2) using inflate

 The intent appears normal   the  the inflate appears transparent  even
 when the button is clicked, or text is select the  original highlight color 
 Orange is  gray  under  inflate.

 Thanks

 On Jun 15, 2011, at 10:47 AM, Marcin Orlowski wrote:



  You do not run the layout. You do not call it nor call it with the intent. 
  All you now comparing is bit nonsense as it is intent sent to your 
  application vs inflating xml file. Not much comparable. Check your code in 
  activity's onCreate() for anything extra you do there or check your code 
  around inflate() to see if you do not miss anything you do in onCreate().

  Regards,
  Marcin Orlowski

  Tray Agenda - keep you daily schedule handy...
  Date In Tray - current date at glance...
  WebnetMobile on Facebook and Twitter

  On 15 June 2011 16:33, New Developer secur...@isscp.com wrote:
  I have a layout with a button and EditText  fields

  IF I call the layout using  intent
  intent.setClass(getApplicationContext(), eedsClientActivity.class...
  startActivity(

  The Buttons have a light gray background neat black text
  and the EditText a white background

  IF I call the layout using  inflate
  inflate.inflate(R.layout.client_single,    parent);

  The Buttons have a dull gray background , Large white text
  and the EditText appear transparent, almost see through background slightly 
  grayish

  Why the Difference  it is the same .xml layout ??

  What additionally is called By intent  that inflate does not call ?

  thanks in advance

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

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

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


[android-developers] Render Droid (For Tablet) - A free no-ad tool for GLES 2.0 developers to test their shaders

2011-06-15 Thread Render Droid

https://market.android.com/details?id=com.renderdroid.EsEffect

Or search Render Droid Tablet from Market application on HoneyComb
device.

For usage, go to https://sites.google.com/site/renderdroid/releases/step-by-step

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Cannot handle exception in a thread

2011-06-14 Thread Droid
I am spinning a thread to go online and get data. But if phone is in a
network hole (no signal) it throws an exception.
In the exception I try to call Toast or finish() the activity but both
those cause a crash.

Here's the error and my code:
 error is:
06-14 11:32:01.691: ERROR/AndroidRuntime(7389):
java.lang.RuntimeException: Can't create handler inside thread that
has not called Looper.prepare()

here is the code, note the catch clause at the end which is where my
problem lies:

*
private Thread checkUpdate = new Thread() {
public void run() {
try {
URL updateURL = new URL(http://search.twitter.com/
search.json?q=+string_from_speaker);
URLConnection conn = updateURL.openConnection();
...
} catch (Exception e) {
// none of these exception handlers work becaue they are in wrong
thread!! WTF?
// NOPE tv1.setText( having trouble getting online); // TODO
// NOPE Toast.makeText(IconicAgain.this, having trouble getting
online + e, Toast.LENGTH_LONG).show();
}
}
};


Can I at least stop this thread somehow? Or close the activity
somehow?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Google App engine and android

2011-06-14 Thread Droid
Its easy and works well - just post (or get) http data and have some
python or java in the app engine that picks up the data.

On Jun 14, 10:37 am, gaara amellal.kamili...@gmail.com wrote:
 Hi everyone,
 Can any one has finish an application which store informations in
 google app engine via an android application, or any one have
 suggestions about this subject,,
 Peace,
 Gaara

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Diagram of Android internals

2011-06-14 Thread Droid
Love your internals diagram  http://www.makelinux.net/android/internals/
I am trying to make it bigger and clearer -  the idea is great.
Thanks.


On Jun 13, 4:05 pm, Constantine conan...@gmail.com wrote:
 Hi Android developers,

 I am designing detailed diagram of Android internals. You can find it
 here:http://www.makelinux.net/android/internals/
 What do you think about it?
 Have you any ideas how to improve it?

 Thank you in advance.

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


[android-developers] Re: Diagram of Android internals

2011-06-14 Thread Droid
ps
If you make the picture about 1400 pixels square I would put it in an
App as a lovely zoomable pic and into the Android market.
Probably just a freeby, but it would be popular I am sure. Get back to
me with a bigger pic pls.

On Jun 13, 4:05 pm, Constantine conan...@gmail.com wrote:
 Hi Android developers,

 I am designing detailed diagram of Android internals. You can find it
 here:http://www.makelinux.net/android/internals/
 What do you think about it?
 Have you any ideas how to improve it?

 Thank you in advance.

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


[android-developers] Re: How can I know when the home button has been pressed?

2011-06-11 Thread Droid
Thanks for your sensible suggestion. My sentence should have read 'I
have a timer thread that should not bring an activity back to view
after the home button has been pressed but it does.'

On Jun 11, 1:02 am, Indicator Veritatis mej1...@yahoo.com wrote:
 @Droid-

 You do realize, I hope, since it is the level of logic that should be
 easily expected of any programmer, that what you wrote here makes no
 sense.

 If, after all, on the one hand, My thread is a timer thread that
 brings my activity back to view after
 thehome buttonis pressed. then no, it makes NO sense to cancel it
 whenhome buttonis pressed.

 Besides: if it is a timer thread, shouldn't you really mean that it
 bring your activity back to view after the timer expires? It would
 make sense to cancel that timer when Home is pressed. And you can do
 that in onPause() or in onStop(). In fact, you should probably do that
 in onStop() no matter how you get there This would also simplify your
 code, since it is by design that the platform does not TELL you how
 you got to onStop(): it certainly does not tell you that it got there
 via a Home key.

 Also as has been pointed out many times now, overriding the expected
 result of the Home key is a really, REALLY bad idea. It is a good
 thing that the platform makes this difficult. It should not be done at
 all.

 Now I realize that some customers insist on this 'feature', even
 though it is such a bad idea. In which case, I pity you, but keep on
 slogging ahead. It is possible to get close to what you want, either
 with a custom Home application or some even more kludgy approach. But
 ignore Fung's suggestion, since he is dead wrong.

 On Jun 10, 8:52 am, Droid rod...@gmail.com wrote:



  My thread is a timer thread that brings my activity back to view after
  thehome buttonis pressed. I need to cancel it whenhome buttonis
  pressed.
  (I have 10 activities and no idea in which activity the app was when
  thehome buttonwas pressed)

  On Jun 8, 1:23 pm, TreKing treking...@gmail.com wrote:

   On Wed, Jun 8, 2011 at 1:34 AM, Droid rod...@gmail.com wrote:
I have a thread that needs specifically to be cancelled when the
   home buttonis pressed.

   Perhaps if you explain why you think your thread needs to be specifically
   canceled on pressing Home you can get an answer that helps you fix your
   actual problem and not hack around 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] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-10 Thread Droid
  activity android:name=.OnHome
  android:label=OnHome
intent-filter
action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.HOME /
  category android:name=android.intent.category.DEFAULT /
 /intent-filter
/activity

Above would be really cool if it worked, but it worked not.
Still cannot detect on home button click to turn off my timer thread.
Its easy when I have only one activity but I have 10 in a workflow.

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


[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-10 Thread Droid
I think you need a holiday.

On Jun 8, 1:13 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jun 8, 2011 at 7:20 AM, Mark Murphy mmur...@commonsware.com wrote:
  On Wed, Jun 8, 2011 at 2:31 AM,Droidrod...@gmail.com wrote:
  I need to know when the home button is pressed too (otherwise my app
  returns to visibility again and again for ever).

  Then fix your bug.

  (Please don't tell me I need to design my app
  'properly', I have been Android dev for over a year now)

  Tough. Design your app properly.

 I just wrote up a blog post about why you should not care about the
 HOME button and how better to solve this problem:

 http://commonsware.com/blog/2011/06/08/please-ignore-home-button.html

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

 Android 3.0 Programming Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I know when the home button has been pressed?

2011-06-10 Thread Droid
My thread is a timer thread that brings my activity back to view after
the home button is pressed. I need to cancel it when home button is
pressed.
(I have 10 activities and no idea in which activity the app was when
the home button was pressed)

On Jun 8, 1:23 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jun 8, 2011 at 1:34 AM, Droid rod...@gmail.com wrote:
  I have a thread that needs specifically to be cancelled when the
  home button is pressed.

 Perhaps if you explain why you think your thread needs to be specifically
 canceled on pressing Home you can get an answer that helps you fix your
 actual problem and not hack around 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] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Droid
I need to know when the home button is pressed too (otherwise my app
returns to visibility again and again for ever).
Is there a hack? (Please don't tell me I need to design my app
'properly', I have been Android dev for over a year now)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 know when the home button has been pressed?

2011-06-08 Thread Droid
I have a thread that needs specifically to be cancelled when the home
button is pressed.
But, nothing reliable gives me that information. (I have over 10
activities all in the stack)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: any experience in time to port ios app to android

2011-06-04 Thread Droid
I suggest asking the iPhone developer to write the app out in pseudo
code and then asking an android dev to write a similar android app.
There is no software that one can simply use to translate from iPhone
to abdroid.

If the app is a web app phone gap then you have a chance, but straight
objective c? No chance of a quick translation.

On Jun 4, 3:31 am, cellurl gpscru...@gmail.com wrote:
 I have to port an app from ios to android.
 It contains email, pictures, xml...

 Anyone want to share any experiences.
 I want to ask the client how long it took him to write the ios one and
 then multiply it by X.

 any leads appreciated.
 -cellurl

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 know when home button pressed was pressed

2011-05-30 Thread Droid
I have a workflow of about 15 activities. When a user presses the home
button to close the whole app I cannot find a way of determining if
the home button has been actuated that would allow me to stop a timer
thread.

I have tried using life cycle methods (onStop(), OnStart() etc) to no
avail because they are always stopping and starting when the app is
running correctly anyway and I do not know the activity being viewed
at the time of actuating the home button either.

I know there are many posts about this issue, but nevertheless I
cannot seem to solve it.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] iosched 2011 in zip or tar format

2011-05-27 Thread Droid
Trying to get iosched 2011 source for eclipse project in a simple zip
format. Its at http://code.google.com/p/iosched/source/browse/ but its
using hg -arrrhhh. Its a lazy request of mine I know, but I do not
have enough brain RAM to learn hg at this point. Or a github ref? Most
ioscheds on github are 2010 - arrrg.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: iosched 2011 in zip or tar format

2011-05-27 Thread Droid
OK, OK, answering my own question. I have found it (I think) at:
https://github.com/underhilllabs/iosched2011 Looks like the right one.
Thanks to underhill.

Now to try it out.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Keen to do Google TV apps but I am not in USA

2011-05-25 Thread Droid
Is there any point in me making Google TV apps if I am in the UK? (I
believe its for USA TV only at this point in time)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 timer thread and url fetch thread in same activity.

2011-05-19 Thread Droid
I am having problems with a timer that should fetch http results from
the web every 5 minutes.
I having problems with two threads - often I cannot even turn them off
or keep the timer going without upsetting the apple cart.

Should I start using wait() and notify(), a separate service or
continue trying to get them to be friends with each other in the same
activity. At present its all very badly behaved and I feel as though I
am juggling with marbles.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I draw/move a point on screen ?!

2011-05-19 Thread Droid
I think you have to use paint() - but I have the same problem and have
not got round to it yet. :(

On May 19, 8:13 pm, Diogo Salaberri caxix...@gmail.com wrote:
 Any tutorial ? Any link ?

 Thanks, bye.

 --
 Atenciosamente;
 Diogo Bonoto Salaberri
 Bacharel em Ciência da Computação - UFPel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Voice Recognition - cannot suppress the visual modal dialogue

2011-05-16 Thread Droid
I am trying to use google voice recognition in purely sound mode, BUT
it displays a very annoying dialogue that often requires user to tap a
'speak again' button - i.e. it cannot be sound only operated and needs
a sighted user.

I want to handle all options through sound only but there is no way to
disable that dialogue.

Any pointers for me here?

(I know about hands free software, but I am trying to use voice
recognition in my App)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 problem in JSON (http) connection

2011-05-16 Thread Droid
The key part of your log is:
org.json.JSONException: End of input at character 0 of

This means it does not think its input is a JSON type format.
I had the same error and ended up using some different code
but never bothered to sort out exactly what was going wrong - sorry.

Here is my code that works for Twitter. Maybe you can see something::

private Thread checkUpdate = new Thread() {
public void run() {
try {  /
  //String Text = URLEncoder.encode(Android, UTF-8);
//  
http://cloudcollaboration.appspot.com/SecondGetter?content=qaz
URL updateURL = new URL(http://search.twitter.com/
search.json?q=+string_from_speaker);
// Log.d(, 44 + Text);
URLConnection conn = updateURL.openConnection();
InputStream is = conn.getInputStream();
BufferedInputStream bis = new
BufferedInputStream(is);
ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while((current = bis.read()) != -1){
baf.append((byte)current);
}
/* Convert the Bytes read to a String. */
html = new String(baf.toByteArray());
// Log.d(, 3 + html);
mHandler.post(showUpdate);
} catch (Exception e) {
tv1.setText( having trouble getting online);
}
}
};
private Runnable showUpdate = new Runnable(){
public void run(){

try {
jObject = new JSONObject(html);
JSONArray sessions = jObject.getJSONArray(results);
for (int i = 0; i  sessions.length(); i++) {
JSONObject session = sessions.getJSONObject(i);
Tweet tweet = new Tweet();
tweet.content = session.getString(text);
tweet.author = session.getString(from_user);
tweets.add(tweet);
}

On May 16, 1:07 pm, Rocky rkjhaw1...@gmail.com wrote:
 Hi all,

 I'm facing problem when trying to use JSON object to access the .net project
 database.
 please let me know, where i'm doing mistake, i given more than 4 days to
 rectify.

 logcat details -

 05-16 17:32:26.132: INFO/System.out(1656): response.getProtocolVersion()
 =HTTP/1.0
 05-16 17:32:26.132: INFO/System.out(1656):
 response.getStatusLine().getStatusCode()  =404
 05-16 17:32:26.132: INFO/System.out(1656):
 response.getStatusLine().getReasonPhrase()  = Not Found
 05-16 17:32:26.141: INFO/System.out(1656):
 response.getStatusLine().toString()   =HTTP/1.0 404 Not Found
 05-16 17:32:26.141: INFO/System.out(1656): inside try 3
 05-16 17:32:26.151: INFO/System.out(1656): connection entity.toString()=
 org.apache.http.conn.BasicManagedEntity@43ea4288
 05-16 17:32:26.161: INFO/global(1656): Default buffer size used in
 BufferedReader constructor. It would be better to be explicit if an 8k-char
 buffer is required.
 05-16 17:32:26.161: INFO/System.out(1656): result =
 05-16 17:32:26.171: WARN/System.err(1656): org.json.JSONException: End of
 input at character 0 of
 05-16 17:32:26.182: WARN/System.err(1656):     at
 org.json.JSONTokener.syntaxError(JSONTokener.java:446)
 05-16 17:32:26.182: WARN/System.err(1656):     at
 org.json.JSONTokener.nextValue(JSONTokener.java:93)
 05-16 17:32:26.182: WARN/System.err(1656):     at
 org.json.JSONObject.init(JSONObject.java:154)
 05-16 17:32:26.182: WARN/System.err(1656):     at
 org.json.JSONObject.init(JSONObject.java:171)
 05-16 17:32:26.182: WARN/System.err(1656):     at
 com.sst.restaurant.RestJsonClient.connect(RestJsonClient.java:75)
 05-16 17:32:26.192: WARN/System.err(1656):     at
 com.sst.restaurant.LoginDetails.onClick(LoginDetails.java:141)
 05-16 17:32:26.192: WARN/System.err(1656):     at
 android.view.View.performClick(View.java:2408)
 05-16 17:32:26.192: WARN/System.err(1656):     at
 android.view.View$PerformClick.run(View.java:8816)
 05-16 17:32:26.192: WARN/System.err(1656):     at
 android.os.Handler.handleCallback(Handler.java:587)
 05-16 17:32:26.192: WARN/System.err(1656):     at
 android.os.Handler.dispatchMessage(Handler.java:92)
 05-16 17:32:26.212: WARN/System.err(1656):     at
 android.os.Looper.loop(Looper.java:123)
 05-16 17:32:26.306: DEBUG/dalvikvm(1656): GC_FOR_MALLOC freed 2764 objects /
 179392 bytes in 92ms
 05-16 17:32:26.306: WARN/System.err(1656):     at
 android.app.ActivityThread.main(ActivityThread.java:4627)
 05-16 17:32:26.306: WARN/System.err(1656):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 05-16 17:32:26.311: WARN/System.err(1656):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 05-16 17:32:26.311: WARN/System.err(1656):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
 868)
 05-16 17:32:26.311: WARN/System.err(1656):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 05-16 

[android-developers] How to draw a circle on an image

2011-05-14 Thread Droid
I have an image that needs a red circe at x,y coords. Its in an image
view. I can get x,y coords but no idea at all about how to place a red
circle?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] simultaneous download of files - best way to handle it

2011-05-13 Thread droid-stricken
Hi All,

I am writing an application targeting API level 9 or higher. So, i
have decided to go with DownloadManager Class that SDK offers.

My question is 2 part -
1. When i am downloading a single file, how do i display the progress
of the download. I see i can get COLUMN_TOTAL_SIZE_BYTES and
COLUMN_BYTES_DOWNLOADED_SO_FAR from the querying the download manager
instance. But i am not sure if i have to put the query in a thread and
implement a loop so that i can poll regularly to update the progress
bar. I guess, i am not sure, how to query regularly - will it go in
the main thread or be implemented as a runnable - the mechanism i am
not clear.

2. If i have to support multiple file downloads, then do i have to
launch each one of them in it's own thread?

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] javascript in webview to java?

2011-05-11 Thread Droid
I want to try processing text in a normal java activity from the text
output of a javascript library in webview.
 BUT how? Suppose i could write to a file and then read but that is
cumbersome.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: where to put files to be read by jni native code

2011-05-10 Thread Droid
This works for a file on the SDCard:
#include string.h
#include jni.h
#include stdio.h
/* This is a trivial JNI example where we use a native method
 * to return a new VM String. See the corresponding Java source
 * file located at:
 *
 *   apps/samples/hello-jni/project/src/com/example/HelloJni/
HelloJni.java
 */
jstring
Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
  jobject thiz )
{
FILE* file = fopen(/sdcard/hello.txt,w+);

if (file != NULL)
{
fputs(HELLO WORLD!\n, file);
fflush(file);
fclose(file);
}

return (*env)-NewStringUTF(env, Hello from JNI (with file
io)!);
}

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


[android-developers] Re: emulator too slow

2011-05-10 Thread Droid
You can reduce the screen size of the emulator - from SDK Manager and
launch button.
A small screen size is generally faster all round.

On May 10, 2:34 am, bob b...@coolgroups.com wrote:
 Is there any way to make the emulator faster?  It pretty much runs
 slow as molasses on my Macbook.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-09 Thread Droid
I cannot seem to find a solution to fix everything in portrait except
xlarge (1275) which needs to be fixed in landscape.
I have 4 main layout xml files in four folders (small, normal, large,
xlarge). Each main layout shares an activity, so I have four
activities. This is difficult to explain let alone solve.

Maybe easy but I cannot find a solution..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-09 Thread Droid
Answering my own question here:

The manifest attribute: android:screenOrientation=nosensor is ideal.
What it does is fix the screen orientation to the preferred one.
This is great because Honeycomb it chooses landscape and other
phones - well whatever is the default orientation.

(I had a MOM error when orientation changed, that's why I needed it)

:)




On May 9, 2:26 pm, Droid rod...@gmail.com wrote:
 I cannot seem to find a solution to fix everything in portrait except
 xlarge (1275) which needs to be fixed in landscape.
 I have 4 main layout xml files in four folders (small, normal, large,
 xlarge). Each main layout shares an activity, so I have four
 activities. This is difficult to explain let alone solve.

 Maybe easy but I cannot find a solution..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   3   >