[android-developers] How to make customized View support accessibility

2012-08-21 Thread Wan-Ching
I would like to make my customized View to support accessibility in Jelly 
Bean. I reference the following document:
http://developer.android.com/guide/topics/ui/accessibility/apps.html and
CompoundButton.java
 
My custom View extends View and has its own states. When the user clicks on 
it, it changes its state. Currently, I override 
onInitialzedAccessibilityEvent(), onInitializeAccessibilityNodeInfo(), 
onPopulateAccessibilityEvent() and also call 
notifyAccessibilityStateChanged() when my state changes. The accessibility 
works fine when my custom view get focus. However, when I change the state 
by clicking, nothing talked back. What have I missed?

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

Re: [android-developers] NFC / Detecting another phone

2012-08-21 Thread Páll Zoltán
On Tue, Aug 21, 2012 at 3:40 AM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Mon, Aug 20, 2012 at 8:55 PM, Zoltán Páll pallzol...@gmail.com wrote:
  Hello,
 
 
  There are many topics that describe how to work with tags, but I'm
 trying to
  only detect when another phone was put close to mine, even if it's not
  sending anything. Just switched on screen and tapped to mine. The system
  plays some sound, so it's somehow hooked somewhere, but I can't get an
  intent in my app.
 
 

 There is no reliable way to do this. What are you trying do do?


I'm trying to do an NFC promotion stand, where people would come and lay
their card or phone and would get a sales coupon or a photo taken. I don't
need to read any info or filter out cards. As I wrote before, it works OK
with the cards but the phones need some software to emit the signal. I'm
trying to work around this. I'd like to avoid the step where the user
downloads and installs another piece of software.
As you said, it probably needs more low-level APIs than those included in
Android SDK.

Thanks for your reply.


 A 'phone' can be anything: it can act as a card/tag if it is in card
 emulation
 mode, or it can be sending you data in P2P mode. It can even be acting
 as a reader and trying to read *your* device.

 Generally, the Android NFC APIs are fairly high level, so you can't really
 do whatever you want. You have to stick to the higher level abstractions:
 reading a tag, NDEF push, Android Beam, etc.

 
  My app gets an intent when scanning a chip, but when putting another
 phone
  close, it only plays the sound (as if it failed, or as if it didn't have
 an
  app to handle the intent). Any idea how to do this? All I need is the
 event
  when someone puts an NFC chip/device in range.

 It tries to start P2P and fails, hence the sound. TAG_DISCOVERED should
 work as a general event, but for phones it will only work (maybe) if the
 device
 is in card emulation mode. And, AFAIK, you can really disable the built-in
 P2P logic (disabling Android Beam from Settings doesn't seem to do it), but
 I haven't really looked into this.

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 draw line between 2 touch points on image view in android.

2012-08-21 Thread Tilottama Gulame
Hi,

 I want to draw line between to touch points on image view. For getting 
1st point, I touch on  imageview and click the button1, after click button1 
i am getting first touch points i.e. (startX and startY).  For getting 2nd 
point, I touch on  imageview and click the button2, after click button1 i 
am getting second touch points i.e. (endX and endY). After getting 2nd 
touch point i want to draw line between startX,startY and endX, endY on 
button2 click.

   Please help me to do this. 

Thanks in advance.

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

Re: [android-developers] NFC / Detecting another phone

2012-08-21 Thread Nikolay Elenkov
On Tue, Aug 21, 2012 at 4:11 PM, Páll Zoltán pallzol...@gmail.com wrote:


 I'm trying to do an NFC promotion stand, where people would come and lay
 their card or phone and would get a sales coupon or a photo taken. I don't
 need to read any info or filter out cards. As I wrote before, it works OK
 with the cards but the phones need some software to emit the signal. I'm
 trying to work around this. I'd like to avoid the step where the user
 downloads and installs another piece of software.

Well you could have them 'beam' a link or something when using Android,
and take it from there. That wouldn't require any special software, but they
need to be running a compatible Android version.

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


Re: [android-developers] how to customize tab bar in some different shape

2012-08-21 Thread TreKing
On Mon, Aug 20, 2012 at 11:15 PM, Gaurav kumbhat.gau...@gmail.com wrote:

 can somebody please guide me how to do it.


No one is going to be able to guide you to do anything, especially
considering how vague your request is. What have you done? What exactly do
you need help with?


 i am new in developing android applications.


Then get to work reading the docs, playing with the examples, and learning
what you need to know to accomplish your task.

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

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

[android-developers] An Android library for Instagram - now on Github

2012-08-21 Thread Efi Merdler-Kravitz
Hey Guys,

We've been working really hard in the past year on our startup called 
BlinxBox https://play.google.com/store/apps/details?id=com.blinxbox. 
We've released a beta version couple of weeks ago for Android with 
Instagram support. 

We really liked the design patterns introduced by restFB and Facebook for 
Android and we decided to use them for an Instagram version.
Our release includes two libraries, one for authentication and one for REST 
api. 

As I said it's being used by us in the last couple of months internally and 
it's public for a couple of weeks now with no critical problems.

It's our chance to say thank you to the open source community and to 
contribute some of our own. 
You are more than welcomed to use it - https://github.com/efi-mk/restig

Cheers,
BlinxBox team

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

[android-developers] Prevent orientation change when users pushes display-turn-off/on button

2012-08-21 Thread Dmitriy F


I've got an activity that is in a landscape mode - it's a player. Whenever 
I hit display-off button activity gets recreated and the screen goes black. 
After that I hit display-on to bring the interface back and the activity 
gets recreated again.

I guess this is because on my samsung i9001 display button not only shuts 
down the display but also brings that system-desktop to the foreground - so 
it's the first orientation change that causes activity recreation. 
Furthermore, when display gets active again and the activity starts it 
needs to change orientation/create activity again(not sure about it).

My question is how do I prevent the first recreation of the activity when I 
hit display-off. Is it possible ?


P.S. Additionaly I'm worried that shutting down the display and recreating 
the activity might cause ineficient resource usage since usual 
action-sequence of the activity is to load data and start the playback. I 
think I can overcome it with some sort of boolean flag - but how do I set 
it exactly - watch for key codes ? 

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

Re: [android-developers] How to draw line between 2 touch points on image view in android.

2012-08-21 Thread Asheesh Arya
just go through this link
http://www.krvarma.com/2010/10/gesture-detection-in-android-part-1-of-2/

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

[android-developers] First android app

2012-08-21 Thread cham herbias
I am a computer engineering student. Can you help me with some suggestions 
about basic android app? . I have a very basic background of android 
programming and i want to learn more.

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

[android-developers] Google Play Content Policy

2012-08-21 Thread Sebastian Nowak
Hello,
I've just received an email from Google telling me that one of my apps 
violates developer terms and I have 7 days to comply. Here's what they say:

---
*REASON FOR WARNING*: Violation of the 
spamhttps://play.google.com/about/developer-content-policy.html#spam 
provisions 
of the Content Policy.

   - Do not post repetitive content.
   - Product descriptions should not be misleading or loaded with keywords 
   in an attempt to manipulate ranking or relevancy in the store’s search 
   results.

Your application will be removed if you do not make modifications to your 
application’s description to bring it into compliance within 7 days of the 
issuance of this notification
---

As far as I can understand the reason they think the app description is 
loaded with keywords, I seriously have no idea what does the Do not post 
repetitive content refers to. Does it mean there are other apps like this 
in the market? Mine was first, most innovative and is the most popular in 
its category. Or maybe it's because something is repeating in the 
description (well, it isn't)?

The question is - what is that point of Content Policy referring to?

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] Recommendations for XML parsing/generation libraries

2012-08-21 Thread Andrew Mackenzie
In our Android app so far we have been using the standard XmlPullParser 
parser and XML generation library.

But, I think there must be better options available - and ones that maybe 
parse an XML into a tree in memory and/or permit looking for elements in an 
XML document using XPath, etc...

So, I am looking for recommendations from others who have already used 
other XML Parsing and Generation libraries in production apps, with their 
plusses and minuses if you can...

I'd like to try and keep our app binary small, so that's one criteria: 
Library code size, and the others are pretty standard: efficient use of 
memory, and reasonable speed.

thanks in advance, Andrew

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

[android-developers] Google Cloud Messaging Payload Issue

2012-08-21 Thread Jorge Gil Royo
 

Hi all.

I'm making an application with a server (web) part and a client part in 
android. The web part is responsible for registering the device and send 
messages to the device using GCM.

The problem comes when I try to send a payload message to the mobile client 
application, the payload value comes as null.

The server code is as follows:

Message message = *new *Message.Builder().collapseKey(1
).timeToLive(3).delayWhileIdle(*true*).addData(payload, payload
).build();

System.*out*.println(message.getData().get(payload));

Result result = sender.send(message, registrationId, 5);

When printing on screen on the server, the result of payload value is 
payload, but its value is null on the client:

String newMessage = intent.getExtras().getString(*payload*);
System.*out*.println(newMessage);

Anyone know why this happens? How should I do it?

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

[android-developers] Re: Google Play Content Policy

2012-08-21 Thread RichardC
Link to your app(s) on the market please, or we will have to use our 
psychic powers :)

On Tuesday, August 21, 2012 10:01:06 AM UTC+1, Sebastian Nowak wrote:

 Hello,
 I've just received an email from Google telling me that one of my apps 
 violates developer terms and I have 7 days to comply. Here's what they say:

 ---
 *REASON FOR WARNING*: Violation of the 
 spamhttps://play.google.com/about/developer-content-policy.html#spam 
 provisions 
 of the Content Policy.

- Do not post repetitive content.
- Product descriptions should not be misleading or loaded with 
keywords in an attempt to manipulate ranking or relevancy in the store’s 
search results.

 Your application will be removed if you do not make modifications to your 
 application’s description to bring it into compliance within 7 days of the 
 issuance of this notification
 ---

 As far as I can understand the reason they think the app description is 
 loaded with keywords, I seriously have no idea what does the Do not post 
 repetitive content refers to. Does it mean there are other apps like this 
 in the market? Mine was first, most innovative and is the most popular in 
 its category. Or maybe it's because something is repeating in the 
 description (well, it isn't)?

 The question is - what is that point of Content Policy referring to?

 Thanks


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

Re: [android-developers] Re: Google Play Content Policy

2012-08-21 Thread Sebastian Nowak
Oh right, I knew I forgot about something :)
https://play.google.com/store/apps/details?id=com.amuse

2012/8/21 RichardC richard.crit...@googlemail.com:
 Link to your app(s) on the market please, or we will have to use our psychic
 powers :)


 On Tuesday, August 21, 2012 10:01:06 AM UTC+1, Sebastian Nowak wrote:

 Hello,
 I've just received an email from Google telling me that one of my apps
 violates developer terms and I have 7 days to comply. Here's what they say:

 ---
 REASON FOR WARNING: Violation of the spam provisions of the Content
 Policy.

 Do not post repetitive content.
 Product descriptions should not be misleading or loaded with keywords in
 an attempt to manipulate ranking or relevancy in the store’s search results.

 Your application will be removed if you do not make modifications to your
 application’s description to bring it into compliance within 7 days of the
 issuance of this notification
 ---

 As far as I can understand the reason they think the app description is
 loaded with keywords, I seriously have no idea what does the Do not post
 repetitive content refers to. Does it mean there are other apps like this
 in the market? Mine was first, most innovative and is the most popular in
 its category. Or maybe it's because something is repeating in the
 description (well, it isn't)?

 The question is - what is that point of Content Policy referring to?

 Thanks

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

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


[android-developers] How to find Ip address of a device via wifi?

2012-08-21 Thread Meena Rengarajan
I wanna get IP address. Using that Ip address must detect overall devices 
which is connected to a specific network/device.And should be able to get 
MAC address ? 
Please can anyone help me here ?

This is my code :

 tv=(TextView)findViewById(R.id.tv);
 wifi=(WifiManager)getSystemService(WIFI_SERVICE) ;
 btn=(Button)findViewById(R.id.btn);
 btn.setOnClickListener(new View.OnClickListener() {
 @Override
 public void onClick(View v) {
 try {
 InetAddress inet=InetAddress.getLocalHost();
 
Toast.makeText(getApplicationContext(),inet.toString(),Toast.LENGTH_LONG).show();
 } catch (Exception e) {
 System.out.println( );
}

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

2012-08-21 Thread Vivek Bhusal
I am working on application where i 
get android.os.NetworkOnMainThreadException error... I studied about this 
error. which says, i can use network task in main program and similar.. i 
need to use AsyncTask to do network related task in next thread...
I even tried to use AsyncTask but couldnt figure out.. Can anyone here help 
me with this problem. I have my code uploaded in 

https://github.com/Vivekbhusal/RSSFEED 

i have checked, application is working. i mean there is no problem in 
application coding.. so you dont have correct other part of coding... 
Also, when i deploy my application in Google API, it works perfectly fine, 
but in other AVD it shows problem.

Thanks in advance

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

[android-developers] Re: OnKeyDown and onTouchEvent of ScrollView of new sdk doesn't work

2012-08-21 Thread Narola Bhargav


@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
super.onKeyDown(keyCode, event);
if (keyCode == KeyEvent.KEYCODE_BACK) {
dba.close();
Intent result = new Intent(Complete);
setResult(Activity.RESULT_OK, result);
finish();
return true;
}
**return false;**
}

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

Re: [android-developers] How to find Ip address of a device via wifi?

2012-08-21 Thread Asheesh Arya
just go through this link
http://www.krvarma.com/2010/07/getting-ip-address-of-the-device-in-android/

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

Re: [android-developers] Re: Google Play Content Policy

2012-08-21 Thread Mark Murphy
On Tue, Aug 21, 2012 at 6:11 AM, Sebastian Nowak psno...@gmail.com wrote:
 Oh right, I knew I forgot about something :)
 https://play.google.com/store/apps/details?id=com.amuse

Try moving the list of sites to your own Web server, and link to that
list from your Play Store listing.

 As far as I can understand the reason they think the app description is 
 loaded with keywords, I seriously have no idea what does the Do not post 
 repetitive content refers to.

I'm not sure that they tailor each of the bullets for each mail recipient.

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

_The Busy Coder's Guide to Android Development_ Version 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


[android-developers] Exist error in all google maps imports and referrals to methods of it

2012-08-21 Thread lselwd


DURING import / run:

Error:

Exist error in all google maps imports and referrals to methods of it…

Q:

PROJECT IMPORTED BUT LIBRARY IS Android 2.3.3…WELL HOW *IMPORT* *AND*LIBRARY 
*BE Google API 2.3.3*? 

LIBRARY meant to Project folder structure…

This to *avoid* from scratch New Proj  *Copy* Files.

 

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

[android-developers] How to get battery usage from cpu usage in android

2012-08-21 Thread thejaswi s
I got cpu usage from following link
http://stackoverflow.com/questions/3118234/how-to-get-memory-usage-and-cpu-usage-in-android.
Can any one give idea about how much battery(in joules or watt) consumed to
use this amount of cpu. Is there any formula to calculate it.
Thanks in advance.

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

Re: [android-developers] How to get battery usage from cpu usage in android

2012-08-21 Thread Asheesh Arya
just go through this link might be you get some idea
http://www.krvarma.com/2010/07/getting-battery-information-in-android/

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

Re: [android-developers] Where to Host Downloadable Content for your app?

2012-08-21 Thread lbendlin
Another argument against including the database in the APK is that you save 
a considerable amount of storage memory. On some devices internal storage 
is very small - to the point where users have to remove one application to 
install another one - and if you include the database in the APK you 
actually end up wasting the space twice (since you cannot write to the APK 
and have to create a working copy of the database). Remember that not all 
Android devices can install APKs to external storage. 

What you could do is include only a fraction of the data in the APK, a sort 
of teaser,  and then let the user update the database when needed.


On Monday, August 20, 2012 9:57:19 PM UTC-4, saernz wrote:

 Ohh genius! 

 I never knew this service existed. This will help greatly and save me some 
 money as well!
 Also it saves me having to fully implement and test my download code.

 Thanks for that! 

 Cool looks like you can even set up test accounts for 
 application licensing which it uses
 to provide the download URL.

 I guess if I wanted to release onto different markets I could create 
 a separate APK, I guess
 I'll have to see how far the app goes first and if extending onto other 
 markets is worth it.

 On Tuesday, August 21, 2012 1:04:47 PM UTC+12, Nikolay Elenkov wrote:

 On Mon, Aug 20, 2012 at 8:08 AM, saernz sae...@gmail.com wrote: 
  Hiya! 
  
  I'm creating an app which requires a large database to work (about 
 15mb). I 
  have decided 
  to not include it in the apk because I think some people might dislike 
  having such a big file stored 
  on their phone memory, and have instead decided to have my application 
  download the database on first 
  use and to store it on the SD Card. 
  
  I guess I have two questions: 
  1) Is it a good idea in this situation to separate the database from 
 the 
  main apk package and host it else where, or is it completely possible 
 to 
  include such a large file in the apk package? 
  
  2) If I end up requiring the user to download the database on first 
 run, 
  where would the best place be to host the file? I've been considering 
 google 
  drive and maybe dropbox, but I'm concerned mainly 
  with the amount of bandwidth that is allowed each day 
 ... 

 You can have Google Play host it for you at no additional cost: 

 http://developer.android.com/guide/google/play/expansion-files.html 

 They also handle authentication, integrity checking, etc. 

 The downside is that you cannot use the same APK on other app 
 markets, since this depends on your Google Play account, etc. 



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

2012-08-21 Thread bob
 

Does anyone know what the story is with the package 
android.sec.enterprise?  I'm seeing some weird issues coming from there.


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

2012-08-21 Thread Arijit Das
Yes, the question is how to do the sync between two android phones?

On Monday, 20 August 2012 09:32:00 UTC+5:30, TreKing wrote:

 On Sat, Aug 18, 2012 at 12:13 AM, Arijit Das das.ar...@gmail.comjavascript:
  wrote:

 My app requires syncing of two sqlite database sitting on two different 
 phones via bluetooth/wifi. The database schema is consistent across the 
 phones. All I need is to have the rows of tables to be the union of all the 
 rows present in individual phones as a result of sync. 


 Thanks for sharing. Did you have a question?


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



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

[android-developers] Mouse Cursor in Android ICS

2012-08-21 Thread karuna vikas
Hi all,
 How to create a Mouse cursor pointer(arrow) for Android ICS4.0.3 from 
the OS level ?
   
 How to solve the Inject Event Permission error from the OS level.?
   
Kindly help me to solve this issue.. 
It is my own Modified OS only, So how i can solve the above issues,,

Thanks in advance.
Regards,
Karunakaran.V

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

[android-developers] ELM327 Bluetooth

2012-08-21 Thread Lloyd Carroll
Hello,

I have an ELM327 Bluetooth ODB2 adapter. I am just trying to get the 
Bluetooth Chat program to communicate. I click connect insecure or connect 
secure but neither establish a connection (even with the engine running). 
So, if there's someone out there with a little more experience with doing 
this, please help me out :) How do I establish a connection? 

Using eclipse.

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

2012-08-21 Thread Karthik
When I pass the bean object reference to the webservice in android I am getting 
the following issue.  

throws an exception: Cannot serialize: com.fsck.common.UserRequest@412d9e30

I am using the following bean class.

package com.fsck.common;

public class UserRequest {
 private String username;
 private String password;

public void setUsername(String username) {
this.username = username;
}

public String getUsername() {
return username;
}

 public void setPassword(String password) {
this.password= password;
}

public String getPassword() {
return password;
}

}


I am getting error while calling the service in the following line.

UserRequest userRequest = new UserRequest();
userRequest.setPassword(test);
userRequest.setUsername(test);
request.addProperty(userRequest, userRequest);
httpTransport.call(SOAP_ACTION, envelope);

Please help me how to pass the bean object to the webservice?

Thanks,
Karthik

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

2012-08-21 Thread Anshuman Damani
Hi friends...

I need a little help. I need to link my Sqlite database on android with an
existing database present on LAN ...
I know how to create a database and on how to link with a database on
internet..

Any ideas ??

Anshuman

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

2012-08-21 Thread Aizzat Suhardi
Hi,

I'm building a set of android apps built for Android phone that will be solely 
used by workers during their working shifts.

Are there any way for me to disable the internet browsing facility and other 
entertainment(ie: Youtube) but i still need the internet connection for the 
android apps i developed to send information data/logs back to my online data 
servers.

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] Re: WiFi-Direct hardware question

2012-08-21 Thread alu0506
So how do I get Wifi-Direct on a Nexus S?

On Friday, April 6, 2012 8:55:58 AM UTC-7, EricYan wrote:

 It depends on which wifi chip the device use.
 As I known, Broadcom bcm4329/4330 , Atheros 6005, and Ti 1281 can support 
 this feature on ICS. But, you need porting the suitable driver and firmware 
 for wifi direct. And you can test it  through wpa_supplicant firstly, if 
 the command connected success, you can open the use-feature, and open the 
 Settings menu, WFD demo.

 在 2012年4月4日星期三UTC+8上午11时50分01秒,Kiran写道:

 Hi All,
 I've seen quite a few discussions on Wifi-Direct, but haven't found the 
 answer to the following question.

 In the Android 4.0.x API, it says that *Note:* Not all Android-powered 
 devices support Wi-Fi Direct. If your application uses Wi-Fi Direct, 
 declare so with a 
 uses-featurehttp://developer.android.com/guide/topics/manifest/uses-feature-element.html
  element 
 in the manifest file:

 Is there a list of Android powered devices which support WiFi-Direct 
 currently?  Does the Samsung Galaxy Nexus S support it?  What hardware is 
 required by the phone in order to support this feature?

 Thanks in advance,
 Kiran



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

2012-08-21 Thread Carlos Salguero
Hi,

Just a question about this,

What if you go to settings from recent apps ?  (long press on home button). 
Then you don't end up in the home activity but in the one you were when you 
left.


Carlos



On Tuesday, March 29, 2011 6:19:17 AM UTC+2, Dianne Hackborn wrote:
 On Mon, Mar 28, 2011 at 11:01 AM, Nathan Fig knay...@gmail.com wrote:
 
 
 
 1) Does clearing the activity stack mean literally erasing it, or
 
 having the activities cycle through onCreate() and finish()?
 
 
 
 All activities in the stack being cleared will go through the lifecycle as if 
 they called finish().  The root activity will generally be kept as-is.
 
 
 
 2) How is the root activity identified? Is it simply the one with the
 
 DEFAULT, LAUNCHER or MAIN intent filters?
 
 
 
 This is basically the first activity in the stack.  The Intent is the Intent 
 used to start the stack.
  
 
 3) Launching from home screen in the documentation means the OS home
 
 screen or applications list, correct? I.e. from not within an
 
 application.
 
 
 
 It doesn't really matter -- it is just whoever sets 
 Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED.  The standard launcher sets this 
 when launching an app from an icon.  You can set it yourself if you want.
 
 
  4) Does clearTaskOnLaunch clear the activity stack whenever that
 
 activity is launched from the home screen, or just when that
 
 activity's process is started from the home screen? Because the docs
 
 indicate the former, but posts here indicate the latter. I guess this
 
 depends on what the definition of launch is?
 
 
 
 Whenever it is launched from the home screen.  The fact that processes are 
 killed and restarted should be invisible to the user.
 
 
  I've manipulated clearTaskOnLaunch in every way imaginable with
 
 absolutely no effect. I've placed it in my root activity in the
 
 manifest, then placed it in EVERY activity just to be sure, restarted
 
 my application after killing the process entirely, etc. My activity
 
 stack is simply not being cleared.
 
 
 
 Settings uses this as an example -- if you go in to settings, dig down a bit, 
 press home, and then launch settings again, you will end up in the home 
 activity instead of wherever you last went to.  It just sets the flag on the 
 main activity of its app.
 
 
 
 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@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] Google Maps API KML GroundOverlay..

2012-08-21 Thread joe131
Hi All,

I have a KML file and I'm interested in the
'GroundOverlay' and 'LatLonBox' parts of it.

I haven't seen any information on this, or how to
possibly load the KML file, in the API.

I saw some posts about using 'ItemizedOverlay'
to do some individual parts of it.

Would I have to use something like 'GeoPoint' instead of
the LatLonBox, to position, and draw the image myself using something like
turning the overlay image into a Drawable, like in the tutorial?

I would actually prefer to do the individual parts of the
KML, rather than using it in a URL, because it gives me more control,
but do I have to use kludgy ways to implement those parts of it?

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: Can't display GoogleMaps in application

2012-08-21 Thread Lloyd Carroll
You ever figure out what it was? I'm having the same issue. I have verified 
all the above suggestions to no avail. Now, here is the weird thing. I had 
have two phones, OS 4.1, and 2.3.3 and it works on the ICS phone. I'm using 
Google API: 8 and have all the permissions. I have set satellites off (and 
on) I have called invalidate(). I just don't understand why. The 2.3.3 
phone I wiped and reloaded before I tried the program on it. But I did go 
to market and install Google Maps. Is there something missing I wonder? It 
shows the Map control with the square grid on it, it shows the compass, and 
it shows the marker for my current location and even acts like it's 
updating the position (seems to moves around as I drive). But, no maps.

On Wednesday, July 22, 2009 12:02:20 PM UTC-5, Alex wrote:

 Hi guys, 

 I'm trying to display GoogleMaps in my application, but instead of map 
 I just get an empty screen with crosses and Google logo in the bottom 
 left corner. 

 I'm using Internet permission in manifest file, just as the library 
 com.google.android.maps. I have also supported my application with 
 Android Maps API key and I placed it in layout as android:apiKey value 
 for MapView, but it still can't display the map. 

 main.xml: 

 com.google.android.maps.MapView 
 android:id=@+id/myMapView 
 android:layout_width=fill_parent 
 android:layout_height=fill_parent 
 android:enabled=true 
 android:clickable=true 
 android:apiKey=07vNiwHa094tV14bUdyK0VTtXx0eeAZlk6WdKXQ 
 / 

 manifest.xml: 

 uses-library android:name=com.google.android.maps / 
 ... 
 uses-permission android:name=android.permission.INTERNET / 
 uses-permission 
 android:name=android.permission.ACCESS_FINE_LOCATION / 


 I have used two different apiKey values, regarding whether I signed 
 the application with debug or my own created keystore, but it didn't 
 work with none of them. 

 If someone can help me, I would really appreciate it. 


 Best regards, 
 Alex 



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

[android-developers] Does any body know how to stop emulator in command line window?

2012-08-21 Thread Xin Peng
Currently I just kill the Emulator-arm.exe as well as the 
adb.exe processes... 

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

[android-developers] Publish Different apk in google play store

2012-08-21 Thread Venkata Bhaskar K
We are working in an android project in which we are using a third party 
scanning library. We got the information from that third party that they 
compiled their scanning library for ARM v7. We have uploaded the app to the 
market and working fine for the devices with ARMv7.

Our app has to support from android 2.2 to latest version. There are some 
devices without armv7.

To support the non-armv7 devices, we removed the third party scan library and 
also removed all the related things from manifest file. According to goolge 
play mulitple apk 
support,(http://developer.android.com/guide/google/play/publishing/multiple-apks.html)
 we build different apks and uploaded with different configuration parameters 
for minSdkVersion uses-feature.

We expect those devices without ARM v7 would get this package. But the Google 
market says both the packages are targeted for the same users. And also it 
warned that one of the package will be ignored and won’t be served to the users.

But those users without ARM v7 are getting the message that ‘Your device isn’t 
compatible with this version’ and also for those users, the app is not even 
displaying when searching for our app.

We have searched a lot in the blogs and many sites, but we are not getting any 
details on how to get the multiple packages work for.

Kindly assist us how to create an app which is targeted for non-ARM v7 devices.

We are using Eclipse for our development and for creating the builds and we are 
developing with Java base.

thanks a lot in advance :)

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


Re: [android-developers] Digest for android-developers@googlegroups.com - 12 Messages in 7 Topics

2012-08-21 Thread hanumanth abhilash
Can any one suggest me how to write a program to send sms to another mobile
and what is the phone number input format to be given as parameter to
sendTextMessage() method.

Thanks
Abhilash

On Tue, Aug 21, 2012 at 11:54 AM, android-developers@googlegroups.comwrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/android-developers/topics

- Draw OverlappedBitmap - (Draw onto 
 itself).#13947db7bfa04bdf_group_thread_0[3 Updates]
- how to customize tab bar in some different 
 shape#13947db7bfa04bdf_group_thread_1[2 Updates]
- The lightest UI element to show a background 
 picture?#13947db7bfa04bdf_group_thread_2[1 Update]
- How to print value on console #13947db7bfa04bdf_group_thread_3 [3
Updates]
- Where to Host Downloadable Content for your 
 app?#13947db7bfa04bdf_group_thread_4[1 Update]
- NFC / Detecting another phone #13947db7bfa04bdf_group_thread_5 [1
Update]
- AsyncTask blocking UI thread #13947db7bfa04bdf_group_thread_6 [1
Update]

   Draw OverlappedBitmap - (Draw onto 
 itself).http://groups.google.com/group/android-developers/t/565f96006516d61d

Nathan nathan.d.mel...@gmail.com Aug 20 10:21PM -0700

On Monday, August 20, 2012 3:59:10 PM UTC-7, Kostya Vasilyev wrote:

 Can't you break the bitmap into smaller tiles, and create/render
them
 independently?


I am. For purposes of this discussion, assume that the picture is
constructed of tiles that are prerendered, but that may reside on
local
file storage or on a network. There is some other stuff going on too,
but
that is sufficient.

I did say rendering, but actual drawing calls are not the bottleneck.
It is
retrieving and decompressing the tiles.


 You could even detect that the user is scrolling in a particular
direction
 and prepare new tiles in advance.

True, but I'm not counting on being able to avoid showing any blank
spots.

Flickering is a different problem where a portion of the screen goes
from
fully rendered to blank to partially rendered to fully rendered.

To prevent the flickering problem, I would guess I should predict
which
tiles I will reuse and keep them in memory. That is essentially the
other
option I've considered.

So I have the choice between keeping a bunch of tiles in memory, or
having
enough buffer to do the overlapped bitmap draw. A cache of
uncompressed
tiles would probably take as much memory as having a double buffer for
the
offscreen bitmap.

Nathan




Sravanthi Dadu dadu.sravan...@gmail.com Aug 21 10:59AM +0530

hi,.
how to set a value 8 dinamically with out creating edittext. or any
number
that should be display as * when we click on button.
plz send me the solution.




Thanks  Regards,
Sravanthi Dadu.




Sravanthi Dadu dadu.sravan...@gmail.com Aug 21 11:00AM +0530

On Tue, Aug 21, 2012 at 10:59 AM, Sravanthi Dadu



   how to customize tab bar in some different 
 shapehttp://groups.google.com/group/android-developers/t/b049e3858da83538

Gaurav kumbhat.gau...@gmail.com Aug 20 09:15PM -0700

hey
i want to create a tab bar in some shape like the attached pic. can
somebody please guide me how to do it. i am new in developing android
applications.
thanking you
Gaurav




srikanth srikanthandroidgro...@gmail.com Aug 20 10:19PM -0700

me also thinking to create this type app

On Tuesday, August 21, 2012 9:45:38 AM UTC+5:30, Gaurav wrote:



   The lightest UI element to show a background 
 picture?http://groups.google.com/group/android-developers/t/86ecbd4069db

Sean Wang seanwang.mobit...@gmail.com Aug 20 09:33PM -0700

thx mark!



   How to print value on 
 consolehttp://groups.google.com/group/android-developers/t/cf662f9d00cac481

Sadhna Upadhyay sadhna.braah...@gmail.com Aug 21 09:12AM +0530

-- Forwarded message --
From: Sadhna Upadhyay sadhna.braah...@gmail.com
Date: Sun, Aug 19, 2012 at 3:16 PM
Subject: How to print value on console
To: android-developers@googlegroups.com


Hi everybody,

I am creating a database and i have done it, but i don't
know how to print those records on simulator,actually i am getting
value
from edit text box and i can print those value in Toast but i want to
print
those value on simulator when user click on View button to see records
please help me if any one have any clue.


*This is my code*
*
*
*
*
package SQliteDemo.s;

import java.util.Locale;

import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import 

[android-developers] TabHost and TabWidget problem on ICS

2012-08-21 Thread Robin Olsson


 have an app that uses a TabHost and TabWidget  to show activities and 
tabs. Everything work fine on devices pre android 4.0. However, when using 
a device with 4.0+ the tabs are not showing. It's just a gray area.

Does anyone have any idea why this happens? I know that ActivityGroup is 
deprecated, but it should still be working on  4.0 right? Or do you have 
to do it in another way? (the app is not worth changing everything to 
fragments)

I've included screens that shows what I mean.

Thanks! -Rob!

pre 4.0 --  
https://lh3.googleusercontent.com/-IoLQyh1HdUI/UDIt6wnBJGI/ABc/kSX-eqjeRVA/s1600/1.jpg

using 4.0+ -- 
https://lh6.googleusercontent.com/-6U4MyMTPUlk/UDIuEJl38MI/ABk/2PCe-dSVBi4/s1600/2.jpg


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

Re: [android-developers] 【android-developers】 It is a question about an activity-alias attribute.

2012-08-21 Thread Fred F Fan
Hi Reo,

What's your question, I don't know what your said.

On Tue, Aug 14, 2012 at 6:12 PM, 安藤玲生 ando.reo...@gmail.com wrote:

 I am a Japanese programmer.
 My name is Reo Ando

 It is a question about an activity-alias attribute.
 It is the processing A, if an alias is attached to Existing Activity and
 a class name is an alias on sauce.
 It does not work, although he would like to carry out processing B when
 coming by the original class name of Existing Activity.
 Please let me know.
 Please give me a sample code.

 thanks.









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


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

[android-developers] Malicious android keyboards

2012-08-21 Thread Alexander Arnesen
Is a malicious android keyboard a concern? If you have an app that contains 
sensitive data-input, would it be a viable option to develop/use an in-app 
keyboard to avoid the risk of a bad third-party-keyboard? 

And how would this kind of malicious keyboard be treated in Google Play? Would 
it be detected and removed?

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

2012-08-21 Thread Jose Luis Larraz
Hello i had the next problem, i want to answer to a Head request with a 
Content-Length. 

I put an example

HEAD /external/images/media/21.jpg HTTP/1.0

getcontentFeatures.dlna.org: 1

Host: 192.168.1.130:57645



HTTP/1.1 200 OK

Date: Tue, 21 Aug 2012 10:24:59 GMT

Cache-Control: no-cache

transferMode.dlna.org: Streaming

contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_CI=0

Content-Type: image/jpeg

Last-Modified: Sat, 25 Feb 2012 15:11:58 GMT

Content-Length: 60909

Accept-Ranges: bytes


The problem comes when i try to put Content-Length: 60909, I always get this 
exception Content-Length header already present.

This is my code

public void handle(HttpRequest request,
   HttpResponse response,
   HttpContext context) throws HttpException, IOException 
{
String method = 
request.getRequestLine().getMethod().toUpperCase(Locale.ENGLISH);

if(method.equals(HEAD))
{
MimeType mimeType = getMimeType(obj);
long sizeInBytes = getSizeInBytes(obj);



response.setHeader(Cache-control, no-cache);
response.setHeader(transferMode.dlna.org, Streaming);
String aMimeType = mimeType.toString();
String dlnaspec=;

if (aMimeType.equals(image/jpeg))
dlnaspec = DLNA.ORG_PN=JPEG_LRG;
else if (aMimeType.equals(audio/mpeg))
dlnaspec = DLNA.ORG_PN=MP3;
else if (aMimeType.equals(audio/L16) || 
aMimeType.equals(audio/wav))
dlnaspec = DLNA.ORG_PN=LPCM;

response.setHeader(contentFeatures.dlna.org, 
dlnaspec+;DLNA.ORG_OP=01;DLNA.ORG_CI=0);

response.setHeader(Content-Type, mimeType.toString());
response.setHeader(Accept-Ranges, bytes); 
response.setHeader(Content-Length, String.valueOf(sizeInBytes));
  response.setStatusCode(HttpStatus.SC_OK); 
}
}
-
I also have tried to put an empty entity in this way

ByteArrayInputStream stream=new ByteArrayInputStream(new byte[(int) 
sizeInBytes]);

InputStreamEntity entity = new InputStreamEntity(stream, sizeInBytes); 
response.setEntity(entity);
but the problem is that a Head method dont have a body message so this approach 
is not valid.

Any ideas?

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


Re: [android-developers] Mouse Cursor in Android ICS

2012-08-21 Thread Mark Murphy
On Tue, Aug 21, 2012 at 2:18 AM, karuna vikas kvk2551...@gmail.com wrote:
 Hi all,
  How to create a Mouse cursor pointer(arrow) for Android ICS4.0.3 from
 the OS level ?

  How to solve the Inject Event Permission error from the OS level.?

 Kindly help me to solve this issue..
 It is my own Modified OS only, So how i can solve the above issues,,

This list is for building apps with the Android SDK. Please visit
http://source.android.com for assistance with your own Modified OS.

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

_The Busy Coder's Guide to Android Development_ Version 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


[android-developers] Can I detect the users who turn on Wifi-direct without turning on Wifi-direct ?

2012-08-21 Thread chuny423
Hi, I'm S.Korean student. I'm studying Android P2P communication.

I'm wondering whether Android devices which turned off Wifi-direct button 
can search peers who turned on Wifi-direct button or not.

I think that active-(Wifi-direct) devices send some packets like a beacon 
message, then other devices can receive or listen those packets with 
inactive-(Wifi-direct) state.

However, I couldn't search any ways or API level support for this problem.

Could I get some 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] Help!!!

2012-08-21 Thread Androideed
Below is my code and I'm trying to send string commands to a non-Android 
device when I enter a command in an editable text and click a button, its 
not working! what am I doing wrong?

button.setOnClickListener(new Button.OnClickListener() { //click button(of 
course)
public void onClick(View v) {
 viewtext.setText(edittext2.getText()); //convert editable text 
to text view
 cmd = viewtext.toString(); //convert text view to string
 mbuttonclicks.start(); //some silly sound effect
 try {
 URL newUrl = new URL(http://192.168.1.8;); //start new local 
url connection
 URLConnection conn = newUrl.openConnection();  //open it
 

OutputStream outputStream = null; // start output 
stream to send msg to url
   try {
   if(cmd != null){ //if there's a command then do the 
following
   outputStream = conn.getOutputStream();
   BufferedOutputStream stream = new 
BufferedOutputStream(outputStream); //use buffered output 
   stream.write(cmd.getBytes()); //convert to bytes 
and send
   stream.flush(); //clean up leftover characters

   }}//command sent
   catch (IOException ex) {
 
   } 

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

[android-developers] Max length of GCM Registration id?

2012-08-21 Thread likemiller
What is the maximum length for a Registration ID issued by GCM servers? I 
am currently receiving Registration IDs which are 140 characters. Can 
anybody 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] Lowest memory (storage) consuming photo file format

2012-08-21 Thread William Reed
What do you guys think the best file format is for background images?
And for icons?

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

2012-08-21 Thread Nikolas von Randow
Hi Pedro,

i'm sorry, but this is not possible.
At least not on most devices.
Your number simply isn't stored on the telephone.

Regard,
Nikolas

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

[android-developers] Can Wifi-direct-inactive devices search the Wifi-direct-active peers?

2012-08-21 Thread chuny423
Hi, I'm S.Korean student. I'm studying the p2p communication between 
android devices.

Then, I'm wondering whether I can search the peers who turned on 
Wifi-direct button without turning on my Wifi-direct button or not.

Simply saying, 

Me: turned off Wifi-direct
Group A: turned on Wifi-direct 

Can I search group A? get a user information like a tag 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] E/SurfaceTexture(78): [SurfaceView] connect: already connected (cur=1, req=4)

2012-08-21 Thread Viktor Mazurenko
Hello. I have a problem with GL surface view and camera.

08-21 09:44:09.226: I/CameraService(81): Opening camera 1
08-21 09:44:09.226: I/CameraHardwareSec(81): int 
android::HAL_camera_device_open(const hw_module_t*, const char*, 
hw_device_t**): open camera 1
08-21 09:44:09.226: E/SecCamera(81): initCamera: m_cam_fd(30), m_jpeg_fd(0)
08-21 09:44:09.226: I/SecCamera(81): Name of input channel[1] is S5KA3DFX
08-21 09:44:09.242: E/SecCamera(81): initCamera: m_cam_fd2(31)
08-21 09:44:09.242: I/SecCamera(81): Name of input channel[1] is S5KA3DFX
08-21 09:44:09.242: I/SecCamera(81): initCamera : initialized
08-21 09:44:09.242: I/SecCamera(81): Name of input channel[1] is S5KA3DFX
08-21 09:44:09.242: I/CameraHardwareSec(81): int 
android::HAL_camera_device_open(const hw_module_t*, const char*, 
hw_device_t**): opened camera 1 (0x115b1e8)
08-21 09:44:09.246: I/AwesomePlayer(81): 
setDataSource_l('/system/media/audio/ui/camera_click.ogg')
08-21 09:44:09.250: I/CameraHardwareSec(81): int 
android::CameraHardwareSec::previewThreadWrapper(): starting
08-21 09:44:09.250: I/CameraHardwareSec(81): int 
android::CameraHardwareSec::previewThreadWrapper(): calling 
mSecCamera-stopPreview() and waiting
08-21 09:44:09.250: W/SecCamera(81): int android::SecCamera::stopPreview(): 
doing nothing because m_flag_camera_start is zero
08-21 09:44:09.293: I/AwesomePlayer(81): 
setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): Preview 
foramt Suported:
08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): Format: 
256
08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): Fps range 
Suported:
08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): min 7500 
max 3
08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): Target 
fps: min 7500 max 3
08-21 09:44:09.379: D/org.doubango.ngn.media.NgnCameraProducer(3669): Size 
range Suported:
08-21 09:44:09.379: D/org.doubango.ngn.media.NgnCameraProducer(3669): width 640 
height 480
08-21 09:44:09.379: D/org.doubango.ngn.media.NgnCameraProducer(3669): Preview 
size suported:
08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): width 640 
height 480
08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): width 320 
height 240
08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): width 176 
height 144
08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): width 640 
height 480
08-21 09:44:09.398: E/SurfaceTexture(78): [SurfaceView] connect: already 
connected (cur=1, req=4)
08-21 09:44:09.398: E/CameraService(81): native_window_api_connect failed: 
Invalid argument (-22)
08-21 09:44:09.398: I/CameraHardwareSec(81): void 
android::CameraHardwareSec::stopPreviewInternal() : preview not running, doing 
nothing
08-21 09:44:09.398: I/CameraHardwareSec(81): void 
android::CameraHardwareSec::stopPreviewInternal() : preview not running, doing 
nothing
08-21 09:44:09.398: I/CameraHardwareSec(81): int 
android::CameraHardwareSec::previewThreadWrapper(): return from wait
08-21 09:44:09.398: I/CameraHardwareSec(81): int 
android::CameraHardwareSec::previewThreadWrapper(): exiting
08-21 09:44:09.398: W/SecCamera(81): int android::SecCamera::stopPreview(): 
doing nothing because m_flag_camera_start is zero
08-21 09:44:09.402: W/SecCamera(81): int android::SecCamera::stopRecord(): 
doing nothing because m_flag_record_start is zero
08-21 09:44:09.402: I/SecCamera(81): DeinitCamera: m_cam_fd(30)
08-21 09:44:09.402: I/SecCamera(81): DeinitCamera: m_cam_fd2(31)
08-21 09:44:09.402: I/CameraService(81): Destroying camera 1
08-21 09:44:09.402: I/CameraHardwareSec(81): int 
android::HAL_camera_device_close(hw_device_t*)
08-21 09:44:09.402: I/SecCamera(81): DeinitCamera : already deinitialized
08-21 09:44:09.402: E/org.doubango.ngn.media.NgnCameraProducer(3669): 
java.io.IOException: setPreviewDisplay failed
08-21 09:44:09.406: W/System.err(3669): java.io.IOException: setPreviewDisplay 
failed
08-21 09:44:09.410: W/System.err(3669): at 
android.hardware.Camera.setPreviewDisplay(Native Method)
08-21 09:44:09.410: W/System.err(3669): at 
android.hardware.Camera.setPreviewDisplay(Camera.java:405)
08-21 09:44:09.414: W/System.err(3669): at 
org.doubango.ngn.media.NgnCameraProducer.openCamera(NgnCameraProducer.java:228)
08-21 09:44:09.414: W/System.err(3669): at 
org.doubango.ngn.media.NgnProxyVideoProducer$MyProxyVideoProducerPreview.openCamera(NgnProxyVideoProducer.java:703)
08-21 09:44:09.414: W/System.err(3669): at 
org.doubango.ngn.media.NgnProxyVideoProducer$MyProxyVideoProducerPreview.surfaceCreated(NgnProxyVideoProducer.java:683)
08-21 09:44:09.418: W/System.err(3669): at 
android.view.SurfaceView.updateWindow(SurfaceView.java:533)
08-21 09:44:09.418: W/System.err(3669): at 
android.view.SurfaceView.access$000(SurfaceView.java:81)
08-21 09:44:09.422: 

[android-developers] Re: How to set the bitmap to Transparent

2012-08-21 Thread Tiago Braga Machado
How set blackground of bitmap? I use so:

mBitmap = Bitmap.createBitmap(x, y, Bitmap.Config.ARGB_);
mCanvas = new Canvas(mBitmap);

@Override
protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);
}

On Monday, April 2, 2012 12:54:47 PM UTC-3, Perry168 wrote:

 hi, 

 I used following method to create a canvas. 

 temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_); 
 Canvas thisCanvas = new Canvas(temp); 

 I don't know why the canvas has a black background. How to create a 
 Transparent background for use? 

 Thanks a lot!

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

[android-developers] Opening/Displaying the default Android dialer in app?

2012-08-21 Thread RKS
I've looked at a few posts around but either I'm searching the wrong terms, 
seeing the actual answer but not getting it, or asking about something that is 
impossible. Mostly I see posts about replacing the dialer with a custom dialer 
or passing an input to the dialer.

I don't want to replace the dialer and I don't want to pass the data where the 
user inputs a number and then sends it to the dialer.

I would just like to bring in the default dialer inside the app. Example:

1) The user opens the app, they see their default dialer but with a different 
heading (just so they know they're inside my app). They enter the number, press 
call it calls the number.

2) If the user presses their call button outside of the app, they just do the 
normal dialer without my app. So the user never uses my app in (2).

I think that's pretty clear but if not just let me know. Since I can't seem to 
find any tutorials or posts about doing this online, it leads me to wonder if 
this is against a policy? Or perhaps a concern the users will be confused as to 
what they're doing? I think with a different heading they can know if they are 
using my app or not.

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

2012-08-21 Thread Yashwant Patil
Hi,
 
I have a very basic question, may be very stupid one, regarding meaining of 
open source in the context of Marketplace apps. 
 
Is it so that once I publish my app in Marketplace, the sourcecode of 
application indirectly becomes opensource?
 
Any pointers, links are appreciated
 
Regards
Yashwant

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

2012-08-21 Thread Adel Nizamutdinov
use database

On Monday, 20 August 2012 17:26:55 UTC+4, rahul kaushik wrote:

 i want to add dynamic array ion shared prefrence
 please suggest


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

2012-08-21 Thread ToTo
Good post miguel:) But i'm afraid this is for animating the layout inside 
the the activities. not the activity; isn't it? 

On Monday, January 11, 2010 7:03:05 PM UTC+5:30, Shrey wrote:

 How to animate activity entrance and exit?
 And activity relaunch after onNewIntent() ?

 I used android:theme in the manifest file but it didn't work for me.

 Cheeers,
 -Shrey



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

2012-08-21 Thread Nirav Parmar
Hello Cham,
In my opinion Developer site is best..it has good examples..Also you can
download API demos for each platform.You can learn lot from that demos..
Best of luck..

Regards,
Nirav

On Tue, Aug 21, 2012 at 2:29 PM, cham herbias cham.herb...@gmail.comwrote:

 I am a computer engineering student. Can you help me with some suggestions
 about basic android app? . I have a very basic background of android
 programming and i want to learn more.

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




-- 
Regards,

Nirav Parmar.

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

2012-08-21 Thread preet mehta
i have the same issue ple reply if u find how to import CSV file to the 
android database in a table among other tables ..!!
i am working on a project (for personal use) and i want to add the 6 
columns data to my application ...
i am new to 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] Branding concern for a universal Android app for both Phone and Tablet

2012-08-21 Thread teletextmobile
Hello,

We are about to launch a single application that works across all Android 
platforms to address the fragmentation challenges surrounding us.  This 
single application will determine which UI (tablet or smartphone) is 
delivered to the user by using the screen size of the device.

The concern we are facing now is that we want maintain our brand extension 
strategy by having a Phone Edition and a Tablet Edition of our app in 
Google Play but we aren't sure how to achieve this with only one build for 
the app.  Will Google agree to us submitting the same APK twice?  Once for 
the Phone Edition and once for the Tablet Edition?  Is there another way of 
going about this?  Appreciate your suggestions.

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

2012-08-21 Thread Sensovery
Hi everyone,
Do you know if it's possible to make a connection between a PC and an 
Android Device on 2.2 (get data from PC to Android's app) with just an USB 
cable ?
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: Code Coverage report through Emma says 0% coverage

2012-08-21 Thread arjun singh
Hello Neeraj,
I am stucked at the same place you are.I have developed my own testcase and 
even tested APIDemos but getting 0% coverage.Have you found any solution to 
this problem?
Thanks

On Monday, 19 July 2010 14:57:36 UTC+5:30, Neeraj Khatana wrote:

 Dear All, 

 I am creating the code coverage report but I am not able to get the 
 data in the code coverage. it says 0% code coverage. 
 Following are the steps : 

 I have import the ApiDemos as the main project. Then I created the 
 ApiDemosTest project for testing.Here I have copied the test folder of 
 ApiDemos into the ApiDemosTest src folder. 
 All the tests runs fine 

 Then i created the coverage.ec file with the help of adb shell command 
 as follows : 
 G:\android\android-sdk_r04-windows\android-sdk-windows\toolsadb shell 
 am instru 
 ment -w -e emma true -e coverage true com.example.android.apis.tests/ 
 android.tes 
 t.InstrumentationTestRunner 
 com.example.android.apis.ApiDemosApplicationTests: 
 com.example.android.apis.ApiDemosTest:. 
 com.example.android.apis.app.ForwardingTest:... 
 com.example.android.apis.app.LocalServiceTest:. 
 com.example.android.apis.os.MorseCodeConverterTest:. 
 com.example.android.apis.view.Focus2ActivityTest: 
 com.example.android.apis.view.Focus2AndroidTest:Generated code 
 coverage data 
  to /data/data/com.example.android.apis/files/coverage.ec 

 The above command run successfully and I copied the coverage.ec file 
 into the tools directory through adb pull command. 
 I don't found the coverage.em file there. Then I found the solution to 
 create this file as follows. 

 I also run the ApiDemosTest project as the Android project through 
 which i get the compiled code in the bin directory. 
 Then I created the coverage.em file with the following command: 
 C:\androidworkspace\ApiDemos_2_1_Testjava emma instr -ip bin -outdir 
 out 
 EMMA: processing instrumentation path ... 
 EMMA: instrumentation path processed in 769 ms 
 EMMA: [14 class(es) instrumented, 0 resource(s) copied] 
 EMMA: metadata merged into [C:\androidworkspace\ApiDemos_2_1_Test 
 \coverage.em] { 
 in 78 ms} 

 out folder is generated with the class files and coverage.em file is 
 also generated. 
 Then I copied this coverage.em file into the tools directory. After 
 that I created the report though this command: 
 G:\android\android-sdk_r04-windows\android-sdk-windows\toolsjava -cp 
 emma.jar e 
 mma report -r html -in coverage.ec -sp C:\androidworkspace 
 \ApiDemos_2_1_Test\src 
  -in coverage.em 
 EMMA: processing input files ... 
 EMMA: 2 file(s) read and merged in 11 ms 
 EMMA: no collected coverage data found in any of the data files [all 
 reports wil 
 l be empty] 
 EMMA: writing [html] report to [G:\android\android-sdk_r04-windows 
 \android-sdk-w 
 indows\tools\coverage\index.html] ... 

 I have got the coverage report with 0% coverage as it is written in 
 no collected coverage data found in any of the data files above. 

 please tell me why the coverage report is not showing properly. 
 how the coverage data can be collected into the both files. 
 I have also checked size of both the files. 
 I found that coverage.ec file is 1KB memory while coverage.em file is 
 5 KB. 
 Then I come to conclusion that coverage.ec file do not contain 
 coverage data. 
 Is my assumption right or wrong. 

 Tell me where I am wrong? 
 Please suggest me some solution in this regard so that I can get the 
 coverage result fine. 

 Waiting for your reply. 

 Thanks and Regards 
 Neeraj

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

[android-developers] Can't Install Android SDK r20.0.3

2012-08-21 Thread Thomas Eynon
I have a brand new PC fresh installation of Window 7 64 bit. I have attempted 
about 6 different versions of Java including 6u26, 6u32, 7u6, etc.

No matter what I install, regardless if I refresh or not, everytime I run the 
installer, I get Java SE Development Kit (JDK) not found.

Clicking the Back button and then pushing next again does not work.

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


[android-developers] Re: An Android library for Instagram - now on Github

2012-08-21 Thread zero
3ks!

On Tuesday, August 21, 2012 4:15:22 PM UTC+8, Efi Merdler-Kravitz wrote:

 Hey Guys,

 We've been working really hard in the past year on our startup called 
 BlinxBox https://play.google.com/store/apps/details?id=com.blinxbox. 
 We've released a beta version couple of weeks ago for Android with 
 Instagram support. 

 We really liked the design patterns introduced by restFB and Facebook for 
 Android and we decided to use them for an Instagram version.
 Our release includes two libraries, one for authentication and one for 
 REST api. 

 As I said it's being used by us in the last couple of months internally 
 and it's public for a couple of weeks now with no critical problems.

 It's our chance to say thank you to the open source community and to 
 contribute some of our own. 
 You are more than welcomed to use it - https://github.com/efi-mk/restig

 Cheers,
 BlinxBox team


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

Re: [android-developers] Android as a tool for enterprise solution and internet connectivity

2012-08-21 Thread Robert Greenwalt
Remove market and browser and youtube from your build?


On Tue, Aug 21, 2012 at 6:57 AM, Aizzat Suhardi aizzat.suha...@gmail.comwrote:

 Hi,

 I'm building a set of android apps built for Android phone that will be
 solely used by workers during their working shifts.

 Are there any way for me to disable the internet browsing facility and
 other entertainment(ie: Youtube) but i still need the internet connection
 for the android apps i developed to send information data/logs back to my
 online data servers.

 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


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

2012-08-21 Thread Mark Murphy
On Mon, Aug 20, 2012 at 5:35 PM, Alexander Arnesen
alexanderarne...@gmail.com wrote:
 Is a malicious android keyboard a concern?

In principle, yes.

 If you have an app that contains sensitive data-input, would it be a viable 
 option to develop/use an in-app keyboard to avoid the risk of a bad 
 third-party-keyboard?

Viable is subjective. An in-app keyboard that only allows users to
enter the letter 'Q' would not be viable, IMHO. A full keyboard that
is navigable only by touchscreen may not be viable for blind users.
And so on.

 And how would this kind of malicious keyboard be treated in Google Play? 
 Would it be detected and removed?

Hopefully. That is impossible for the community to answer.

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

_The Busy Coder's Guide to Android Development_ Version 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] Android as a tool for enterprise solution and internet connectivity

2012-08-21 Thread Mark Murphy
On Tue, Aug 21, 2012 at 9:57 AM, Aizzat Suhardi
aizzat.suha...@gmail.com wrote:
 Are there any way for me to disable the internet browsing facility and other 
 entertainment(ie: Youtube) but i still need the internet connection for the 
 android apps i developed to send information data/logs back to my online data 
 servers.

This list is for developing apps with the Android SDK. You cannot do
what you want via the Android SDK, for obvious security reasons.

Questions about creating your own modified version of Android where
you disable the internet browsing facility and other
entertainment(ie: Youtube) belong elsewhere.

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

_The Busy Coder's Guide to Android Development_ Version 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] Opening/Displaying the default Android dialer in app?

2012-08-21 Thread Mark Murphy
Answered here:

http://stackoverflow.com/questions/12042489/opening-displaying-the-default-dialer-in-app-actually-using-the-dialer-not-pass/12043804#12043804

On Mon, Aug 20, 2012 at 2:57 PM, RKS sean.sambor...@live.com wrote:
 I've looked at a few posts around but either I'm searching the wrong terms, 
 seeing the actual answer but not getting it, or asking about something that 
 is impossible. Mostly I see posts about replacing the dialer with a custom 
 dialer or passing an input to the dialer.

 I don't want to replace the dialer and I don't want to pass the data where 
 the user inputs a number and then sends it to the dialer.

 I would just like to bring in the default dialer inside the app. Example:

 1) The user opens the app, they see their default dialer but with a different 
 heading (just so they know they're inside my app). They enter the number, 
 press call it calls the number.

 2) If the user presses their call button outside of the app, they just do the 
 normal dialer without my app. So the user never uses my app in (2).

 I think that's pretty clear but if not just let me know. Since I can't seem 
 to find any tutorials or posts about doing this online, it leads me to wonder 
 if this is against a policy? Or perhaps a concern the users will be confused 
 as to what they're doing? I think with a different heading they can know if 
 they are using my app or not.

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

_The Busy Coder's Guide to Android Development_ 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] Max length of GCM Registration id?

2012-08-21 Thread Mark Murphy
On Tue, Aug 21, 2012 at 5:00 AM, likemiller mails...@gmail.com wrote:
 What is the maximum length for a Registration ID issued by GCM servers? I am
 currently receiving Registration IDs which are 140 characters. Can anybody
 help?

Try the android-gcm Google Group for GCM-specific questions.

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

_The Busy Coder's Guide to Android Development_ Version 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] Android Software Licensing

2012-08-21 Thread Harri Smått

On Aug 21, 2012, at 5:35 PM, Yashwant Patil yashvpa...@gmail.com wrote:

 Is it so that once I publish my app in Marketplace, the sourcecode of 
 application indirectly becomes opensource?

No. Source code most definitely does not become open source. However Java is 
maybe more easy language for reverse-engineering your application source code 
than many others but this does not mean it became open source.

--
H

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

2012-08-21 Thread John Coryat
I see a consistent length of 162 characters.

-John Coryat


On Tuesday, August 21, 2012 4:00:33 AM UTC-5, likemiller wrote:

 What is the maximum length for a Registration ID issued by GCM servers? I 
 am currently receiving Registration IDs which are 140 characters. Can 
 anybody help?

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

[android-developers] Re: Android Software Licensing

2012-08-21 Thread Swap
No its not that...
Open source means android Operating system is Open source that means you 
can create or develop android OS according to your need and you can edit 
add the source code 
and for that you dont have to pay 
and for the app u just have to submit build no source code to google;;;


On Tuesday, 21 August 2012 16:35:21 UTC+2, Yashwant Patil wrote:

 Hi,
  
 I have a very basic question, may be very stupid one, regarding meaining 
 of open source in the context of Marketplace apps. 
  
 Is it so that once I publish my app in Marketplace, the sourcecode of 
 application indirectly becomes opensource?
  
 Any pointers, links are appreciated
  
 Regards
 Yashwant


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

2012-08-21 Thread RKS
Yup, that's me.

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

[android-developers] Need to register a broadcastReceiver for available WiFi networks as they become available

2012-08-21 Thread dica
Hi guys

I'd like to have my application receive a notification as new Wifi networks 
are detected.  I realize there's a startScan() method in WifiManager that 
will run a scan of available networks, but I'm wondering if this info is 
broadcast from the Android OS itself on a regular basis?  Ideally, I'd like 
my app to receive notification as new Wifi networks become available 
without having to programatically run a startScan at regular intervals.  Is 
this possible?  If not, I'll kick off a new thread and run startScan() at 
regular intervals.  Can somebody make a recommendation as to how frequently 
this should be done without sucking the battery dry too quickly.  Again, 
ideally my app will be notified as soon as a Wifi network becomes available 
so I'm considering running the scan something like every 30 seconds to a 
minute.  Thoughts?

Tks

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

2012-08-21 Thread Mark Liversedge
I read the link. There were 2 responses, the second talked about a beta service 
from Phase. 

Did you read my question? 

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

2012-08-21 Thread surya pavan
Hai to all,
 i was created new account in google play, after creating one problem is 
occurred that is 
Your Registration to Google Play is still being processed.
You can upload applications to Google Play but you cannot publish until 
your registration is completed.

Plz help me

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

[android-developers] APN disappears if MCC is entered incorrectly

2012-08-21 Thread Anuj Goyal
Samsung Galaxy Nexus, Jellybean (4.1.1)

Steps to reproduce
1. Create a new APN
2. For MCC, type in 311.
3. Click Save - APN does not save!

Anyone else having this issue?

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

[android-developers] If forget to disable GPS receive from an App then, generallly disable GPS on the phone, and re-enable it

2012-08-21 Thread lselwd
Android DEV
a.
WAKE_LOCK in an App results affect all the Apps currently running including 
App initialise it? In other words has symptoms in other Apps?
b.
If *forget to* disable GPS receive from an App then, generallly disable GPS 
on the phone, and re-enable it, this App should continue GPS 
operationor depends on the App? 

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

Re: [android-developers] Recommended Database as a Service providers?

2012-08-21 Thread Kristopher Micinski
Apparently not that well... as the service was called Parse..

I did read your question, did you look and see that all of the
services mentioned were good uses, and that Parse was recommended and
still seems to be one of the better solutions out there that meets all
your needs.

You seem to imply I didn't consider your question, quite contrary:
Parse offers many of the services you require, with JSON integration
and other services, additionally it is supposed to remain free for
small apps, with larger services paying some proportional service
charge (same as any of the other services mentioned).

kris

On Tue, Aug 21, 2012 at 1:23 PM, Mark Liversedge liverse...@gmail.com wrote:
 I read the link. There were 2 responses, the second talked about a beta 
 service from Phase.

 Did you read my question?

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

2012-08-21 Thread authorwjf


 I know this is a pretty old thread, but I'm curious if it is still the 
 contention of the team at Google that changing the language at runtime is a 
 bad idea?  If so, what are my alternatives?  I am doing a kisosk 
 application for a corporate customer so I can't fire the intent to bring up 
 the OS config menu.  I did a similar product on an embedded Windows 
 (shudder) system a few years ago and we basically just implemented our own 
 getString(prompt_id, sel_lang) call along with a structure of flat files to 
 represent the different languages supported.  I suppose the same approach 
 is doable on Android but I'm curious if there is something already there 
 that I could/should be doing.  Thanks! 

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

Re: [android-developers] Recommended Database as a Service providers?

2012-08-21 Thread Kristopher Micinski
It looks like you also didn't really investigate into Parse, as it is
no longer a beta service, it seems to be enterprise level now ...

Others mentioned using things like Google App Engine, etc.., which are
fine alternatives.

The only other thing I can think of is using a web service you bake up yourself.

But other than those, I don't see how they failed to answer you question.

kris

On Tue, Aug 21, 2012 at 1:41 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 Apparently not that well... as the service was called Parse..

 I did read your question, did you look and see that all of the
 services mentioned were good uses, and that Parse was recommended and
 still seems to be one of the better solutions out there that meets all
 your needs.

 You seem to imply I didn't consider your question, quite contrary:
 Parse offers many of the services you require, with JSON integration
 and other services, additionally it is supposed to remain free for
 small apps, with larger services paying some proportional service
 charge (same as any of the other services mentioned).

 kris

 On Tue, Aug 21, 2012 at 1:23 PM, Mark Liversedge liverse...@gmail.com wrote:
 I read the link. There were 2 responses, the second talked about a beta 
 service from Phase.

 Did you read my question?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] How to implement TextureView functionality in Gingerbread 2.3 (or how to use OpenGL inside a ScrollView)

2012-08-21 Thread aprogrammer
Hi, I'd like to do some 2G OpenGL rendering inside a ScrollView. The 
rendering code is in C++ and the rest of the ScrollView UI is based on 
Android framework UI elements.

It seems like OpenGL drawing should be done on a SurfaceView (which can be 
passed from Java to C++)
However, SurfaceView elements don't scroll with the rest of a ScrollView 
and so it seems like I won't be able to use the SurfaceView with a 
ScrollView

My understanding is that the TextureView in ICS/4.0 permits OpenGL drawing 
and also supports scrolling inside a ScrollView. So this meets my needs for 
new devices.
However, I'd also like to support older devices (Gingerbread/2.3 and 
upwards).
I'm not sure if this can be done (for instance, I'm not sure if the OpenGL 
drawing can be rendered to a bitmap and then have the bitmap placed inside 
a ScrollView)

1. Does anyone know if and how it is possible to implement this for Android 
2.3 ?
iow is it possible to place an OpenGL drawing inside a ScrollView - or is 
the Canvas approach my only option ?

2. A second (related) question - Can I place a Canvas object inside a 
ScrollView, pass the Canvas object to C++ code and then use Skia apis to 
draw on the Canvas object

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

[android-developers] openRawResource: does compressed files in APK get uncompressed completely?

2012-08-21 Thread Tamás Kovács
Hello,

I have a custom file format in res/raw, which means it will get
compressed in APK.

Question:

Assume my application is installed on the device. When I open a file
via openRawResource(), does it completely uncompress the file in the
memory?

E.g. if it's a 3MB file, will it uncompress it in memory? If I only
need 10KB data from a certain offset (and I reach it via
BufferedInputStream.skip), will it still consume 3MB when
openRawResource() is called?

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


[android-developers] Issue with the basic if statement

2012-08-21 Thread Waheed Rafiq
Hi guys , I am new to android development 

for sometime I have try to resolve  the if statement issue within my code 
but can't seem to understand why it does not work

here is my code that I was learning from online tutorial 

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;

xmlns:tools=http://schemas.android.com/tools;

android:layout_width=match_parent

android:layout_height=match_parent 


TextView

android:id=@+id/textView1

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_centerHorizontal=true

android:layout_centerVertical=true

android:padding=@dimen/padding_medium

android:text=@string/hello_world

tools:context=.MainActivity /


Button

android:id=@+id/button1

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_below=@+id/textView1

android:layout_centerHorizontal=true

android:layout_marginTop=59dp

android:text=Edit me  // on this line I name the button Edit Me

if(android.text=Hussian Waheed) android.text=Change Me; // on 
this line I am trying to say if the button is Edit Me then change this to 
Change Me 


all I get is a error stating my if statment requires a equal , I just don't 
understand it. really would like someone to give me a better example of how 
to change a button name to different button name. 


thanks




  

   /





/RelativeLayout

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

2012-08-21 Thread Kristopher Micinski
You seem to be quite confused... You can't write an if statement
inside XML, it's not interactive (computation), it's just static XML.

What you need to do is put that in your java code,

kris

On Tue, Aug 21, 2012 at 4:40 PM, Waheed Rafiq wra...@gmail.com wrote:
 Hi guys , I am new to android development

 for sometime I have try to resolve  the if statement issue within my code
 but can't seem to understand why it does not work

 here is my code that I was learning from online tutorial

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;

 xmlns:tools=http://schemas.android.com/tools;

 android:layout_width=match_parent

 android:layout_height=match_parent 


 TextView

 android:id=@+id/textView1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_centerHorizontal=true

 android:layout_centerVertical=true

 android:padding=@dimen/padding_medium

 android:text=@string/hello_world

 tools:context=.MainActivity /


 Button

 android:id=@+id/button1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_below=@+id/textView1

 android:layout_centerHorizontal=true

 android:layout_marginTop=59dp

 android:text=Edit me  // on this line I name the button Edit Me

 if(android.text=Hussian Waheed) android.text=Change Me; // on
 this line I am trying to say if the button is Edit Me then change this to
 Change Me


 all I get is a error stating my if statment requires a equal , I just don't
 understand it. really would like someone to give me a better example of how
 to change a button name to different button name.


 thanks






/





 /RelativeLayout


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: openRawResource: does compressed files in APK get uncompressed completely?

2012-08-21 Thread bob
 

If you name the file .mp3, it won't use compression at all.



On Tuesday, August 21, 2012 3:25:38 PM UTC-5, Tamás Kovács wrote:

 Hello, 

 I have a custom file format in res/raw, which means it will get 
 compressed in APK. 

 Question: 

 Assume my application is installed on the device. When I open a file 
 via openRawResource(), does it completely uncompress the file in the 
 memory? 

 E.g. if it's a 3MB file, will it uncompress it in memory? If I only 
 need 10KB data from a certain offset (and I reach it via 
 BufferedInputStream.skip), will it still consume 3MB when 
 openRawResource() is called? 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 implement TextureView functionality in Gingerbread 2.3 (or how to use OpenGL inside a ScrollView)

2012-08-21 Thread bob
 

If it is just 2d, why bother with OpenGL?


In general, OpenGL does not play well with others.



On Tuesday, August 21, 2012 3:19:51 PM UTC-5, aprogrammer wrote:

 Hi, I'd like to do some 2G OpenGL rendering inside a ScrollView. The 
 rendering code is in C++ and the rest of the ScrollView UI is based on 
 Android framework UI elements.

 It seems like OpenGL drawing should be done on a SurfaceView (which can be 
 passed from Java to C++)
 However, SurfaceView elements don't scroll with the rest of a ScrollView 
 and so it seems like I won't be able to use the SurfaceView with a 
 ScrollView

 My understanding is that the TextureView in ICS/4.0 permits OpenGL drawing 
 and also supports scrolling inside a ScrollView. So this meets my needs for 
 new devices.
 However, I'd also like to support older devices (Gingerbread/2.3 and 
 upwards).
 I'm not sure if this can be done (for instance, I'm not sure if the OpenGL 
 drawing can be rendered to a bitmap and then have the bitmap placed inside 
 a ScrollView)

 1. Does anyone know if and how it is possible to implement this for 
 Android 2.3 ?
 iow is it possible to place an OpenGL drawing inside a ScrollView - or is 
 the Canvas approach my only option ?

 2. A second (related) question - Can I place a Canvas object inside a 
 ScrollView, pass the Canvas object to C++ code and then use Skia apis to 
 draw on the Canvas object


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

[android-developers] Using the new RTP libraries to stream with NAT in the way

2012-08-21 Thread Shaun
If you've used the new RTP libs you know that when you create an audio 
stream it magically decides what port it plans to use. Which works great 
when your RTP is coming directly to your publicly exposed IP address, but 
since almost none of us have this luxury and almost everyone is behind NAT 
in my application currently I have to punch a hole through the NAT router 
by sending a packet from my local RTP port to the RTP server on it's 
sending audio port. I can get this to work and the audio will stream in *
without* the new rtp libs picking up the audio, but how do I accomplish 
this trick with the new libs since they require a bind to the local ip 
address before it will give me the intended recipient port and you can't 
double bind to a port/ip address. Thanks!

My setup looks like this:

inRtpStream = new AudioStream(InetAddress.getLocalHost()); 
inRtpStream.setMode(RtpStream.MODE_NORMAL);
inRtpStream.setCodec(AudioCodec.PCMU);

and then my punch hole code looks like this:


public static void punchHole(final int pPort, final String pRemoteHost) { 

(new Thread() { 

public void run() { 

try { 

String host = lServer; 

int port = pPort; 
byte[] message = Java Source and Support.getBytes(); 

// Get the internet address of the specified host 
InetAddress address = InetAddress.getByName(pRemoteHost); 
Log.i(punchHole, Punching a hole from port  + getAudio_port() +  to 
port  + port +  on address  + address.getHostAddress()); 

// Initialize a datagram packet with data and address 
DatagramPacket packet = new DatagramPacket(message, message.length, 
address, port); 

// Create a datagram socket, send the packet through it, 
// close it. 
DatagramSocket dsocket = new DatagramSocket(getAudio_port()); 
dsocket.send(packet); 
dsocket.close(); 
dsocket = null; 
packet = null; 
} catch (Exception e) { 
e.printStackTrace(); 
}
} 
}).start(); 
}

If I call punchHole(remote_audio_port, remote_media_address); after the 
audiostream is set then it errors with:

java.net.BindException: bind failed: EADDRINUSE (Address already in use)

Shaun

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

2012-08-21 Thread bob
 

It's probably an issue with your payment of 25 dollars being processed or 
possibly the country you are in.



On Tuesday, August 21, 2012 12:34:45 PM UTC-5, surya pavan wrote:

 Hai to all,
  i was created new account in google play, after creating one problem is 
 occurred that is 
 Your Registration to Google Play is still being processed.
 You can upload applications to Google Play but you cannot publish until 
 your registration is completed.

 Plz help me


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

[android-developers] Re: E/SurfaceTexture(78): [SurfaceView] connect: already connected (cur=1, req=4)

2012-08-21 Thread bob
 

Sounds like you are closing the camera before you try to use it?


08-21 09:44:09.402: I/CameraHardwareSec(81): int 
android::HAL_camera_device_close(hw_device_t*)

08-21 09:44:09.402: I/SecCamera(81): DeinitCamera : already deinitialized

08-21 09:44:09.402: E/org.doubango.ngn.media.NgnCameraProducer(3669): 
java.io.IOException: setPreviewDisplay failed





On Tuesday, August 21, 2012 8:47:26 AM UTC-5, Viktor Mazurenko wrote:

 Hello. I have a problem with GL surface view and camera.

 08-21 09:44:09.226: I/CameraService(81): Opening camera 1
 08-21 09:44:09.226: I/CameraHardwareSec(81): int 
 android::HAL_camera_device_open(const hw_module_t*, const char*, 
 hw_device_t**): open camera 1
 08-21 09:44:09.226: E/SecCamera(81): initCamera: m_cam_fd(30), m_jpeg_fd(0)
 08-21 09:44:09.226: I/SecCamera(81): Name of input channel[1] is S5KA3DFX
 08-21 09:44:09.242: E/SecCamera(81): initCamera: m_cam_fd2(31)
 08-21 09:44:09.242: I/SecCamera(81): Name of input channel[1] is S5KA3DFX
 08-21 09:44:09.242: I/SecCamera(81): initCamera : initialized
 08-21 09:44:09.242: I/SecCamera(81): Name of input channel[1] is S5KA3DFX
 08-21 09:44:09.242: I/CameraHardwareSec(81): int 
 android::HAL_camera_device_open(const hw_module_t*, const char*, 
 hw_device_t**): opened camera 1 (0x115b1e8)
 08-21 09:44:09.246: I/AwesomePlayer(81): 
 setDataSource_l('/system/media/audio/ui/camera_click.ogg')
 08-21 09:44:09.250: I/CameraHardwareSec(81): int 
 android::CameraHardwareSec::previewThreadWrapper(): starting
 08-21 09:44:09.250: I/CameraHardwareSec(81): int 
 android::CameraHardwareSec::previewThreadWrapper(): calling 
 mSecCamera-stopPreview() and waiting
 08-21 09:44:09.250: W/SecCamera(81): int 
 android::SecCamera::stopPreview(): doing nothing because 
 m_flag_camera_start is zero
 08-21 09:44:09.293: I/AwesomePlayer(81): 
 setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
 08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 Preview foramt Suported:
 08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 Format: 256
 08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): Fps 
 range Suported:
 08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): min 
 7500 max 3
 08-21 09:44:09.375: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 Target fps: min 7500 max 3
 08-21 09:44:09.379: D/org.doubango.ngn.media.NgnCameraProducer(3669): Size 
 range Suported:
 08-21 09:44:09.379: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 width 640 height 480
 08-21 09:44:09.379: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 Preview size suported:
 08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 width 640 height 480
 08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 width 320 height 240
 08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 width 176 height 144
 08-21 09:44:09.382: D/org.doubango.ngn.media.NgnCameraProducer(3669): 
 width 640 height 480
 08-21 09:44:09.398: E/SurfaceTexture(78): [SurfaceView] connect: already 
 connected (cur=1, req=4)
 08-21 09:44:09.398: E/CameraService(81): native_window_api_connect failed: 
 Invalid argument (-22)
 08-21 09:44:09.398: I/CameraHardwareSec(81): void 
 android::CameraHardwareSec::stopPreviewInternal() : preview not running, 
 doing nothing
 08-21 09:44:09.398: I/CameraHardwareSec(81): void 
 android::CameraHardwareSec::stopPreviewInternal() : preview not running, 
 doing nothing
 08-21 09:44:09.398: I/CameraHardwareSec(81): int 
 android::CameraHardwareSec::previewThreadWrapper(): return from wait
 08-21 09:44:09.398: I/CameraHardwareSec(81): int 
 android::CameraHardwareSec::previewThreadWrapper(): exiting
 08-21 09:44:09.398: W/SecCamera(81): int 
 android::SecCamera::stopPreview(): doing nothing because 
 m_flag_camera_start is zero
 08-21 09:44:09.402: W/SecCamera(81): int android::SecCamera::stopRecord(): 
 doing nothing because m_flag_record_start is zero
 08-21 09:44:09.402: I/SecCamera(81): DeinitCamera: m_cam_fd(30)
 08-21 09:44:09.402: I/SecCamera(81): DeinitCamera: m_cam_fd2(31)
 08-21 09:44:09.402: I/CameraService(81): Destroying camera 1
 08-21 09:44:09.402: I/CameraHardwareSec(81): int 
 android::HAL_camera_device_close(hw_device_t*)
 08-21 09:44:09.402: I/SecCamera(81): DeinitCamera : already deinitialized
 08-21 09:44:09.402: E/org.doubango.ngn.media.NgnCameraProducer(3669): 
 java.io.IOException: setPreviewDisplay failed
 08-21 09:44:09.406: W/System.err(3669): java.io.IOException: 
 setPreviewDisplay failed
 08-21 09:44:09.410: W/System.err(3669): at 
 android.hardware.Camera.setPreviewDisplay(Native Method)
 08-21 09:44:09.410: W/System.err(3669): at 
 android.hardware.Camera.setPreviewDisplay(Camera.java:405)
 08-21 09:44:09.414: W/System.err(3669): at 
 org.doubango.ngn.media.NgnCameraProducer.openCamera(NgnCameraProducer.java:228)
 08-21 09:44:09.414: W/System.err(3669): at 
 

Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Waheed Rafiq
you defo got one thing right  I am confused -:)  I actually thought I was
writing code in java ?  so this now begs the question where do I write the
code if not in MyFirstApp.main

I am new to Java and XML

thanks for your prompt reply
On Aug 21, 2012 9:46 PM, Kristopher Micinski krismicin...@gmail.com
wrote:

 You seem to be quite confused... You can't write an if statement
 inside XML, it's not interactive (computation), it's just static XML.

 What you need to do is put that in your java code,

 kris

 On Tue, Aug 21, 2012 at 4:40 PM, Waheed Rafiq wra...@gmail.com wrote:
  Hi guys , I am new to android development
 
  for sometime I have try to resolve  the if statement issue within my code
  but can't seem to understand why it does not work
 
  here is my code that I was learning from online tutorial
 
  RelativeLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 
  xmlns:tools=http://schemas.android.com/tools;
 
  android:layout_width=match_parent
 
  android:layout_height=match_parent 
 
 
  TextView
 
  android:id=@+id/textView1
 
  android:layout_width=wrap_content
 
  android:layout_height=wrap_content
 
  android:layout_centerHorizontal=true
 
  android:layout_centerVertical=true
 
  android:padding=@dimen/padding_medium
 
  android:text=@string/hello_world
 
  tools:context=.MainActivity /
 
 
  Button
 
  android:id=@+id/button1
 
  android:layout_width=wrap_content
 
  android:layout_height=wrap_content
 
  android:layout_below=@+id/textView1
 
  android:layout_centerHorizontal=true
 
  android:layout_marginTop=59dp
 
  android:text=Edit me  // on this line I name the button Edit Me
 
  if(android.text=Hussian Waheed) android.text=Change Me; // on
  this line I am trying to say if the button is Edit Me then change this
 to
  Change Me
 
 
  all I get is a error stating my if statment requires a equal , I just
 don't
  understand it. really would like someone to give me a better example of
 how
  to change a button name to different button name.
 
 
  thanks
 
 
 
 
 
 
 /
 
 
 
 
 
  /RelativeLayout
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Kristopher Micinski
I would recommend following a tutorial more closely until you get the
hang of things..

The XML is only to define a layout (it is in a '.xml' file), the Java
code (in a '.java' file) defines the action your app takes.

kris

On Tue, Aug 21, 2012 at 5:06 PM, Waheed Rafiq wra...@gmail.com wrote:
 you defo got one thing right  I am confused -:)  I actually thought I was
 writing code in java ?  so this now begs the question where do I write the
 code if not in MyFirstApp.main

 I am new to Java and XML

 thanks for your prompt reply

 On Aug 21, 2012 9:46 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 You seem to be quite confused... You can't write an if statement
 inside XML, it's not interactive (computation), it's just static XML.

 What you need to do is put that in your java code,

 kris

 On Tue, Aug 21, 2012 at 4:40 PM, Waheed Rafiq wra...@gmail.com wrote:
  Hi guys , I am new to android development
 
  for sometime I have try to resolve  the if statement issue within my
  code
  but can't seem to understand why it does not work
 
  here is my code that I was learning from online tutorial
 
  RelativeLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
 
  xmlns:tools=http://schemas.android.com/tools;
 
  android:layout_width=match_parent
 
  android:layout_height=match_parent 
 
 
  TextView
 
  android:id=@+id/textView1
 
  android:layout_width=wrap_content
 
  android:layout_height=wrap_content
 
  android:layout_centerHorizontal=true
 
  android:layout_centerVertical=true
 
  android:padding=@dimen/padding_medium
 
  android:text=@string/hello_world
 
  tools:context=.MainActivity /
 
 
  Button
 
  android:id=@+id/button1
 
  android:layout_width=wrap_content
 
  android:layout_height=wrap_content
 
  android:layout_below=@+id/textView1
 
  android:layout_centerHorizontal=true
 
  android:layout_marginTop=59dp
 
  android:text=Edit me  // on this line I name the button Edit
  Me
 
  if(android.text=Hussian Waheed) android.text=Change Me; //
  on
  this line I am trying to say if the button is Edit Me then change this
  to
  Change Me
 
 
  all I get is a error stating my if statment requires a equal , I just
  don't
  understand it. really would like someone to give me a better example of
  how
  to change a button name to different button name.
 
 
  thanks
 
 
 
 
 
 
 /
 
 
 
 
 
  /RelativeLayout
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

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

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

2012-08-21 Thread Lew
As Kristopher said, Java source is in *.java files and XML is in *.xml 
files. 

Also, Java follows Java syntax:

  package com.foo.bar;

  public class FooBar 
  {
public static void main(String [] args)
{
  // ... etc.
}
  }

XML follows XML syntax:

  rootTag
someOtherTag someAttribute=value
  yetAnotherTagcontent/yetAnotherTag
  moreTag id=more value=barfoo /
/someOtherTag
  /rootTag

Now, when someone new to Java and XML runs into a question, it is good 
to search through the documentation for Java and for XML:

http://docs.oracle.com/javase/
http://www.w3schools.com/xml/default.asp

Read and study the tutorials, etc.

-- 
Lew

Waheed Rafiq wrote:

 you defo got one thing right  I am confused -:)  I actually thought I 
 was writing code in java ?  so this now begs the question where do I write 
 the code if not in MyFirstApp.main  

 I am new to Java and XML 

 thanks for your prompt reply 
 Kristopher Micinsk wrote:

 You seem to be quite confused... You can't write an if statement
 inside XML, it's not interactive (computation), it's just static XML.

 What you need to do is put that in your java code,

 Waheed Rafiq wrote:
  Hi guys , I am new to android development
 
  for sometime I have try to resolve  the if statement issue within my 
 code
  but can't seem to understand why it does not work
 
  here is my code that I was learning from online tutorial
 
  RelativeLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
  xmlns:tools=http://schemas.android.com/tools;
  android:layout_width=match_parent
  android:layout_height=match_parent 
 
  TextView
  android:id=@+id/textView1

  
. . . [ snip ] . . . 
 

  android:text=Edit me  // on this line I name the button Edit Me
 
  if(android.text=Hussian Waheed) android.text=Change Me; // 
 on
  this line I am trying to say if the button is Edit Me then change 
 this to
  Change Me
 
 
  all I get is a error stating my if statment requires a equal , I just 
 don't
  understand it. really would like someone to give me a better example of 
 how
  to change a button name to different button name.
 

  

 /
 
  /RelativeLayout



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

2012-08-21 Thread Waheed Rafiq
thank you both for guiding me in a straight path with regards to xml and
java , I was reading android online tutorial  , I guess i jump into the
deep end of newbie user section ,
On Aug 21, 2012 10:22 PM, Lew lewbl...@gmail.com wrote:

 As Kristopher said, Java source is in *.java files and XML is in *.xml
 files.

 Also, Java follows Java syntax:

   package com.foo.bar;

   public class FooBar
   {
 public static void main(String [] args)
 {
   // ... etc.
 }
   }

 XML follows XML syntax:

   rootTag
 someOtherTag someAttribute=value
   yetAnotherTagcontent/yetAnotherTag
   moreTag id=more value=barfoo /
 /someOtherTag
   /rootTag

 Now, when someone new to Java and XML runs into a question, it is good
 to search through the documentation for Java and for XML:

 http://docs.oracle.com/javase/
 http://www.w3schools.com/xml/default.asp

 Read and study the tutorials, etc.

 --
 Lew

 Waheed Rafiq wrote:

 you defo got one thing right  I am confused -:)  I actually thought I
 was writing code in java ?  so this now begs the question where do I write
 the code if not in MyFirstApp.main

 I am new to Java and XML

 thanks for your prompt reply
 Kristopher Micinsk wrote:

 You seem to be quite confused... You can't write an if statement
 inside XML, it's not interactive (computation), it's just static XML.

 What you need to do is put that in your java code,

 Waheed Rafiq wrote:
  Hi guys , I am new to android development
 
  for sometime I have try to resolve  the if statement issue within my
 code
  but can't seem to understand why it does not work
 
  here is my code that I was learning from online tutorial
 
  RelativeLayout xmlns:android=http://schemas.**
 android.com/apk/res/android http://schemas.android.com/apk/res/android
 
  
  xmlns:tools=http://schemas.**android.com/toolshttp://schemas.android.com/tools
 
  android:layout_width=match_**parent
  android:layout_height=match_**parent 
 
  TextView
  android:id=@+id/textView1


 . . . [ snip ] . . .


  android:text=Edit me  // on this line I name the button Edit
 Me
 
  if(android.text=Hussian Waheed) android.text=Change Me; //
 on
  this line I am trying to say if the button is Edit Me then change
 this to
  Change Me
 
 
  all I get is a error stating my if statment requires a equal , I just
 don't
  understand it. really would like someone to give me a better example
 of how
  to change a button name to different button name.
 



 /
 
  /RelativeLayout

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

2012-08-21 Thread TreKing
On Tue, Aug 21, 2012 at 9:12 AM, Arijit Das das.ariji...@gmail.com wrote:

 Yes, the question is how to do the sync between two android phones?


That's a loaded question. What specifically do you need help with?

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

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

[android-developers] Re: adb hangs on any attempt to connect

2012-08-21 Thread saernz
Have you tried to explicitly define what device to connect to? I'm pretty 
sure when
you run the adb command you can tell it to connect to a specific device. 
Does the same thing
happen when you do that?

Also have you ever tried to connect the adb to a emulator before?

Probably the best way to diagnose this is to find out if the problem is 
with the phone or your set-up
on your computer. Have you ever successfully connected your phone before on 
a different set-up. E.g windows or something?

On Monday, August 20, 2012 6:40:31 PM UTC+12, Timothy Caraballo wrote:

 I've installed the SDK and platform tools on Fedora 17, and while adb can 
 see the connected Nexus S, it hangs whenever I try to execute a command. I 
 have Debugging enabled on the device. I have to quit adb as it hangs at the 
 point below. Any other command, such as logcat behaves similarly. Any 
 thoughts?

 *openback@think:~$* adb shell
 system/core/adb/adb.c::main():Handling commandline()
 system/core/adb/commandline.c::adb_commandline():starting interactive shell
 system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
 system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303063 000c
 system/core/adb/transport.c::writex():writex: fd=3 len=12: 
 686f73743a76657273696f6e host:version
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4
 4f4b4159 OKAY
 system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 3
 system/core/adb/adb_client.c::adb_connect():adb_connect: service shell:
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4
 30303034 0004
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4
 30303164 001d
 system/core/adb/adb_client.c::_adb_connect():_adb_connect: shell:
 system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303132 0012
 system/core/adb/transport.c::writex():writex: fd=3 len=18: 
 686f73743a7472616e73706f72742d61 host:transport-a
 system/core/adb/adb_client.c::switch_socket_transport():Switch transport 
 in progress
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4
 4f4b4159 OKAY
 system/core/adb/adb_client.c::switch_socket_transport():Switch transport 
 success
 system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303036 0006
 system/core/adb/transport.c::writex():writex: fd=3 len=6: 7368656c6c3a 
 shell:
 system/core/adb/transport.c::readx():readx: fd=3 wanted=4




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] openRawResource: does compressed files in APK get uncompressed completely?

2012-08-21 Thread Dianne Hackborn
Prior to I think Gingerbread, it would entirely uncompress in memory with a
limit on the amount of memory it would use (I think 1MB) above which the
open would fail.  On current versions of the platform it uncompression is
streamed as you read it with no limit on size.

On Tue, Aug 21, 2012 at 1:25 PM, Tamás Kovács
falcon.firebre...@gmail.comwrote:

 Hello,

 I have a custom file format in res/raw, which means it will get
 compressed in APK.

 Question:

 Assume my application is installed on the device. When I open a file
 via openRawResource(), does it completely uncompress the file in the
 memory?

 E.g. if it's a 3MB file, will it uncompress it in memory? If I only
 need 10KB data from a certain offset (and I reach it via
 BufferedInputStream.skip), will it still consume 3MB when
 openRawResource() is called?

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




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

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

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

[android-developers] Re: openRawResource: does compressed files in APK get uncompressed completely?

2012-08-21 Thread Tamás Kovács
Thanks, Dianne.

Was the 1MB limitation removed in case of *assets* as well, or only
for *resources*?

On Aug 22, 12:28 am, Dianne Hackborn hack...@android.com wrote:
 Prior to I think Gingerbread, it would entirely uncompress in memory with a
 limit on the amount of memory it would use (I think 1MB) above which the
 open would fail.  On current versions of the platform it uncompression is
 streamed as you read it with no limit on size.

 On Tue, Aug 21, 2012 at 1:25 PM, Tamás Kovács
 falcon.firebre...@gmail.comwrote:









  Hello,

  I have a custom file format in res/raw, which means it will get
  compressed in APK.

  Question:

  Assume my application is installed on the device. When I open a file
  via openRawResource(), does it completely uncompress the file in the
  memory?

  E.g. if it's a 3MB file, will it uncompress it in memory? If I only
  need 10KB data from a certain offset (and I reach it via
  BufferedInputStream.skip), will it still consume 3MB when
  openRawResource() is called?

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

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

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

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


[android-developers] Re: Getting started with Android. Love the overall system architecture and SDK except for one thing...

2012-08-21 Thread Indicator Veritatis
Google's approach to documentation has its frustrating points, and to be 
sure, finding the right XML name for the concept/class/value you find in 
the API documentation has always been a frustrating experience. But it 
should not be THAT frustrating.

Also, some of the gaps in concept presentation you complain about in the 
online docs and tutorials are better addressed by the better books on 
Android. My favorite has long  been the Manning Press Unlocking Android 
(with slightly different names in different editions), but there are other 
good books, too. Mark Murphy's is quite good too, as is anything by Reto 
Meier.

If you are reluctant to spend $40 or more on a book you are not sure is the 
right one for your needs, Safari Bookshelf now offers many of them through 
your local public library. And Murphy's in older editions (dated, but still 
valuable) are available for free download.

For that matter, if you have the patience to read undocumented code, most 
of these books have the code downloadable for free. You do not have to buy 
the book to find and download the code. But of course, the code is 
explained only in the text, with very sparse comments in the code itself.

The suggestion about ApiDemo is also good, but those tend to demonstrate 
only the very basic elements of how to use the APIs, they leave out a lot 
of details only some of which are in the API documents. Not so long ago, 
people answered questions about such details in all seriousness with read 
the source code:(

But really: how is all this any worse than in iOS? When I did a small iOS 
project, I had to learn iOS from scratch. At first, I was in awe of how the 
iOS documentation covered important aspects Google had left out of Android, 
but when I actually started trying to apply what I learned there, I found 
out that they too left out a lot of important info. A typical problem I 
found, for example, was that Apple still offers as their most uptodate 
sample code, code that was written under the 3.2 version of Xcode, using 
old APIs no longer recommended, workarounds no longer needed and not even 
using storyboards. Sure, you can let Xcode convert it to a 4.1 project, but 
then what are you learning from the sample code? Certainly not how to 
design the connections between storyboard and callbacks.

So at this point in time, I am convinced that Apple's support of iOS and 
Google's of Android are about equally frustrating. It is just that the 
particular problems are different, such as not having to wait for approval 
before your app goes on the market in Android, but facing arbitrary delays 
with Apple.

On Sunday, August 19, 2012 9:17:51 AM UTC-7, rmz76 wrote:

 ... I hate the way UI is handled. Perhaps I will love it once I get my 
 head around  it, but as of now, I really prefer the way iOS development 
 handles this. My background is predominately Web so I'm no stranger to 
 mockup languages. In general with the Android SDK I found  everything to be 
 well documented and to just makes sense until I got to the XML driven 
 layout aspect of Android. I understand everything is a View. That concept 
 is easy to grasp, but what's difficult is to find a really good reference 
 for all my available controls with contextual (and visual) examples of 
 their use. There are sites that demonstrate use patterns but these are 
 missing code samples. This puts the the developer in a situation where they 
 go on a goose chase. Don't tell me they are built into the visual design 
 tool for Eclipse, it's crap and I refuse to use it. A reference should 
 exist outside the visual editor and that's what I'm looking for. Also do 
 not point me to the general SDK API documentation for views. I don't want 
 to sort through hundreds of classes trying to extract TextView, Button, etc 
 (what an incredible time sink that is). My process has been working like 
 this. 

 1. See interesting UI pattern implemented in popular apps: x and y 

 2. Go to Internet trying to track down possible Android UI components to 
 implement feature seen in apps x,y 

 3. Try to find source examples of implementing controls I am inferring are 
 being used (this is usually a try and repeat cycle taking hours) 

 4. After much trial, frustration and anger finally retreat to something 
 else. 

 I'll give an example of such a feature: Horizontal view swiping. From the 
 official Android Play store to the CNN App, this is probably the most 
 common navigation we're seeing for dealing with menus on Android. It's 
 beautiful, it's also a pain in ass to implement. After much searching I 
 found an article on this on the official site 


 http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
  

 I can open the source example and understand what's going on but my 
 question is why does it take pages and pages of foundation code to 
 implement something that should be core? IMO this is where Android 
 development is much more complex than it 

Re: [android-developers] Branding concern for a universal Android app for both Phone and Tablet

2012-08-21 Thread TreKing
On Tue, Aug 21, 2012 at 3:57 AM, teletextmobile mob...@teletext.co.ukwrote:

 The concern we are facing now is that we want maintain our brand extension
 strategy by having a Phone Edition and a Tablet Edition of our app in
 Google Play but we aren't sure how to achieve this with only one build for
 the app.


If I understand what you're saying, then you can't do this with one build
(i.e., one APK / one package).


 Will Google agree to us submitting the same APK twice?


Google doesn't agree to anything. It's simply not possible in Google Play.


   Once for the Phone Edition and once for the Tablet Edition?  Is there
 another way of going about this?  Appreciate your suggestions.


You will have to build two separate apps using two distinct packages. This
is trivial to do from an existing code base by using Android Library
projects.

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

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

Re: [android-developers] Help!!!

2012-08-21 Thread TreKing
On Mon, Aug 20, 2012 at 1:30 PM, Androideed nnamdi.anyamelu...@gmail.comwrote:

 its not working! what am I doing wrong?


Not explaining what it's not working means.

http://www.catb.org/~esr/faqs/smart-questions.html

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

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

Re: [android-developers] Publish Different apk in google play store

2012-08-21 Thread TreKing
On Tue, Aug 21, 2012 at 4:55 AM, Venkata Bhaskar K 
bhaskar.myth...@gmail.com wrote:

 Kindly assist us how to create an app which is targeted for non-ARM v7
 devices.


If your issue is with Google Play, try here:
http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601

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

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

[android-developers] Re: How to implement TextureView functionality in Gingerbread 2.3 (or how to use OpenGL inside a ScrollView)

2012-08-21 Thread aprogrammer
Our business logic is in C++ and the drawing code gets its data from this 
C++ code.
So I'd rather do the drawing in C++ instead of the overhead of passing all 
the data to Java (and the Java code would call Android framework which 
internally calls C code anyway)

With C++ for Android, my understanding is that OpenGL ES and Skia are the 
two best options. 
We have already written OpenGL ES prototype code (on iOS), OpenGL is is 
more portable and it seems reasonable to assume that it offers better 
performance than Skia. 

Of course, I'm open to hearing more options on drawing with C++ (and see 
Java/Canvas drawing as a last resort). Does this answer your question ?

On Tuesday, August 21, 2012 1:58:45 PM UTC-7, bob wrote:

 If it is just 2d, why bother with OpenGL?


 In general, OpenGL does not play well with others.



 On Tuesday, August 21, 2012 3:19:51 PM UTC-5, aprogrammer wrote:

 Hi, I'd like to do some 2G OpenGL rendering inside a ScrollView. The 
 rendering code is in C++ and the rest of the ScrollView UI is based on 
 Android framework UI elements.

 It seems like OpenGL drawing should be done on a SurfaceView (which can 
 be passed from Java to C++)
 However, SurfaceView elements don't scroll with the rest of a ScrollView 
 and so it seems like I won't be able to use the SurfaceView with a 
 ScrollView

 My understanding is that the TextureView in ICS/4.0 permits OpenGL 
 drawing and also supports scrolling inside a ScrollView. So this meets my 
 needs for new devices.
 However, I'd also like to support older devices (Gingerbread/2.3 and 
 upwards).
 I'm not sure if this can be done (for instance, I'm not sure if the 
 OpenGL drawing can be rendered to a bitmap and then have the bitmap placed 
 inside a ScrollView)

 1. Does anyone know if and how it is possible to implement this for 
 Android 2.3 ?
 iow is it possible to place an OpenGL drawing inside a ScrollView - or is 
 the Canvas approach my only option ?

 2. A second (related) question - Can I place a Canvas object inside a 
 ScrollView, pass the Canvas object to C++ code and then use Skia apis to 
 draw on the Canvas object



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