[android-developers] Re: Android v6.0.1 SMS directory location

2016-12-01 Thread Ben Bartolomucci


On Thursday, December 1, 2016 at 4:36:13 PM UTC-6, Ben Bartolomucci wrote:
>
> Android v6.0.1 SMS directory location
>
> Can someone copy & paste the exact path? What is the name of the folder?
>
> Is the file structure defined by Google? Samsung? or AT&T? I own Samsung 
> Galaxy S7
>
> Not sure how soon this question will be answered or when I'll check back 
> on this forum
>
> Goal: I just want to be connect the cell phone to PC andsearch SMS chat 
> logs for specific data like you can with wild card searches in Windows OS
>
> Please drop an Email: the.italian.paradox@gmail 
>
>

-- 
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/d42879f2-934e-4c50-a21f-dcadf97b6627%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android v6.0.1 SMS directory location

2016-12-01 Thread Ben Bartolomucci
Android v6.0.1 SMS directory location

Can someone copy & paste the exact path? What is the name of the folder?

Is the file structure defined by Google? Samsung? or AT&T? I own Samsung 
Galaxy S7

Not sure how soon this question will be answered or when I'll check back on 
this forum

Goal: I just want to backup search SMS chat logs for specific data like you 
can with wild card searches in Windows OS

Please drop an Email: the.italian.paradox@gmail 

-- 
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/035f4860-00e1-4642-9bc3-33400b9427e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How do you guys deal with automated strikes against your developer account?

2016-10-21 Thread Ben McNelly



As you can see below, my app was rejected and my appeal was rejected 
because it contained a screenshot from a game (its a new/tips/updates app 
about gaming)


That   A)  is clearly fair use if a human took two seconds to look at it 
and in context of the app

AndB)  Isn't even from Ubisoft, the game developer, its from ANOTHER 
third party wiki/news site


This has got to be a bot right? How do you guys deal with this, I worked 
months on this app, the name, logo, assets are lovingly hand crafted by me, 
every line of code, and yet some of the test content I put in (was planning 
on doing an alpha, then beta) gets it banned and there is NOTHING I can do?


What are my options!?




-- 
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/5cb00fd0-7659-4d0a-8d0a-5dffc97bbb32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] it's possible to make a bidirectional exchange message using NFC-NDEF android at one connection ?

2016-09-06 Thread Mohamed BEN AMOR
Hi everybody,

It's my first application with NFC android, i'm trying to exchange messages 
between two android devices through NFC, here is the scenario:

- The first android device send "hello" message
- once "hello" received, the other device send a JSON message 

It's OK for the sends of "hello" message, but the reception of JSON message 
done only if i reconnect the two devices (move the smartphone).


Thanks in advance.





 

-- 
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/282743b9-c6da-47fe-8bf5-887ea4dc4325%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] APK Upload API giving 500's

2016-08-12 Thread ben
I'm using a python script to try to upload to our app in the Play Store. 
 The script I based my code on can be found here:
https://gist.github.com/mix3d/665f4ab329b4482297a2f425ebba402c

I've created External release builds and tried to upload with the following 
command:
./upload_apk_to_play.py -p com.picmonkey.picmonkey -a 
./Path/To/App-arm7External-release.apk -s ./Path/To/creds.json

I'm able to:
1) Create an edit
2) Upload an APK
3) Update the "alpha" track to point to the version of the apk

It fails when:
4) Commit

The 500 has an empty message, so I'm not sure what I need to do to get past 
this.

Any help would be greatly appreciated.

Ben

-- 
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/f991dd38-dbea-44f8-bab8-4a81552132d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Trouble with JDK for Android Studio

2016-08-06 Thread Ben Andreasen
I am currently trying to set up my installation of Android Studio on my 
Mac, and to get a handle with everything, I decided to get acquainted with 
the IDE by creating a generic, bare-bones project, and looking through the 
files. There's an xml file called activity_main.xml that I was trying to 
view, which seems to be what allows the developer to create and view the 
GUI, but my Android Studio gave me an error that wouldn't render the GUI on 
Android Studio and said "Rendering Error: Android N requires the IDE to be 
running with Java 8 or later". The error gave me this link: 
https://developer.android.com/preview/setup-sdk.html#java8 , which I 
followed and did everything accordingly to resolve this problem. I 
downloaded Java 8, and configured it the way it outlined, but I'm still 
getting said rendering errors. Has anyone else experienced this, and do you 
know what I can do so that I can start rendering and playing around with my 
GUI? Thanks!

-- 
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/fee67732-6b23-4823-b950-7a6ac73bf9cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: AVD Unknown Error, Wont build new AVD

2016-07-04 Thread Ben Wardrop
Resolved, Comodo Anti-Virus

On Tuesday, July 5, 2016 at 1:19:55 PM UTC+10, Ben Wardrop wrote:
>
> Installed Android Studio 2.1.2
> with jre1.8.0_91
> Running on a Surface Pro 3 Windows 10
> Following a tutorial
>
> https://www.youtube.com/watch?v=qKRWC3Q8wRw&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&index=4
>
> When I get to the System Image screen I try to select Marshmalow, (either 
> 86 or 86_64) and there's an error in the right hand panel "Unknown Error"
>
> I select next and it proceeds to the "verify configuration" page, the 
> error persists in the right hand panel, clicking on the error triggers a 
> "please file a bug" popup
>
> When I click finish the Virtual device manager flashes a "saving Virtual 
> Device"
> No virtual device apears.
>

-- 
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/7b739e97-efd7-4150-90ec-c4a19e8fe72e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] AVD Unknown Error, Wont build new AVD

2016-07-04 Thread Ben Wardrop
Installed Android Studio 2.1.2
with jre1.8.0_91
Running on a Surface Pro 3 Windows 10
Following a tutorial
https://www.youtube.com/watch?v=qKRWC3Q8wRw&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&index=4

When I get to the System Image screen I try to select Marshmalow, (either 
86 or 86_64) and there's an error in the right hand panel "Unknown Error"

I select next and it proceeds to the "verify configuration" page, the error 
persists in the right hand panel, clicking on the error triggers a "please 
file a bug" popup

When I click finish the Virtual device manager flashes a "saving Virtual 
Device"
No virtual device apears.

-- 
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/19245c32-9ed5-4b3d-9bdc-b8dc7697269a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Play Games app incorrectly shows random Saved Games files meta description

2016-05-17 Thread Ben Murray
I am building an Android game that will be released shortly and have 
noticed something in the Play Games app

The recent games page shows random meta descriptions from files the game 
has uploaded to Drive

How do i override/define what should be shown as the subtitle here?

Thanks

Here is an example of what Threes! shows:




And an example of Guess The GIF:




-- 
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/19108f86-3c9a-46ec-a746-4d26a82d56f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] 500 Errors for Refunding Google Play Purchases - Info Needed

2016-04-15 Thread Ben Serviss
Hi,

I'm working on a rails CRM app that supports an Android app that sells 
recurring subscriptions.

In the CRM app, we want to have the option to cancel or refund accounts. 
We're using the Google API Ruby Client to handle these calls 
(https://github.com/google/google-api-ruby-client).

We have implemented the cancel subscription and revoke subscription methods 
via the API and they both work fine, but when we try to send a request to 
the refund subscription endpoint, it always returns a 500 server error. 
There is no helpful description that comes with this error. 

This is what is returned every time:

Caught error Server error
Error - #

We can attempt retries when this fails, but it fails every time. We are 
sending over the same params that the other API methods require - package 
name, product id and purchase token. Is this a problem on Google's end? A 
problem with the API? Something else?

Thanks,
Ben

-- 
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/1add772b-241b-4f61-bf4f-6f5420283c1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] NFC intent on Android for Work

2016-01-18 Thread Ben Morris
 

I've created a very basic app that has an intent for external NDEF type as 
shown below.







The activity the above is nested in is the main activity for the app and is 
just a vanilla blank activity. 

All works fine on the standard user side however if I side load the app on 
to the Work Profile the intent never reaches the app and the "New tag 
collected" screen is shown. 

The Android documentation states that the Profile administrator can control 
which intents are sent across from the user to the work profile however I 
can find no such settings within the BlackBerry Enterprise Server 12 (our 
MDM) console or the Android for Work console.


http://developer.android.com/training/enterprise/app-compatibility.html#prevent_failed_intents

-- 
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/a96348a5-079e-40f8-b9ce-cb22933078ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] KitKat Visualizer Issues

2014-01-26 Thread Ben Brosius
I've been working on adding music visualization to my live wallpaper using 
the Visualizer class. The visualizer works as expected when music starts 
playing. However whenever I switch to the next song, I get empty waveforms 
back from the visualizer. I've downloaded several visualizers from the 
market and they all have the same behavior. Is this a known bug for the 
visualizer and is there a work around available. 

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


[android-developers] Questions about Google Play's app translation services

2013-12-20 Thread Ben H
i need to translate my app into different languages, but i'm befuddled by 
google play's app translation service. it's pathetic how little information 
google offers about this service. what's the difference between the 
"translate" and "translate and review" options, besides price? google play 
presents several different companies to choose from, but i have no idea 
which is best. does anyone have a recommendation? is there a better service 
to use besides google play?

cheers,
ben

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


[android-developers] GCM not working when setting dispatch period on google analytics

2013-07-02 Thread sariel ben arye
 


Hi there.

I'm using google analytics in my android app.

I tried to set the dispatch time in the analytics.xml file as described in 
the guide:

300

I see that the dispatch works, and data is updated to server every 5 
minutes, but when I use this settings the gcm push notifications just 
stopped working at all.

The app can send push notifications to other phones , but don't receive any.

Can someone please help me???

Thanks.

Sariel.


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




[android-developers] How to sync folder with cloud?

2013-06-28 Thread Ben Lee
Hi,
We have a simple note app, it save each note as a single file.
It works locally, doesn't even require network permission.
I am thinking about allowing user to sync their files with their cloud
storage account, like Dropbox, Google Drive, SkyDrive, etc.
My first guess is this is a general requirement, so there must be some
working solution(An app, or a library) out there.
I spent several weeks to investigate. Here is what I found.
The nearest app is FolderSync. The user can create "folder pair"(pair of
local folder and remote folder), then FolderSync will handle all other work
to keep these two folders in sync. However, it don't have an api to allow
third party app(like our note app) to create a "folder pair".
Regarding to libraries, some of the cloud provide library for Android.
Those libraries just do downloading/uploading, they don't do folder
syncing. One exception is DropBox, they provide a sync api. This is the
nearest library that I expect.
The reasons stopping me from using dropbox sync api to implement sync for
my app are:
1. I need to change my File related codes. But what I want is JUST a folder
that syncs. So why can't I just do normal File reading/writing and the
library do the work of syncing?
2. What about a user who don't use dropbox?
3. It cache the files in Internal Storage, which is often precious.

After finding out there isn't a ideal solution, I spent several days to
learn how to create one. It turns out to be a non-trivial task.
My target is to create a sync app that allow user and third party apps to
create "folder pair", the sync app deals with all other things to make sure
the folder is synced.
It should be able to connect to different cloud providers.
It should be easy to use, both for the end user and for third party
developer.
It should work.

Before I start, I have some questions.
1. Did I missed anything? Is there a good solution out there?
2. If there isn't any solution, why? Is it because it's NOT a general
requirement, or because it's technically impossible?
3. Why companies like dropbox provide sync for Windows and Mac and Linux,
but NOT for Android? Is it technically impossible, or because no one need
to sync in Android?
4. If I create such an app, are you interested in using(invoke via intent)
it?

Thanks in advance!


-- 
Best Regards,
Ben Lee

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




[android-developers] Payout to multiple persons?

2013-04-02 Thread Ben O'Halloran
I have a Android developer account associated with a checkout account. Is 
it possible to have revenue from a *single app* I release be split at an 
amount I specify between myself and another person?
I don't think it is but I'm not sure.
This would just be easier for me tax wise, since I don't have an LLC or 
similar entity set up.

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




[android-developers] Need someone capable of writing audio/physics based application

2013-04-02 Thread Ben Costerton
Hello,


I am in need of someone who is confident in writing an audio based 
application involving a lot of physics based variables. These will include 
time, intensity and EQ variables, as well as others, dependant on real-time 
user input.  
The application will be an audio/visual application revolving around 
existing audio/visual content.

Knowledge of head tracking technology will also be a plus as this will most 
likely make a large impact to the application in later prototypes.


I would like to discuss the application with anyone who is interested in 
developing a prototype application. 
Please don't hesitate to get in touch if this is of interest to you.


Thank you for reading,

Ben

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




[android-developers] Re: Can't upgrade app

2013-01-11 Thread Ben
Goedang JoJo  gmail.com> writes:

> Hi, 
 
> I got a problem when I trying to upgrade my app. Here's there error message:

> You uploaded an APK that is signed with a different certificate to your 
previous APKs. You must use the same certificate. Your existing APKs are signed 
with the certificate(s) with fingerprint(s):
> [ SHA1: FA:1F:00:CA:A8:80:F2:8F:4E:6F:AE:61:D1:62:CB:7E:6C:3D:5F:0E ]
> and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
> [ SHA1: 97:FD:2F:11:83:7B:30:15:42:B5:B6:14:19:8F:18:B0:9B:38:10:BE, SHA1: 
FA:1F:00:CA:A8:80:F2:8F:4E:6F:AE:61:D1:62:CB:7E:6C:3D:5F:0E ]
> 

> Yes, I am using the same keystore as the previous apk. But what's with the 
second SHA1? where does it come from?
> 
> Please help,
> 
> Thanks in advance

I have the same problem and I have been trying for 4 days to get it resolved. 
Please let me know if you got any answer. 

Thanks and happy new year!








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


[android-developers] Integrate with handrite

2012-12-16 Thread Ben Lee
Hi,
If you want to bring your app the handwriting feature, you don't need to
write your own code: you can integrate with handrite .
Search handrite in github to get a simple demo project.
To improve handwriting experience, I have spent a lot of time,  I wish you
don't have to.

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

[android-developers] Re: working WebView example?

2012-12-10 Thread Ben Rosenberg
lol well, i did figure it out four years ago

On Mon, Dec 10, 2012 at 10:15 AM, Roney Kakkanatt wrote:

> To learn how to make a simple WebView Application
>
> http:/
> www.androidituts.blogspot.com/2012/12/android-tutorial-sample-webview.html
>
> For more tutorials
>
> Visit:www.androidituts.blogspot.com
>

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

[android-developers] Re: LoaderCallbacks.OnLoadFinished called twice in Fragments

2012-11-28 Thread Ben
Same

On Wednesday, June 27, 2012 4:53:47 PM UTC+3, szakalinhoPL wrote:
>
> Hello,
> I noticed a strange situation when using Loader in Fragment (in Activity 
> works well). I init Loader in onActivityCreated() as suggested in 
> documentation (http://developer.android.com/guide/components/loaders.html) 
>  and after orientation change framework calls twice 
> method LoaderCallbacks.OnLoadFinished but not in initLoader (probably 
> beacause Fragment is not in started state, but in docs there is information 
> that I should be prepared for this 
> (http://developer.android.com/reference/android/app/LoaderManager.html#initLoader(int,
>  
> android.os.Bundle, android.app.LoaderManager.LoaderCallbacks)  but it 
> never happens) . However if I call iniLoader in Fragment.onResume() 
> everything works as expected. The same issue is described here 
> https://groups.google.com/forum/?fromgroups#!topic/android-developers/aA2vHYxSskU.
>  
> It happens using support library as well. Anyone noticed this situation? I 
> wrote very simple application to test this issue, here is sample code:
>
>
> //Activity class
>
> package com.example;
>
> import android.app.Activity;
> import android.app.LoaderManager;
> import android.os.Bundle;
>
> public class MyActivity extends Activity
> {
> /**
>  * Called when the activity is first created.
>  */
> @Override
> public void onCreate(Bundle savedInstanceState)
> {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
>
> LoaderManager.enableDebugLogging(true);
> if (savedInstanceState == null)
> {
> getFragmentManager().beginTransaction().add(R.id.container, 
> new TestFrag(), "asdf").commit();
> }
> }
> }
> //Fragment class
>
> package com.example;
>
> import android.app.Fragment;
> import android.app.LoaderManager;
> import android.content.Loader;
> import android.os.Bundle;
> import android.util.Log;
>
> public class TestFrag extends Fragment
> {
> @Override
> public void onActivityCreated(Bundle savedInstanceState)
> {
> super.onActivityCreated(savedInstanceState);
> LoaderManager.LoaderCallbacks c = new 
> LoaderManager.LoaderCallbacks()
> {
> @Override
> public Loader onCreateLoader(int id, Bundle args)
> {
> return new Loader(getActivity())
> {
> @Override
> protected void onStartLoading()
> {
> Log.d("TAG", "onStartLoading " + this);
> deliverResult(new Object());
> }
> };
> }
>
> @Override
> public void onLoadFinished(Loader loader, Object data)
> {
>  //THIS IS CALLED TWICE
> Log.d("TAG", "onLoadFinished " + data);
> }
>
> @Override
> public void onLoaderReset(Loader loader)
> {
> }
> };
> getLoaderManager().initLoader(100, null, c);
>
> }
>
> }
>
>

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

2012-11-26 Thread Gal Ben-Haim
I actually don't want to scroll horizontally at all.

I want items to be places from left to right, and warp to the next row when
there's not enough room for the next item. also, this should scroll
vertically.

On Mon, Nov 26, 2012 at 5:42 PM, bob  wrote:

> This widget is no longer supported. Other horizontally scrolling widgets
> include 
> HorizontalScrollView<http://developer.android.com/reference/android/widget/HorizontalScrollView.html>
>  and 
> ViewPager<http://developer.android.com/reference/android/support/v4/view/ViewPager.html>
>  from
> the support library.
>
> sic
>
> On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote:
>>
>> I'm facing the same problem as this old question.
>>
>> I want to create an horizontal wrapping (and vertical scrolling)
>> ListView,
>> for example:
>>
>> 11 222 
>> 44  66
>> 7 888 9
>>
>> where each numbers group is a list item.
>>
>> I found this old answer suggesting using a Gallery widget, but it only
>> allows to scroll horizontally.
>>
>> how can I create such view ?
>>
>>
>> On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:
>>>
>>> You can use a Gallery widget.
>>>
>>> On Thu, Jan 7, 2010 at 3:48 PM, Marcus  wrote:
>>> > I'm attempting to create a list view that shows clickable items that
>>> > wrap horizontally much like the To/From/CC/BCC fields in OS X and the
>>> > iPhone's Mail programs or like the TO field in Facebook's messages
>>> > (really like most mail programs). My questions are:
>>> >
>>> > 1. Is there a way to do this with a ListView? Everything I've seen and
>>> > experimented with is either horizontal scrolling or vertically
>>> > stacking, but not horizontal wrapping. If there's a way, would you
>>> > point me in the right direction as far as first steps to take to
>>> > implement it?
>>> >
>>> > 2. Is anyone aware of an existing app with available source that has a
>>> > view like this that I could look at as an example? The Google Mail/SMS
>>> > apps just have single strings that are not clickable for those fields.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to android-d...@googlegroups.com
>>> > To unsubscribe from this group, send email to
>>> > 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>
>>> >
>>>
>>> --
>>> Romain Guy
>>> Android framework engineer
>>> roma...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time
>>> to provide private support.  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
>

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

2012-11-26 Thread Gal Ben-Haim
I'm facing the same problem as this old question.

I want to create an horizontal wrapping (and vertical scrolling) ListView, 
for example:

11 222 
44  66
7 888 9

where each numbers group is a list item.

I found this old answer suggesting using a Gallery widget, but it only 
allows to scroll horizontally.

how can I create such view ?


On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:
>
> You can use a Gallery widget.
>
> On Thu, Jan 7, 2010 at 3:48 PM, Marcus > 
> wrote:
> > I'm attempting to create a list view that shows clickable items that
> > wrap horizontally much like the To/From/CC/BCC fields in OS X and the
> > iPhone's Mail programs or like the TO field in Facebook's messages
> > (really like most mail programs). My questions are:
> >
> > 1. Is there a way to do this with a ListView? Everything I've seen and
> > experimented with is either horizontal scrolling or vertically
> > stacking, but not horizontal wrapping. If there's a way, would you
> > point me in the right direction as far as first steps to take to
> > implement it?
> >
> > 2. Is anyone aware of an existing app with available source that has a
> > view like this that I could look at as an example? The Google Mail/SMS
> > apps just have single strings that are not clickable for those fields.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to 
> > android-d...@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com 
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> >
>
> -- 
> Romain Guy
> Android framework engineer
> roma...@android.com 
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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] Determing icon location in live wallpaper

2012-10-29 Thread Ben Brosius
Is there anyway currently to determine the location of icons and widgets on 
the homescreen for a live wallpaper. I'd like to adjust my wallpaper to 
display only in visible areas in the background. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Animate an icon that is moving through GeoPoints

2012-10-25 Thread shai ben shimol


i am developing an android application which is based on mapview. 

 

(a live real time bus timing application).

im using the "overlay" class for this purpose (inserting the icons etc'). i 
am recieving an array of GeoPoints, and i need to create an animation in 
which a certain icon is moving through the GeoPoints index route.

 

(in short - an icon that represents a bus which is moving on a certain road 
/ route)

how can this animation 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] how to handle large Parcelable ArrayList in Android ?

2012-10-14 Thread Gal Ben-Haim


I'm developing an Android app that is a client to a JSON webservice API.

I have classes of resource objects (some are nested) and I pass results 
from an IntentService that access the webserive using the Parcelable interface 
for all the resource classes.

the webservice returns arrays or results that can be potentially large 
(because of the nesting, for example, a post object also contains comments 
array, each comment also contains a user object).

currently I'm either inserting the results into a SQlite database or 
displaying them in a ListView. (my relevant methods are accepting 
ArrayList as arguments). (some data need to be persistent 
stored and some should not).

since I don't know what size of lists I can handle this way without 
reaching the memory limits, is this a good practice ?

is it a better idea to save the parsed JSON to a local file immediately and 
pass the file path to theResultReceiver, then either insert to database 
from that file or display the data ?

is there a better way to handle this ?

btw - I'm parsing the JSON as a stream with Gson's Reader so there 
shouldn't be memory issues at that stage.

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

Re: [android-developers] Re: Can anybody tell me how can i disable BACK button on android?

2012-09-23 Thread ben hong
do you mean the back button of  your "android device" doesn't work ?and you
want to disable it?another saying :you want to disable it(bace button)
under the lower layer with all apps couldn't handle it?

On Mon, Sep 24, 2012 at 6:14 AM, Lew  wrote:

> Marty Ballard wrote:
> > Wajiha Kanwal wrote:
>>
>> Can anybody tell me how can i disable BACK button on android?
>
>
>
>> > Here is how I've done it in one of my apps:
>> >
>> > @Override
>> >  public void onBackPressed() {
>> > Toast.makeText(this, "Back button disabled, press Reset",
>> Toast.LENGTH_LONG).show();
>> >  }
>>
>
> This evades the question of whether you should disable the back button.
>
> To which the answer pretty much always is "No".
>
> Assuming you don't want to piss off your users.
>
> --
> Lew
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: "Proper" way to communicate service errors to activity

2012-09-23 Thread Gal Ben-Haim
you can use ResultReceiver, create one in your activity and pass it to the 
service then send messages from the Service to the Activity with 
receiver.send()

On Friday, September 21, 2012 5:57:35 PM UTC+3, Cool Frood wrote:
>
> Hi,
>
> I'm trying to implement a service that is started by an activity.  When 
> the service starts off, it spawns a worker thread that makes a socket 
> connection.  If the socket connection fails, I want to stop the service. 
>  All this is working fine, but I don't have a good handle of how to 
> indicate to the activity that the service could not start successfully, and 
> has, therefore, turned itself off.
>
> One way to do this is to communicate via a listener that is attached into 
> the service in the onServiceConnected() connection callback.  The problem 
> with this approach is that, depending on when the worker thread notices the 
> error, the onServiceConnected() may or may not have been called, and 
> therefore the listener may or may not have been attached by the time the 
> worker thread decides to shut down the service.
>
> I was hoping that onServiceDisconnected() would be called, but that is 
> only called in case of an unexpected crash, and isn't really useful when 
> the service and activity exist in the same process.
>
> My question is, what is the best way to approach something like this?  It 
> seems silly to me that even though the activity and service exist in the 
> same process, the activity cannot figure out the state of the service that 
> easily.  I _can_ use a static state variable within the service, but that 
> still doesn't allow the activity to be notified of the event.
>
> Thanks!
>

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

[android-developers] Android 4.1, HLS streaming and HTML5

2012-07-11 Thread Ben
I am looking for a way to deliver live streaming through the android
browser for 4.1. I currently use flash however as I understand flash
will not be supported in 4.1 and above.

I have tried using the html5 video tag and a HLS stream however I have
only been successful with getting the sound and no video.

I was wondering if anyone has had any luck?

I am testing this on the android emulator

Ben

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

2012-07-10 Thread Ben Lee
setLayerInset
在 2012-7-11 上午11:31,"TreKing" 写道:

> On Wed, Jul 4, 2012 at 3:09 AM, Raúl virtual  wrote:
>
>> How I can modify the value of the property "left" programmatically from
>> my Activity?
>>
>> Sorry, I've search here and in Google but didn't find how to do it...
>>
>
> Try searching the documentation:
> http://developer.android.com/reference/android/view/View.html#setLeft%28int%29
>
>
> -
> 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

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

Re: [android-developers] Re: Users not upgrading

2012-05-22 Thread Ben Sandee
On Tue, May 22, 2012 at 11:06 AM, FiltrSoft  wrote:
> Yea, I think I was a little overzealous with my upgrades (hence the 40
> versions), because I would find a bug and want it fixed as soon as
> possible.  Also, and this might not be the best way to think about it, I
> tend to use the Play Store as a "beta" test, in that I will upload more
> version to the Play Store because there is no approval process, then when I
> feel it's stable, send it to Amazon's App Store.  It's hard to balance
> wanting to fix issues/annoying the users.

I'm not sure if you've already considered this, but it could be that
they are not eligible to upgrade. Make sure that you haven't
accidentally enabled a feature or requirement in your manifest that
would strand a large number of users at version 10 because of SDK
version or other feature requirements.

Ben Sandee
tbsan...@orangebikelabs.com

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


[android-developers] add a button in wikitude AR API

2012-05-02 Thread rami ben jemia
hello please can anyone tell me how can i add a button on the wikitude
ar api for android i want exactly when i touch the POI near the
description i want to have a button or menu i found the
callback_intent but i don't know how to use it if anyone can tell me
exactly how it works thnks

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

2012-01-24 Thread Ben Taliadoros
Hi Gabriel,

I would like to express I am facing the same issue as you stated below, have 
you 
fixed it yet?

I have found using a sample rate of 8192 works too, although I still get the 
same errors. at least 8192 goes into the buffersize exactly (and is power of 2).

Also I read your other article 
http://permalink.gmane.org/gmane.comp.handhelds.android.devel/85692 in which 
you 
said to loop to find the best solution for your device and look at the output 
(if >0 then good). could you clear up how you did this?

Please let me know if you have had any joy with this class.

Thanks for your time,

Ben




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


Re: [android-developers] Help with Lint Warning

2011-12-18 Thread Ben Sandee
On Sat, Dec 17, 2011 at 8:45 PM, Zsolt Vasvari  wrote:
> I have the following layout:
>
>  minHeight="?android:attr/listPreferredItemHeight">
>    layout_height="wrap_content" layout_gravity="center_vertical"
> orientation="vertical">
>       layout_height="wrap_content"/>
>       layout_height="wrap_content"/>
>   
> 
>
> The idea here is that the 2 TextViews (which each could have different
> heights), are centered vertically within the possibly taller frame,
> just as you would expect in a ListView.
>
> I am getting the following Lint warning: "This LinearLayout layout or
> its FrameLayout parent is useless."
>

I've got several similar layouts but the warning says (emphasis mine)
"This LinearLayout or its FrameLayout parent *may* be useless."  I
found that all of the cases in my app where the warnings said that it
"is useless" were legitimate. Many of those "may be useless" cases
were situations where I used layout_gravity="center", like you. I
suppose there may be a more optimal layout, but in my case it isn't
worth the effort to find it.

Ben

Ben

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


[android-developers] changing sound profiles

2011-11-17 Thread kaoutar ben ahmed
hello everyone,

i'am working on a project in which i need to be able to change the
phone mode to silence or vibration or normal sound.

i could not find any information about this ,can anyone help me, with
a tutorial or something ??

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection reset

2011-11-11 Thread kaoutar ben ahmed
hello again :)
i have resolved the problem now, all i did is that i deselected that option
that forces https:// to be http:// so it works ;)
cordially


2011/11/11 kaoutar ben ahmed 

> hello everyone !!
>
> i have this errors shown when i try to add SDK Components through the
> android SDK manager :
>
> Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
> Failed to fetch URL
> http://dl-ssl.google.com/android/repository/addons_list-1.xml,
> reason: Connection reset
> Fetched Add-ons List successfully
> Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
> Failed to fetch URL
> http://dl-ssl.google.com/android/repository/repository-5.xml,
> reason: Connection reset
> Fetching URL: http://dl-ssl.google.com/android/eclipse/addon.xml
> Failed to fetch URL http://dl-ssl.google.com/android/eclipse/addon.xml,
> reason: Connection reset
> Done loading packages.
>
> i not using a proxy server and i deactivated my firewall and my
> antivirus but in vain :s
>
> any ideas?
>

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

[android-developers] Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection reset

2011-11-11 Thread kaoutar ben ahmed
hello everyone !!

i have this errors shown when i try to add SDK Components through the
android SDK manager :

Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Connection reset
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Connection reset
Fetching URL: http://dl-ssl.google.com/android/eclipse/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/eclipse/addon.xml,
reason: Connection reset
Done loading packages.

i not using a proxy server and i deactivated my firewall and my
antivirus but in vain :s

any ideas?

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


[android-developers] Re: Sudden rash of license check failures in LVL. Anyone else?

2011-11-03 Thread Ben H
yeah, probably. i think some custom ROMs let you tweak the reported
screen dpi.

On Nov 2, 12:20 pm, Kostya Vasilyev  wrote:
> He mentions "resolution at 200" - a custom kernel?
>
> 02.11.2011 22:35, Ben H пишет:
>
>
>
>
>
>
>
>
>
> > some clues are starting to pop up for me. one user i'm working with
> > says that he's using an older version of the market app.
>
> > "I am using the market 2.3.6 because there is an issue where if
> > running your resolution at 200, which I do, the market says all kinds
> > of apps are not compatible with my phone.  So using the 2.3.6 allows
> > me to run my resolution at 200 and also have access to all apps in the
> > market."
>
> > since the market app is responsible for sending/receiving license
> > checks to the license server, it would stand to reason that this could
> > be the cause. if google changed the way license checks work on the
> > server, and only the newer market app knows how to properly execute a
> > license check, then older versions of the market app would fail.
>
> > On Nov 2, 2:14 am, Pent  wrote:
> >> I had one yesterday.
>
> >> Since I didn't have any for the preceeding 18 months, I guess you can
> >> call that a rash.
>
> >> Pent
>
> --
> 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@googlegroups.com
To unsubscribe from this group, 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: Sudden rash of license check failures in LVL. Anyone else?

2011-11-02 Thread Ben H
some clues are starting to pop up for me. one user i'm working with
says that he's using an older version of the market app.

"I am using the market 2.3.6 because there is an issue where if
running your resolution at 200, which I do, the market says all kinds
of apps are not compatible with my phone.  So using the 2.3.6 allows
me to run my resolution at 200 and also have access to all apps in the
market."

since the market app is responsible for sending/receiving license
checks to the license server, it would stand to reason that this could
be the cause. if google changed the way license checks work on the
server, and only the newer market app knows how to properly execute a
license check, then older versions of the market app would fail.


On Nov 2, 2:14 am, Pent  wrote:
> I had one yesterday.
>
> Since I didn't have any for the preceeding 18 months, I guess you can
> call that a rash.
>
> Pent

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


[android-developers] Re: Fwd: Want to send cookie with Json RPC

2011-11-01 Thread Ben H

On Nov 1, 10:40 pm, kapnk...@gmail.com wrote:
> Can i attach cookie to json rpc object in client side & sent a
> request?
> If yes How?

yes, you can. create an instance of org.apache.http.cookie.Cookie, and
add it to an instance of
org.apache.http.impl.client.BasicCookieStore.BasicCookieStore, then
add that to your BasicHttpContext. then it goes something like this:

AndroidHttpClient client = AndroidHttpClient.newInstance(USER_AGENT);

BasicHttpContext httpContext = new BasicHttpContext();
httpContext.setAttribute(ClientContext.COOKIE_STORE, mCookieStore);

HttpGet request = new HttpGet(url);
HttpResponse httpResponse = client.execute(request, httpContext);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sudden rash of license check failures in LVL. Anyone else?

2011-11-01 Thread Ben H
On Nov 1, 5:57 pm, Zsolt Vasvari  wrote:
> I had one user report a problem, but then again, in my app I don't
> fail the license check if unless it is not successful for long periods
> of time (days).

that's interesting. so that means that the license check was failing
for many days before your app finally notified the user?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Sudden rash of license check failures in LVL. Anyone else?

2011-11-01 Thread Ben H
i have an app in the android market that uses the LVL. it's bone stock
- not modified from the original source. yeah yeah, you're supposed to
alter it, but the LVL cracking apps out there are so good now that
it's pointless to try to fool them, IMO. not pointless, just not worth
the effort, IMO. i'm just trying to keep honest people honest.

anyway, over the past few days, i'm suddenly getting a rash of
complaints from users that the license check is failing in my app. one
user sent me some logcat output that included this:

11-01 12:15:46.192 I/LicenseChecker( 1102): Check timed out.

nothing has changed in my app. i'm wondering if there's something
wrong with the license servers. is anyone else experiencing this
problem?

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


Re: [android-developers] Re: Android repository missing platform packages? Help!

2011-10-21 Thread Ben H
yes, i did try the suggested solution at 
http://tools.android.com/knownissues. it didn't work.

thanks for the workaround to use r12. i'll try it. an ftp site would be nice 
in the future, as a backup to the sdk manager.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H

That's a major problem for me. I need to release an update to my
Android app right now, and I'm stuck. I can't use r14, and I can't go
back to r12. Is there a place where I can download the platform
packages directly?

On Oct 21, 2:28 pm, Xavier Ducrohet  wrote:
> R14 use a different repository file due to a schema change.
>
>
>
>
>
> On Fri, Oct 21, 2011 at 2:24 PM, Ben H  wrote:
> > thanks, xavier, but i tried that and it didn't work for me.
>
> > i'm trying to reinstall the entire sdk because of this problem, but am now
> > encountering problems downloading the platform packages. they seem to be
> > missing from the android repository. shouldn't there be more listed here
> > than just the sdk tools?
> >http://dl.google.com/android/repository/repository.xml
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.http://developer.android.com|http://tools.android.com
>
> Please do not send me questions directly. 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: Android repository missing platform packages? Help!

2011-10-21 Thread Ben H
Hmm so does that mean that anything prior to r14 is unsupported? That
would be extremely disappointing. I can't use r14 right now because of
the build bug. None of the available fixes work for me. I'm completely
dead in the water here.

On Oct 21, 2:25 pm, Mark Murphy  wrote:
> You need the r14 tools AFAIK.
>
>
>
>
>
> On Fri, Oct 21, 2011 at 5:19 PM, Ben H  wrote:
> > i recently reinstalled the android sdk because of this infuriating
> > build bug in r14. when i open the android sdk manager, i do not see
> > any platform packages available. i installed r12 of the sdk tools, and
> > i see the r14 package available, but nothing else. where's all the
> > platform packages, docs, etc.? see this screenshot of the sdk manager:
>
> >http://i.imgur.com/uyBAE.png
>
> > if you look at the android repository.xml, it also only has the
> > platform tools packages.
>
> >http://dl.google.com/android/repository/repository.xml
>
> > shouldn't it have everything, not just the tools packages? is there
> > another url that i need to add for the platform packages? 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.0 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] ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H
thanks, xavier, but i tried that and it didn't work for me.

i'm trying to reinstall the entire sdk because of this problem, but am now 
encountering problems downloading the platform packages. they seem to be 
missing from the android repository. shouldn't there be more listed here 
than just the sdk tools? 
http://dl.google.com/android/repository/repository.xml

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

[android-developers] Android repository missing platform packages? Help!

2011-10-21 Thread Ben H
i recently reinstalled the android sdk because of this infuriating
build bug in r14. when i open the android sdk manager, i do not see
any platform packages available. i installed r12 of the sdk tools, and
i see the r14 package available, but nothing else. where's all the
platform packages, docs, etc.? see this screenshot of the sdk manager:

http://i.imgur.com/uyBAE.png

if you look at the android repository.xml, it also only has the
platform tools packages.

http://dl.google.com/android/repository/repository.xml

shouldn't it have everything, not just the tools packages? is there
another url that i need to add for the platform packages? 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] ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H
since updating ADT to r14, i've been plagued by the bug described here

http://code.google.com/p/android/issues/detail?id=20398

and here

http://stackoverflow.com/questions/7823312/problems-building-with-adt-r14

i was surprised that i couldn't find a thread about this bug in this
group. i'm hoping someone here has some insight. i've tried all the
solutions offered so far, and none of them work for me.

my comment from the bug report: i'm having this problem too. my app
only references one library - my LVL library. i have tried removing
the reference, cleaning .classpath, and .project, and removing
references to source folders. i've cleaned the project, opened and
closed it, and waved a dead chicken over my keyboard. nothing has
worked. please help!

my console output with stack trace:

[2011-10-20 23:32:04 - MyApp] Dx UNEXPECTED TOP-LEVEL
EXCEPTION:java.lang.IllegalArgumentException: already added: Lcom/
android/vending/licensing/AESObfuscator;
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
123)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processClass(Main.java:486)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.access$400(Main.java:67)
[2011-10-20 23:32:04 - MyApp] Dxat com.android.dx.command.dexer.Main
$1.processFileBytes(Main.java:394)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
245)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
131)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
109)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processOne(Main.java:418)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.run(Main.java:206)
[2011-10-20 23:32:04 - MyApp] Dxat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2011-10-20 23:32:04 - MyApp] Dxat
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2011-10-20 23:32:04 - MyApp] Dxat
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2011-10-20 23:32:04 - MyApp] Dxat
java.lang.reflect.Method.invoke(Unknown Source)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:
179)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:
729)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:
602)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
629)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
172)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
282)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
363)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Project$1.run(Project.java:545)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
524)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Project.build(Project.java:123)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.project.ProjectHelper.build(ProjectHelper.java:
869)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:
84)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:
290)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access
$0(ExportWizard.java:229)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard
$1.run(ExportWizard.java:214)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)
[2011-10-20 23:32:04 - MyApp] Dx 1 error; a

[android-developers] setText for a TextView sometimes produces FC

2011-10-16 Thread Ben Lee
Hi,
Very rarely, my app crashes in setText.
Here is the detail:

java.lang.ArrayIndexOutOfBoundsException: index=4 length=4
> at android.text.AndroidBidi.directions(AndroidBidi.java:65)
> at android.text.StaticLayout.out(StaticLayout.java:680)
> at android.text.StaticLayout.generate(StaticLayout.java:380)
> at android.text.DynamicLayout.reflow(DynamicLayout.java:261)
> at android.text.DynamicLayout.(DynamicLayout.java:150)
> at android.widget.TextView.makeNewLayout(TextView.java:5523)
> at android.widget.TextView.checkForRelayout(TextView.java:6022)
> at android.widget.TextView.setText(TextView.java:2826)
> at android.widget.TextView.setText(TextView.java:2691)
> at android.widget.TextView.setText(TextView.java:2666)
> at my.handrite.widget.NoteIndexItemView.setNote(NoteIndexItemView.java:100)

In my code, it looks like this:
99SpannableStringBuilder spannable_string = note.getSpannableString();
100   mTextView.setText(spannable_string);
This happens very rarely, I only get this issue from android market's issue
report, never happens when I debug.

I want to read the source code of android, but unfortunately,
AndroidBidi.java(in android 2.2, android 2.3) don't have row 65(as in the
issue report)--it don't have that much rows.
So I guess this may happened in Android 3.0+, which we don't have access to
the source code yet.

Is it possible to find the bug?
Thank you!

-- 
Best Regards,
Ben Lee

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

2011-10-15 Thread Ben
My problem is not Case-insensitive.
I need to run a query on Hebrew column, but the query not return any
row.

Android SQLite can store Unicode but doesn't perform query in
different languages?
I read somwere that some SQLite3 version (SQLite JDBC Driver) have
full Unicode support (not by default).

I missed something or that a bug?

Thanks,
Ben

On 15 אוקטובר, 13:25, lbendlin  wrote:
> SQLite doesn't care if it is Unicode. You need to do the conversion yourself
>
> http://www.sqlite.org/faq.html#q18

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

2011-10-15 Thread Ben
I try to run a simple query.
The query key ("word" variable) contain an Hebrew (Unicode) value.
The code below not return any result from the query.
When I use an English word it works fine.

private SQLiteDatabase myDataBase;
...
String[] selectionArgs = new String[] { word };
String sqlString = "SELECT * FROM List Where Heb = ? ";
Cursor c = myDataBase.rawQuery(sqlString, selectionArgs);


Enviroment: Java Eclipse, Android Emulator API Level 10.

Any ideas?

Thanks,
Ben

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


Re: [android-developers] Re: Best approach for onConfiguratinChange()

2011-10-15 Thread Ben Lee
On Fri, Oct 14, 2011 at 8:07 PM, TreKing  wrote:

> On Fri, Oct 14, 2011 at 4:40 AM, nikki wrote:
>
>> My confusion shall I handle onConfigurationChange for orientation which
>> will stop android to create a new activity or i should not handle
>> onConfigurationChange and let android do the life cycle process complete.
>>
>
> In general, the latter, unless you have a good reason and know what you're
> doing.
>
Let android handle it should be your first choice.
But if creating a new activity is too expensive for your app, you may want
to handle the orientation yourself. Since your layout are the same, I guess
it won't be very complicate to handle orientation change by yourself.

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



-- 
Best Regards,
Ben Lee

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

2011-10-15 Thread Ben
When the query key ("word" variable) contain Unicode value (not
English),
the query below not return any value, otherwise it works fine.

private SQLiteDatabase myDataBase;
...
String[] selectionArgs = new String[] { word };
String sqlString = "SELECT * FROM List Where Heb = ? ";
Cursor c = myDataBase.rawQuery(sqlString, selectionArgs);

Enviroment: Java Eclipse, Android Emulator API Level 10.

Any ideas?

Thanks,
Ben

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


[android-developers] Re: LVL - Checking licence validity from a server

2011-10-01 Thread Ben
For anyone else having this problem, the issue was with the response
data.

Signed data comes in looking like this if it's a TEST EMAIL account:-
0|136040138|com.foo.bar|1|ANlOHQOShF3uJUwv3Ql+fbsgEG9FD35Hag==|
123456789012

if it is a genuine MARKET account
0|136040138|com.foo.bar|1|ANlOHQOShF3uJUwv3Ql+fbsgEG9FD35Hag==|
123456789012:GR=10&VT=0987654321>=1234567890

When the signed data is validated, the data after the ':' is stripped,
so trying to re-validate the data will fail in the case of the market
account, and pass in the case of the test email account.

Regards,
Ben

On Sep 30, 11:37 am, Ben  wrote:
> I have an app that needs to request a key from a remote server. It
> authenticates from the app with lvl, then communicates with the server
> who also checks against the market (a second step in the chain to
> prevent piracy). It authenticates using the responseData and signature
>
> In test this all works a-ok. When I launched my app, this did not
> work:
>
> the app validated with lvl without issue and requested an api key from
> the remote server
>
> the remote server tries to check with lvl and returns false UNLESS the
> email address is in test accounts.
>
> I am testing with the following 
> code:-http://code.google.com/p/android-market-license-verification/
>
> Can anyone shed some light as to why it is not working? Do I need to
> validate using a different key maybe?
>
> Regards,
> Ben

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

2011-09-30 Thread Ben
I have an app that needs to request a key from a remote server. It
authenticates from the app with lvl, then communicates with the server
who also checks against the market (a second step in the chain to
prevent piracy). It authenticates using the responseData and signature

In test this all works a-ok. When I launched my app, this did not
work:

the app validated with lvl without issue and requested an api key from
the remote server

the remote server tries to check with lvl and returns false UNLESS the
email address is in test accounts.

I am testing with the following code:- 
http://code.google.com/p/android-market-license-verification/

Can anyone shed some light as to why it is not working? Do I need to
validate using a different key maybe?

Regards,
Ben

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

2011-09-11 Thread Ben
perfect thx :)

On 11 Sep., 20:18, Kostya Vasilyev  wrote:
> Please see this, starting with:
>
> http://developer.android.com/reference/android/provider/Settings.Syst...
>
> and up through:
>
> http://developer.android.com/reference/android/provider/Settings.Syst...
>
> ( Android versions prior to 3.0 )
>
> -- Kostya
>
> 2011/9/11 Ben :
>
>
>
>
>
>
>
> > Hi!
>
> > I need a way to manipulate theWlanSettings from within my Activitys,
> > for example set a statsic IP + Netmask and reset it back to normal
> > when the activity is destroyed -> Any help would be greatly
> > 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

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

2011-09-11 Thread Ben
Hi!

I need a way to manipulate the Wlan Settings from within my Activitys,
for example set a statsic IP + Netmask and reset it back to normal
when the activity is destroyed -> Any help would be greatly
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] Automatic device resident apps running in bkgrd

2011-09-05 Thread Ben Chen
I'm new to Android development, so please pardon if this question
seems too fundmental. I was wondering if it was possible to create an
application that once launched is always "ON" even when the phone is
not being used (unless of course the user manually terminates it or
the battery runs out) and will periodically "awaken" to send certain
information (e.g., location) via text. This will not be spyware, and
the user will be fully aware of this feature if they launch the
application. Is this doable?  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] Background Application Consistently On

2011-09-04 Thread Ben Chen
I'm not that familiar with Android development, just IOS so please
pardon if this is question seems too fundamental.

I'm oking to create an applicaiton that once launched will
consistently be "on" ... even when the individual is not actively
using the phone/app.  At various intervals, the application would send
infomation (e.g., location, texts, etc.).  Is this device resident
application that is always ON and automatically sends this information
without the user's manual intervention each time implementable in
Android?  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: Problem with Socket in AsyncTask

2011-08-23 Thread Ben
Hi!

Took me a few days to look at your answer(holiday time^^) and it seems
that my solution with manipulating the textview in the "onPostExecute"
Method doesnt work stable(I dont get it), so I will try it as you
said in the "publish progress" Method, lets hope for the best :D

On 16 Aug., 15:48, Robert Thau  wrote:
> On Sun, Aug 14, 2011 at 11:16 AM, Ben  wrote:Hi!
>
> > ->If I try to connect to an existing address, I get the message
> > "tv.append("after socket");" but just a second after that I get "08-13
> > 20:44:05.657: ERROR/AndroidRuntime(304): Caused by:
> > android.view.ViewRoot$CalledFromWrongThreadException: Only the original
> > thread that created a view hierarchy can touch its views."
> > ->If I try to connect to an address that is not existing(which is exactly
> > the situation I want to simulate) I wont get any exception like "unknown
> > host" or anything it just hangs and hangs and hangs withour any error or
> > something till it kills my router with its trying(DDos anyone?) :D
>
> I can help you with this bit --- you shouldn't try to manipulate the
> TextView directly in
> your doInBackground method.  The easiest thing to do for debugging status
> messages
> like these is to use Log.d and Log.e to put them in the log, and read them
> out with "adb
> logcat" (or the log pane in Eclipse, or whatever).  If you really do want to
> display them
> directly on the phone UI, the easiest thing to do is have your background
> code (that is,
> the doInBackground method) publishProgress(), and put the UI updates in an
> onProgressUpdate() method.
>
> (What's going on here is that the Android UI classes are not thread-safe;
> manipulating
> them off the activity's main thread will either get you exceptions like
> this, or something
> worse.  The AsyncTask machinery arranges to run onProgressUpdate on that
> thread, so
> UI manipulation there is safe.)
>
> rst

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


[android-developers] Re: Problem with Socket in AsyncTask

2011-08-16 Thread Ben
Thanks for the help!!! It works now(got rid of the timeout setting and
creating the socket elsewhere in the class. I also get the right
exceptions now, but I have no Idea why I wouldnt get them before(it
was an ip address, never a hostname and I never saw unusual traffic in
wireshark...), but well I dunno :D



On 16 Aug., 02:32, Nikolay Elenkov  wrote:
> On Mon, Aug 15, 2011 at 12:16 AM, Ben  wrote:
>
> > ->If I try to set the timeout of the Socket -> null Pointer Exception
>
> Your socket is null at this point, hence the NPE. Move this code
> somewhere after new Socket(...);
>
> > ->If I try to connect to an existing address, I get the message
> > "tv.append("after socket");" but just a second after that I get "08-13
> > 20:44:05.657: ERROR/AndroidRuntime(304): Caused by:
> > android.view.ViewRoot$CalledFromWrongThreadException: Only the original
> > thread that created a view hierarchy can touch its views."
>
> You are trying to append text to a TextVie from within doInBackground()
> which executes in a separate thread. Don't do this, modify the UI only
> in pre/postExecute().
>
> > ->If I try to connect to an address that is not existing(which is exactly
> > the situation I want to simulate) I wont get any exception like "unknown
> > host" or anything it just hangs and hangs and hangs withour any error or
> > something till it kills my router with its trying(DDos anyone?) :D
>
> What address are you trying with? If it's a hostname it might be waiting
> for a DNS response. You probably need to change your router if it is
> that easy to kill :)
>
> > The whole thing worked just fine in native java and I would greatly
> > appreciate any help!
>
> Read up on the basics of Android a bit, apps are written in Java, but a
> lot of things are quite different compared to desktop/server side Java.

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

2011-08-15 Thread Ben
Hi!

I'm having weird problems with a socket connection in an AsyncTask:


public class diagnosis extends Activity {


TextView tv;


protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.diagnosis_test_gui);

//textview erzeugen
tv = (TextView) findViewById(R.id.dtg_tv);
tv.setMovementMethod(ScrollingMovementMethod.getInstance());


}

private class conmng extends AsyncTask {
PrintWriter pw;
OutputStream os;
BufferedReader br;
@Override
protected Integer doInBackground(String... params) {
Socket cs = null;


try {
cs.setSoTimeout(500);
} catch (SocketException e) {
tv.append("Socket Timeout");
e.printStackTrace();
}
   

tv.append("trying to open socket\n");  


try {
tv.append("before socket\n");
cs = new Socket("10.0.0.4", 23);
tv.append("after socket");
os = cs.getOutputStream();
pw = new PrintWriter(os, false);
br = new BufferedReader(new 
InputStreamReader(cs.getInputStream()));

} catch (UnknownHostException uh) {
uh.printStackTrace();
tv.append("unknown host");

} catch (IOException io) {
tv.append("IO Exception");
io.printStackTrace();

} catch (SecurityException se) {
tv.append("Security Exception");
} 

//do something
return 1;
}
@Override
protected void onPostExecute(Integer result) {
// TODO Auto-generated method stub
tv.append("im Post Execute");
super.onPostExecute(result);
}
}


->If I try to set the timeout of the Socket -> null Pointer Exception
->If I try to connect to an existing address, I get the message  
"tv.append("after socket");" but just a second after that I get "08-13 
20:44:05.657: ERROR/AndroidRuntime(304): Caused by: 
android.view.ViewRoot$CalledFromWrongThreadException: Only the original 
thread that created a view hierarchy can touch its views."
->If I try to connect to an address that is not existing(which is exactly 
the situation I want to simulate) I wont get any exception like "unknown 
host" or anything it just hangs and hangs and hangs withour any error or 
something till it kills my router with its trying(DDos anyone?) :D

The whole thing worked just fine in native java and I would greatly 
appreciate any help!

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

[android-developers] Socket-Bug in Android VM (Eclipse) ???

2011-08-15 Thread Ben
Hi!

I've encountered a really strange behaviour of the Android Development
VM

-Starting an AsyncTask as a private class from my Activity (works
perfectly)
-Then the programm comes to: (tv=textview)

try {
tv.append("before socket\n");
cs = new Socket("10.1.1.1", 23);
tv.append("after socket");
os = cs.getOutputStream();
pw = new PrintWriter(os, false);
br = new BufferedReader(new
InputStreamReader(cs.getInputStream()));

} catch (UnknownHostException e) {
e.printStackTrace();
tv.append("unknown host");

} catch (IOException e) {
tv.append("IO Exception");
e.printStackTrace();

The really interesting thing is that I get the message "before socket"
but not the "after socket", there are no errors or anything(it just
hangs there) and I have tested this whole thing in a native java
environment where it worked perfectly, is there some bug with sockets
in the Eclipse Android VM? (Or am I doing something wrong)

Thanks in advance for some hints!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] 16bit grayscale images and allowing window/level

2011-07-14 Thread Ben Litchfield
Assuming I had an image that has raw short data(grayscale), images are
approx 2000x3000 but can be scaled down for performance.  I would like
to display this image and to smoothly allow for window/leveling the
image.

Moving your finger up/down and left/right would change the window/
level/

Basically I would like to have my array of grayscale short pixel data
and a lookup table.  As the user moves their finger I would only
update the lookup table.  The display would use the pixel data and the
lookup table.

I see these classes but don't quite see how to hook them up with what
I'm trying to do.

ColorFilter
ColorMatrix
ColorMatrixColorFilter

Any hints?

Ben Litchfield

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

2011-07-12 Thread Ben Lee
Hi,

This question is first asked in
stackoverflow<http://stackoverflow.com/questions/6648177/how-to-handle-the-paste-event-in-android-3-0honeycomb>,
but still got no helpful answer. Then I realize maybe this is an advanced
question, I should post it here.

I have a customized EditText, which need to do customized "paste".

I overrode onTextContextMenuItem(int id) to handle "paste" requested by
selecting context menu.

@Override
public boolean onTextContextMenuItem(int id) {
  switch(id){
  case android.R.id.paste:
doMyPaste();
return true;
  }
}

This works in Android before 3.0.
In 3.0, however, there is a small "paste" widget near the cursor widget if
it's long-pressed, or the cursor is tapped.
[image: enter image description here]
When user do "paste" from this widget, the onTextContextMenuItem(int id) won't
be invoked. As a result, I can't do the customized paste.
Do any one knows what that small "paste" widget is? Which method should I
override to do a my own "paste"?

Thank you!

-- 
Best Regards,
Ben Lee

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

2011-06-30 Thread Ben F.
bump?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Immediate need of Sr. SQL/VB.net Developer

2011-06-29 Thread ben smith
*Hope you are doing well.
I am a technical recruiter with Panzer Solutions LLC Software Implementing
and IT consulting company located in CT. Please go through the Job
Description and send me your updated resume with contact information.
Please reply at b...@panzersolutions.com


Title  :Sr. SQL/VB.net Developer
Location   : Nashville,TN
Duration  : 6 months

 Interview time: This Friday at 1:00!!

Just wanted to clarify that this candidate must have SQL stored procedures
experience an should be more on the backend/development side of SQL server,
as opposed to DBA work! Must be SENIOR level.



MUST HAVES
Sr. Level Developer
6+ years of experience with VB. Net, SQL Server and Web Services
Very technical individual

PLUS:
Windows CE Experience

__

Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
b...@panzersolutions.com
Direct: (203) 813 2052
*

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

2011-06-29 Thread ben smith
*Hope you are doing well.
I am a technical recruiter with Panzer Solutions LLC Software Implementing
and IT consulting company located in CT. Please go through the Job
Description and send me your updated resume with contact information.
Please reply at b...@panzersolutions.com


Title  :  ETL Developer
Location   :San Francisco
Duration  :  6 month contract to hire

Must be GC,EAD,US citizen

MUST HAVES
Senior level ETL developer and/or architect experience; must be very hands
on
Informatica PowerCenter
SQL Server and T-SQL knowledge
Good verbal and written communication; will need to speak with a lot of
senior level people within the company
Knowledge of RDMBS concepts- indexing, bitmaps, query plans etc.

PLUS:
 Analytical background

__

Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
b...@panzersolutions.com
Direct: (203) 813 2052
*

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

2011-06-29 Thread ben smith
*Hope you are doing well.
I am a technical recruiter with Panzer Solutions LLC Software Implementing
and IT consulting company located in CT. Please go through the Job
Description and send me your updated resume with contact information.

Please reply at b...@panzersolutions.com


Title  : Sr Oracle DBA
Location   :   Phoenix, AZ
Duration  : 3 months +ext

Phone interview tomorrow or Friday

Collaborate and consult with application support teams to fully understand
database requirements, issues, and concerns and to maintain database
operations according to
service level agreements. Provide consulting services to application support
teams, DBA team mates, and management for purposes of explaining and
defining optimal
database strategies and operations. Align strategies with operational
service level agreements. Mentor junior DBAs and collaborate with peers to
achieve all of the above
across all Oracle databases.


MUST HAVES

Proficient with recent Oracle database versions and features (10g, 11g)
Experience with multi-Terabyte databases
Experience with RAC, database, and SQL performance tuning
Experience with Weblogic and/or BEA

__

Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
b...@panzersolutions.com
Direct: (203) 813 2025
*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Immediate need of Great Plains/SQL Administrator (backend)

2011-06-29 Thread ben smith
*Hope you are doing well.
I am a technical recruiter with Panzer Solutions LLC Software Implementing
and IT consulting company located in CT. Please go through the Job
Description and send me
your updated resume with contact information.
*
Please reply at *b...@panzersolutions.com
*

*Title  :  Great Plains/SQL Administrator (backend)
Location   :  Nashville,TN
Duration  :1 year contract
 *

*
Must have:
Great Plains support and process understanding (design and implementation)
SQL Administration, SQL Scripts
Backend development, system programming experience
Order Details, archiving to remedy, setting up test environments and running
tests on servers

__

Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
b...@panzersolutions.com
Direct: (203) 813 2052*

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

2011-06-29 Thread Ben Fleischhacker
I'm having trouble with the sendDataMessage method in SmsManager
(http://developer.android.com/reference/android/telephony/
SmsManager.html).

Sending a data sms between 2 gsm emulator's appears to at least
partially work, but I get a NullPointerException when using the same
method on a verizon cdma phone.

I found this link to a bug report (http://code.google.com/p/android/
issues/detail?id=7319) for the same issue, but I'm wondering if
there's a way to work around this problem or something similar i can
use on CDMA 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] Need of AIX resource

2011-06-26 Thread ben smith
*Dear Professional,
Hope your doing great,
I have a good opportunity for you can you please see the below job
description, if your interested  please reply me back with your updated
resume.Please send me youre resume on **b...@panzersolutions.com*

*Title  :   AIX resource
Location   : Winston Salem North Carolina
Duration  :6 Months Contract*
*Rate : $42 on C2C or 1099
*
*Must have: *
*
8+ years Unix system administration experience in an Enterprise environment
(including extensive knowledge of AIX).
Support 24x7 applications and systems on AIX, including Enterprise-level
Storage and Backup connectivity.
Run all aspects of performance monitoring including architecture,
implementation, maintenance and administration.
Ability to build P-Series from bare metal and ensuring security and
performance of operating system.
Experienced in design, implementation, and maintenance of P-Series systems
to align with business needs as demand grows.
Performs capacity planning and performance analysis as requested and
required within the AIX and associated hardware environment to provide
advance warning of pending

system problems and to overcome existing computer problems.
Develops and maintains documentation for essential hardware and software
components as well as user procedures and operator procedures.
Creates scripts of tests to be performed on all new software and hardware
components to ensure compatibility and functionality.
Ability to install and support IBM software.
Ability to install, configure, and support third party software products.
Deep technical experience in implementing/managing backup & recover and
disaster recovery solutions.


Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
45 Stuart  Ave, K
Norwalk CT 06850 USA
b...@panzersolutions.com*

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

[android-developers] Need of Websphere Commerce Server Administrator

2011-06-26 Thread ben smith
*Dear Professional,
Hope your doing great,
I have a good oportunity for you can you please see the below job
description, if your interested  please reply me back with your updated
resume.Please send me youre resume on **b...@panzersolutions.com*

*Title  :Websphere Commerce Server Administrator

Location   :Ann Arbor, MI
Duration  :6+ Months Contract
Interview :Will hire off phone interview ASAP*

*Must
Need some with good experience with Websphere Commerce server Adminstration
or Websphere Application Server Administrator.


Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
45 Stuart  Ave, K
Norwalk CT 06850 USA
b...@panzersolutions.com
*

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

[android-developers] Re: How to build android App

2011-06-15 Thread Ben
I would suggest you start with the Android Dev Guide:

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

On Jun 13, 3:43 am, netparvez  wrote:
> I am Bangladeshi, Having bit knowledge of Programming, I am using
> Galaxy S Mobile phone which is running Android Operating system. I
> think in our country there is much more to do.And i am much willing to
> build Android App to serve people of Bangladesh as Android enabled
> phone rapidly growing in our Country.So please suggest me and give me
> the step by step guide to build Android App.If anyone out there help
> me and let me be part of the World of Gogle 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: EditText stops displaying characters as I'm typing?

2011-06-09 Thread Ben S
Looks great, starred it. :-)

On Jun 8, 6:02 pm, Eric Carman  wrote:
> I've submitted a bug report. I don't know what to do about going further
> with this.
>
> I setup an inherited class so that I could throw some logging into the
> EditText in hopes of finding a pattern or blip. No joy.
>
> Bug: 17508
>
> Please feel free to elaborate or correct anything I might have said.
>
> Thank you.

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


[android-developers] Article marketing has become very popular lately

2011-06-08 Thread Ben Arroyo
 

I’ve been browsing a lot of time search for an article to read.  I end up of 
one article submission directories 
sharing some good information. A lot of companies use articles 
to promote their product a have a great traffic to their website. Article 
marketing can help to promote a websites and have sales. Article Directory 
with collection of free unique articles which are manually reviewed and 
published by experts. Users can register and submit their articles too. 
Visit and publish an articles to http://www.articlesubmission.elementfx.com/

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

[android-developers] Re: EditText stops displaying characters as I'm typing?

2011-06-07 Thread Ben S
I actually looked at that in the Android repository as well...didn't
get too deep into it, just as far as you posted.

I can replicate the problem personally on a Galaxy S (Fascinate)
running 2.2.1, a Nexus One running 2.3.3, and the emulator running
2.1.  A couple of friends let me test on their Droid X running 2.2.1,
an Adam tablet running 2.2, a Nexus S running 2.3.3, and an original
Droid running the latest stock firmware (2.2? maybe).

All of those show the problem.  I even dropped my emulator down to 1.5
to see if I could replicate the issue and I could.

On Jun 7, 5:54 am, Eric Carman  wrote:
> The following extracts from IInputConnectionWrapper shed a little
> light on this - no solution, but a little light.
>
> This appears to be the area where the error is occurring. As such,
> either the mInputConnection is returning null or the isActive method
> is returning false
>
>             case DO_END_BATCH_EDIT: {
>                 InputConnection ic = mInputConnection.get();
>                 if (ic == null || !isActive()) {
>                     Log.w(TAG, "endBatchEdit on inactive
> InputConnection");
>                     return;
>                 }
>                 ic.endBatchEdit();
>                 return;
>             }
>
> but,
>
>     public boolean isActive() {
>         return true;
>     }
>
> For some reason the Input Connection appears to be dropped.
>
> May I ask, on what OS/Device have you replicated this? I'm seeing this
> on a G-Slate running 3.0.1.

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


[android-developers] Re: EditText stops displaying characters as I'm typing?

2011-06-06 Thread Ben S
Sorry for the late reply...I've been on vacation.

Just before I left I found that any "extraneous" code I executed
within the OnKeyListener would cause the issue to reproduce (I also
tried several other callback methods such as onKey, etc. and those
produced the same result).

If there was any other code I executed (which there was in the
ellipsized portion I left out in the OP), the bug could be reproduced
quite frequently.  There was a bit of code in the portion I left out,
but simply calling a method to send the text through a socket or to
add that text to a listview adapter would produce the bug.

I.e:

if (sendText.length() > 0) {
   v.setText("");

   lvA.add("00:00pm", sendText); //This would cause the
edittext to stop functioning normally
}

I also tried using a handler as well, but found that it wouldn't get
rid of the issue.  The one thing I have done now to workaround the
issue was to remove my OnKeyListener.  Instead, what I ended up doing
was to add a "Send" button right next to my EditText, and in its
onClickListener I run all of the code I previously ran in my
OnKeyListener.  Also, I went ahead and set the EditText inputType as
textShortMessage (in xml: android:inputType="text|textAutoCorrect|
textShortMessage") so that the unused/unmapped enter key on the
keyboard would become a smiley key instead.

After doing this, I can't replicate the bug.  It doesn't solve the
underlying issue, but at least it's something.


On Jun 5, 2:59 pm, Eric Carman  wrote:
> As this is an on-again, off-again problem, it appears to be on again.
>
> I can reproduce this on a G-Slate.
>
> Back to square one

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 does one app let another let it draw into its view

2011-06-03 Thread Ben
Look at http://d.android.com/reference/android/app/PendingIntent.html.
It's the closest thing I can think of that can tie two applications
together, but I've no idea if what you want to do is possible.

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

2011-06-02 Thread Ben
I've been a member of linuxquestions.org for a few years, and they've
just spun off another forum for Android.  It covers all aspects
(hardware, apps, etc.) and includes a development forum as well.

I'm not trying to take away from what is here, but I'm all for
multiple sources.  There is a magnificent amount of quality
information here on the Google forum!

If you like to answer questions, try it out.  If it's half as
successful as linuxquestions.org, it may provide some good discussion
on development and other aspects of the platform and devices.

www.androidquestions.org


-ben

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

2011-06-02 Thread Ben
I can only answer number two.  The cost is zero to get the SDK and
write fully-functional applications for Android.  There is a one-time
$25 fee to become a developer and publish in the Android Market, and
you'll have to furnish your own hardware of course.  Eclipse and all
the Android software tools are free.

On Jun 2, 10:03 am, Jimmy  wrote:
> Before potentially gettting started with the android, i want to know
> about some of the basics.
>
> 1. Are there any input or output ports available to do analog to
> digital or digital to analog
> conversion.  For example, is there a way to create a program like this
> which was made on the iphone.http://www.youtube.com/watch?v=dY7ZQM5eah8
>
> 2.   Are there any ICDs or in circuit debuggers needed, or is it USB
> only?     I understand I can get the SDK from developer.android.com
> but are there other costs associated?
>
> 3.  Ive been asked to potentially teach a college class, a few labs
> wtih the android rather than a PIC microcontroller or other language.
> Anything i should know before getting started with this new concept?
>
> thanks
> Jimmy

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

2011-06-02 Thread Ben
You could look at http://hginit.com/ (a Mercurial overview/tutorial)
and see if it helps.  I haven't started using any code versioning yet,
but probably will use Mercurial itself, or Kiln if I get to team
programming.

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

2011-05-30 Thread Ben
I believe you should save the state in the onStop() method and bring
it back in through the onResume() method.  The act of changing screen
orientation stops the activity and restarts it in the new
orientation.  onStop() and onResume() should handle it for you.

On May 30, 3:54 am, shanmu nathan  wrote:
> Hi guys,
>          I need one help.. i dnt know how to save a state and restore the
> state while orientation changing.. can u help me pls..
>
> --
> With Regards,
>
> SHANMUGANATHAN. A
> Software Engineer Trainee,
> Citrisys Solution,
> Phone: +91.44.22311173
> Mail To: sayyadu...@citrisys.com

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


[android-developers] Spinner items missing selection radio button

2011-05-30 Thread Nadav Ben-Gal
Hey, i asked it at SO few days ago, no answer yet, hoped someone here
will have an idea...
(http://stackoverflow.com/questions/6146442/spinner-items-selection-
radio-missing)

When my items contains English and/or numeric signs, it shows the
radio selection near the item, but when it doesn't contains any
English and/or numeric signs (contains only Hebrew in my example) it
does not show the radio selection near the item.

For the adapters (array adapter) creation i used the layout
"android.R.layout.simple_spinner_item"

And before setting the Spinner adapter I did

 
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

The solution I found for now, is set the layout to
"simple_dropdown_item_1line"; this solves the problem by not showing
the radio button.

Any ideas on how to get the radio button visible always?


-
correction - it does not solve the problem, in _few_ of my spinner the
text is now whit (on a white background..)

Thanks,
Nadav

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] EditText stops displaying characters as I'm typing?

2011-05-13 Thread Ben S
Basically what happens is I will start typing on the keyboard (stock
and third party), and all of a sudden it stops showing characters I
type in the EditText, (sometimes) resets the caret to the beginning,
yet I know I'm still typing because the suggestions box shows the
characters as I type.  I've experienced the behavior on at least 5
different devices (running 2.2, 2.3) as well as the emulator (running
2.1) but can't seem to nail down a solution.

It is seemingly random; I'm not reading any error logs through DDMS
from the system, (the only thing I see being written :sometimes: is
WARN/IInputConnectionWrapper(991): endBatchEdit on inactive
InputConnection) so I'm a little baffled.

Here is what it looks like: http://i.stack.imgur.com/gsB49.png

Here is the XML layout of the EditText:


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">









And here is my code from the Activity:

et = (EditText) findViewById(R.id.etMain);

et.setOnEditorActionListener(new OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, 
KeyEvent
event) {
if ((event != null && (event.getKeyCode() ==
KeyEvent.KEYCODE_ENTER)) || actionId == EditorInfo.IME_ACTION_SEND) {
String sendText = 
v.getText().toString();

if (sendText.length() > 0) {
v.setText("");



}
}
return true;
}

return false;
}
    });


Appreciate any insights...let me know if you need anything else...

Ben

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Trade my Android Open Accessory Developer Kit (ADK) trade for your new Sprint Nexus S 4G?

2011-05-11 Thread Ben
I have one of the first official ADK (Android Open Accessory Developer
Kit) Arduino kits distributed by Google during IO today and I'm
looking to trade it for the brand new Sprint Nexus S 4G phone.  I hope
it is not inappropriate to put this out to android-developers mailing
list.

I happened to be in the room at IO when they gave out the ADK kits to
those attending the session, however I'm not a hardware hacker and I
doubt I will make much use of it.  I am building Android apps however,
and I'd really like to experiment with NFC which is on the Sprint
Nexus S device.

I'm not into price-gouging and won't put this on eBay for the highest
bidder (others will, I'm sure). Instead I just want to trade it for a
device more suited to my development.  For reference, a link on the
official Google pages to purchase this kit points to a Japanese online
retailer who are selling these for 31,500円, ~US$390 (http://www.rt-
shop.sakura.ne.jp/rt-shop/index.php) although they are currently out
of stock.

Accounting for shipping, customs fees and the fact this is out of
stock I think this equates to a fair trade for the phone.

If you are interested please send me an email.  I will also be at Day
2 of Google IO if you are interested in trading in person.

Thanks,
Ben

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


[android-developers] Re: Bluetooth

2011-03-28 Thread Nadav Ben-Gal


On Mar 27, 11:05 am, ehpaul  wrote:
> Yes. You can use Bluecove API.
>
> On Mar 26, 7:57 pm, Kristopher Micinski 
> wrote:
>
>
>
> > Nice find then, I hadn't known about that, but is it possible from Java?
>
> > Kris
>
> > On Sat, Mar 26, 2011 at 10:24 PM, ehpaul  wrote:
> > > It looks a better way is to make a l2cap connection and look at the
> > > exception.
>
> > > On Mar 26, 2:47 am, ehpaul  wrote:
> > > > So basically I will have a background thread that periodically tried
> > > > to connec and immediate disconnect?
>
> > > > On Mar 25, 4:35 pm, Kristopher Micinski 
> > > > wrote:
>
> > > > > On Fri, Mar 25, 2011 at 4:53 AM, ehpaul  wrote:
> > > > > > Hello, I am writing an android program that I need to know when a
> > > > > > bluetooth device (I know the Mac) is in range. The program also 
> > > > > > needs
> > > > > > to be aware when the device is not in range. Is there any way to do
> > > > > > this without establishing a connection?
>
> > > > > Not that I've seen from the Bluetooth API exposed to the user. I don't
> > > > > understand the underlying protocol horribly well, but you need to
> > > actually
> > > > > scan for the uuid using SDP, which requires a call to the API.
>
> > > > > > When the device is in range, I am able to call
> > > > > > BluetoothAdapter.getRemoteDevice and retrieve the friendly name. But
> > > > > > when I am not in range, it seems this information is cached. I was
> > > > > > thinking if I can use the friendly name as an indicator whether the
> > > > > > device is within range (i.e If friendly name is not null, then it's
> > > in
> > > > > > range). I am certain there is better way to do this. But it seems 
> > > > > > the
> > > > > > only way is to establishing a connection.
>
> > > > > I don't think there is a better way, at least with the current API.
> > > Unless
> > > > > by better way you mean a more elaborate synchronization mechanism or
> > > > > something like that. But yes, I think at least from the API exposed by
> > > the
> > > > > android system, you have to do polling.
>
> > > > > (I wanted to do what you described too, I think it's a common thing,
> > > but
> > > > > perhaps not the anticipated use of BT and / or the android API.)
>
> > > > > Kris
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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] Mounting and UnMounting SDCard

2011-02-11 Thread Nadav Ben-Gal
Hey,
After some searches (actually a lot :)) the only related solution i
found is to take the MountListener, MountService and their friends
(some other related class) and to add them to the project.
but when the code reaches to listenToSocket() function, it crashes on
socket.connect(address); (line 203) the reason is permission denied.
the apk contains the internet permission (which is the only somehow
related permission since we create a LocalSocket).
I also added a FactoryTest (app will run as root by manual)
permission. non of them helped.

from digging some more up, i saw that it connects to the VOLD (volume
demon) and send commands to him. i checked to see if VDC is exists
(thought it might by 2.3 breaking change or something like that...)
but its there.

the only thing i can think of is that i messed something up in the
Mount* files and I should call those functions via reflection but i
don't see how it will help me since it's crashing on permission
denied.

any ideas?
if anyone ever done it (or know what to do) It will help me a lot to
hear how and what I can do.

Thanks,
Nadav

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


Re: [android-developers] Re: Using the AudioRecord API

2011-01-24 Thread Ben McCann
Hi Tom,
Yes, I did get it figured out.  Here's a writeup I posted on my blog.
http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/

-Ben

<http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/>

Hi there,
Did you ever have any luck with this AudioRecord API? There are
questions on SO as well, but noone seems to give a clear answer:
http://stackoverflow.com/questions/4525206/android-audiorecord-class-process-live-mic-audio-quickly-set-up-callback-funct
http://stackoverflow.com/questions/4707994/android-audiorecord-questions/
Regards,
Tom

<http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/>

On Tue, May 19, 2009 at 3:30 PM, Keith Wiley  wrote:

>
> I would like to do this too, and I also took the OP's approach.  I
> can't actually get AudioRecord's ctor to set the state to
> STATE_INITIALIZED, but that's a separate issue.  I'm trying to
> understand the correct code structure.  You say we shouldn't use the
> position-based callback, but instead should making a blocking call to
> read().  Can you explain why that is?  For what application is the
> callback approach recommended instead of the blocking read() approach?
>
> Also, regardless of whether we *should* call read(), do you know why
> the OP said his callback was not being called?  What's wrong with the
> code he provided?
>
> On May 19, 2:54 pm, Dave Sparks  wrote:
> > You probably don't need the callback interface. The read() will block
> > until the buffer is full.
> >
> > If you are getting buffer overflows, you are probably spending too
> > much time in your doSomething() call.
> >
> > On May 19, 11:59 am, benmccann  wrote:
> >
> > > Thanks for the response.  I'm still foggy on the API usage though.  I
> > > basically want to listen to the mic and continually process the
> > > incoming audio.  Should I be using the OnRecordPositionUpdateListener
> > > at all?
> >
> > > Or should it look something like:
> > > recorder.startRecording()
> > > while(recorder.read(buffer) > 0) {
> > >   doSomething(buffer)
> >
> > > }
> >
> > > When I've done the latter I get buffer overflow exceptions.
> >
> > > On May 15, 3:51 pm, Dave Sparks  wrote:
> >
> > > > You need to call the read() method.
> >
> > > > On May 15, 3:15 pm, benmccann  wrote:
> >
> > > > > Any ideas?
> >
> > > > > Thanks,
> > > > > Ben
> >
> > > > > On May 15, 1:02 am, benmccann  wrote:
> >
> > > > > > Hi,
> > > > > > I'm trying to figure out how to use theAudioRecordclass.  I
> created
> > > > > > a callback with a logging message, but don't ever see it called.
>  Do
> > > > > > you see anything wrong with what I'm doing?  Do you have an
> example of
> > > > > > how to use the API?
> >
> > > > > > Thanks,
> > > > > > Ben
> >
> > > > > > import android.media.AudioFormat;
> > > > > > import android.media.AudioRecord;
> > > > > > import android.media.MediaRecorder;
> > > > > > import android.util.Log;
> >
> > > > > > public class AudioListener {
> >
> > > > > >   public static final int DEFAULT_SAMPLE_RATE = 8000;
> > > > > >   private static final int DEFAULT_BUFFER_SIZE = 4096;
> > > > > >   private static final int CALLBACK_PERIOD = 4000;  // 500 msec
> > > > > > (sample rate / callback period)
> > > > > >   private finalAudioRecordrecorder;
> >
> > > > > >   public AudioListener() {
> > > > > > this(DEFAULT_SAMPLE_RATE);
> > > > > >   }
> >
> > > > > >   private AudioListener(int sampleRate) {
> > > > > > recorder = newAudioRecord(MediaRecorder.AudioSource.DEFAULT,
> > > > > > sampleRate, AudioFormat.CHANNEL_CONFIGURATION_DEFAULT,
> > > > > > AudioFormat.ENCODING_DEFAULT, DEFAULT_BUFFER_SIZE);
> > > > > >   }
> >
> > > > > >   public void start() {
> > > > > > recorder.setPositionNotificationPeriod(CALLBACK_PERIOD);
> > > > > >
> recorder.setRecordPositionUpdateListener(newAudioRecord.OnRecordPositionUpdateListener()
> {
> > > > > >   @Override
> > > > > >   public void onMarkerReached(AudioRecordrecorder) {
&g

[android-developers] Re: NFC doubts. JSR 257 - 177

2011-01-22 Thread Ben Dodson
I had trouble cut/pasting from the git source to google group as well.
The package is here:

android.git.kernel.org/?p=platform/packages/apps/Tag.git;a=summary


On Jan 22, 4:30 pm, davemac  wrote:
> H. Dianne's link doesn't appear to work. Any help here?
>
> - dave
>
> On Jan 18, 9:12 pm, Dianne Hackborn  wrote:
>
>
>
>
>
>
>
> > There are links at the bottom of the page to the full source.  This is also
> > part of the platform sample code, so it is included with all of the other
> > sample code you can download.
>
> > Also of course you can always look at the actual code of the standard NFC
> > Tag app:
>
> >http://android.git.kernel.org/?p=platform/packages/apps/Tag.git;a=tree
>
> > On Tue, Jan 18, 2011 at 5:10 AM, mduffy215  wrote:
> > > Has anyone been able to create a demo for NFC on Android 2.3?
>
> > > The support from Google is incredibly lame:
> > >http://developer.android.com/resources/samples/NFCDemo/index.html
>
> > > The "demo" does not even give you the ability to download the source
> > > code!!!
>
> > > The demo is very generic and is not a working application.
>
> > > In order to be a full demo developers must have access to a sample NFC
> > > tag or reader.  Does anyone have any recommendations for a tag/reader
> > > they have actually used in creating a demo for NFC on Android 2.3?
>
> > > On Jan 18, 3:11 am, Gorka  wrote:
> > > > Hi,
>
> > > > I´ve been working on NFC with my Samsung 5230 mobile, and now I am
> > > > considering to move to Android. Before I do that I have some
> > > > questions. I´ve been reading the group and the developers web page,
> > > > but still have some doubts.
>
> > > > - Is it possible to read MIFARE DESFire tags using the standard API.
> > > > In order to do that I have always used the JSR 257 spec. but I don´t
> > > > know if it is possible to do something similar with the current
> > > > Android version.
>
> > > > - Suppose that I have a tag that is a sticker always affixed to the
> > > > mobile phone. Is it possible to read it always my application is
> > > > started?? In the mobile I used to work with it was a limitation since
> > > > once the sticker was detected the first time it could not detect it
> > > > anymore until I removed the sticker from the mobile NFC range and got
> > > > it close again. Would be possible using Android API to detect it
> > > > anytime I start the app without having to remove it??
>
> > > > - I am working on JavaCard too and I have developed an applet in order
> > > > to complete the authentication steps in a secure way. Is it possible
> > > > to access JavaCard applets in my SD card using Android API. Until that
> > > > moment I have used the JSR 177 (APDU Connection, ...) in order to do
> > > > that. The problem with others mobile is that to access the SD you have
> > > > to sign your midlet with a Verysign certificate, but I don´t want to
> > > > do this.
>
> > > > Thanks a lot.
> > > > Best 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 > >  cr...@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: Create Parser for the given JSON

2011-01-22 Thread Ben Dodson
http://developer.android.com/reference/org/json/JSONObject.html#JSONObject(java.lang.String)

On Jan 22, 5:44 am, DanH  wrote:
> A JSON parser is about 500 lines of code -- a few hours work.  (The
> encoder is another 250 or so.)  The hard part is parsing numbers per
> the JSON spec.
>
> Or you can probably find about 50 Java implementations on the net.
>
> On Jan 22, 2:45 am, Faheem Khatri  wrote:
>
>
>
>
>
>
>
> > I want to create parser for the given JSON below, Anyone help me out
> > for this.
> > { "0" : { "Distance" : "7.7364796125473",
> >       "LBS_CategoryMaster_ID" : "6",
> >       "LBS_POI_Description" : "",
> >       "LBS_POI_Latitude" : "24.85251",
> >       "LBS_POI_Longitude" : "67.03203",
> >       "LBS_POI_Name" : "POI1"
> >     },
> >   "1" : { "Distance" : "7.68653354773716",
> >       "LBS_CategoryMaster_ID" : "6",
> >       "LBS_POI_Description" : "",
> >       "LBS_POI_Latitude" : "24.85247",
> >       "LBS_POI_Longitude" : "67.03211",
> >       "LBS_POI_Name" : "POI1"
> >     },
> >   "2" : { "Distance" : "2.44026574305725",
> >       "LBS_CategoryMaster_ID" : "6",
> >       "LBS_POI_Description" : "",
> >       "LBS_POI_Latitude" : "24.85118",
> >       "LBS_POI_Longitude" : "67.03118",
> >       "LBS_POI_Name" : "POI2"
> >     },
> >   "3" : { "Distance" : "8.0421178896909",
> >       "LBS_CategoryMaster_ID" : "6",
> >       "LBS_POI_Description" : "",
> >       "LBS_POI_Latitude" : "24.85251",
> >       "LBS_POI_Longitude" : "67.03216",
> >       "LBS_POI_Name" : "POI3"
> >     },
> >   "4" : { "Distance" : "4.6843846750868",
> >       "LBS_CategoryMaster_ID" : "6",
> >       "LBS_POI_Description" : "",
> >       "LBS_POI_Latitude" : "24.8514",
> >       "LBS_POI_Longitude" : "67.03073",
> >       "LBS_POI_Name" : "POI4"
> >     }
>
> > }

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

2011-01-21 Thread Ben Dodson
I was looking through the git repository history and found some code
relating to P2P mode in Android. I understand it's not ready for use
by users and typical Android developers, but I was hoping to play
around with it myself. I was wondering if anyone else was playing with
this or had some experience to share.

The feature I'm trying to re-enable is called MyTag, and there are
relevant commits in the Nfc and libnfc-nxp, linked below. I also wrote
my own custom BroadcastReceiver with the hope of setting the tag value
from userspace. I'm just hoping to put together some demos on top of
nfc, so security and long-term stability aren't important to me.

Relevant commits:

Nfc:
http://android.git.kernel.org/?p=platform/packages/apps/Nfc.git;a=commit;h=825f01522a1d68cadb634c88101e96f842478926

http://android.git.kernel.org/?p=platform/packages/apps/Nfc.git;a=commit;h=1fc06b8d4dfd7e92c43cbd4c5aacf8fa66d181d1

http://android.git.kernel.org/?p=platform/packages/apps/Nfc.git;a=commit;h=ae66f8e306a46a24e4121b72b30d8beb5e1c08f9

Libnfc-nxp:
http://android.git.kernel.org/?p=platform/external/libnfc-nxp.git;a=commit;h=b70c3011edf13b3b79dddaefb971b6fd7c33e193

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

2010-12-21 Thread Ben
Hi,

I am developing an application that loads data via the internet on
start up or when the user clicks a refresh button. What I don't want
to happen is for the application to reload the data when the
application is restarted due to the orientation of the android device
is changed.

Is there any way to determine why the application has been restarted?

Regards

Ben

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

2010-12-09 Thread Ben Pellow
I have been seeing similar things to this as well.  I get this odd
"III" constructor output, and 100 errors every time I play an
mp3.  Samsung Vibrant Galaxy S log.  I have no idea why.  I get these
when audio plays, as well as when it fails:

11-19 14:09:41.950 W/MyMediaPlayer( 6226): prepareAsync called (1)
11-19 14:09:41.955 E/( 2207): III Inside Constructor of
PVMFMemoryBufferWriteDataStreamImpl
11-19 14:09:41.960 I/MyMediaPlayer.fireUserActivity( 6226): calling
userActivity to wake up prepareAsync()
11-19 14:09:41.990 E/MediaPlayer( 6226): message received msg=3,
ext1=0, ext2=0
11-19 14:09:41.990 E/MediaPlayer( 6226): callback application
11-19 14:09:41.990 E/MediaPlayer( 6226): back from callback
11-19 14:09:41.990 I/PlayerDriver( 2207): buffering (1)
11-19 14:09:41.990 E/MediaPlayer( 6226): message received msg=3,
ext1=1, ext2=0
11-19 14:09:41.990 E/MediaPlayer( 6226): callback application
11-19 14:09:41.990 E/MediaPlayer( 6226): back from callback
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:41.995 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:42.000 E/MediaPlayer( 6226): message received msg=3,
ext1=2, ext2=0
11-19 14:09:42.000 E/MediaPlayer( 6226): callback application
11-19 14:09:42.000 E/MediaPlayer( 6226): back from callback
11-19 14:09:42.000 E/MediaPlayer( 6226): message received msg=3,
ext1=4, ext2=0
11-19 14:09:42.000 E/MediaPlayer( 6226): callback application
11-19 14:09:42.000 E/MediaPlayer( 6226): back from callback
11-19 14:09:42.000 E/MediaPlayer( 6226): message received msg=3,
ext1=5, ext2=0
11-19 14:09:42.000 E/MediaPlayer( 6226): callback application
11-19 14:09:42.000 E/MediaPlayer( 6226): back from callback
11-19 14:09:42.000 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
11-19 14:09:42.005 E/( 2207): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl


Any information out there on this would be great.  Occasionally, songs
just fail.  But, even without failing I get 101 consecutive errors
from the MediaPlayer, starting with ext1=0 thru ext1=100, as well as
this "III" constructor business.  This makes finding real errors
in the log very very hard.

Bad Samsung.


On Dec 9, 8:41 am, Rich  wrote:
> Hello!
>
> I'm having some significant issues with MP3 streaming on large files
> on Samsung Devices with Android 2.1 (ie, the Samsung Galaxy S). This
> is using mfrederick's NPR-code for streaming mp3 support. Has anybody
> else encountered this? Does anybody have a Samsung phone which allows
> side-loading who would be willing to help debug this?
>
> Here is the dump trace. "SISO" apparently means Samsung India Software
> Operations
>
> 12-07 17:39:35.812 D/MediaPlayerService( 2209): getPlayerType : url 
> =http://127.0.0.1:60943/http://mymp3.mp3, filePath 
> =http://127.0.0.1:60943/http://mymp3.mp3
> 12-07 17:39:35.812 D/        ( 2209): SISO TEST registering
> PVMFRecognizerPluginFactory
> 12-07 17:39:35.812 D/        ( 2209): SISO TEST registering
> PVMFRecognizerPluginFactory success
> 12-07 17:39:35.822 E/        ( 2209): III Inside Constructor of
> PVMFMemoryBufferWriteDataStreamImpl
> 12-07 17:39:35.912 I/System.out( 2935): interface name: null
> 12-07 17:39:38.515 I/AudioHardwareALSA( 2209): Output standby
> called!!. Turn off PCM device.
> 12-07 17:39:41.147 D/dalvikvm( 2935): GC freed 890 objects / 108752
> bytes in 93ms
> 12-07 17:39:45.377 E/MediaPlayer( 2935): message received msg=3,
> ext1=0, ext2=0
> 12-07 17:39:45.377 E/MediaPlayer( 2935): callback application
> 12-07 17:39:45.377 E/MediaPlayer( 2935): back from callback
> 12-07 17:39:45.392 E/        ( 2209): III Inside Constructor of
> PVMFMemoryBufferReadDataStreamImpl
> 12-07 17:39:45.392 D/        ( 2209): SISO TEST
> PVOMA1FFRecognizerFactory::CreateRecognizerPlugin()
> 12-07 17:39:45.392 D/        ( 2

[android-developers] Need Help !!

2010-11-22 Thread Anis Ben Nsir
I'm using a TabActivity to run two activity.
In the first activity I'm using GestureDetector.Fling for flipping
between views of the first Activity.
I have tested the first activity and it works well.
But when I have add it into the TabHost using TasSpec  setContent(new
Intent(this,MyFlipper.class).
The problem that i'm no longer able to catch the fling.

Thank you for your help.

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


[android-developers] Determining whether StageFright or OpenCore is in use?

2010-10-28 Thread Ben O
I have an app that needs some conditional code depending on whether
it's using the old-style OpenCore media platform or StageFright.  I
noticed trouble on rooted phones where StageFright is disabled, and on
the Droid X where it still seems to use OpenCore out of the box, so
keying strictly off whether the device is running 2.2 isn't helpful.

Is there any way to determine programmatically which media decoder is
in use on a given phone?

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

2010-09-22 Thread ben
Is there any way you to determine the pixel value where a scroll view
stops on a fling. It's easy enough to find when the user is scrolling
the view with a touch but I see no way to determine the end point of a
fling. The only solution I could come up with is to use a gesture
detector to catch a fling and then calculate where it would stop based
on the velocity, is that the best way?

I'm trying to create a view that will indicate to the user when there
is more to scroll to, and then have the indicator vanish when the
scroll view is at the beginning or end.

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

2010-09-19 Thread Ben Pellow
I'm seeing this issue as well, and only with 2.2.  I've seen it with
the emulator, droid x, nexus one and moto droid.  It happens lot more
to me (10x+) with high bitrate streams than low ones (320 vs 120 kbps
mp3).  It seems intermittent and I can find nothing on the web posted
about it other than this thread.

It is a real problem with media apps running in 2.2.  The constant
"-2147483648" always appears with this MediaPlayer error, and could
probably be tracked down in the source.  The problem is not with
eMusic or the stream.  I have seen the same issue with streams hosted
by other services.

On Sep 18, 12:51 pm, jdeslip  wrote:
> Yes, it works fine on 2.1 and below.  This is almost certainly related
> to the problems the Pandora/Last.fm etc.. apps have on 2.2.  I just
> want to find out what the recommended tactic for developers with this
> problem is.  Is Google on verge of releasing an update 2.2?  Or is
> there an official workaround?
>
> On Sep 17, 11:58 pm, Indicator Veritatis  wrote:
>
> > If that were the problem, then why would it work under 1.5 and fail
> > under 2.2?
>
> > On Sep 17, 8:50 pm, Doug  wrote:
>
> > > Have you considered that eMusic might be doing something on the server
> > > side to prevent the stream from working?  Many sites that stream
> > > things will leave urls active for a limited time or require you to
> > > preserve an HTTP session.

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

2010-09-05 Thread ben
I would make sure your app isn't drawing anything to exact pixel
locations and sizes. If you're using the built in layouts you should
be in good shape. Also you can use the AVD manager to create an
emulator with larger resolutions and screen sizes. That should at
least give you some idea of what it will look like.



On Sep 5, 11:56 am, Droid  wrote:
> And is landscape view preferred or default for these bigger screens?
> Many of my apps are fixed to portrait...
>
> On Sep 5, 1:50 pm, ytbryan  wrote:
>
>
>
> > Hi all,
>
> > do we(developer) need to alter our app to suit the android
> > tablet(samsung galaxy tab)? or will them automatically run on the
> > tablet?
>
> > Is a documentation on developing for android tablet?
>
> > thanks!
> > bryan

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

2010-09-05 Thread ben
Dianne,

I understand that the market can't be opened up to everyone all at
once. I can only begin to imagine what a nightmare that would be to
manage. I just don't understand why this can't be more open like the
c2dm start was. C2DM can't have everyone on the market using it at
once. But at least it was open for everyone to apply to get into the
beta.

On Sep 5, 10:30 am, ben  wrote:
> Actually we do have the resources, and we do compete with them
> directly. I would say were highly competitive with them. And anyone
> who is a big player in the mobile market knows that being first to
> market is a huge huge advantage. Look at the current android market, a
> majority of the top apps on the market are the apps that were their
> first, or things everyone is going to use such Maps.
>
>  If they take users away from us then I don't see how our company
> benefits from that at all.
>
> On Sep 5, 2:28 am, "Maps.Huge.Info (Maps API Guru)" 
> wrote:
>
>
>
> > I don't see why we should have a problem with the "big boys" getting
> > first dibs on a new category of device (like Google TV). They have the
> > resources to invest in experimentation and will work with the Android
> > people in a close and time consuming manner. Do you have the resources
> > to throw a man year at a three month project? I certainly don't. Be
> > glad that there are companies that can and will do this as well all
> > benefit from their testing, debugging, development and investment.
>
> > Besides, what ever they publish will not be something you're going to
> > compete with anyway so it's not going to hurt you regardless.
>
> > -John Coryat

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