[android-developers] Android on Stack Exchange

2011-09-17 Thread Chris
I'm most likely the last one to hear about this, but there's an Android-specific Stack Exchange site now, android.stackexchange.com. Maybe someone can add it to the groups intro? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-17 Thread Doug
Create the Bitmap in native code and return it to the java layer. The NDK supports this starting beginning with Android 2.2. Doug On Sep 16, 12:02 am, Siji T G s...@techgentsia.com wrote: Thanks for the reply Zsolt. My data stream comes from h264 video decoder , which is native. Format of

[android-developers] Camera#startPreview failed because of Error - overlays already in use

2011-09-17 Thread Shri
My app uses the camera and shows a preview on screen using Camera#startPreview. If I switch to YouTube and start watching a video, and then switch back to the my app while the YouTube video is playing or even paused, it results in the exception shown below. I do release the camera in

[android-developers] Re: USB - IR drivers

2011-09-17 Thread al
You are right, Frank, for android versions before 3.1. Using the USB framework introduced with android 3.1, it should be possible from within a java app. On 16 Sep., 13:58, FrankG frankgru...@googlemail.com wrote: Hello ! IMHO to add a new usb mode, you need to change nearly all parts of the

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-17 Thread Conny
Guys, obviously I understand that /system/bin is read only, I would be blind not to be able to read the error messages. But the question is if I do need to get rsync into the bin folder what do I need to do. Rsync is a important feature to have on the android device. Helps to keep files in sync. I

Re: [android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null

2011-09-17 Thread nageswara rao rajana
Hi, Try this to convert byte array to bitmap Bitmap bMap = BitmapFactory.decodeByteArray(data, 0, data.length);//(Byte[] data) On Sat, Sep 17, 2011 at 11:56 AM, Doug beafd...@gmail.com wrote: Create the Bitmap in native code and return it to the java layer. The NDK supports this

[android-developers] How to communicate two android device

2011-09-17 Thread kirti waykole
hello friends, I am new in android. I want to communicate two android device . Blue-tooth is there but I want another option for communicating two device. Please Help me for this to solve. thanks in advance. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-17 Thread Dianne Hackborn
Data files don't go on /system, so what you are trying to do doesn't make sense. Nor is it possible for normal applications to do. A good Android device will not allow /system to be mounted read/write under normal operation. On Fri, Sep 16, 2011 at 11:35 PM, Conny mcon...@gmail.com wrote:

[android-developers] malloc() in the Renderscript

2011-09-17 Thread Macotonalds
Hello, everyone. I am studying Renderscript. I want to use the malloc() in a Renderscript code(.rs), but it seems that not supported. I get this error by using malloc. error: implicit declaration of function 'malloc' is invalid in C99 In the Renderscript, what functions can i use instead of the

Re: [android-developers] malloc() in the Renderscript

2011-09-17 Thread Romain Guy
Renderscript does not let you allocate memory from scripts. This is a fundamental part of Renderscript's design. On Sat, Sep 17, 2011 at 12:25 AM, Macotonalds macotona...@gmail.com wrote: Hello, everyone. I am studying Renderscript. I want to use the malloc() in a Renderscript code(.rs), but

[android-developers] Regarding Screen Off

2011-09-17 Thread nageswara rao rajana
Hi, I developed application which consists of 5 activities.My request is screen should not off from starting to ending of the application, even my application is idle.Please anyone help me. with regards, nagu. -- You received this message because you are subscribed to the

[android-developers] Binder context Manager

2011-09-17 Thread Nitin Mahajan
Hello, I was trying to understand some Android internals and have a question in this regard. What does it mean for a process to be a Context Manager for Binder? Or What exactly service manager is telling by saying I am the Context Manager ? What sort of a context management is happening here?

[android-developers] OpenGL ES 2.0 question

2011-09-17 Thread Christopher Van Kirk
Okay, this works: Case 1 0) set up shader with sampler2D uniform 1) bind 0 to to the sampler uniform (meaning texture unit 0 ) 2) set active texture image unit to 0 3) load texture from file and give it an id 4) create an empty texture and give it an id 5) create a framebuffer and bind it to

Re: [android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-17 Thread Mark Murphy
On Sat, Sep 17, 2011 at 1:46 AM, Conny mcon...@gmail.com wrote: But the question is if I do need to get rsync into the bin folder what do I need to do. Install some alternative firmware that has rsync in it. Or, root your phone. Or, don't put rsync in /system, since AFAIK you don't need it in

[android-developers] Re: USB - IR drivers

2011-09-17 Thread ColorTheorist
While I do not have experience writing the USB drivers for an IR device, I do have the experience writing USB drivers for an in-house built device that communicates over the USB cable connection. In order to communicate with the device you will need to know how the device reacts over the

Re: [android-developers] Regarding Screen Off

2011-09-17 Thread Mark Murphy
You are welcome to use a WakeLock for that, though your users will probably uninstall your application as a result. On Sat, Sep 17, 2011 at 6:31 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi,         I developed application which consists of 5 activities.My request is screen should

[android-developers] Re: Android native browser can't access https sites

2011-09-17 Thread perumal316
Hi Murphy, How about installing the root cert into the phone's credential storage? Will the webpage could be loaded then? Thanks and Regards, Perumal On Sep 16, 10:52 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 16, 2011 at 10:47 AM, perumal316 perumal...@gmail.com wrote: Just

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-17 Thread Conny
Thanks Murphy.. On Sep 17, 5:24 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Sep 17, 2011 at 1:46 AM, Conny mcon...@gmail.com wrote: But the question is if I do need to get rsync into the bin folder what do I need to do. Install some alternative firmware that has rsync in it. Or,

[android-developers] Re: How to communicate two android device

2011-09-17 Thread Matthew Patience
You could use a server in between the 2 devices. Create a simple back end API, which I wont go in to, but this is definitely an obvious option if you are good with PHP. On Sep 17, 3:01 am, kirti waykole kirti.carr...@gmail.com wrote: hello friends,   I am new in android. I want to communicate

[android-developers] NullPointerException when trying to write a log into the SDcard

2011-09-17 Thread Pedro Teixeira
Hello there, hope you can help me somehow. I've got this class example which used to work just fine. Basiclly it just writes to the sd card a log file with some of my device information. public class LogToSD { static PrintWriter outFile = null; private static void

Re: [android-developers] NullPointerException when trying to write a log into the SDcard

2011-09-17 Thread androidhub trainer
Hi Pedro, Could you please check if the currentlocation is not NULL. If this is null you will see a null pointer exception when you are trying to get latitude and longitude out of it. Thanks On Sat, Sep 17, 2011 at 8:30 PM, Pedro Teixeira pedroteixeir...@gmail.comwrote: Hello there, hope you

Re: [android-developers] Re: How to communicate two android device

2011-09-17 Thread Kristopher Micinski
I've also seen a number of variety of free backend services available for you to use popping up. But yes, I'd say that the way that backend communication is done these days definitely seems to be moving toward the internet / server side of things (from what?). You can google for parse and the

Re: [android-developers] widgets not showing up after ListView

2011-09-17 Thread John Goche
Thanks TreKing, Now that I have seen how to use the layout_weight parameter properly I was able to insert a decent row of buttons both at the top and at the bottom of the list view. However my concern now is in the top row. When the button labeled SCHEDULE DATE HERE has text which is too long it

[android-developers] UNSUBSCRIBE

2011-09-17 Thread Tim Jowers
UNSUBSCRIBE On Sun, Sep 11, 2011 at 2:34 PM, Chris Stratton cs07...@gmail.com wrote: On Sunday, September 11, 2011 1:44:54 AM UTC-4, mwllace wrote: Im using  and intent to invoke the default dialer and automatically call  phone number stored in my application. Everything works fine, but the

Re: [android-developers] UNSUBSCRIBE

2011-09-17 Thread Appaholics
Fail. On Sat, Sep 17, 2011 at 10:00 PM, Tim Jowers timjow...@gmail.com wrote: UNSUBSCRIBE On Sun, Sep 11, 2011 at 2:34 PM, Chris Stratton cs07...@gmail.com wrote: On Sunday, September 11, 2011 1:44:54 AM UTC-4, mwllace wrote: Im using and intent to invoke the default dialer and

[android-developers] What is the sorting order on Android Market?

2011-09-17 Thread sblantipodi
Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? Thanks. -- You received

[android-developers] passing objects to pushed activities

2011-09-17 Thread John Goche
Hello, I have an activity which when a specific button is pressed pushes another activity onto the activity stack like so: startActivity(new Intent(this, FooActivityClass.class)); Now I would like to pass the new FooActivityClass instance an object as a data parameter which FooActivityClass can

[android-developers] Re: passing objects to pushed activities

2011-09-17 Thread Streets Of Boston
Intent intent = new Intent(this, FooActivity.class); intent.putExra(SomeVariableName, strVariable); startActivity(intent); Then in your FooActivity.class (in onCreate(...) for example): ... Intent intent = getIntent(); String variable = intent.getStringExtra(SomeVariableName); That's it :) --

[android-developers] Re: passing objects to pushed activities

2011-09-17 Thread Streets Of Boston
Some extra info: If you need to pass more than just String, ints, floats and such, and you need to pass 'complex' Objects, do one of these: - Pass a Bundle. A Bundle is much like a Map (HashMap) but it can be passed as a value for the Intent's 'Extras'. - Pass an Object that

Re: [android-developers] Re: Android native browser can't access https sites

2011-09-17 Thread Mark Murphy
On Sat, Sep 17, 2011 at 9:09 AM, perumal316 perumal...@gmail.com wrote: How about installing the root cert into the phone's credential storage? Will the webpage could be loaded then? I have no idea if that is possible, though if it is I would expect it would require a rooted phone. It

[android-developers] Re: Button Issue

2011-09-17 Thread giles ian
Has nobody faced this problem ?? i checked the images in android sdk .. the button is slightly upwards .. any solution/workaround ?? On Sat, Sep 17, 2011 at 10:44 AM, giles ian gilesian@gmail.com wrote: There is some space at bottom of the bottom. Its not centered vertically properly even

Re: [android-developers] Re: Button Issue

2011-09-17 Thread Mark Murphy
The button is centered properly, most likely. However, the button background may have some whitespace at the bottom. Check the button background images in the SDK. On Sat, Sep 17, 2011 at 1:48 PM, giles ian gilesian@gmail.com wrote: Has nobody faced this problem ?? i checked the images in

[android-developers] Re: Dispatching to original signal handler sometimes does not print the crash details to logcat

2011-09-17 Thread Shri
Removing the exit at the end of my custom handler fixed the problem. So the conditions for getting the native crash details printed seem to be to call the original handler and to let the custom handler return instead of exiting the process. On Sep 16, 1:52 pm, Shri shri.bo...@gmail.com wrote: My

Re: [android-developers] Re: passing objects to pushed activities

2011-09-17 Thread androidhub trainer
Hi John, You could also check out my blog at: http://androidhub.wordpress.com/2011/08/03/android-intents-for-passing-data-between-activities-part-3/ I have explained this concept there. Thanks On Sat, Sep 17, 2011 at 10:49 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Some extra

[android-developers] Listview: heterogenous rows: if statements in XML layout file?

2011-09-17 Thread John Goche
Hello, I need a dynamic list view which has heterogenous row entries. For instance one item may have two text edits whereas another list item may have four text edits. Does this mean I have to do it all programmatically and cannot encode an if (say like in Java Apache Tomcat Struts Library) to

Re: [android-developers] Listview: heterogenous rows: if statements in XML layout file?

2011-09-17 Thread Romain Guy
Hi John, You have to do it programmatically from the adapter. You have two ways of doing it. Either you can use a single list item with some of its child views marked with a GONE visibility or you can use different list items. The preferred solution is the latter. If you decide to use it, you

[android-developers] Running App with super user permissions

2011-09-17 Thread Praveen Thota
Dear All, I have one query.. Is it possible to build the application to run with Super user permissions. If so, Please let me know the sample code how to implement it. Thanks Regards, Praveen Thota -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Running App with super user permissions

2011-09-17 Thread Appaholics
Not on any standard out of the box device. On Sun, Sep 18, 2011 at 12:45 AM, Praveen Thota praveen.th...@gmail.comwrote: Dear All, I have one query.. Is it possible to build the application to run with Super user permissions. If so, Please let me know the sample code how to implement it.

[android-developers] Re: javax.sound alternative

2011-09-17 Thread Raviteja Dodda
I am facing the same issue. I wanted to use AudioSystem from javax.sound.sampled package. How did you solve your problem? Ravi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Newbie Layout Help

2011-09-17 Thread fog
Hey folkes, I need a bit of help with learning how to layout my app. I'm fairly new to Android programming, and so far the most difficult aspect I have been finding is getting the layout for my app just the way I want it. I'm after going through tutorials, video tutorials, etc, but I can't

Re: [android-developers] Re: Abrir URL desde android y no mostrar barra de direcciones o fuente del sitio

2011-09-17 Thread Nick Risaro
Te respondieron en el 4 mail you'll probably have to show the content on a webview on your own app if you want to control what is displayed or not (address bar and so on) Lo que te conviene hacer es mostrar un webview dentro de tu aplicación, de esa manera tenés más flexibilidad para

[android-developers] listview: multipe actions per row dilemma

2011-09-17 Thread John Goche
Hello, Hello, I have a ListView with several rows. I want the user to be able to add, modify, delete, and edit detail (ie. subordinate) information relating to each row. I don't know what the best way to proceed is. I could place four buttons on the bottom screen, but then three buttons would

[android-developers] Speed of usb on open accessory mode

2011-09-17 Thread Ahmed Abdelfattah
Hello , How to know the speed of transfer between usb accessory and the device . Is it smartphone dependent or device dependent or mode dependent ? or all ? Is there a reference about this point ? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] widgets not showing up after ListView

2011-09-17 Thread TreKing
On Sat, Sep 17, 2011 at 11:15 AM, John Goche johngoch...@googlemail.comwrote: When the button labeled SCHEDULE DATE HERE has text which is too long it runs under the other two buttons which is not what I want. Instead when its text grows I would like the text to wrap like in the buttons in

Re: [android-developers] What is the sorting order on Android Market?

2011-09-17 Thread TreKing
On Sat, Sep 17, 2011 at 11:46 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: Is there someone who can help me understanding how android market sort the apps? Nope. - TreKing

Re: [android-developers] passing objects to pushed activities

2011-09-17 Thread TreKing
On Sat, Sep 17, 2011 at 11:51 AM, John Goche johngoch...@googlemail.comwrote: Now I would like to pass the new FooActivityClass instance an object as a data parameter which FooActivityClass can then retrieve and operate on. You don't want to do that. Why do you think you need to? What are you

Re: [android-developers] Newbie Layout Help

2011-09-17 Thread TreKing
On Sat, Sep 17, 2011 at 2:50 PM, fog cquill...@gmail.com wrote: Keep in mind that I'm very new to this, so its probably something very obvious that I'm missing here. Any help will be greatly appreciated. You have your buttons each in their own LinearLayouts. This is pointless and redundant

Re: [android-developers] Newbie Layout Help

2011-09-17 Thread fog
Thanks for your reply. I made the changes you suggested, removing the two LinearLayout's that contained the btn2 and btn3, but the same thing is happening, still pushing up from the bottom. Is there some way to anchor the Header Image to the top while also anchoring the btn2/btn3 LinearLayout

Re: [android-developers] Newbie Layout Help

2011-09-17 Thread TreKing
On Sat, Sep 17, 2011 at 4:54 PM, fog cquill...@gmail.com wrote: I made the changes you suggested, removing the two LinearLayout's that contained the btn2 and btn3, but the same thing is happening, still pushing up from the bottom. A picture is worth a 1000 words.

[android-developers] How to use a OnClickListener in Fragment

2011-09-17 Thread Daniel Rindt
Hello readers, in a fragment i inflate a xml layout which includes buttons. How can i make use of the OnClickListener to receive the click event nside the fragment? Thanks for reading Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Back to my activity when call is finish

2011-09-17 Thread Goutom
Hi I choose a number from a list and start the call activity.I want that when call is finish it will back to my list activity.But My current code remains in call log activity when call finishes. Any help will be great for me. thanks in advance. regards goutom here is my code.. package

[android-developers] Ridiculous Publisher Stats - Anyone had enough???

2011-09-17 Thread LackeySoft
Okay, I've been VERY patient but I'm getting really tired of GOOGLE'S UTTER INABILITY TO PROVIDE DEVELOPERS WITH WHAT IS A SIMPLE THING TO DO, PROVIDE CORRECT STATISTICS OF INSTALLS. It is important to me to have a finger on the pulse of my app so I can see if my upgrades and marketing efforts

Re: [android-developers] Handling Adjacent Fragments in ViewPager Contributing to Options Menu

2011-09-17 Thread Francisco Figueiredo Jr.
Hi! I think it may be a little bit offtopic, but as you are talking about changing PageAdapter and ViewPager apis, I'd like to ask if it is possible to expose some method to get the fragment after you have added it to a ViewPager. I'm asking that because if you have to handle a

[android-developers] Re: Ridiculous Publisher Stats - Anyone had enough???

2011-09-17 Thread John Coryat
It is important to me to have a finger on the pulse of my app so I can see if my upgrades and marketing efforts have any effect... Use Flurry or develop your own statistics. I do. They are wildly different than the numbers Google publishes, but I believe them., My paid app just did

[android-developers] picking a sound file

2011-09-17 Thread John Goche
Hello, I am trying to pick a sound file from the emulator. I have tried the following code: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_PICK); //intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);

[android-developers] Re: What is the sorting order on Android Market?

2011-09-17 Thread sblantipodi
why not? On Sep 17, 11:05 pm, TreKing treking...@gmail.com wrote: On Sat, Sep 17, 2011 at 11:46 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: Is there someone who can help me understanding how android market sort the apps? Nope.

Re: [android-developers] Re: What is the sorting order on Android Market?

2011-09-17 Thread TreKing
On Sat, Sep 17, 2011 at 7:04 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: why not? Oh, sorry - because none of know how it works and the people that do know neither participate in this list nor would tell you if they did.

Re: [android-developers] picking a sound file

2011-09-17 Thread Mark Murphy
On Sat, Sep 17, 2011 at 8:02 PM, John Goche johngoch...@googlemail.com wrote: I was expecting some ringtones. Did you set up any ringtones? The emulator does not ship with any. In case this is the right method how do I load mp3s and wavs onto the emulator. Copy them over to external storage

[android-developers] Re: What is the sorting order on Android Market?

2011-09-17 Thread sblantipodi
why something like that should be a secret? every market has a clear sorting policy why android market doesn't have a sorting policy? is this a way to promote some apps instead of another? On Sep 18, 2:11 am, TreKing treking...@gmail.com wrote: On Sat, Sep 17, 2011 at 7:04 PM, sblantipodi

Re: [android-developers] Handling Adjacent Fragments in ViewPager Contributing to Options Menu

2011-09-17 Thread Dianne Hackborn
Write your own adapter. ViewPager knows nothing about fragments; that is the job of the adapter. You can take one of the existing adapters and modify it to do what you want; they are not very complicated. On Sat, Sep 17, 2011 at 4:34 PM, Francisco Figueiredo Jr.

[android-developers] Re: Ridiculous Publisher Stats - Anyone had enough???

2011-09-17 Thread LackeySoft
Thanks for the Flurry tip John... I hadn't really thought about the possibilities something like this could offer... I found this pretty nice blog entry talking about it http://androidblogger.blogspot.com/2010/01/discovering-flurry.html Just forget about it. The issues with the market

[android-developers] Re: Bluetooth printer skipping lines of print

2011-09-17 Thread gjs
Hi, Try contacting the printer manufacturer. Regards On Sep 16, 5:41 pm, Sebastin Basimalla basimallasebas...@gmail.com wrote: Hi, We have tried slowing the rate but its not helping and regarding the data being sent back i have gone through most of Blurtooth APi but cant find any help with

[android-developers] Re: Ridiculous Publisher Stats - Anyone had enough???

2011-09-17 Thread LackeySoft
Anyone try Google Analytics within your app? http://mobile.tutsplus.com/tutorials/android/android-sdk-enabling-google-analytics-to-gather-app-statistics/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-17 Thread Conny
Just wanted you to know that rysnc droid is a project for android. If the install steps dont work on a android device, android forum is the best place to seek advice. Dont get me wrong, but getting a android app to work, I was assuming that the developers of that app would have done enough

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-17 Thread Chris
On Saturday, September 17, 2011 10:45:46 PM UTC-4, Conny wrote: I was assuming that the developers of that app would have done enough research to get it to work on a real device. I guess not enough. And what lead you to believe that 'rsync droid' was a part of the SDK or has anything

[android-developers] Re: listview: multipe actions per row dilemma

2011-09-17 Thread Spiral123
I think you want a context menu that responds to a long click on a list item. Have a look at the Android Notepad example: http://developer.android.com/resources/tutorials/notepad/notepad-ex2.html On Sep 17, 4:28 pm, John Goche johngoch...@googlemail.com wrote: Hello, Hello, I have a

[android-developers] getIntent().removeExtra() in Activity doesn't work for android:launchmode=“singleTask”?

2011-09-17 Thread Pritam
0 down vote favorite share [fb] share [tw] I am relaunching my HomeActivity and setting an extra relaunchstatus in the Intent. In Activity's onCreate() method I check this value, if present, show some alert. The launchmode for this activity is android:launchmode=singleTask. The issue comes