[android-developers] need help in proving ownership of app and website

2017-02-19 Thread patney2016
dear all, i recently purchased a dating template from 
https://www.chameleonsocial.com/buy.php and have named the website 
www.see2date.com. The domain being registered from godaddy.

The supplier has also given the android package along with website which i 
uploaded to play store. the app has been suspended because i have not been 
able to prove ownership of the website.spoke to the chameleon guys and 
go daddy but both have given their apprehension of giving any legal 
documents...

would request help on how to convince play store abt authenticity of of my 
website.if i am not mistaken, i should link the website to the android 
app and vice versa through the creation of Digital Asset Links files.

would request information on whether this would be sufficient to restore my 
app on google play and reverse my lost credibility in play store

thank you all

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


[android-developers] Need help on Android 6.0 on : how to enable the ip forward functionalityvia adb on Android 6.0

2017-02-19 Thread Yang Sean

In a recent project , I have enabled 2 network cards on the Android 6.0(1 
for internal networks and 2 for external internet, the client can ping its 
own gateway by now )---now I want to enable the ip forward for these 2 
networks so that intranet client also can access internet via network 2, 
but it seems it can't work if I input the following cmd via adb:
  
echo 1 > /proc/sys/net/ipv4/ip_forward

Is there anyway to prove ip_forward dose work as expected ? 

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


[android-developers] Need help in Developing the Page Turning Effect like Google Play Books

2016-11-21 Thread srinivas varma
Hi Android Developers,

I am a Android Developer ,  i was trying to develop  Turning Page Effect 
 from few days but not able to 
do it , can any one help me out in it .

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


[android-developers] Need help in Developing the Page Turning Effect like Google Play Books

2016-11-16 Thread srinivas varma
Hi Android Developers,

I am a Android Developer ,  i was trying to develop  Turning Page Effect 
 from few days but not able to 
do it , can any one help me out in it .

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


Re: [android-developers] Need help on sending events (Motion event, Key event and etc) from a service to system (android 4.0)

2016-11-10 Thread jim mcdonald
Hi, I have a similar question. We are developing an app for Android TV and 
using a couple different HID devices. One has axis and buttons and works 
great. The other has only axis and no buttons - and shows up as an HID 
device with the driver, but not as an input device, so we can't get events. 
Any thoughts on how to fix this? Do we need some kind of manifest or 
intent-filter to recognize the device?
Thanks!

On Monday, August 6, 2012 at 3:11:29 PM UTC-7, Dianne Hackborn wrote:

> Currently the only way, outside of test environments, to deliver input 
> events to the platform is throw a kernel input device.  So your USB device 
> must report itself as a HID device (a keyboard, trackpad, mouse, or game 
> controller) which the kernel understands how to interact with and will 
> generate the appropriate low-level events from the input device.
>
> On Mon, Aug 6, 2012 at 6:18 AM, Prabudas  
> wrote:
>
>> Hi,
>>
>> I am working on an external HID device for android 4.0 devices. The 
>> device will have a touchpad and hardware buttons to replicate the touch 
>> screen and android buttons(Home, back and menu). To make this device work 
>> with any android 4.0 device, I do not want to modify the build or root the 
>> device. All I can do is, I can write an app (service) which can interact 
>> with this device through USB (using accessory mode v 1.0). So, from that 
>> app, I want to create the necessary events based on the message from USB. 
>> This can be very easy in android 4.1 with accessory mode 2.0. But, I need 
>> this for 4.0. Please help me on this. Thanks in advance.
>>
>> …Prabudas
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e05920ec-2f12-4a1a-90a1-84393fa64b68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] NEED HELP > Can't download and install Google wallet in US - isn't available in your country

2016-09-30 Thread Igor Kurovets
Hello,

I have Nexus 5, that bought in Israel. Now i live in US, but the problem is 
that I can't download and install Google wallet, It say  isn't available in 
your country.

I have changed the country in - Google maps, Chrome, but still didn't 
helped.

Please help..

best regards,

Igor

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


[android-developers] Need help because im not seeing the built in ui designer

2016-05-19 Thread armani star
Hello all.

While im following every youtube tutorial how to set up android studio i 
still encounter the same problem over and over again.

Everyone who installed Android Studio instantly see's the built in ui 
designer. (when they started a new project)

Now the problem is, i dont see this designer. And i cannot figure out why 
im not seeing it. is it becuase of the HAXM acceleration which im not able 
to do with my laptop?

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


[android-developers] Need help from Philippines based Developers - Market Research

2016-05-11 Thread tpshadow89
Hi, 
 

I’m reaching out because I’m conducting a research project on Android 
Developers and their experience receiving payments and I thought you might 
be a good fit to take this survey. The questions are very general and 
shouldn’t take more than 5 minutes to complete, as we’re hoping to learn 
how sending payments could be improved. Would you be interested in taking 
the survey? Here is the link to participate: 
https://form.jotform.com/61045669009154 .
 
For participating in the survey you will be enter into a drawing for $100 
USD Visa Gift Card. I am seeking Developers based in the Philippines, I was 
hoping that you could share the survey with your group, to see if they are 
interested in participating. 
 
We need as many Android Developers as possible to make sure the information 
is as accurate and efficient as possible so any shares you could provide 
would be much appreciated.  This study is being conducted by TP/TF 
Reasearch Group and all information obtained is confidential and will not 
be released to any government entities or outside parties. If you have any 
questions or concerns please do not hesitate to contact me.

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


[android-developers] Need help adapting BluetoothLEGatt example by adding 1 new view

2016-04-09 Thread quique123
Im trying to modify an existing project, the BluetoothLeGatt example, to 
turn it into ArduDroid, which is this app used to interface with Arduino 
via BT.  The ArduDroid looks like this:



I have already figured out how to design this far.  The original app 
consisted of:

DeviceScanActivity.java as the main activity which only had an optionsMenu 
with 2 buttons (scan and stop)

DeviceControlActivity.java

BluetoothLeService.java

SampleGattAttributes.java

These came with the following xml layout files:

listitem_device.xml

actionbar_indeterminate_progress.xml

gatt_services_characteristics.xml

I added these 2:

ArduDroidActivity.java

activity_main.xml

So far ArduDroidActivity.java only calls 
setContentView(R.layout.activity_main).  I am calling it from a button in 
the DeviceScanActivity, by adding a sendMessage() method which creates an 
Intent and starts the new activity.  The problem so far is that I cant see 
the button.

I wasnt sure how to add the button, I figured I could just throw it into 
the listitem_device.xml so I added these lines:

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







But when I run the app I cant see the button.

Any ideas why?

Im hoping I can call my new activity_main.xml so that I can access all the 
buttons and sliders in order to send commands to a bluetooth module on an 
arduino.


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


Re: [android-developers] Need help making android app where I tap screen to skip to another part of video

2016-04-07 Thread TreKing
On Tue, Mar 29, 2016 at 8:43 PM, Jigar Patel  wrote:

> I am new to developing android apps. I have downloaded the Android Studio
> software but I don't know how to use it. I want to make an app where I tap
> the screen and it plays a video in full screen. Then when I tap anywhere in
> the screen again I want to be able to skip to another part of the video.
> How can I make this app? I would really appreciate the help. Its a win-win
> situation if you help me you learn something and I will learn something too.


Here are resources to help you get started.

http://developer.android.com/develop/index.html
https://www.google.com/
http://stackoverflow.com/

-
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScggwSR8N7p76MEU6BK11vb-8umcUJk7LWqT00f0CviraVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Need help making android app where I tap screen to skip to another part of video

2016-03-29 Thread Jigar Patel
Hey Android Developers, 

I am new to developing android apps. I have downloaded the Android Studio 
software but I don't know how to use it. I want to make an app where I tap 
the screen and it plays a video in full screen. Then when I tap anywhere in 
the screen again I want to be able to skip to another part of the video. 
How can I make this app? I would really appreciate the help. Its a win-win 
situation if you help me you learn something and I will learn something too.

Thanks

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


Re: [android-developers] Need help in every way!

2016-03-19 Thread Xyler Aston
I figured the RAM might not be sufficient which is crazy that it needs that 
much RAM but I do IT and am working on finding a PC to get about 6 to 8 GB 
of RAM or seeing if I have enough lying around to update this one. 

For the second I don't have a clue where to find the crash logs. When I 
looked it up it there appear to be 10 different places the crash log might 
be. I can give you the code though. All I did was take the Hello World text 
and change it to login and put two small text boxes, delete the text and 
put a hint on each one for username and password. I'm completely new to 
Android Studio. In Microsoft Visual Studio all I have to do is double click 
on the designer to get to the code page. How do I get the code in Android 
Studio because that doesn't seem to work and I'm not sure where the code 
file is stored? I did attach a screenshot of what the app looks like and 
the only attribute I changed was the hint as shown in the image attached.

On Wednesday, March 16, 2016 at 9:32:14 AM UTC-4, Tushar Lal wrote:
>
> Hi Xyler Aston,
>
> The answer for your first question is that 4GB RAM is just not enough. I 
> know that on 
> http://developer.android.com/sdk/index.html?gclid=CMzG7fSkxcsCFdIRaAodWoIFtg#Requirements
>  
> it says that 4GB is enough because that depends upon how much RAM & CUP are 
> being taken up by other process & application. 
>
> As for the third question either you have to share the crash logs or your 
> code.
>
> And for your forth and final question we can only say after seeing the 
> code. But by the description that you provided it can't be that bad.
>
>
>
> Regards:
> Tushar Lal
>
> On Wed, Mar 16, 2016 at 6:28 PM, Xyler Aston  > wrote:
>
>> I just downloaded the Android Studio. I am running windows 7 64 bit with 
>> 4 GBs of Ram. When I open the application it takes a few minutes to load 
>> the studio. It then loads to an error that says there was a rendering 
>> problem which I fix by changing the API from the drop down. I put 3 labels 
>> on the app and just wanted to see what that looked like so I tried running 
>> it. I ran it through the Emulator and after basically freezing my computer 
>> up and taking up to 5 minutes to build it works but then I see a blank 
>> screen. I don't even see my labels. So I tried running it from my phone and 
>> after a few hours I finally got it to where it would even recognize my 
>> phone as authorized. However, every time I try to run it it says the app 
>> has crashed before it even loads. I am using a Samsung Galaxy s3 so I tried 
>> it with API 17. So here are my questions.
>>
>> #1:
>> Why is this program s slow? I have changed the gradle to be 
>> offline. I have also added this line to the 
>> properties org.gradle.daemon=true and still it takes forever and almost 
>> freezes up my computer.
>>
>> #2:
>> Why aren't my labels showing when I run it through the emulator? I mean 
>> that's about as simple as you can get and it isn't even working.
>>
>> #3:
>> Why does my phone crash before even loading the app? I have 32 GB of 
>> memory on my phone via an SD card if that even matters. 
>>
>> #4:
>> Can this program really be as bad as it seems? I've been "working with 
>> it" about 3 days now and I can't get it to function properly in any way.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> To post to this group, send email to android-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/d992c8d0-c5a8-474a-9b9b-8d5009e8a1a0%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Regards:
> Tushar
> +91-9711577561
>

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


[android-developers] Need help in every way!

2016-03-19 Thread Xyler Aston
I just downloaded the Android Studio. I am running windows 7 64 bit with 4 
GBs of Ram. When I open the application it takes a few minutes to load the 
studio. It then loads to an error that says there was a rendering problem 
which I fix by changing the API from the drop down. I put 3 labels on the 
app and just wanted to see what that looked like so I tried running it. I 
ran it through the Emulator and after basically freezing my computer up and 
taking up to 5 minutes to build it works but then I see a blank screen. I 
don't even see my labels. So I tried running it from my phone and after a 
few hours I finally got it to where it would even recognize my phone as 
authorized. However, every time I try to run it it says the app has crashed 
before it even loads. I am using a Samsung Galaxy s3 so I tried it with API 
17. So here are my questions.

#1:
Why is this program s slow? I have changed the gradle to be 
offline. I have also added this line to the 
properties org.gradle.daemon=true and still it takes forever and almost 
freezes up my computer.

#2:
Why aren't my labels showing when I run it through the emulator? I mean 
that's about as simple as you can get and it isn't even working.

#3:
Why does my phone crash before even loading the app? I have 32 GB of memory 
on my phone via an SD card if that even matters. 

#4:
Can this program really be as bad as it seems? I've been "working with it" 
about 3 days now and I can't get it to function properly in any way.

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


Re: [android-developers] Need help in every way!

2016-03-19 Thread Didier Boka
What is your CPU fqs turn !?

On 15:22, Wed, Mar 16, 2016 Xyler Aston  wrote:

> I figured the RAM might not be sufficient which is crazy that it needs
> that much RAM but I do IT and am working on finding a PC to get about 6 to
> 8 GB of RAM or seeing if I have enough lying around to update this one.
>
> For the second I don't have a clue where to find the crash logs. When I
> looked it up it there appear to be 10 different places the crash log might
> be. I can give you the code though. All I did was take the Hello World text
> and change it to login and put two small text boxes, delete the text and
> put a hint on each one for username and password. I'm completely new to
> Android Studio. In Microsoft Visual Studio all I have to do is double click
> on the designer to get to the code page. How do I get the code in Android
> Studio because that doesn't seem to work and I'm not sure where the code
> file is stored? I did attach a screenshot of what the app looks like and
> the only attribute I changed was the hint as shown in the image attached.
>
>
> On Wednesday, March 16, 2016 at 9:32:14 AM UTC-4, Tushar Lal wrote:
>
>> Hi Xyler Aston,
>>
>> The answer for your first question is that 4GB RAM is just not enough. I
>> know that on
>> http://developer.android.com/sdk/index.html?gclid=CMzG7fSkxcsCFdIRaAodWoIFtg#Requirements
>> it says that 4GB is enough because that depends upon how much RAM & CUP are
>> being taken up by other process & application.
>>
>> As for the third question either you have to share the crash logs or your
>> code.
>>
>> And for your forth and final question we can only say after seeing the
>> code. But by the description that you provided it can't be that bad.
>>
>>
>>
>> Regards:
>> Tushar Lal
>>
> On Wed, Mar 16, 2016 at 6:28 PM, Xyler Aston  wrote:
>>
> I just downloaded the Android Studio. I am running windows 7 64 bit with 4
>>> GBs of Ram. When I open the application it takes a few minutes to load the
>>> studio. It then loads to an error that says there was a rendering problem
>>> which I fix by changing the API from the drop down. I put 3 labels on the
>>> app and just wanted to see what that looked like so I tried running it. I
>>> ran it through the Emulator and after basically freezing my computer up and
>>> taking up to 5 minutes to build it works but then I see a blank screen. I
>>> don't even see my labels. So I tried running it from my phone and after a
>>> few hours I finally got it to where it would even recognize my phone as
>>> authorized. However, every time I try to run it it says the app has crashed
>>> before it even loads. I am using a Samsung Galaxy s3 so I tried it with API
>>> 17. So here are my questions.
>>>
>>> #1:
>>> Why is this program s slow? I have changed the gradle to be
>>> offline. I have also added this line to the
>>> properties org.gradle.daemon=true and still it takes forever and almost
>>> freezes up my computer.
>>>
>>> #2:
>>> Why aren't my labels showing when I run it through the emulator? I mean
>>> that's about as simple as you can get and it isn't even working.
>>>
>>> #3:
>>> Why does my phone crash before even loading the app? I have 32 GB of
>>> memory on my phone via an SD card if that even matters.
>>>
>>> #4:
>>> Can this program really be as bad as it seems? I've been "working with
>>> it" about 3 days now and I can't get it to function properly in any way.
>>>
>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-developers+unsubscr...@googlegroups.com.
>>>
>> To post to this group, send email to android-d...@googlegroups.com.
>>
>>
>>> Visit this group at https://groups.google.com/group/android-developers.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/android-developers/d992c8d0-c5a8-474a-9b9b-8d5009e8a1a0%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Regards:
>> Tushar
>> +91-9711577561
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/bf875c11-8c9c-4999-9464-88ba2e52621c%40googlegroups.com
> 
> 

Re: [android-developers] Need help in every way!

2016-03-19 Thread Tushar Lal
Hi Xyler Aston,

The answer for your first question is that 4GB RAM is just not enough. I
know that on
http://developer.android.com/sdk/index.html?gclid=CMzG7fSkxcsCFdIRaAodWoIFtg#Requirements
it says that 4GB is enough because that depends upon how much RAM & CUP are
being taken up by other process & application.

As for the third question either you have to share the crash logs or your
code.

And for your forth and final question we can only say after seeing the
code. But by the description that you provided it can't be that bad.



Regards:
Tushar Lal

On Wed, Mar 16, 2016 at 6:28 PM, Xyler Aston  wrote:

> I just downloaded the Android Studio. I am running windows 7 64 bit with 4
> GBs of Ram. When I open the application it takes a few minutes to load the
> studio. It then loads to an error that says there was a rendering problem
> which I fix by changing the API from the drop down. I put 3 labels on the
> app and just wanted to see what that looked like so I tried running it. I
> ran it through the Emulator and after basically freezing my computer up and
> taking up to 5 minutes to build it works but then I see a blank screen. I
> don't even see my labels. So I tried running it from my phone and after a
> few hours I finally got it to where it would even recognize my phone as
> authorized. However, every time I try to run it it says the app has crashed
> before it even loads. I am using a Samsung Galaxy s3 so I tried it with API
> 17. So here are my questions.
>
> #1:
> Why is this program s slow? I have changed the gradle to be
> offline. I have also added this line to the
> properties org.gradle.daemon=true and still it takes forever and almost
> freezes up my computer.
>
> #2:
> Why aren't my labels showing when I run it through the emulator? I mean
> that's about as simple as you can get and it isn't even working.
>
> #3:
> Why does my phone crash before even loading the app? I have 32 GB of
> memory on my phone via an SD card if that even matters.
>
> #4:
> Can this program really be as bad as it seems? I've been "working with it"
> about 3 days now and I can't get it to function properly in any way.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/d992c8d0-c5a8-474a-9b9b-8d5009e8a1a0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards:
Tushar
+91-9711577561

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


Re: [android-developers] NEED HELP!!! How can I get history from Android browser in Android M without READ_HISTORY_BOOKMARKS permission?

2015-12-22 Thread Dielson Sales
Seems like they don't want you to do that anymore

:

If your app targets Android 6.0 (API level 23) or higher, don't access
> bookmarks from the global provider or use the bookmark permissions.
> Instead, your app should store bookmarks data internally.
>

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


[android-developers] NEED HELP!!! How can I get history from Android browser in Android M without READ_HISTORY_BOOKMARKS permission?

2015-12-21 Thread Lân Lê Quang Bảo
As we know the  READ_HISTORY_BOOKMARKS permission has been removed in 
Android M, so how to get histories from Android browser without it?

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


[android-developers] Need help with Tracked channels (UTM) in google play console

2015-12-18 Thread mohan krishna
Need help with Tracked channels (UTM) in google play console (user 
acquisition) please.
I want to track which source is giving me more installs in developer 
console user acquisition section.
I used this link 
https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-url-builder
 
to create urls for different sources and placed them in different sources 
from where i get users. But i don't see any measurement in my user 
acquisition-> performance page in google developer console, even after more 
than one week, i can see other numbers like "Play Store (organic)" for same 
date but "Tracked channels (UTM)" is still zero even after one week.
Thank you in advance for the help.

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


[android-developers] Need Help - Android Wear IME Question

2015-11-30 Thread Katja DeCuir
hey. making an IME for android wear. i've got a few questions before i go 
about doing this.

1. i have a keyboard IME already designed and written.. for Android. (i was 
told to go ahead and write a normal android IME before using it on android 
wear)

2. so, i have this IME and zero idea of where to go next to get it on the 
android wear. do i just install to my phone and go into development mode 
and enable the IME on the watch? do i add lines of code somewhere to make 
it specifically for the android wear?

3. i know for a fact you can use IMEs on the android wear. there's things 
everywhere about how to install minuum or whatever and enable input methods 
on the watch.. my question, are the keyboards for android wear all 
full-blown SMS apps that just have a keyboard in them as part of the app? 
do i need to write an SMS app? or will my keyboard just pop up when i hit 
reply to a text message popup on the watch? (such as the normal popup from 
the standard android messaging app that comes with the phone.. as 
currently, hitting reply opens it on the phone, whereas reply with voice 
lets you talk to it.) or will it bring up another option to reply with an 
IME?

any help is useful. thanks so much. i know those are probably stupid 
beginner questions, but i must be overlooking some shred of information 
somewhere because i'm unable to answer this myself. any relevant links or 
info would be extremely useful. if any more info is needed, just ask.

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


Re: [android-developers] Need help for Developing the app using Google Glass SDK.

2014-02-06 Thread TreKing
On Thu, Feb 6, 2014 at 1:24 AM, Seshu s.seshu...@gmail.com wrote:

  I am new to Google glass SDK. can any one please help me how to start
 developing the app for google glass sdk.


Try this: http://lmgtfy.com/?q=google+glass+sdk

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Need help for Developing the app using Google Glass SDK.

2014-02-05 Thread Seshu
Hi Developers,
 I am new to Google glass SDK. can any one please help me how to 
start developing the app for google glass sdk.

Thanks and Regards,
S.Seshu

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


Re: [android-developers] Need help setting table column width

2013-08-18 Thread Salil
Thanks TreKing

One more observation is - first column always takes some specific width. I 
tried by putting a blank string in the fist column and build. Then the 
first column still takes some specific width and rest of the columns are 
taking it's required width.

I tried different ways - but couldn't figure out a logical reason for this 
behavior. 

thanks
Salil



On Sunday, August 18, 2013 9:01:09 AM UTC+5:30, TreKing wrote:


 On Sat, Aug 17, 2013 at 6:19 PM, Salil sal...@gmail.com javascript:wrote:

 I have attached my project in the first mail. Hence I didn't include the 
 source files in subsequent mails.


 As I mentioned originally, few people are going to download attachments. 
 You need to paste the relevant code into the message itself.
  

 Here I have attached two files. MainActivity.java and TableTest.tar. 
 MainActivity.java is there in the project file also. 


 I don't see anything blatantly wrong with your Java file. So I would 
 suggest you back up, comment out everything in your table making method, 
 and start adding things back in piece by piece. Then see where it starts to 
 fail.


 -
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Need help setting table column width

2013-08-17 Thread TreKing
On Fri, Aug 16, 2013 at 8:05 PM, Salil sali...@gmail.com wrote:

   I tried the solutions that you specified. When set the shrinkable to
 first column the first column disappeared. ( as in the attachment ).


Please show the full chunk of code you're using to create your table.


 This is my first project in Android and hence my knowledge about the
 internals of UI elements are not that good. Hence I am not sure where to
 hit for solving the problem. That is why I am dependent on the community.
 Sorry if the question asked is a silly one.


That's fine, your question is not silly, I'm just trying to get you to
share the relevant pieces of information that will help me or someone else
point you in the right direction.

You need to clearly show what you have done and what results you have
obtained so we can determine the source of your error.

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Need help setting table column width

2013-08-17 Thread TreKing
On Sat, Aug 17, 2013 at 6:19 PM, Salil sali...@gmail.com wrote:

 I have attached my project in the first mail. Hence I didn't include the
 source files in subsequent mails.


As I mentioned originally, few people are going to download attachments.
You need to paste the relevant code into the message itself.


 Here I have attached two files. MainActivity.java and TableTest.tar.
 MainActivity.java is there in the project file also.


I don't see anything blatantly wrong with your Java file. So I would
suggest you back up, comment out everything in your table making method,
and start adding things back in piece by piece. Then see where it starts to
fail.

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Need help setting table column width

2013-08-16 Thread Salil
Any luck on this ... 

this is a kind of a bit urgent for me. Any pointers or help would be 
appreciated.

Thanks
sAlil

On Wednesday, August 14, 2013 7:51:32 AM UTC+5:30, Salil wrote:

 Thanks TreKing for the reply.

 I referred the online documents for setting layout parameters. But 
 couldn't do it correctly. I am not getting a logical explanation on why 
 only the first column is not setting the parameter. If I add a blank column 
 before the first column ( id column ) then the first blank column will be 
 of the fixed size and id column will become fit to the text size. It was a 
 bit puzzling. 

 Thanks for taking time to look into this. will wait for the analysis of 
 the experts.

 Thanks
 Salil 

 On Tuesday, August 13, 2013 11:11:05 PM UTC+5:30, TreKing wrote:


 On Tue, Aug 13, 2013 at 1:38 AM, Salil sal...@gmail.com wrote:

 I think I didn't understand your question correctly. the project file is 
 attached.


 Few people are going to download an attachment off a posting in a public 
 forum on the internet. Even fewer are going to weed through it to debug 
 your problem for you. When posting, you need to post the relevant bits of 
 your code to make easier for others to see what you're doing and offer help.
  

 The following is what I am doing.


  Checkout the docs for 
 TableLayouthttp://developer.android.com/reference/android/widget/TableLayout.html,
  
 particularly the section about setting columns shrinkable.

 Also make sure you're using the correct layout params:

 http://developer.android.com/reference/android/widget/TableLayout.LayoutParams.html

 http://developer.android.com/reference/android/widget/TableRow.LayoutParams.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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Need help setting table column width

2013-08-16 Thread TreKing
On Fri, Aug 16, 2013 at 6:00 AM, Salil sali...@gmail.com wrote:

 Any luck on this ...


Are you just sitting around waiting for someone to give you an answer? Did
you try the things I suggested to you?

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

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


Re: [android-developers] Need help setting table column width

2013-08-13 Thread Salil
TreKing

  Thanks for responding

   I think I didn't understand your question correctly. the project file is 
attached. The following is what I am doing.

 int result_str_size = 5;
for ( int i=0 ; i result_str_size; i++)
{
TableRow tr = new TableRow(this);
String result_str=Hello | World | this is | fun;
tr.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
tr.setMinimumHeight(20);

tr.setPadding(10, 2, 10, 2);
TextView id = new TextView(this);


id.setBackgroundColor(0x55779900);

id.setText(+(i+1)+);
tr.addView(id);
StringTokenizer st = new 
StringTokenizer(result_str,|);

int back_color=0x9900;

while (st.hasMoreElements())
{
back_color+=0x40;
TextView name = new TextView(this);

name.setBackgroundColor(back_color);

String token = st.nextToken();
name.setText(token);

tr.addView(name);
}

tl1.addView(tr);
}


On Tuesday, 13 August 2013 10:33:04 UTC+5:30, TreKing wrote:


 On Mon, Aug 12, 2013 at 9:37 PM, Salil sal...@gmail.com javascript:wrote:

 I want to get the first column shrink to fit to the text size.


 And what have you tried?


 -
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Need help setting table column width

2013-08-13 Thread TreKing
On Tue, Aug 13, 2013 at 1:38 AM, Salil sali...@gmail.com wrote:

 I think I didn't understand your question correctly. the project file is
 attached.


Few people are going to download an attachment off a posting in a public
forum on the internet. Even fewer are going to weed through it to debug
your problem for you. When posting, you need to post the relevant bits of
your code to make easier for others to see what you're doing and offer help.


 The following is what I am doing.


Checkout the docs for
TableLayouthttp://developer.android.com/reference/android/widget/TableLayout.html,
particularly the section about setting columns shrinkable.

Also make sure you're using the correct layout params:
http://developer.android.com/reference/android/widget/TableLayout.LayoutParams.html
http://developer.android.com/reference/android/widget/TableRow.LayoutParams.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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Need help setting table column width

2013-08-13 Thread Salil
Thanks TreKing for the reply.

I referred the online documents for setting layout parameters. But couldn't 
do it correctly. I am not getting a logical explanation on why only the 
first column is not setting the parameter. If I add a blank column before 
the first column ( id column ) then the first blank column will be of the 
fixed size and id column will become fit to the text size. It was a bit 
puzzling. 

Thanks for taking time to look into this. will wait for the analysis of the 
experts.

Thanks
Salil 

On Tuesday, August 13, 2013 11:11:05 PM UTC+5:30, TreKing wrote:


 On Tue, Aug 13, 2013 at 1:38 AM, Salil sal...@gmail.com javascript:wrote:

 I think I didn't understand your question correctly. the project file is 
 attached.


 Few people are going to download an attachment off a posting in a public 
 forum on the internet. Even fewer are going to weed through it to debug 
 your problem for you. When posting, you need to post the relevant bits of 
 your code to make easier for others to see what you're doing and offer help.
  

 The following is what I am doing.


  Checkout the docs for 
 TableLayouthttp://developer.android.com/reference/android/widget/TableLayout.html,
  
 particularly the section about setting columns shrinkable.

 Also make sure you're using the correct layout params:

 http://developer.android.com/reference/android/widget/TableLayout.LayoutParams.html

 http://developer.android.com/reference/android/widget/TableRow.LayoutParams.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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Need help setting table column width

2013-08-12 Thread TreKing
On Mon, Aug 12, 2013 at 9:37 PM, Salil sali...@gmail.com wrote:

 I want to get the first column shrink to fit to the text size.


And what have you tried?

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Need help with background loading

2013-05-07 Thread MathieuB
Hi!

In my app, I have a loader that calls a webservice and gets a result from 
it. Based on that result being positive, it would show an alertdialog to 
tell the user there is an update available for some files (that are parts 
of my app).

Problem is : I'd like to start that loader on app launch, and deliver the 
alertdialog anywhere in the app, whatever activity the user is in.

I searched for a solution. Thought about putting the loader work in the 
Application class, but really not sure it's a viable solution.

TL;DR : Do you have any idea how to do background process on app launch, 
that would delivers an alertdialog independently of the activity user's in?

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




[android-developers] Need help with simple script

2013-04-23 Thread Piotr Wasilewski
Hello, I`ve got a usb modem trouble, so I need to run everytime a terminal 
session with command:

echo 12d1 1506  /sys/bus/usb-serial/drivers/option1/new_id
usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M 
55534243123456780011062001


I`ve got root permissions on the device and a busybox installed.
Can someone help me to set this on system start ... or howto make an `click 
script` with root permissions.

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




[android-developers] Need help with AVD

2013-01-06 Thread Asaf Nassi
When I create a new device in AVD I need to fill detail,
I understand what is the Definition in the left side:  name, screen 
size, resolution, sensors, cameras, input and RAM,
but I don't understand what is the Definition in the right side: size, 
screen ratio, density, buttons and device states.
what that mean?

Thanks Asaf

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Help to resolve : W/System.err(791): java.net.SocketException: Interrupted system call

2012-11-28 Thread Geo Manickam
Hello there, 

I am been battling this issue for 4 days now. i tried all the suggestion in 
the web. Still not able to fix this. Any help on this is appreciated.
the crash happen in device and emulator when i press the back 
or orientation is changed. Attached is my manifest file

thanks
Geo

https://code.google.com/p/android/issues/detail?id=2373 
https://code.google.com/p/android/issues/detail?id=26658

I am using the following. 

1. Sencha 2.1 with jsonp store.
2. Android ( Target 4.2, targeted API 17)


11-25 13:06:10.701: I/Web Console(791): exception firing destroy event from 
native at :1
11-25 13:06:10.701: D/DroidGap(791): onMessage(onPageStarted,about:blank)
11-25 13:06:10.831: W/System.err(791): java.net.SocketException: 
Interrupted system call
11-25 13:06:10.831: W/System.err(791): at 
org.apache.harmony.luni.platform.OSNetworkSystem.acceptSocketImpl(Native 
Method)
11-25 13:06:10.831: W/System.err(791): at 
org.apache.harmony.luni.platform.OSNetworkSystem.accept(OSNetworkSystem.java:69)
11-25 13:06:10.841: W/System.err(791): at 
org.apache.harmony.luni.net.PlainSocketImpl.accept(PlainSocketImpl.java:126)
11-25 13:06:10.841: W/System.err(791): at 
java.net.ServerSocket.implAccept(ServerSocket.java:281)
11-25 13:06:10.841: W/System.err(791): at 
java.net.ServerSocket.accept(ServerSocket.java:165)
11-25 13:06:10.881: W/System.err(791): at 
org.apache.cordova.CallbackServer.run(CallbackServer.java:195)
11-25 13:06:10.881: W/System.err(791): at 
java.lang.Thread.run(Thread.java:1096)

My On Create.

*public void onCreate(Bundle savedInstanceState) {*

* super.onCreate(savedInstanceState);*

* /*if (!isTaskRoot()) {*

* final Intent intent = getIntent();*

* final String intentAction = intent.getAction();*

* if (intent.hasCategory(Intent.CATEGORY_LAUNCHER) *

* intentAction != null  
intentAction.equals(Intent.ACTION_MAIN)) {*

* finish();*

* }*

* }*/*

*  /*ActivityManager manager = (ActivityManager) this.getSystemService( 
ACTIVITY_SERVICE );*

* ListRunningTaskInfo tasks =  
manager.getRunningTasks(Integer.MAX_VALUE);*

*
*

* for (RunningTaskInfo taskInfo : tasks) {*

* Log.w(Example, (taskInfo.baseActivity.getClassName()) + : 
+ taskInfo.numActivities);*

* 
if(taskInfo.baseActivity.getClassName().equals(this.getClass().getName()) 
 (taskInfo.numActivities  1)){*

* finish();*

* }*

* }*/*

* //setContentView(R.layout.activity_tamil_recipes_main);*

* *

*  setIntegerProperty(loadUrlTimeoutValue, 3);*

* super.loadUrl(file:///android_asset/www/index.html);*

*  *

**

* // Create the adView *

*//adView = new AdView(this, AdSize.BANNER, ); *

**

*// Lookup your LinearLayout assuming it's been given *

*//LinearLayout layout =  
(LinearLayout)findViewById(R.id.mainLayout);*

*// the attribute android:id=@+id/mainLayout *

*//LinearLayout layout = this.root;  // this is the only change 
from the sample *

*
*

*// Add the adView to it *

*//layout.addView(adView); *

*
*

*// Initiate a generic request to load it with an ad *

*//AdRequest request = new AdRequest(); *

*//request.addTestDevice(AdRequest.TEST_EMULATOR);*

*   
//layout.setHorizontalGravity(android.view.Gravity.CENTER_HORIZONTAL);*

*   //adView.loadAd(request); *

* *

* }*

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

AndroidManifest.xml
Description: XML document


Re: [android-developers] Need help to read .ASPX webpage in app

2012-11-07 Thread TreKing
On Tue, Nov 6, 2012 at 2:48 AM, Ashish Banerjee bashish1...@gmail.comwrote:

 I need to display the content of an ASPX webpage in a apps gui in a
 modified form i.e. with my own font style and other stuffs. please help on
 how to achieve this.
 P.S. i am new to android programming.


1. http://developer.android.com/guide/index.html
2. Try something.
3. Ask a more detailed 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] Need help to read .ASPX webpage in app

2012-11-06 Thread Ashish Banerjee
I need to display the content of an ASPX webpage in a apps gui in a 
modified form i.e. with my own font style and other stuffs. please help on 
how to achieve this. 
P.S. i am new to android programming.

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

[android-developers] Need Help with Make App

2012-10-29 Thread albazi
hello how are you today?
 
i'm new here  i don't know nothing about  how to make App for Android
i just download/installed (eclipse juno) i'm runing windows 7
i like to make playlist App for Android
can any one help me tell me how?
here what i need i have make it for the website but idon't know how to make 
it for the App for Android
 
here is the code i'm useing for my website
player  code

 script type=text/javascript src=swfobject.js/script

 div id=videoThis text will be replaced/div script 
 type=text/javascript*var* so = *new* SWFObject('video.swf','mpl','660',
 '450','8');
 so.addParam('allowscriptaccess','always');
 so.addParam('allowfullscreen','*false*');
 so.addVariable('height','450');
 so.addVariable('width','660');
 so.addVariable('file','list1.xmlbackcolor=0x00frontcolor=0xff
 lightcolor=0xfflogo=logo.gifdisplayheight=450displaywidth=660
 searchbar=*false*autostart=*true*shuffle=*true**/');*
 so.addVariable('backcolor','0x00');
 so.addVariable('frontcolor','0xff');
 so.addVariable('lightcolor','0xff');
 so.addVariable('shuffle','*true*');
 so.addVariable('autostart','*true*');
 so.addVariable('displayheight','450');
 so.addVariable('displaywidth','660');
 so.addVariable('searchbar','*false*');
 so.*write*('player');/script

  
 
  here is the  list1.xml code 

 playlist version=
 1 xmlns=http://xspf.org/ns/0/;
 titlePlaylist/title
 infovideo Playlist 1/info
 annotationvideo Playlist 1t/annotation
 trackList
 track
 titlevideo 1/title
 creatorvideo Playlist 1/creator
 locationhttps://www.youtube.com/watch?v=T9Je8CFcfo8/location
 /track
 track
 titlevideo 2/title
 creatorvideo Playlist 1/creator
 locationhttps://www.youtube.com/watch?v=Dy6DRsm2VaM/location
 /track
 track
 titlevideo 3/title
 creatorvideo Playlist 1/creator
 locationhttps://www.youtube.com/watch?v=791Dr-VH-Zw/location
 /track
 track
 titlevideo 4/title
 creatorvideo Playlist 1/creator
 locationhttps://www.youtube.com/watch?v=Zy3I8Ql1ZKk/location
 /track
 track
 titlevideo 5/title
 creatorvideo Playlist 1/creator
 locationhttps://www.youtube.com/watch?v=V8dDzk3vDzw/location
 /track
 track
 titlevideo 6/title
 creatorvideo Playlist 1/creator
 locationhttps://www.youtube.com/watch?v=kPU3Cg7LdTU/location
 /track
 /trackList
 /playlist

  
so what the best  way i can make it look like 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

Re: [android-developers] Re: [Android-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-25 Thread akash roy
thanx bob i  did that already...here is my sample code :


sender :

File myFile = new File(message.toURI());
nosofpackets=Math.ceil(( (int)myFile.length())/4096);
//mChatService.writeda(
message.getName(), myFile.length());
for(double i=0; inosofpackets; i++)
{
BufferedInputStream bis = new BufferedInputStream(new
FileInputStream(myFile));
byte[] send = new byte[4096];
bis.read(send, 0,send.length);
mChatService.write(send);
}

receiver code as follows.
receiver:

Log.d(TAG, begin inputstream);
bytes = mmInStream.read(buffer);
Log.d(TAG, data incoming);
System.out.println(bytes);
Log.d(TAG, begin file writing);
//bos.write(buffer, 0,buffer.length);
while((bytes = mmInStream.read(buffer))0){
Log.d(TAG, data is there for writing);
bos.write(buffer);}

i am getting a prob ..i.e when i am sending data from one cell to another
..the receiver file is getting too large and corrupted.plz help me.
its not working properly.

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

Re: [android-developers] Re: [Android-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-18 Thread bob
Change this:

InputStream instream = socket.getInputStream();

to this:

*OutputStream outstream = socket.getOutputStream();*


Change this:

instream.read( buffer);

to this:

*outstream.write( buffer);*


On Thursday, October 11, 2012 12:26:43 AM UTC-5, akash roy wrote:

 i want send a file so what changes i have to make.?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-10 Thread bob
 

*Creating a Bluetooth client socket*

**private void connectToServerSocket( BluetoothDevice device, UUID uuid) { 

try{ BluetoothSocket clientSocket = 
device.createRfcommSocketToServiceRecord( uuid); 

// Block until server connection accepted. 

clientSocket.connect(); 

// Start listening for messages. 

listenForMessages( clientSocket); 

// Add a reference to the socket used to send messages. 

transferSocket = clientSocket; } 

catch (IOException e) { Log.e( BLUETOOTH, Bluetooth client I/ O 
Exception, e); } }


*Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 17714-17720). John Wiley and 
Sons. Kindle Edition. *




*Sending and receiving strings using Bluetooth Sockets* 

private void listenForMessages( BluetoothSocket socket, StringBuilder 
incoming) {

 listening = true;

 int bufferSize = 1024;

 byte[] buffer = new byte[ bufferSize];

 try { InputStream instream = socket.getInputStream();

 int bytesRead = -1; while (listening) {

 bytesRead = instream.read( buffer);

 if (bytesRead != -1) {

 String result = ;

 while (( bytesRead == bufferSize)  (buffer[ bufferSize-1] != 0)){

 result = result + new String( buffer, 0, bytesRead - 1);

 bytesRead = instream.read( buffer); 

} result = result + new String( buffer, 0, bytesRead - 1);

 incoming.append( result); 

} 

socket.close();

 }

 } 

catch (IOException e) { Log.e( TAG, Message received failed., e); } 
finally { } }


*Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 17737-17751). John Wiley and 
Sons. Kindle Edition. *

On Tuesday, October 9, 2012 10:07:47 PM UTC-5, akash roy wrote:

 i am currently on a project and i need to share files from one device to 
 another with the help of bluetooth. so i thought of changing the codes from 
 the bluetooth chat demo that is available in android developer's site .
 actually i need to simply send a text file . but i am getting some issues 
 in that code due to which i could not rectify my problem. so if any of you 
 can send me a sample for sharing files using bluetooth then i think then it 
 could be a great help to me.

 Thankyou


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

Re: [android-developers] Re: [Android-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-10 Thread akash roy
i want send a file so what changes i have to make.?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-09 Thread akash roy
i am currently on a project and i need to share files from one device to
another with the help of bluetooth. so i thought of changing the codes from
the bluetooth chat demo that is available in android developer's site .
actually i need to simply send a text file . but i am getting some issues
in that code due to which i could not rectify my problem. so if any of you
can send me a sample for sharing files using bluetooth then i think then it
could be a great help to me.

Thankyou

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-09 Thread akash roy
and i m very new on this android developing.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] NEED HELP FOR INSTALL THE PLUGIN ADT ON ECLIPS

2012-10-04 Thread Mark Murphy
That is the repository for Eclipse Indigo. It is not the repository
for the ADT plugin. See:

http://developer.android.com/sdk/installing/installing-adt.html

On Thu, Oct 4, 2012 at 5:20 AM, AWAKA17 awak...@gmail.com wrote:
 I HAVE A PROBKEM WHEN I TRY TO INSTALL THE ADT PLUGIN IN THE ECLIPS I TRIEN
 MANY URL'S AND ITS ALWAYS DONT WORK SHOW ME 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



-- 
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.2 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] need help with firmware

2012-09-17 Thread tottalwar
please, help me, how to get any lower firmware?

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

2012-09-09 Thread J.Willison
Published my first app last night (15 hours ago)
I believe my app package is called com.wSLBridalApp
I cannot seem to figure out how to find it on google play.
I uploaded it, added screenshots etc, and published it.

Can't search for it (which I'm told takes a while to populate) but i should 
be able to link to it using the app package id right?

I don't know how to figure out how to link to it...

Sorry I'm new here and have never done this.

thanks in advance for the 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] need help For App Inventor, Image Zoom + and -

2012-09-09 Thread Desi
hello freind's 

i need some   help   

i am working on a app.

there is an image ( 4000 pix X 4000 )

can any one help me for zoom contoles 


thn

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help For App Inventor, Image Zoom + and -

2012-09-09 Thread Mark Murphy
This group is for developing applications with the Android SDK, not
via App Inventor.

On Sun, Sep 9, 2012 at 6:57 AM, Desi justde...@gmail.com wrote:
 hello freind's

 i need some   help

 i am working on a app.

 there is an image ( 4000 pix X 4000 )

 can any one help me for zoom contoles


 thn

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

2012-09-09 Thread Mark Murphy
On Fri, Sep 7, 2012 at 12:24 PM, J.Willison justin.willi...@gmail.com wrote:
 Published my first app last night (15 hours ago)
 I believe my app package is called com.wSLBridalApp

Look at your AndroidManifest.xml file to see what your package actually is.

-- 
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.1 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] need help

2012-09-04 Thread Madhuri Cherukuri
Hi

Can any one  help me how to replace a two  xml's by using include and merg
tag or  is there any other way to replace.
Thanking 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

Re: [android-developers] need help

2012-09-04 Thread vinay kumar
can you be more specific, what you really want to implement.

On Tue, Sep 4, 2012 at 11:08 PM, Madhuri Cherukuri
ch.madhuri...@gmail.comwrote:

 Hi

 Can any one  help me how to replace a two  xml's by using include and merg
 tag or  is there any other way to replace.
 Thanking 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] need help

2012-09-04 Thread thinkee365
why you should use include and merge?
you can replace using vim:)

On Tue, Sep 04, 2012 at 11:08:58PM +0530, Madhuri Cherukuri wrote:
 Hi
 
 Can any one  help me how to replace a two  xml's by using include and merg
 tag or  is there any other way to replace.
 Thanking 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] need help

2012-09-04 Thread Justin Anderson
http://android-developers.blogspot.com/2009/02/android-layout-tricks-2-reusing-layouts.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Sep 4, 2012 at 12:06 PM, thinkee365 thinke...@gmail.com wrote:

 why you should use include and merge?
 you can replace using vim:)

 On Tue, Sep 04, 2012 at 11:08:58PM +0530, Madhuri Cherukuri wrote:
  Hi
 
  Can any one  help me how to replace a two  xml's by using include and
 merg
  tag or  is there any other way to replace.
  Thanking 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


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

2012-09-02 Thread Madhuri Cherukuri
Hello folks,

I need a help me from you guys.

ex:  Game type

here  and  are two buttons and game type is text view,when i click
on  button the text should be replace by another text like AI.
this should be done in custom dialog box.

please help me out.

Thanks  Regards
Ch.Madhuri

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

2012-09-02 Thread Fred Niggle
you need to google for button.settext...

On 31 August 2012 12:37, Madhuri Cherukuri ch.madhuri...@gmail.com wrote:

 Hello folks,

 I need a help me from you guys.

 ex:  Game type

 here  and  are two buttons and game type is text view,when i click
 on  button the text should be replace by another text like AI.
 this should be done in custom dialog box.

 please help me out.

 Thanks  Regards
 Ch.Madhuri


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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-08-07 Thread Bala
Hi,

I recently started testing out scala on android by coding an android project 
(https://github.com/prashanthbala/scaladroid) using the android plugin for 
Scala (https://github.com/jberkel/android-plugin/wiki/getting-started)  
The compilation and create of .dex files using android:package-debug was taking 
about 2-3 minutes, which was pushing down my development speed a lot.  

So I tried to use, ProguardCache (https://github.com/banshee/ProguardCache) on 
sbt to reduce the build time. However, I am getting errors running the final 
android-package debug (after compile and proguard-cache-build) on sbt 

trouble writing output: Too many methods: 193353; max is 65536 .. dx: 
Nonzero exit value: 2 

due to the 16-bit limit on the number of method names for davlik.

My hunch is that either the proguard step is not treeshaking the libraries used 
completely or the final package-debug is not using the pruned versions of the 
libraries. 
The project still builds fine without proguardCache.

Wondering if my proguard settings in ./proguard.conf are wrong or if my 
Build.scala settings are conflicting with the process. 

I've spend quite some time trying to fix this, any help would be appreciated. 
The files are available at https://github.com/prashanthbala/scaladroid.

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] Need help on sending events (Motion event, Key event and etc) from a service to system (android 4.0)

2012-08-06 Thread Prabudas


Hi,

I am working on an external HID device for android 4.0 devices. The device 
will have a touchpad and hardware buttons to replicate the touch screen and 
android buttons(Home, back and menu). To make this device work with any 
android 4.0 device, I do not want to modify the build or root the device. 
All I can do is, I can write an app (service) which can interact with this 
device through USB (using accessory mode v 1.0). So, from that app, I want 
to create the necessary events based on the message from USB. This can be 
very easy in android 4.1 with accessory mode 2.0. But, I need this for 4.0. 
Please help me on this. Thanks in advance.

…Prabudas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need help on sending events (Motion event, Key event and etc) from a service to system (android 4.0)

2012-08-06 Thread Dianne Hackborn
Currently the only way, outside of test environments, to deliver input
events to the platform is throw a kernel input device.  So your USB device
must report itself as a HID device (a keyboard, trackpad, mouse, or game
controller) which the kernel understands how to interact with and will
generate the appropriate low-level events from the input device.

On Mon, Aug 6, 2012 at 6:18 AM, Prabudas prabu...@gmail.com wrote:

 Hi,

 I am working on an external HID device for android 4.0 devices. The device
 will have a touchpad and hardware buttons to replicate the touch screen and
 android buttons(Home, back and menu). To make this device work with any
 android 4.0 device, I do not want to modify the build or root the device.
 All I can do is, I can write an app (service) which can interact with this
 device through USB (using accessory mode v 1.0). So, from that app, I want
 to create the necessary events based on the message from USB. This can be
 very easy in android 4.1 with accessory mode 2.0. But, I need this for 4.0.
 Please help me on this. Thanks in advance.

 …Prabudas

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

Re: [android-developers] Need help on sending events (Motion event, Key event and etc) from a service to system (android 4.0)

2012-08-06 Thread Prabudas


Dianne, thanks for your reply. Can I have a touch screen as an external HID 
(without add / modify any driver) in the same way like mouse and keyboard? 
Thanks.

Regards,

Prabudas S.

On Tuesday, 7 August 2012 03:41:29 UTC+5:30, Dianne Hackborn wrote:

 Currently the only way, outside of test environments, to deliver input 
 events to the platform is throw a kernel input device.  So your USB device 
 must report itself as a HID device (a keyboard, trackpad, mouse, or game 
 controller) which the kernel understands how to interact with and will 
 generate the appropriate low-level events from the input device.

 On Mon, Aug 6, 2012 at 6:18 AM, Prabudas prabu...@gmail.com wrote:

 Hi,

 I am working on an external HID device for android 4.0 devices. The 
 device will have a touchpad and hardware buttons to replicate the touch 
 screen and android buttons(Home, back and menu). To make this device work 
 with any android 4.0 device, I do not want to modify the build or root the 
 device. All I can do is, I can write an app (service) which can interact 
 with this device through USB (using accessory mode v 1.0). So, from that 
 app, I want to create the necessary events based on the message from USB. 
 This can be very easy in android 4.1 with accessory mode 2.0. But, I need 
 this for 4.0. Please help me on this. Thanks in advance.

 …Prabudas

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need help with java for making app run in background when app is closed but not stopped completly.

2012-08-02 Thread Vernon stallins
I made an app with app inventor and have had it changed over to java since 
app inventor cant allow apps to keep running in the background the phone 
eventually shuts them down. I need to know what java I should add and to 
what file so that my app will keep running after it is closed. Right now 
its just set to close and not stop the app completely. This is the last bug 
I need to fix in my app any help would be appreciated.

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

[android-developers] Need help regarding android app development?

2012-07-26 Thread yuvan kiran
i have a plan of building an android app which takes the serial number..and 
displays the result of that serial number(i have the database of results 
and serial numbers)..but i know basics of android app development..i dont 
know about the linking of database into android app..so if you guys know 
anything regarding this, please help me out here..share your views..

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

2012-07-26 Thread Justin Anderson
http://lmgtfy.com/?q=android+database+tutorial

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Jul 23, 2012 at 9:08 AM, yuvan kiran kiranjki...@gmail.com wrote:

 i have a plan of building an android app which takes the serial
 number..and displays the result of that serial number(i have the database
 of results and serial numbers)..but i know basics of android app
 development..i dont know about the linking of database into android app..so
 if you guys know anything regarding this, please help me out here..share
 your views..

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need help to integrate OpenRtsp-live555 library in Android project for video streaming

2012-07-25 Thread india123

Hi All,
  
I want to use OpenRtsp-live555 library into my Android application for 
video streaming ,
 please suggest me how to integrate this library into my application .

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

2012-07-23 Thread Steve Meier
I hope someone can help.  

I have an application that I am building that currently has 3 main Layouts. 
All String-Arrays are in XML.  First Screen Shows, Breakfast, Lunch  
Dinner.  Now depending on which Button is selected, Example Lunch a 2nd 
Layout comes up Showing the Lunch Menu items, such as Cheeseburger, 
Hamburger, Hot Dog, French Fries, Onion Rings...  Let's say I select 
Cheeseburger, the Item is Added to the 3rd Layout.  When I click the Back 
button on the phone and select a new item such as Onion Rings that item 
replaces the Cheeseburger.  I need it to ADD it to the List, not replace 
it.  Can someone please tell me where my code is wrong?  

Summary,  I need the list to get appended with the items selected, not 
replaced by the selected item.


Here is my lunchActivity.java

[CODE]
package com.mycompany.foodmenu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
 
public class lunchActivity extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.lunchmain);
final ListView lv=(ListView)findViewById(R.id.listView1);   
   
ArrayAdapterCharSequence 
adapter=ArrayAdapter.createFromResource(this, 
R.array.lunch_menu,android.R.layout.simple_list_item_1);
lv.setAdapter(adapter);
lv.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView? arg0, View arg1, int arg2, long 
arg3) {
   // TODO Auto-generated method stub 
String item=lv.getItemAtPosition(arg2).toString();
   String itemordered;
   itemordered = item +  added to list;
   Toast.makeText(getApplicationContext(), itemordered, 
Toast.LENGTH_LONG).show();
   
// Launching new Activity on selecting List Item
Intent i = new Intent(getApplicationContext(), ListItem.class);
// sending data to new activity
i.putExtra(item, item);
startActivity(i); 
}
});
}
}
[/CODE]

Here is the lunch.xml menu file that read by the lunchActivity to create 
the first ListView

[CODE]
resources

string-array name=lunch_menu
itemCheeseburger/item
itemHamburger/item
itemBacon Cheeseburger/item
itemHot Dog/item
itemFrench Fries/item
itemOnion Rings/item
/string-array

/resources
[/CODE]

Here is the listItem.java

[CODE]
package com.mycompany.foodmenu;

import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class listItem extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.selecteditems);

Intent i = getIntent();

ArrayListString myNewList = new ArrayListString();
String item = i.getStringExtra(item);

myNewList.add(item);
ListView selecteditems = (ListView) findViewById(R.id.listitems);

ArrayAdapterString adapter = new ArrayAdapterString(ListItem.this, 
android.R.layout.simple_list_item_1, myNewList);
selecteditems.setAdapter(adapter);
// adapter.notifyDataSetChanged(); 


}
}
[/CODE]

BTW.  I have tried changing [CODE]myNewList.add(item);[/CODE]  to 
[CODE]myNewList.addAll(item);[/CODE] and it just creates new problems.  I 
have also tried adding [CODE]adapter.notifyDataSetChanged();[/CODE] to the 
end and it makes no difference.

And here is the selectedItems.xml file that is suppose to get populated 
with the Selected Items from the Lunch Menu

[CODE]
?xml version=1.0 encoding=utf-8?
LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:orientation=vertical
  android:background=@drawable/main_background 
  android:paddingLeft=10.0dip 
  android:paddingTop=0.0dip 
  android:paddingRight=10.0dip 
  android:paddingBottom=10.0dip 
  android:layout_width=fill_parent 
  android:layout_height=fill_parent

  ListView 
  android:id=@+id/listitems
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:textSize=25dip
  android:textStyle=bold
  android:padding=10dip
  android:textColor=#ff/

/LinearLayout
[/CODE]

Any help would be greatly appreciated!!

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

[android-developers] Need help - hidden GPS monitoring app

2012-06-29 Thread Mihai Popescu
Hello,

I am rather new to Android, and I need some information and opinions.

I intend to develop an application which would run on some Android phone, 
seeminglessly in the background, and send periodic messages to a server, 
regarding its current position (GPS coordinates).

The most important aspect here would be that:
- the application is intented to be preinstalled on a bunch of phones, 
before they will be used by a specific group of people.
- the user must not be able to stop/kill the application without some kind 
of password
- the user must not be able tu turn off his GPRS/3G internet connection.

I am aware that there are some security restrictions for developing such an 
app, but still my question is wether or not it would be possible to do it.

I assume that if not, the next best thing would be to customize the Android 
OS with these changes, and deploy it on the set of phones :D

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

[android-developers] Need Help Android communication

2012-06-18 Thread neo
Hi all,
I have developed an application about Wifi communication between Smartphone 
and PC.When I try to run my application on actual device and PC,this Error 
(no route to host) always exists.Could you tell me,how can I solve this 
problem and what is the real reason.

regards

neo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Help Problem about socket communication between android smartphone and PC through WIFI

2012-06-18 Thread neo
Hello everyone,

I have developed an application about socket communication between 
smartphone (as Client) and pc(as Server). und tested this application on 
Android Emulator and PC.It runs successfullly.But When I try to test the 
same application on the smartphone.It dosen't work.The error is  
java.net.SocketException:No route to host.Could you tell me,why this error 
exist and how should I look through the reason of the error and amend it?

Thanks a lot.

neo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need Help Problem about socket communication between android smartphone and PC through WIFI

2012-06-18 Thread Robert Greenwalt
If you take a bugreport the route table should be listed and we would know
more.

On Fri, Jun 15, 2012 at 4:56 AM, neo shen.song...@googlemail.com wrote:

 Hello everyone,

 I have developed an application about socket communication between
 smartphone (as Client) and pc(as Server). und tested this application on
 Android Emulator and PC.It runs successfullly.But When I try to test the
 same application on the smartphone.It dosen't work.The error is 
 java.net.SocketException:No route to host.Could you tell me,why this error
 exist and how should I look through the reason of the error and amend it?

 Thanks a lot.

 neo

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need Help :android passing lat/long as parameter to web service

2012-06-14 Thread TreKing
On Thu, Jun 7, 2012 at 6:01 AM, Olfa Dhaouadi dhaouadi...@gmail.com wrote:

 i want to send touched markers properties(long/lat) as parameter to a web
 service ..
 how can i do it??


1-Write a web service that accepts lat and long parameters. The details of
this are off-topic for this list.
2-Write code in your app to send the lat and long values to your web
service that now expects it.

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

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

[android-developers] Need Help :android passing lat/long as parameter to web service

2012-06-12 Thread Olfa Dhaouadi
hello :)
 if you have an idea that can help me I would be grateful :)
in my android project i have a map that contain markers i want to send
touched markers properties(long/lat) as parameter to a web service ..
how can i do 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


[android-developers] need help on bluetooth android (T_T)

2012-06-04 Thread Aroma_Optic
hye..im student from malaysia..currently im doing the project base on
android Bluetooth. i try to attach sensor and to retard the sensor to
Android device. i try to refer the chatting program and modified it,
but it doesn't work. i get confuse with command inputstream,
getinputstream and socket.read(). hopefully someone can help me to
solve this problem.Thank you very much

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

2012-05-21 Thread Rahul Kapoor
i want to put advertisement on my android application. i use admob sdk
in my library. but whenever i try to put import com.admob . it became
red, pls help me to fix that

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

2012-05-14 Thread Fabien R
On 11/05/12 13:10, Tolriq wrote:
 And a little supplemental question that is linked to this, the sync process 
 can be for example a function that call 3 functions that each takes a lot's 
 of time, in each functions I can check for thread.interrupted to stop it, 
 but from documentation it clears the flag so the main function won't know 
 and will continue to other calls so again what's the correct way to handle 
 the interrupt propagation ?

   
I don't know if it answers your question but it might help:
http://docs.oracle.com/javase/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html


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


[android-developers] need help fro Android SSO in flash using flex library and creation of ane

2012-05-12 Thread ANKUR GOEL
Hi all ,

need help fro Android SSO in flash using flex library and creation of ane

I have make the simple notification program but its giving error 1009
cannot access method of null refrences .

Please help

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] Need help for thread cancelable queue pattern.

2012-05-11 Thread Tolriq
Hello,

I need some help to find the correct way to implement my need.

The need as i see it is simple : Implement a queued synchronization thread 
model where queue elements can be removed / canceled.
The second problem is that i use lots of interface so I don't really know 
the numbers of different item in queue and what the sync process do.

The need from users perspective : Interface with different screens like for 
example movie / music / tv show /  each with a refresh button that 
allow refresh of data (can take some time) and an cancel button if it's 
taking too long and the user change his mind.

What I do now is : A service that adds sync details to a queued list and 
start the working thread if it's not. This works ok but does not support 
canceling.

The problem now is how to handle cancellation, should i start new thread 
for the sync in the queue thread and associated it with current action 
someway, should i cancel the main thread and restart it (but what about 
cancellation that can takes times if sync is locked in sockets so going ANR 
...).

I suppose there's a pattern to handle that but I can't find it :(

And a little supplemental question that is linked to this, the sync process 
can be for example a function that call 3 functions that each takes a lot's 
of time, in each functions I can check for thread.interrupted to stop it, 
but from documentation it clears the flag so the main function won't know 
and will continue to other calls so again what's the correct way to handle 
the interrupt propagation ?

Thanks for your help,
Tolriq.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-22 Thread Massycat


 Perhaps there's some method of processing the photo and filter bitmaps in
 chunks in a way I'm not aware of?  Something that doesn't eventually end
 up right back at an eventual out of memory error?  Or some other method?

 Have a look at 
BitmapRegionDecoderhttp://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html
 which 
should allow you to load a region of an image, process it and save the 
result without loading the entire image into memory.
It is available in API level 10 and above.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-22 Thread Jim Graham
(re-sending ... when I sent this before, the list was down due to having
exceeded its maximum number of recipients ... something I've never heard
of any e-mail list doing...and I've been around Listservs and other list
varieties for decades)

On Wed, Apr 18, 2012 at 03:20:31PM -0700, Massycat wrote:
 
  Perhaps there's some method of processing the photo and filter bitmaps in
  chunks in a way I'm not aware of?  Something that doesn't eventually end
  up right back at an eventual out of memory error?  Or some other method?

  Have a look at BitmapRegionDecoder
  
 http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html
  which should allow you to load a region of an image, process it and
  save the result without loading the entire image into memory.

Thanks.  That should be a BIG help.

 It is available in API level 10 and above.

Ouch.  Oh well, I doubt many Froyo phones have more than a 3 MP camera,
anyways.  Of course, they also probably (based on my phone) have a lot
less memory, too.  :-(

Thanks, either way---it WILL be useful.
   --jim

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

sigh, once upon a time T-1 was fast
   --seen in alt.sysadmin.net-abuse.email

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-20 Thread Streets Of Boston
Note that createScaledBitmap may return the same bitmap as the input... 
when the input parameters *width *and *height *are the same as the 
width/height of your input bitmap:

Change the code as follows (bold part is the changed part):

Bitmap bmp1 = Bitmap.createScaledBitmap(src, width, height, false); 
*if (bmp1 != src) {*
   src.recycle(); src = null;
*}*

Do a similar thing for bmp2 and dst.

I'm a photographer as well (not professional, though)  :)

Using RGB_565 is ok for most purposes. The camera quality of most phones 
are not up to snuff yet to really warrant a 8-bit color space. However, 
camera quality of some devices is starting to catch up. But for now, people 
taking pics with their phones would need no better than RGB_565 processing.

 

On Thursday, April 19, 2012 11:03:11 PM UTC-4, Spooky wrote:

 On Thu, Apr 19, 2012 at 03:22:39PM -0700, Streets Of Boston wrote:
*But there is one big question...why does recycling the bitmaps after
  their last use still result in a force close, saying that I tried to use
  them AFTER they were recycled?  *
  
  We don't have enough of your code. But suppose you have this code 
 executed:

 Ok, here's the actual code for the exact part that WAS causing the problem:

public Bitmap mergeBitmaps(Bitmap src, Bitmap dest, int width, int 
 height) {

   Bitmap bmp1 = Bitmap.createScaledBitmap(src, width, height, false);
   src.recycle() ; src = null;

   Bitmap bmp2 = Bitmap.createScaledBitmap(dest, width, height, false);
   dest.recycle() ; dest = null;

 And then bmp1 and bmp2 were used from that point on.  Note that this code
 has now been deleted.  I use src and dest directly.  I was originally
 doing resizing at the end here, but that went away, and this code was
 removed (well, the bmp1 and bmp2 parts, and the two recycle()s).

 After that, the question was more just to learn why it didn't work as I
 thought it would.  Now, I think I understand.  By using bmp1 and bmp2, I
 WAS still using src and dest, even though they'd been recycled ... BAM!
 FORCE CLOSE.
 
 And thank you for explaning that to me.  I always thought that creating a
 bitmap from another one was creating an entirely new bitmap, not still
 using the old one.  Now I know what not to do.  :-)

 Btw, just FYI, on an old (for this thread) topic:  out of curiosity, I
 re-read RGB_565 to find out how many thousands of colors it had, and if
 I might want to go ahead and consider it after all.  Then I read this
 (in Bitmap.Config):

   This configuration may be useful when using opaque
   bitmaps that do not require high color fidelity.

 There's no way this fits into a camera app primarily geared for serious
 photography, looking at adding diffusion filters to soften faces, fog
 filters (you can do a LOT with a low fog, moderately deep blue filter,
 and the right scene/environment), and so on.  Think of it like going to
 any of the planet's beautifyl natural wonders, with a camera.  Which
 would you rather have (and this is based on film):  a point and shoot
 35mm with the cheapest and crappiest film you could buy, or a Nikon F4
 35mm with Kodak Ektar Professional 100 ASA film?  Yeah  :-)   I
 thought of that comparison a few hours ago, and it fits, even though it's
 film, not digital[1].

 Thanks,
--jim


 [1] OT:  I still prefer film for some photography, at least, until I
 have the money to get the latest---whatever is the latest at that
 time---Nikon professional-class DSLR.  And maybe still even then,
 unless, by that time, digital has more density and color depth
 than pro-quality film like Ektar Pro, which can literally be enlarged
 to WALL sized without a hint of grainyness (pixelation for digital).
 In fact, even its old non-pro predecessor, Ektar 125, which I
 discovered around 1990 or so, could be.  I saw it first-hand, and it
 was incredible (and it was a BIG wall).  But that is WAY off-topic,
 so I'll end this bit here.

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
 spooky1...@gmail.com| Dave Aronson:As your life flashes before
  Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
 ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
30.44406N 86.59909W  |

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



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

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-20 Thread Jim Graham
On Fri, Apr 20, 2012 at 06:27:18AM -0700, Streets Of Boston wrote:
 Note that createScaledBitmap may return the same bitmap as the input... 
 when the input parameters *width *and *height *are the same as the 
 width/height of your input bitmap:
 
 Change the code as follows (bold part is the changed part):
 
 Bitmap bmp1 = Bitmap.createScaledBitmap(src, width, height, false); 
 *if (bmp1 != src) {*
src.recycle(); src = null;
 *}*
 
 Do a similar thing for bmp2 and dst.

Except for one minor detail you missed:  those are examples that WERE
problems, before I changed the location where I was setting the size
of the bitmaps for the end of the app (moved that to the end), and
both bmp1 and bmp2 no longer exist.  :-)

 I'm a photographer as well (not professional, though)  :)

I'm not a pro, either, but I was taught by one while I was in 16SOW
Intelligence (he was a professional before cross-training into Intel).
I learned a lot.  :-)   I learned about Ektar, however, somewhere around
1990, with the old non-pro Ektar line, and when I found out that my old
favorite, Ektar 125, was now Ektar Pro 100, I had my favorite film back.
:-)

 Using RGB_565 is ok for most purposes. The camera quality of most phones 
 are not up to snuff yet to really warrant a 8-bit color space. However, 
 camera quality of some devices is starting to catch up.

True on both.  But don't forget tablets and the newer phones running ICS.
Better cameras are, as you say, increasing in number with newer,
higher-quality devices.

I'm not building this for the past...I'm building it with an eye toward
the future, and MY tablet (Acer Iconia A500 ... should get ICS sometime
starting around the end of next week) is only 5 MP, but it has great
color.

Besides, I KNOW I saw an old post from someone who described saving
chunks of the file to files (not jpeg, just raw data) and then, I think
it was in another process spawned by the app, processing and saving the
huge image.  I'd do the same for the image, recycle it, then create,
split, and save the chunks of the filter...then process in the other
process, keeping only the main image and one tiny chunk at a time in
memory, and finally, save it from the second process.

I don't know how to DO that yet, but I will.  Throughout this entire
app, the fact that I haven't known how to do something hasn't stopped
me yet (and I've made big progress blasting through those would-be
blockades), and it's not going to now.  (As I mentioned in another
post, I've learned many times more working on this app than all of
my other apps combined, and that pace hasn't slowed down yet, and
I don't mind that a bit.)

 But for now, people taking pics with their phones would need no better
 than RGB_565 processing.

True.  But then, I draw a definite line between taking pictures and
photography.  And, like I would imagine most photography hobbiests/pros
do, I do both.  So I'm making this app for both (but I'm keeping the
great color).  You can adjust the image size to anything your device's
camera will support (and I'm assuming that the device will have adequate
memory to process photos from that camera, given android:largeHeap=true
set in the manifest and Android 3.0+).  But if not, it'll soon be smart
enough to detect that, and re-size automatically as needed.  But it
won't happen today.  My brain is already screaming at me as it is.  Any
more time doing much of anything, it'll be an all-out Migraine, and I'll
lose several days, at a minimum (as always, cancer #1, blah blah blah).

Later,
   --jim

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

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

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread Streets Of Boston
First, ignore this sentence below from my previous answer entirely:
 Save the byte[] data from the camera into file directly (this is your 
JPG file).
(It was a left-over chunk of my initial answer)

The 'byte[] data' still takes up memory, because the caller (the Android 
SDK code that calls the onPictureTaken) still has hold of this byte-array. 
Setting data=null won't free that memory because only your code release 
reference to it, not the caller's code.

You can save the raw data of the camera's Bitmap (the bitmap returned from 
decodeByteArray) by calling Bitmap.getPixels a few times (saving the raw 
data in chunks)  or by calling Bitmap.copyPixelsToBuffer.


On Wednesday, April 18, 2012 7:58:36 PM UTC-4, Spooky wrote:

 On Wed, Apr 18, 2012 at 03:59:23PM -0700, Streets Of Boston wrote:
  Dealing with ARGB_ full-sized images may just not be possible for 
  certain devices (e.g. 5MPixel images taking 20Mbyte of memory, not 
 leaving 
  much room for anything else).
  Unless you can decode the byte[] data from the Camera yourself... this 
  would mean writing your own JPG decoder that would allow you to process 
  this byte[] data in smaller chunks, each chunk one at a time. 

 Admittedly, there will probably be some devices that absolutely will face
 limits when using the filters (and probably matrix stuff for brightness
 and contrast adjustments in post, too) that I'm providing in my app.  But
 I am determined to miinimize that to the best extent possible.  My intent
 is to make this a serious camera app, and that means maximizing image
 quality relative to the device's camera.

 What I'm planning to do, after figuring out exactly HOW I'll be doing the
 blending, is to work out the total memory required, and then use either
 getLargeMemoryClass() or getMemoryClass() to find out if the user has it.
 If they simply can't support it, advise them that the original file was
 saved, but the processed one will have to be resized to continue.

 I seem to recall, either yesterday (while I was sick and my mind was
 really foggy) seeing a suggestion, whether in private e-mail or old
 posts, I'm not sure, about saving the jpeg file in chunks, too, and I
 REALLY have no idea how to do that.

  Say you won't write your own decoder. :-)

 You won't write your own decoder.  :-)  (sorry, couldn't resist)


  That leaves you with 2 options:
  - Reduce the image size: Subsample
  - Reduce the image color depth: Dither.

 I'd rather limit size than color.  A smaller, but still having rich, full
 color is far more likely to be accepted than a larger, yet lower-quality
 image.  But I could use a 16-bit (plus Alpha, so somewhere between
 RGB_565 and ARGB_) for the filters.

  Subsample: Create a bitmap from the byte[] data:

 Already doing that for processing with the filters (also bitmaps).

 Side question:  why, after I'm finished with byte[] data, and I set it
 to null, does it still seem to sit there and chew up memory?  Also, on
 a related note, I have a couple of bitmaps in one method that are
 initially re-sized and should be recycled to protect the rest of that
 method (only really matters when handling the BIG bitmaps).  But...when
 I try that, it causes a force close, saying I'm trying to use a bitmap
 that has already been recycled (I'd just copied it to another, and
 was done with the original...not using it again in the current call
 to that method).  Ahy idea what's going on there?

  BitmapFactory.decodeByteArray and set
  BitmapFactory.Options.inSampleSize to value larger than 1 (prefrrably
  to a power of 2)

 Ok, this is something I'm not familiar with.  So does byte[] data
 need to hang around, then?  Or am I creating a bitmap and tossing
 byte[] data?   Sorry if I sound like I have no idea what we're talking
 about on this part, but frankly, I don't.  In the process of getting as
 far as I already am on this app, I've learned *FAR* more (so much it's
 measured on a log scale) about Android programming than in all of my
 previous apps combined...and then some...and I'm still learning, so
 please bear [is that the right spelling in this context?] with me.


  Dither: Create a bitmap from the byte[] data that has the RGB_565 
 encoding 
  and use dithering to avoid banding.

 Again, RGB_565 + Alpha, whatever that is, will work for the filters, but
 not for the photo.  I'd rather limit its size if that's the only option.

  Now you have a Bitmap from the BitmapFactory.decodeByteArray call.

  If creating the other (blending) bitmap would cause OutOfMemory issues, 
  chop up both the camera Bitmap.

 Ok.  I already have the filter bitmap in 640x480.  Is there a way to
 process the larger bitmap pixel-by-pixel, using that smaller one, scaled
 up in the math?  And, how do I blend (add) the color values for each
 pixel?  Or do I enlarge chunks of the smaller bitmap (in relative-sized
 chunks from the small one) to blend with the bigger one?

 And here's a question that might work (or might be an 

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread Jim Graham
On Thu, Apr 19, 2012 at 06:25:12AM -0700, Streets Of Boston wrote:
 First, ignore this sentence below from my previous answer entirely:
  Save the byte[] data from the camera into file directly (this is your 
 JPG file).
 (It was a left-over chunk of my initial answer)

Ah, that explains it.  :-)

 The 'byte[] data' still takes up memory, because the caller (the Android 
 SDK code that calls the onPictureTaken) still has hold of this byte-array. 
 Setting data=null won't free that memory because only your code release 
 reference to it, not the caller's code.

Ohhh, yeah, I hadn't thought about that.  Damn.  Not much I can do about
that, then.

 You can save the raw data of the camera's Bitmap (the bitmap returned from 
 decodeByteArray) by calling Bitmap.getPixels a few times (saving the raw 
 data in chunks)  or by calling Bitmap.copyPixelsToBuffer.

That's basically what I came up with.  This basically just flashed across
my brain this morning, and is a combination of ideas I'd been looking at.
It goes something like this:

1) if the device can handle this much, convert the original byte[]
   array to a bitmap (easy).  if not, re-size, notify the user, and
   deal with it.

2) assuming we got past #1, split the file into vertical chunks using

   Bitmap chunk1; // so each can be recycled immediately after use
   Bitmap chunk2;
   
   Bitmap chunkn;
   
   chunk1 = createBitmap(src, 0, 0, width, height/n);

   // save the chunk to a raw data file here

   chunk1.recycle(); chunk1 = null;

   and so on for all n chunks.

3) recycle the original photo image;

4) create the bitmap for the filter and repeat step 2 for it.

5) re-use the bitmap from 4 (or recycle it and make another new one)
   for the combined image, then, one at a time, recover the saved
   bitmap chunks and use paint/canvas to re-build them, and then
   immediately recycle the chunk once it's no longer needed.

6) Save the new photo

But there is one big question...why does recycling the bitmaps after
their last use still result in a force close, saying that I tried to use
them AFTER they were recycled?

Oh, and steps 5 and 6 may need to be done in a new process, if I can
figure out how to do that (or if someone here will point me to the
appropriate reference in the dev guide).

So, how does that sound?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+
   30.44406N 86.59909W  | I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread JackN
it ok, youll get it. you just have some conceptual errors.

On Wednesday, April 18, 2012 3:20:56 PM UTC-7, Spooky wrote:

 On Wed, Apr 18, 2012 at 03:02:41PM -0700, JackN wrote:
  Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 
  is  15 MEGABYTES. 

 Again ... READ THE FOLLOWING (with corrected units): 

   On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 
  
350 kB jpg? in memory, that could be huge. perhaps even 20 or more 
 MB 
  
   [corrected units in the above ... I've never actually SEEN anything 
 that
   can store data in millibits, nor have I seen file sizes meansured in 
 bits] 

 Now let's come back to this. 

  Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 
  is  15 MEGABYTES. 

 Well, then, since I was replying to the above post, and we're
 side-tracked by jpegs, not the bitmaps that I'm asking about how best to
 handle to allow full resolution (if that's even possible), if the above
 is true, then ARGB_ must not be 24-bit color, because again, NONE of
 my 5 MP ARGB_ photos have been over around 1.3--1.4 MB.  Note that
 I did NOT say 15 MB.  And if that IS true, the developer's guide needs
 to be corrected, because I seem to recall it saying that ARGB_ IS
 24-bit color.  Personally, though, I think your jpeg size of 15 MB is
 on the high end, and the dev guide is right. 

 Again, just to make sure...I was responding to a post about JPEG sizes,
 NOT BITMAP SIZES.  And I am NOT pulling these file sizes out of my ass,
 I'm getting them directly from jpeg images in /mnt/sdcard/DCIM/camera. 

 Later,
--jim 

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
 spooky1...@gmail.com| Dave Aronson:As your life flashes before
  Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
 ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
30.44406N 86.59909W  | 

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

 

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

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread Streets Of Boston
  *But there is one big question...why does recycling the bitmaps after
their last use still result in a force close, saying that I tried to use
them AFTER they were recycled?  *

We don't have enough of your code. But suppose you have this code executed:


Bitmap bitmap1 = new BitmapFactory.decode.();
...
...
Bitmap bitmap2 = bitmap1;
...
...
bitmap1.recycle();
...
...

bitmap2.getWidth(); // kaboom: You're using an already recycled bitmap.

In other words, you're assigning the same Bitmap instance to more than one 
variable or field and you are using one variable to recycle() the bitmap. 
If the code handling the other variables/fields doesn't know about the fact 
that recycle() already has been called, handling these other 
variables/fields may result in a force close (bitmap already recycled). You 
can call 'bitmap.isRecycled()' if  you don't keep track of it yourself.



On Thursday, April 19, 2012 9:38:28 AM UTC-4, Spooky wrote:

 On Thu, Apr 19, 2012 at 06:25:12AM -0700, Streets Of Boston wrote:
  First, ignore this sentence below from my previous answer entirely:
   Save the byte[] data from the camera into file directly (this is your 
  JPG file).
  (It was a left-over chunk of my initial answer)

 Ah, that explains it.  :-)

  The 'byte[] data' still takes up memory, because the caller (the Android 
  SDK code that calls the onPictureTaken) still has hold of this 
 byte-array. 
  Setting data=null won't free that memory because only your code release 
  reference to it, not the caller's code.

 Ohhh, yeah, I hadn't thought about that.  Damn.  Not much I can do about
 that, then.

  You can save the raw data of the camera's Bitmap (the bitmap returned 
 from 
  decodeByteArray) by calling Bitmap.getPixels a few times (saving the raw 
  data in chunks)  or by calling Bitmap.copyPixelsToBuffer.

 That's basically what I came up with.  This basically just flashed across
 my brain this morning, and is a combination of ideas I'd been looking at.
 It goes something like this:

 1) if the device can handle this much, convert the original byte[]
array to a bitmap (easy).  if not, re-size, notify the user, and
deal with it.

 2) assuming we got past #1, split the file into vertical chunks using

Bitmap chunk1; // so each can be recycled immediately after use
Bitmap chunk2;

Bitmap chunkn;

chunk1 = createBitmap(src, 0, 0, width, height/n);

// save the chunk to a raw data file here

chunk1.recycle(); chunk1 = null;

and so on for all n chunks.

 3) recycle the original photo image;

 4) create the bitmap for the filter and repeat step 2 for it.

 5) re-use the bitmap from 4 (or recycle it and make another new one)
for the combined image, then, one at a time, recover the saved
bitmap chunks and use paint/canvas to re-build them, and then
immediately recycle the chunk once it's no longer needed.

 6) Save the new photo

 But there is one big question...why does recycling the bitmaps after
 their last use still result in a force close, saying that I tried to use
 them AFTER they were recycled?

 Oh, and steps 5 and 6 may need to be done in a new process, if I can
 figure out how to do that (or if someone here will point me to the
 appropriate reference in the dev guide).

 So, how does that sound?

 Thanks,
--jim

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
 spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
  Running FreeBSD 7.0  | 
 ICBM / Hurricane:   | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+
30.44406N 86.59909W  | I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

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



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

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread Jim Graham
On Thu, Apr 19, 2012 at 03:22:39PM -0700, Streets Of Boston wrote:
   *But there is one big question...why does recycling the bitmaps after
 their last use still result in a force close, saying that I tried to use
 them AFTER they were recycled?  *
 
 We don't have enough of your code. But suppose you have this code executed:

Ok, here's the actual code for the exact part that WAS causing the problem:

   public Bitmap mergeBitmaps(Bitmap src, Bitmap dest, int width, int height) {

  Bitmap bmp1 = Bitmap.createScaledBitmap(src, width, height, false);
  src.recycle() ; src = null;

  Bitmap bmp2 = Bitmap.createScaledBitmap(dest, width, height, false);
  dest.recycle() ; dest = null;

And then bmp1 and bmp2 were used from that point on.  Note that this code
has now been deleted.  I use src and dest directly.  I was originally
doing resizing at the end here, but that went away, and this code was
removed (well, the bmp1 and bmp2 parts, and the two recycle()s).

After that, the question was more just to learn why it didn't work as I
thought it would.  Now, I think I understand.  By using bmp1 and bmp2, I
WAS still using src and dest, even though they'd been recycled ... BAM!
FORCE CLOSE.

And thank you for explaning that to me.  I always thought that creating a
bitmap from another one was creating an entirely new bitmap, not still
using the old one.  Now I know what not to do.  :-)

Btw, just FYI, on an old (for this thread) topic:  out of curiosity, I
re-read RGB_565 to find out how many thousands of colors it had, and if
I might want to go ahead and consider it after all.  Then I read this
(in Bitmap.Config):

  This configuration may be useful when using opaque
  bitmaps that do not require high color fidelity.

There's no way this fits into a camera app primarily geared for serious
photography, looking at adding diffusion filters to soften faces, fog
filters (you can do a LOT with a low fog, moderately deep blue filter,
and the right scene/environment), and so on.  Think of it like going to
any of the planet's beautifyl natural wonders, with a camera.  Which
would you rather have (and this is based on film):  a point and shoot
35mm with the cheapest and crappiest film you could buy, or a Nikon F4
35mm with Kodak Ektar Professional 100 ASA film?  Yeah  :-)   I
thought of that comparison a few hours ago, and it fits, even though it's
film, not digital[1].

Thanks,
   --jim


[1] OT:  I still prefer film for some photography, at least, until I
have the money to get the latest---whatever is the latest at that
time---Nikon professional-class DSLR.  And maybe still even then,
unless, by that time, digital has more density and color depth
than pro-quality film like Ektar Pro, which can literally be enlarged
to WALL sized without a hint of grainyness (pixelation for digital).
In fact, even its old non-pro predecessor, Ektar 125, which I
discovered around 1990 or so, could be.  I saw it first-hand, and it
was incredible (and it was a BIG wall).  But that is WAY off-topic,
so I'll end this bit here.

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread ANKUR GOEL
Even i am loading 350 kb image its giving out of memory .
I have image in drawable folder
and setting the image in java code .:(



On Tue, Apr 17, 2012 at 5:08 PM, Jim Graham spooky1...@gmail.com wrote:

 The question about blending methods resolved itself when I switched to
 making the bitmaps for filters in the app.  But one question still
 remains, and I need help with this one.

 When trying to blend the full-size camera image with an equal-size
 bitmap for the filter, unless I reduce the image size, I get an
 out of memory error.  I really would like to allow users to get the
 maximum resolution possible.

 I start by converting the photo image from byte[] data to bitmap
 (for blending with the filter bitmap) and then immediately setting
 data to null.  That doesn't seem to help at all.

 I have tried a combination of bmp.release(); and bmp = null;,  which
 only results in a Force Close.  It looks like this:

   // create full-sized filters instead of 640x480
   Bitmap bmp1 = Bitmap.createScaledBitmap(src, width, height, false);
   // src.recycle() ; src = null;

   Bitmap bmp2 = Bitmap.createScaledBitmap(dest, width, height, false);
   // dest.recycle() ; dest = null;

 The intent being to release the memory used as quickly as possible
 in the method, rather than waiting until I finish completely with
 blending them.  Unfortunately, if those are uncommented, the result
 is a Force Close.  The Force Close gripes that I'm trying to use a bitmap
 that's already been recycled...but I don't use those bitmaps (src and
 dest) again.

 I also looked into the idea of splitting the task into chunks, but
 ultimately, there is still a huge amount of data ... right back
 where I started:  out of memory error // Force Close.  :-(

 Can anyone please let me how I can save these at full-size (that is,
 if there IS another way).  If there isn't another way, I would at least
 appreciate that, then I can at least determine the maximum based on the
 device's available memory and reduce the image size before causing a
 force close.

 Thanks,
   --jim

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

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

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-18 Thread JackN
350 kb jpg? in memory, that could be huge. perhaps even 20 or more mbs
On Wednesday, April 18, 2012 3:29:46 AM UTC-7, ANKUR1486 wrote: 

 Even i am loading 350 kb image its giving out of memory .
 I have image in drawable folder 
 and setting the image in java code .:(



 On Tue, Apr 17, 2012 at 5:08 PM, Jim Graham spooky1...@gmail.com wrote:

 The question about blending methods resolved itself when I switched to
 making the bitmaps for filters in the app.  But one question still
 remains, and I need help with this one.

 When trying to blend the full-size camera image with an equal-size
 bitmap for the filter, unless I reduce the image size, I get an
 out of memory error.  I really would like to allow users to get the
 maximum resolution possible.

 I start by converting the photo image from byte[] data to bitmap
 (for blending with the filter bitmap) and then immediately setting
 data to null.  That doesn't seem to help at all.

 I have tried a combination of bmp.release(); and bmp = null;,  which
 only results in a Force Close.  It looks like this:

   // create full-sized filters instead of 640x480
   Bitmap bmp1 = Bitmap.createScaledBitmap(src, width, height, false);
   // src.recycle() ; src = null;

   Bitmap bmp2 = Bitmap.createScaledBitmap(dest, width, height, false);
   // dest.recycle() ; dest = null;

 The intent being to release the memory used as quickly as possible
 in the method, rather than waiting until I finish completely with
 blending them.  Unfortunately, if those are uncommented, the result
 is a Force Close.  The Force Close gripes that I'm trying to use a bitmap
 that's already been recycled...but I don't use those bitmaps (src and
 dest) again.

 I also looked into the idea of splitting the task into chunks, but
 ultimately, there is still a huge amount of data ... right back
 where I started:  out of memory error // Force Close.  :-(

 Can anyone please let me how I can save these at full-size (that is,
 if there IS another way).  If there isn't another way, I would at least
 appreciate that, then I can at least determine the maximum based on the
 device's available memory and reduce the image size before causing a
 force close.

 Thanks,
   --jim

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

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

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

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




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote:

 350 kB jpg? in memory, that could be huge. perhaps even 20 or more MB

[corrected units in the above ... I've never actually SEEN anything that
can store data in millibits, nor have I seen file sizes meansured in bits]

I doubt that.  I'm working with full-sized and near-full-sized images
(3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1
MB, respectively (give or take a few hundred kB).  I can't remember which
I was working with at the time, but whichever one it was, logcat showed
the system allocating 10 MB for it.

For a jpeg to be that small, and taket that much memory for a bitmap, it
would have to be one huge, and extremely plain (solid color, perhaps?)
to be that compressible.

But those are the size bitmaps I'm running into, trying to give users
the full resolution of their respective cameras.  But processing the
entire image PLUS FILTERS at the same time is crashing beyond hard
limits on per-app memory (which, from what I read in an one of several
dozen old posts while trying to find the answer to my questions, both
before and after posting here, is 16 MB, period).

I've read that, on 3.0 and up, you can allocate more heap for the image
(and I've seen in logcat where my A500 does).  I've also read that images
aren't processed in that part of the memory (but like I said...).  I've
read so much conflicting information now it's insane (and I soon will
be).  Some of the Dev Guide that looked helpful even pointed me to a dead
link **within the dev guide itself**.  :-)

And while I'm here, one of the most common answers I've read so far is
simply use less memory.

Uh huh.  Well, that's exactly what I'm asking how to do, with the
added desire to allow the user to keep the full resolution.  It just
seems wrong to ask someone using a camera app that's both for the
serious and goofy types of photography, who has an Android with far
more than my 5 MP, that they can't even use 5 MP with my app.  I
would be laughing myself out of the Android developer world LONG
before everyone else got to it (and they would).

To lower memory usage, one of the things I've done is to put in a
bmp.recycle(); and bmp = null; right after the final usage of
every bitmap (except the one being returned, which I assume is
recycled after it's returned).  Unfornately, doing this results in
a Force Close, griping that I've tried to use a bitmap that's already
been recycled.  Meaning (as I understand it, at least) that it's either
executing lines of code in reverse order, or it's griping about it having
been recycled in the PREVIOUS use of that method.

I also tried the 3.0+ option, android:largeHeap=true, in the Manifest,
but still got the same out of memory error.

Perhaps there's some method of processing the photo and filter bitmaps in
chunks in a way I'm not aware of?  Something that doesn't eventually end
up right back at an eventual out of memory error?  Or some other method?

Someone?  Anyone?  Please.

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Now what *you* need is a proper pint of
spooky1...@gmail.com| porter poured in a proper pewter porter
 Running FreeBSD 7.0  | pot..
ICBM / Hurricane:   |--Peter Dalgaard in alt.sysadmin.recovery
   30.44406N 86.59909W  |

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Kostya Vasilyev

On 04/19/2012 12:39 AM, Jim Graham wrote:

I doubt that.  I'm working with full-sized and near-full-sized images
(3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1
MB, respectively (give or take a few hundred kB).  I can't remember which
I was working with at the time, but whichever one it was, logcat showed
the system allocating 10 MB for it.


What color depth are your images at?

3 MP (milli pixels?) at 24 bit per pixel, RGB_888, is 9 megabytes.

5 millipixels at 24 bit is 15 megabytes.

Not 750 kB and 1.1 MB.

-- K

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-18 Thread JackN
Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 
is  15 MEGABYTES.
 
jpeg aint rle
 
 

On Wednesday, April 18, 2012 1:39:39 PM UTC-7, Spooky wrote:

 On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 

  350 kB jpg? in memory, that could be huge. perhaps even 20 or more MB 

 [corrected units in the above ... I've never actually SEEN anything that
 can store data in millibits, nor have I seen file sizes meansured in bits] 

 I doubt that.  I'm working with full-sized and near-full-sized images
 (3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1
 MB, respectively (give or take a few hundred kB).  I can't remember which
 I was working with at the time, but whichever one it was, logcat showed
 the system allocating 10 MB for it. 

 For a jpeg to be that small, and taket that much memory for a bitmap, it
 would have to be one huge, and extremely plain (solid color, perhaps?)
 to be that compressible. 

 But those are the size bitmaps I'm running into, trying to give users
 the full resolution of their respective cameras.  But processing the
 entire image PLUS FILTERS at the same time is crashing beyond hard
 limits on per-app memory (which, from what I read in an one of several
 dozen old posts while trying to find the answer to my questions, both
 before and after posting here, is 16 MB, period). 

 I've read that, on 3.0 and up, you can allocate more heap for the image
 (and I've seen in logcat where my A500 does).  I've also read that images
 aren't processed in that part of the memory (but like I said...).  I've
 read so much conflicting information now it's insane (and I soon will
 be).  Some of the Dev Guide that looked helpful even pointed me to a dead
 link **within the dev guide itself**.  :-) 

 And while I'm here, one of the most common answers I've read so far is
 simply use less memory. 

 Uh huh.  Well, that's exactly what I'm asking how to do, with the
 added desire to allow the user to keep the full resolution.  It just
 seems wrong to ask someone using a camera app that's both for the
 serious and goofy types of photography, who has an Android with far
 more than my 5 MP, that they can't even use 5 MP with my app.  I
 would be laughing myself out of the Android developer world LONG
 before everyone else got to it (and they would). 

 To lower memory usage, one of the things I've done is to put in a
 bmp.recycle(); and bmp = null; right after the final usage of
 every bitmap (except the one being returned, which I assume is
 recycled after it's returned).  Unfornately, doing this results in
 a Force Close, griping that I've tried to use a bitmap that's already
 been recycled.  Meaning (as I understand it, at least) that it's either
 executing lines of code in reverse order, or it's griping about it having
 been recycled in the PREVIOUS use of that method. 

 I also tried the 3.0+ option, android:largeHeap=true, in the Manifest,
 but still got the same out of memory error. 

 Perhaps there's some method of processing the photo and filter bitmaps in
 chunks in a way I'm not aware of?  Something that doesn't eventually end
 up right back at an eventual out of memory error?  Or some other method? 

 Someone?  Anyone?  Please. 

 Thanks,
--jim 

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| Now what *you* need is a proper pint of
 spooky1...@gmail.com| porter poured in a proper pewter porter
  Running FreeBSD 7.0  | pot..
 ICBM / Hurricane:   |--Peter Dalgaard in alt.sysadmin.recovery
30.44406N 86.59909W  | 

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



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

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Thu, Apr 19, 2012 at 01:55:18AM +0400, Kostya Vasilyev wrote:
 On 04/19/2012 12:39 AM, Jim Graham wrote:
 I doubt that.  I'm working with full-sized and near-full-sized images
 (3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1
 MB, respectively (give or take a few hundred kB).  I can't remember which
 I was working with at the time, but whichever one it was, logcat showed
 the system allocating 10 MB for it.
 
 What color depth are your images at?

ARGB_.  Again, when working on a camera app that's intended as much
for serious photography as the goofy side, why shoot myself in the foot
by immediately throwing image quality out the window?

 3 MP (milli pixels?) at 24 bit per pixel, RGB_888, is 9 megabytes.

No...the person who replied had written it as mb ... I corrected it
before replying to it.  I don't think there is such thing as a mp (or
a mb, for that matter ... and if there is, I'd LOVE to know what use it
is).

 5 millipixels at 24 bit is 15 megabytes.

I think you meant MP.  :-)

 Not 750 kB and 1.1 MB.

And since he'd referred to JPG sizes, that's what *I* was referring to,
not bitmap sizes (I think I included bitmap sizes in there, as well, but
specified bitmap, not jpeg.  And yes, I did two samples, one at each
resolution, both saved as a JPG, and those WERE the respective file
sizes.  I didn't just dream those up.  Oh, and *NONE* of the photos
I've taken, even at 5 MP, ended up being 15 MB jpegs (at least, none
so far).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Kostya Vasilyev

I'm not saying you dreamed those up, sorry, no offence meant.

But since we seem to be discussing memory usage, not disk usage, the 
compressed size is irrelevant.


And 5 megapixels at RGB_ is 32 bits per pixel or 20 megabytes in 
RAM, if stored as an uncompressed pixel array.


-- K

On 04/19/2012 02:07 AM, Jim Graham wrote:

  Not 750 kB and 1.1 MB.

And since he'd referred to JPG sizes, that's what*I*  was referring to,
not bitmap sizes (I think I included bitmap sizes in there, as well, but
specified bitmap, not jpeg.  And yes, I did two samples, one at each
resolution, both saved as a JPG, and those WERE the respective file
sizes.  I didn't just dream those up.  Oh, and*NONE*  of the photos
I've taken, even at 5 MP, ended up being 15 MB jpegs (at least, none
so far).


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Wed, Apr 18, 2012 at 03:02:41PM -0700, JackN wrote:
 Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 
 is  15 MEGABYTES.

Again ... READ THE FOLLOWING (with corrected units):

  On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 
 
   350 kB jpg? in memory, that could be huge. perhaps even 20 or more MB 
 
  [corrected units in the above ... I've never actually SEEN anything that
  can store data in millibits, nor have I seen file sizes meansured in bits] 

Now let's come back to this.

 Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 
 is  15 MEGABYTES.

Well, then, since I was replying to the above post, and we're
side-tracked by jpegs, not the bitmaps that I'm asking about how best to
handle to allow full resolution (if that's even possible), if the above
is true, then ARGB_ must not be 24-bit color, because again, NONE of
my 5 MP ARGB_ photos have been over around 1.3--1.4 MB.  Note that
I did NOT say 15 MB.  And if that IS true, the developer's guide needs
to be corrected, because I seem to recall it saying that ARGB_ IS
24-bit color.  Personally, though, I think your jpeg size of 15 MB is
on the high end, and the dev guide is right.

Again, just to make sure...I was responding to a post about JPEG sizes,
NOT BITMAP SIZES.  And I am NOT pulling these file sizes out of my ass,
I'm getting them directly from jpeg images in /mnt/sdcard/DCIM/camera.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston
The size of the JPG/PNG file has almost nothing to do with the size of the 
corresponding image in memory.
An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes). An ARGB_ 
takes 4 bytes per pixel.
This means a 5MPixel image will take 5M*2 = 10MByte in RAM when using 
RGB_565 or 5M*4=20MByte in RAM when using ARGB_.

I have an image editor in the market and I managed to process full-sized 
images, reverting back to RGB_565 when necessary.
My image editor only applies *linear *filters. I.e. filters that modify 
every pixel in an image the same way, regardless of the pixel's position or 
its neighbors. This allows my app to chop up large images into smaller ones 
and deal with the smaller ones one by one. If not, i would need, at some 
point in time 2 copies of the image: The original and the modified.  

On Wednesday, April 18, 2012 6:07:54 PM UTC-4, Spooky wrote:

 On Thu, Apr 19, 2012 at 01:55:18AM +0400, Kostya Vasilyev wrote:
  On 04/19/2012 12:39 AM, Jim Graham wrote:
  I doubt that.  I'm working with full-sized and near-full-sized images
  (3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1
  MB, respectively (give or take a few hundred kB).  I can't remember 
 which
  I was working with at the time, but whichever one it was, logcat showed
  the system allocating 10 MB for it.
  
  What color depth are your images at?

 ARGB_.  Again, when working on a camera app that's intended as much
 for serious photography as the goofy side, why shoot myself in the foot
 by immediately throwing image quality out the window?

  3 MP (milli pixels?) at 24 bit per pixel, RGB_888, is 9 megabytes.

 No...the person who replied had written it as mb ... I corrected it
 before replying to it.  I don't think there is such thing as a mp (or
 a mb, for that matter ... and if there is, I'd LOVE to know what use it
 is).

  5 millipixels at 24 bit is 15 megabytes.

 I think you meant MP.  :-)

  Not 750 kB and 1.1 MB.

 And since he'd referred to JPG sizes, that's what *I* was referring to,
 not bitmap sizes (I think I included bitmap sizes in there, as well, but
 specified bitmap, not jpeg.  And yes, I did two samples, one at each
 resolution, both saved as a JPG, and those WERE the respective file
 sizes.  I didn't just dream those up.  Oh, and *NONE* of the photos
 I've taken, even at 5 MP, ended up being 15 MB jpegs (at least, none
 so far).

 Later,
--jim

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| My spell checker eloped with a wiccan
 spooky1...@gmail.com| and I've not seen it since!
  Running FreeBSD 7.0  | 
 ICBM / Hurricane:   |(from news.admin.net-abuse.email)
30.44406N 86.59909W  | 

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



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

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Thu, Apr 19, 2012 at 02:19:54AM +0400, Kostya Vasilyev wrote:
 I'm not saying you dreamed those up, sorry, no offence meant.
 
 But since we seem to be discussing memory usage, not disk usage, the
 compressed size is irrelevant.

Thank you.  My point exactly.

 And 5 megapixels at RGB_ is 32 bits per pixel or 20 megabytes in
 RAM, if stored as an uncompressed pixel array.

Again, my point exactly.

A couple of posts got this thread severely side-tracked, which is getting
really annoying, as I'm seriously asking for help on the issue I
originally posted about[1] in this thread, not stupid jpeg sizes.

Later,
   --jim

[1] trying to find out if there's a way to process photo and filter
bitmaps in chunks, and possibly save them in chunks, as well, or
perhaps use some other method, to allow users to keep their maximum
resolution, at 24-bit color, not lousy 16-bit color, and *DEFINITELY*
not, as I saw suggested in one of the many old posts I read, reducing
the resolution to work with it, and then raising it back up to full
resolution, presumably thinking that the lost resolution would just
magically restore itself.  :-)

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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

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


Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Kostya Vasilyev

On 04/19/2012 02:29 AM, Jim Graham wrote:

[1] trying to find out if there's a way to process photo and filter
 bitmaps in chunks, and possibly save them in chunks, as well, or
 perhaps use some other method, to allow users to keep their maximum
 resolution, at 24-bit color, not lousy 16-bit color,



In that case...

What Streets of Boston said.

And if your filters need some amount of neighbouring pixels, you may be 
able to use overlapping slices, provided you're real careful with how 
you do the calculations in the overlapping parts.



and*DEFINITELY*
 not, as I saw suggested in one of the many old posts I read, reducing
 the resolution to work with it, and then raising it back up to full
 resolution, presumably thinking that the lost resolution would just
 magically restore itself.:-)


Um, I don't think such magic exists. Not in computers, anyway :)

-- K

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Wed, Apr 18, 2012 at 03:28:11PM -0700, Streets Of Boston wrote:
 The size of the JPG/PNG file has almost nothing to do with the size of the 
 corresponding image in memory.

Hopefully those who HAVE been saying that will read this.

 An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes).

Yes, but you lose color detail...again, that goes directly against the
entire objective of my app.  For the goofy stuff, sure, RGB_565 is
fine.  But for photographic filters (solid color, graduated, split-field,
fog, diffusion, etc.  And given their semi-transparency, RGB_565
definitely isn't a fit for those bitmaps (which don't need to be
full-sized until saving the photos with filters, and then there's only
one bitmap with all of the combined filters).).

 An ARGB_ takes 4 bytes per pixel.  This means a 5MPixel image will
 take 5M*2 = 10MByte in RAM when using RGB_565 or 5M*4=20MByte in RAM
 when using ARGB_.

Hmm, here's a thought...is there a bitmap type that I missed, that has
alpha values like ARGB_, but only uses 16-bit color?  Those
definitely don't need 24-bit color---only the actual photo needs 24-bit.

 I have an image editor in the market and I managed to process full-sized 
 images, reverting back to RGB_565 when necessary.
 My image editor only applies *linear *filters. I.e. filters that modify 
 every pixel in an image the same way, regardless of the pixel's position or 
 its neighbors. This allows my app to chop up large images into smaller ones 
 and deal with the smaller ones one by one. If not, i would need, at some 
 point in time 2 copies of the image: The original and the modified.  

Can you point me to the right docs, tutorials, etc., to work out how to
do that?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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

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


RE: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Tommy Hartz
Jumping in kind of late here, but if memory is a huge deal couldn't you pass
the image to a web service that will then handle all the manipulation then
return the image URL, download it ,save it then clean up the file from the
server via another REST request? And do this on images larger than X.

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Jim Graham
Sent: Wednesday, April 18, 2012 6:41 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] need help working with very large (photo)
bitmaps

On Wed, Apr 18, 2012 at 03:28:11PM -0700, Streets Of Boston wrote:
 The size of the JPG/PNG file has almost nothing to do with the size of 
 the corresponding image in memory.

Hopefully those who HAVE been saying that will read this.

 An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes).

Yes, but you lose color detail...again, that goes directly against the
entire objective of my app.  For the goofy stuff, sure, RGB_565 is fine.
But for photographic filters (solid color, graduated, split-field, fog,
diffusion, etc.  And given their semi-transparency, RGB_565 definitely isn't
a fit for those bitmaps (which don't need to be full-sized until saving the
photos with filters, and then there's only one bitmap with all of the
combined filters).).

 An ARGB_ takes 4 bytes per pixel.  This means a 5MPixel image will 
 take 5M*2 = 10MByte in RAM when using RGB_565 or 5M*4=20MByte in RAM 
 when using ARGB_.

Hmm, here's a thought...is there a bitmap type that I missed, that has alpha
values like ARGB_, but only uses 16-bit color?  Those definitely don't
need 24-bit color---only the actual photo needs 24-bit.

 I have an image editor in the market and I managed to process 
 full-sized images, reverting back to RGB_565 when necessary.
 My image editor only applies *linear *filters. I.e. filters that 
 modify every pixel in an image the same way, regardless of the pixel's 
 position or its neighbors. This allows my app to chop up large images 
 into smaller ones and deal with the smaller ones one by one. If not, i 
 would need, at some point in time 2 copies of the image: The original and
the modified.

Can you point me to the right docs, tutorials, etc., to work out how to do
that?

Thanks,
   --jim

--
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston
Dealing with ARGB_ full-sized images may just not be possible for 
certain devices (e.g. 5MPixel images taking 20Mbyte of memory, not leaving 
much room for anything else).
Unless you can decode the byte[] data from the Camera yourself... this 
would mean writing your own JPG decoder that would allow you to process 
this byte[] data in smaller chunks, each chunk one at a time. 

Say you won't write your own decoder. :-)

That leaves you with 2 options:
- Reduce the image size: Subsample
- Reduce the image color depth: Dither.

Subsample: Create a bitmap from the byte[] 
data: BitmapFactory.decodeByteArray and set 
BitmapFactory.Options.inSampleSize to value larger than 1 (prefrrably to a 
power of 2)
Dither: Create a bitmap from the byte[] data that has the RGB_565 encoding 
and use dithering to avoid banding.

Now you have a Bitmap from the BitmapFactory.decodeByteArray call.
If creating the other (blending) bitmap would cause OutOfMemory issues, 
chop up both the camera Bitmap.
See 
Bitmap.createBitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap(android.graphics.Bitmap,
 
int, int, int, 
int)(Bitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html
 source, 
int x, int y, int width, int height) 




 
Save the byte[] data from the camera into file directly (this is your JPG 
file).


On Wednesday, April 18, 2012 6:02:41 PM UTC-4, JackN wrote:

 Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 
 is  15 MEGABYTES.
  
 jpeg aint rle
  
  

 On Wednesday, April 18, 2012 1:39:39 PM UTC-7, Spooky wrote:

 On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 

  350 kB jpg? in memory, that could be huge. perhaps even 20 or more MB 

 [corrected units in the above ... I've never actually SEEN anything that
 can store data in millibits, nor have I seen file sizes meansured in 
 bits] 

 I doubt that.  I'm working with full-sized and near-full-sized images
 (3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1
 MB, respectively (give or take a few hundred kB).  I can't remember which
 I was working with at the time, but whichever one it was, logcat showed
 the system allocating 10 MB for it. 

 For a jpeg to be that small, and taket that much memory for a bitmap, it
 would have to be one huge, and extremely plain (solid color, perhaps?)
 to be that compressible. 

 But those are the size bitmaps I'm running into, trying to give users
 the full resolution of their respective cameras.  But processing the
 entire image PLUS FILTERS at the same time is crashing beyond hard
 limits on per-app memory (which, from what I read in an one of several
 dozen old posts while trying to find the answer to my questions, both
 before and after posting here, is 16 MB, period). 

 I've read that, on 3.0 and up, you can allocate more heap for the image
 (and I've seen in logcat where my A500 does).  I've also read that images
 aren't processed in that part of the memory (but like I said...).  I've
 read so much conflicting information now it's insane (and I soon will
 be).  Some of the Dev Guide that looked helpful even pointed me to a dead
 link **within the dev guide itself**.  :-) 

 And while I'm here, one of the most common answers I've read so far is
 simply use less memory. 

 Uh huh.  Well, that's exactly what I'm asking how to do, with the
 added desire to allow the user to keep the full resolution.  It just
 seems wrong to ask someone using a camera app that's both for the
 serious and goofy types of photography, who has an Android with far
 more than my 5 MP, that they can't even use 5 MP with my app.  I
 would be laughing myself out of the Android developer world LONG
 before everyone else got to it (and they would). 

 To lower memory usage, one of the things I've done is to put in a
 bmp.recycle(); and bmp = null; right after the final usage of
 every bitmap (except the one being returned, which I assume is
 recycled after it's returned).  Unfornately, doing this results in
 a Force Close, griping that I've tried to use a bitmap that's already
 been recycled.  Meaning (as I understand it, at least) that it's either
 executing lines of code in reverse order, or it's griping about it having
 been recycled in the PREVIOUS use of that method. 

 I also tried the 3.0+ option, android:largeHeap=true, in the Manifest,
 but still got the same out of memory error. 

 Perhaps there's some method of processing the photo and filter bitmaps in
 chunks in a way I'm not aware of?  Something that doesn't eventually end
 up right back at an eventual out of memory error?  Or some other method? 

 Someone?  Anyone?  Please. 

 Thanks,
--jim 

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| Now what *you* need is a proper pint of
 spooky1...@gmail.com| porter poured in a proper pewter porter
  Running FreeBSD 7.0  | pot..
 ICBM / Hurricane:   |--Peter Dalgaard in alt.sysadmin.recovery
30.44406N 

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston

Dealing with ARGB_ full-sized images may just not be possible for 
certain devices (e.g. 5MPixel images taking 20Mbyte of memory, not leaving 
much room for anything else).
Unless you can decode the byte[] data from the Camera yourself... this 
would mean writing your own JPG decoder that would allow you to process 
this byte[] data in smaller chunks, each chunk one at a time. 

Say you won't write your own decoder. :-)

That leaves you with 2 options:
- Reduce the image size: Subsample
- Reduce the image color depth: Dither.

Subsample: Create a bitmap from the byte[] 
data: BitmapFactory.decodeByteArray and set 
BitmapFactory.Options.inSampleSize to value larger than 1 (prefrrably to a 
power of 2)
Dither: Create a bitmap from the byte[] data that has the RGB_565 encoding 
and use dithering to avoid banding.

Now you have a Bitmap from the BitmapFactory.decodeByteArray call.
If creating the other (blending) bitmap would cause OutOfMemory issues, 
chop up both the camera Bitmap.
See 
Bitmap.createBitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap(android.graphics.Bitmap,+int,+int,+int,+int)
(Bitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html 
source, 
int x, int y, int width, int height) 


On Wednesday, April 18, 2012 6:40:51 PM UTC-4, Spooky wrote:

 On Wed, Apr 18, 2012 at 03:28:11PM -0700, Streets Of Boston wrote:
  The size of the JPG/PNG file has almost nothing to do with the size of 
 the 
  corresponding image in memory.

 Hopefully those who HAVE been saying that will read this.

  An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes).

 Yes, but you lose color detail...again, that goes directly against the
 entire objective of my app.  For the goofy stuff, sure, RGB_565 is
 fine.  But for photographic filters (solid color, graduated, split-field,
 fog, diffusion, etc.  And given their semi-transparency, RGB_565
 definitely isn't a fit for those bitmaps (which don't need to be
 full-sized until saving the photos with filters, and then there's only
 one bitmap with all of the combined filters).).

  An ARGB_ takes 4 bytes per pixel.  This means a 5MPixel image will
  take 5M*2 = 10MByte in RAM when using RGB_565 or 5M*4=20MByte in RAM
  when using ARGB_.

 Hmm, here's a thought...is there a bitmap type that I missed, that has
 alpha values like ARGB_, but only uses 16-bit color?  Those
 definitely don't need 24-bit color---only the actual photo needs 24-bit.

  I have an image editor in the market and I managed to process full-sized 
  images, reverting back to RGB_565 when necessary.
  My image editor only applies *linear *filters. I.e. filters that modify 
  every pixel in an image the same way, regardless of the pixel's position 
 or 
  its neighbors. This allows my app to chop up large images into smaller 
 ones 
  and deal with the smaller ones one by one. If not, i would need, at some 
  point in time 2 copies of the image: The original and the modified.  

 Can you point me to the right docs, tutorials, etc., to work out how to
 do that?

 Thanks,
--jim

 -- 
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| My spell checker eloped with a wiccan
 spooky1...@gmail.com| and I've not seen it since!
  Running FreeBSD 7.0  | 
 ICBM / Hurricane:   |(from news.admin.net-abuse.email)
30.44406N 86.59909W  | 

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



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

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Wed, Apr 18, 2012 at 03:59:23PM -0700, Streets Of Boston wrote:
 Dealing with ARGB_ full-sized images may just not be possible for 
 certain devices (e.g. 5MPixel images taking 20Mbyte of memory, not leaving 
 much room for anything else).
 Unless you can decode the byte[] data from the Camera yourself... this 
 would mean writing your own JPG decoder that would allow you to process 
 this byte[] data in smaller chunks, each chunk one at a time. 

Admittedly, there will probably be some devices that absolutely will face
limits when using the filters (and probably matrix stuff for brightness
and contrast adjustments in post, too) that I'm providing in my app.  But
I am determined to miinimize that to the best extent possible.  My intent
is to make this a serious camera app, and that means maximizing image
quality relative to the device's camera.

What I'm planning to do, after figuring out exactly HOW I'll be doing the
blending, is to work out the total memory required, and then use either
getLargeMemoryClass() or getMemoryClass() to find out if the user has it.
If they simply can't support it, advise them that the original file was
saved, but the processed one will have to be resized to continue.

I seem to recall, either yesterday (while I was sick and my mind was
really foggy) seeing a suggestion, whether in private e-mail or old
posts, I'm not sure, about saving the jpeg file in chunks, too, and I
REALLY have no idea how to do that.

 Say you won't write your own decoder. :-)

You won't write your own decoder.  :-)  (sorry, couldn't resist)


 That leaves you with 2 options:
 - Reduce the image size: Subsample
 - Reduce the image color depth: Dither.

I'd rather limit size than color.  A smaller, but still having rich, full
color is far more likely to be accepted than a larger, yet lower-quality
image.  But I could use a 16-bit (plus Alpha, so somewhere between
RGB_565 and ARGB_) for the filters.

 Subsample: Create a bitmap from the byte[] data:

Already doing that for processing with the filters (also bitmaps).

Side question:  why, after I'm finished with byte[] data, and I set it
to null, does it still seem to sit there and chew up memory?  Also, on
a related note, I have a couple of bitmaps in one method that are
initially re-sized and should be recycled to protect the rest of that
method (only really matters when handling the BIG bitmaps).  But...when
I try that, it causes a force close, saying I'm trying to use a bitmap
that has already been recycled (I'd just copied it to another, and
was done with the original...not using it again in the current call
to that method).  Ahy idea what's going on there?

 BitmapFactory.decodeByteArray and set
 BitmapFactory.Options.inSampleSize to value larger than 1 (prefrrably
 to a power of 2)

Ok, this is something I'm not familiar with.  So does byte[] data
need to hang around, then?  Or am I creating a bitmap and tossing
byte[] data?   Sorry if I sound like I have no idea what we're talking
about on this part, but frankly, I don't.  In the process of getting as
far as I already am on this app, I've learned *FAR* more (so much it's
measured on a log scale) about Android programming than in all of my
previous apps combined...and then some...and I'm still learning, so
please bear [is that the right spelling in this context?] with me.


 Dither: Create a bitmap from the byte[] data that has the RGB_565 encoding 
 and use dithering to avoid banding.

Again, RGB_565 + Alpha, whatever that is, will work for the filters, but
not for the photo.  I'd rather limit its size if that's the only option.

 Now you have a Bitmap from the BitmapFactory.decodeByteArray call.

 If creating the other (blending) bitmap would cause OutOfMemory issues, 
 chop up both the camera Bitmap.

Ok.  I already have the filter bitmap in 640x480.  Is there a way to
process the larger bitmap pixel-by-pixel, using that smaller one, scaled
up in the math?  And, how do I blend (add) the color values for each
pixel?  Or do I enlarge chunks of the smaller bitmap (in relative-sized
chunks from the small one) to blend with the bigger one?

And here's a question that might work (or might be an incredibly bad
idea).  If there's a way to save a raw data file, could I, perhaps,
create the photo's bitmap, split it into chunks (or do those at the
same time?), then save each chunk into a raw data file.  Then do the
same for the filter bitmap.  Next, call another Activity with the
filenames passed with the Intent, and have it process each pair, one
at a time, save the result, recycle everything, reload the next, and
repeat.  And then, load the combined chunk data files, combine into
one bitmap (now I REALLY don't know how I'd do that, unless via paint
and the canvas would work---might still have to load one chunk at a
time and release its data immediately when done with it) until finished,
then save the bitmap to a jpeg, and return from that Activity to the
main activity.  Would something like 

  1   2   3   4   5   >