[android-developers] Re: Send SMS every x minutes

2012-11-29 Thread Brian Hoffmann
You are calling Thread.sleep() in the onClickHandler of your send button. 
Besides that, you're also trying to do all the repeated message sending in 
that handler. This is most likely to fail because this way you are blocking 
the UI thread. You shouldn't do any long running actions in the main 
thread. If you do, Android will recognize an ANR and will consequently kill 
your app's process.

Instead you should consider using a Service (I'd prefer IntentService [1]). 
In that Service you can handle the message sending without block the main 
thread. Combine that with the AlarmManager [2] to trigger the service every 
time you want to send messages (so you won't need any of that ugly 
Thread.sleep stuff).

[1] http://developer.android.com/reference/android/app/IntentService.html
[2] http://developer.android.com/reference/android/app/AlarmManager.html

Am Samstag, 24. November 2012 21:25:29 UTC+1 schrieb Bernd Roth:
>
> Hi Guys!
>
> I have the following problem:
>
> The user, who is using the app. should be able to define when he wants to 
> send his or her SMS.
> Therefore I have a textfield, where the user can define when to send the 
> next SMS ( in minutes! ).
>
> Now my problem is that I have two buttons: SMS send and Cancel .
>
> When the user presses the SMS send button an SMS should be sent and this 
> SMS should be sent every x minutes ( the minutes the user has already 
> defined in the textfield ).
> But the Cancel button should cancel this process and here is my problem: 
> As soon as the user presses SMS send the Ui hangs and the user is not able 
> to press the cancel button anymore.
>
> I know I can solve the problem with a Thread or maybe with the 
> "doInBackground" method but I am not sure whether I am on the right track!
>
> Can anyone help me please, I am not sure whether I am right!
>
> Thank you very much!
>
> Here is my code:
>
> package com.example.smsmessageregulary;
>  
> import android.app.Activity;
> import android.app.PendingIntent;
> import android.content.ContentResolver;
> import android.content.Intent;
> import android.database.Cursor;
> import android.os.Bundle;
> import android.provider.Contacts;
> import android.provider.ContactsContract;
> import android.telephony.gsm.SmsManager;
> import android.view.View;
> import android.widget.Button;
> import android.widget.EditText;
>  
> public class SMSRegulary extends Activity 
> {
> Button btnSendSMS, PhonePicker;
> EditText txtPhoneNo;
> EditText txtMessage;
> EditText txtCounter;
> int counter = 0;  
>
>  
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) 
> {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_smsregulary);
>  
> btnSendSMS = (Button) findViewById(R.id.btnSendSMS);
> txtPhoneNo = (EditText) findViewById(R.id.txtPhoneNo);
> txtMessage = (EditText) findViewById(R.id.txtMessage);
> txtCounter = (EditText) findViewById(R.id.txtCounter);
> PhonePicker = (Button) findViewById(R.id.picker);
> 
>
> 
> PhonePicker.setOnClickListener(new View.OnClickListener(){
>
> public void onClick(View v) {
> // TODO Auto-generated method stub
> ContentResolver cr = getContentResolver();
> Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,
> null, null, null, null);
> if (cur.getCount() > 0) {
> while (cur.moveToNext()) {
> String id = 
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
> String name = 
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
> System.out.println(name);
>  if 
> (Integer.parseInt(cur.getString(cur.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER)))
>  
> > 0) {
>  //Query phone here.  Covered next
>  System.out.println("HERE");
>  }
> }
> }
>  }
>
> });
>  
> btnSendSMS.setOnClickListener(new View.OnClickListener() 
> {
> public void onClick(View v) 
> {
> String phoneNo = txtPhoneNo.getText().toString();
> String message = txtMessage.getText().toString();  
> String Repeater = txtCounter.getText().toString();
> Repeater = Repeater + "000";
> Integer r = Integer.valueOf(Repeater);
> long l = r.longValue();
> if (phoneNo.length()>0 && message.length()>0 && 
> Repeater.length() == 0)
> sendSMS(phoneNo, message);
> else {
> while ( counter <= 99 ) {
> sendSMS(phoneNo, message);
> try {
> Thread.sleep(l);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> }
> }
> }
> });

[android-developers] Re: Write to another application's internal memory

2012-11-29 Thread Carl


You could try using android:process with the same process name on the 
manifest declaration of the activities in each app between which you wish 
communication to occur.  Note that they will also probably have to share a 
single heap, which may create problems, depending upon how much memory is 
consumed by the apps' activities collectively.  

The purpose of android:process on an activity is to specify that your 
activity should be launched in a process having a specific name. The choice 
of that name may be used either to isolate the activity in its own process 
(other than the one the launched it), or to force it to cohabit in a single 
process with other activities (potentially from different apps) that use 
the same name.

Per the Dev Guide 
(http://developer.android.com/guide/topics/manifest/activity-element.html):

"If the name assigned to this attribute begins with a colon (':'), a new 
process, private to the application, is created when it's needed and the 
activity runs in that process. If the process name begins with a lowercase 
character, the activity will run in a global process of that name, provided 
that it has permission to do so. This allows components in different 
applications to share a process, reducing resource usage."
Both apps also have to be signed by the same certificate.

Per http://developer.android.com/tools/publishing/app-signing.html:

"Application modularity – The Android system allows applications that are 
signed by the same certificate to run in the same process, if the 
applications so requests, so that the system treats them as a single 
application. In this way you can deploy your application in modules, and 
users can update each of the modules independently if needed.

"Code/data sharing through permissions – The Android system provides 
signature-based permissions enforcement, so that an application can expose 
functionality to another application that is signed with a specified 
certificate. By signing multiple applications with the same certificate and 
using signature-based permissions checks, your applications can share code 
and data in a secure manner."

Caveat: While I have successfully used android:process to provide a 
separate heap to a help activity within an app, I have not yet tried to use 
it to communicate between two separate apps.

On Monday, November 26, 2012 11:56:27 PM UTC-8, Android Test wrote:
>
> Hi All,
>
> I have 2 applications with different package names. E.g. App1 and App2.
>
> App1 needs to write some files to App2's internal memory so that it could 
> be uploaded to the backend.
>
> I have used the following in App1 to do so:
>
> filePath = getPackageManager().getPackageInfo("app2.package.name", 
> 0).applicationInfo.dataDir;
>
> I can get the correct path but could not write to it. I checked the 
> logcat, it is showing "Permission denied".
>
> Am I missing something? What's else needs to be done?
>
> Thanks in Advance
>

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

[android-developers] Re: textview and autolink=web question

2012-11-29 Thread Mike Adams
Any thoughts on this? I don't care if you answer my question. I'm curious
about why leaving the app forces a refresh that the links show but in run
time if they dont leave the app and multi task, they just dont show.

On Sun, Nov 25, 2012 at 10:03 PM, Mike Adams  wrote:

> I am calling invalidate on the text view after adding text (the text comes
> in from kind of a chat server, actually its a game server but for this
> purpose its a text view for your chat on the server).  Still even with
> tv.invalidate(), when something like http://www.google.com is added its
> not hyperlinked. But when i back out of the app , open another app, then
> come back, suddenly it is a blue link and it even works i can touch to open
> the browser.  I need to duplicate what is happening with code to force it
> to refresh the text view and make links appear as links if i can without
> the user having to do something clunky like leave the program and come back.
>
>
> On Sun, Nov 25, 2012 at 10:59 AM, Mike Adams  wrote:
>
>> I have a textview set up with the following xml:
>>
>> > android:id="@+id/tv"
>> android:layout_width="fill_parent"
>> android:layout_height="wrap_content"
>> android:editable="false"
>> android:background="#00"
>> android:typeface="monospace"
>> android:textSize="14sp"
>> android:autoLink="web"   />
>>
>> I initially didn't think android:autoLink="web" worked because i was
>> writing http links to the console and they were not linked. But i noticed
>> the other day if i backed out of the program and opened another app then
>> came back to this program, the links that wrote as plain text suddenly
>> appeared hyperlinked. How can i force it to display them as hyperlinks on
>> first pass?  Seems it could be some kind of refresh or repaint issue.
>>
>> Mike
>>
>>
>

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

2012-11-29 Thread skink


Carl wrote:
> You could try using android:process with the same process name on the
> manifest declaration of the activities in each app between which you wish
> communication to occur.  Note that they will also probably have to share a
> single heap, which may create problems, depending upon how much memory is
> consumed by the apps' activities collectively.
>

what about android:sharedUserId?

in this case you have two apps running  in two separate VM but having
the same user id which means they have the same file access privs

pskink

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

2012-11-29 Thread Nsubuga
Hi buddies.
I installed the latest Google plugin for Eclipse(Juno) last night. However, 
when I try to create an App Engine Connected Android Project I get the 
following error:

Plug-in com.google.gdt.eclipse.mobile.android was unable to load class 
com.google.gdt.eclipse.mobile.android.wizards.NewAndroidCloudProjectWizard.
com.google.gdt.eclipse.mobile.android.wizards.NewAndroidCloudProjectWizard 
. I am using Ubuntu 12.04

Some one help with a work around if any. Some forums said it was a bug, if 
so was it fixed?
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] hi..

2012-11-29 Thread Ibrahim Sada
Below is the brief explanation of wat we are trying to acheive.

1. There are mainly 2 parts involved in this project. Android UI and SQLite
DB.
2. As per the design, the SQLite DBs entires will be used to populate the
Android UI.
3. The SQLite DB will be updated regularly as and when there is a need to
include the new entry.
4. We have to get this DB into Android Device (may be using FTPget) and
inform the Android Code abt it so that the UI can be populated.
5. Therefore, we would like to know what is the location we can put the DBs
file (using FTPget) and how can we indicate it in the Android Code.
6. Also we would like to know, if we install the application which has
SQLite DBs using the .apk file, where is the Database saved in an Android
Device.

In short, we get the DB from the server using FTP and use it to populate
the UI. As and when there is an update to the DB, the UI will inherit the
changes and populate the view.



We are developing a menu app for the restaurant. The SQL DB will be hosted
on the server with FTP service running. The updation of the DB will take
place at the server end like adding/deleting the menu. We would like to get
that DB onto our Android device and programatically use the DB entries to
populate the android UI.Hope I have explained it properly.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] Intel x86 image for 4.1.2

2012-11-29 Thread Simon Giddings
I have installed the intel x86 image for 4.1.2 (API 16) via the SDK Manager.
Now, when I go into the AVD Manager and select a target of "Android 4.1.2 - 
API Level 16", it still automatically selects the ARM CPU/ABI and disables 
the dropdown list.

How do I get it to recognise that the x86 system image has been installed 
and is 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

YNT: Re: [android-developers] Re: android e book

2012-11-29 Thread gunduz.salih

I decide to use jsoup and record data to sql lite ataşe

Samsung Mobile tarafından gönderildiKristopher Micinski 
 yazdı:So use any HTML parser to read it, rather than 
an XML or JSON parser.

kris


On Mon, Nov 26, 2012 at 6:40 PM, Salih Gündüz  wrote:
http://www.mevzuat.adalet.gov.tr/html/388.html


On Tue, Nov 27, 2012 at 1:39 AM, Salih Gündüz  wrote:
thanks mario. but I can not reach any xml or database. It is a government page. 
I can only read html.


On Tue, Nov 27, 2012 at 1:27 AM, Mário César Mancinelli de Araújo 
 wrote:
Maybe you won't need any of this. But, first, questions:
- The data you want is only in that HTML page? If so, how is it formated?
- Or is it in a database? If this is the case, can't you access directly the db?

Anyway, you can access it with xml, or directly the database. And it isn't so 
hard to do that with xml. There are a lot of examples over the internet about 
that.

I, personaly, had never used xml until now (I'm creating a small app for the 
blog of a nonprofit organization I created). Still, I was able to find an 
example and change it to get the "featured image" of each post and so on.

All you have to do is look the source code of the page (you can see it with 
your bronser) and try to find a pattern in it. ;-)

Best regards.

Em 26/11/2012 15:11, "Salih Gündüz"  escreveu:

webview is a good solution thanks. But the web page is not good formatted for 
mobile devices.It is a government page so I can not reach the database but I 
and to develope my own user interface.

On Mon, Nov 26, 2012 at 7:03 PM, Michael Banzon  wrote:
You must include a caching layer in your app.

Everything you need to do this can be found in the SDK manual on 
WebViews: http://developer.android.com/guide/webapps/webview.html


On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz  wrote:
İt can be used. but I want to store the data in phone so they can read when 
they dont have internet.this is my problem :)

26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:
Sounds like you will want to use a WebView.


On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:
I want to develope an e book for android. My data is in internet but not a json 
or a xml only html page.(http://www.mevzuat.adalet.gov.tr/html/388.html). the 
data changes often. so data must be update often and must be saved on phone so 
people can read without internet.How can I parse data from html? can I convert 
the page json?can you suggest me some ways or methods?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



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

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


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

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

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

[android-developers] Re: Error: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length - very annoing

2012-11-29 Thread Evan Ruff
I am getting these issues as well. Did you ever find the solution to the 
problem?

Thanks,

E

On Tuesday, October 30, 2012 5:24:07 AM UTC-4, Giuseppe wrote:
>
> Starting SDK 4.1.1 I have continuously the 
> error: E/SpannableStringBuilder(1068): SPAN_EXCLUSIVE_EXCLUSIVE spans 
> cannot have a zero length
>
> What is it ? How can I remove it from LogCat ? 
>
>

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

2012-11-29 Thread Jim Graham
I recently got a new Android phone, with an 8 MP camera.  It has a
scene mode that I'm not familiar with, and is not listed in the
Camera.Parameters page:  "asd".  If/when I ever finish my camera app
(when my tablet died, so did my only useful test platform...the new
phone has enabled me to get back to work on it, after another priority
is taken care of).  I'd like to add explanations for the not-so-obvious
stuff, like this "asd" scene mode.

Does anyone here know what this mode is, and what it does?  Is its use
limited to a given API level and above?  Or is it only limited by the
device that supports it?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| 1) "Smoking habanero powder helps defeat that
< Running Mac OS X Lion >   |off taste' quite nicely."
spooky1...@gmail.com| 2) "I figure a couple bong hits of [habanero]
ICBM/Hurr.: / 30.44406N |powder would defeat just about anything!"
| 86.59909W--seen in Chile-Heads list

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

2012-11-29 Thread Josh
I just recently received a Top Developer badge (November, 2012).  I wanted 
to post my numbers for those who are curious.

I'm a part-time, doing-this-for-fun developer, and I'm the founder and only 
employee of Joko Interactive.  You can check out my apps 
here: https://play.google.com/store/apps/developer?id=Joko+Interactive.

I've got 4 live wallpapers which have been pretty successful, each has over 
a million free downloads.  My total downloads are somewhere around 6 
million.  3 of the 4 have been featured on the front page of the market, 
which I think has directly lead to both the high downloads and the TD 
badge.  They're all rated 4 stars or higher as well.

My first LWP that was featured was hand-picked by someone at Google who 
handles the Personalization section's featured stuff.  I just got an email 
saying they liked it and wanted to feature it.  My next two were featured 
soon after they were published with no correspondence.

I guess at some point my stats hit some red flags which puts me up for 
consideration for the TD badge.  I have no idea how that was handled, I 
wasn't notified of the change.  I just noticed the badge one day.

Hope all that helps!

On Friday, June 22, 2012 4:34:48 PM UTC-4, Robert Nekic wrote:
>
> Is there a process for being considered for the Top Developer designation 
> on Google Play?   The only reference to it that I can find is here (
> http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=1295940)
>  and 
> all it says on the matter is they are "chosen by the Google Play team."   
> Does one simply hope to accidentally catch the eye of someone on the team 
> or is there a nomination process or what?
>
>
>
>
>

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

2012-11-29 Thread bob
 

I was looking at the compatibility, and it only works with a few of my 
devices.  So, it may require something special.  I don't know what that 
special something is though.





On Wednesday, November 28, 2012 5:36:51 AM UTC-6, Karunakaran Vikash wrote:
>
> Sorry Bob... 
>   U r rite,,, without an FM radio module in device.. we can 
> implement it... 
> But we can add a new device  and writing a driver in kernel to work with 
> the android . am i rite ?? 
>
> On Monday, November 26, 2012 9:01:19 PM UTC+5:30, bob wrote:
>>
>> Well, the first step would be to buy it and see if it actually works.
>>
>> If it does, *then* you might ask how he made it.
>>
>>
>> On Wednesday, November 21, 2012 11:07:12 PM UTC-6, Karunakaran Vikash 
>> wrote:
>>>
>>> ya ,, this is an External Application only na.. then how he can made 
>>> it... ??
>>> Is there any other way for it... ?
>>>
>>>
>>>
>>>
>>> On Wednesday, November 21, 2012 10:57:52 AM UTC+5:30, Karunakaran Vikash 
>>> wrote:

 Hi ,
  I need to create a FM radio android application , is there any api 
 or methods for developing this...  anything available means ,just drop me 
 a 
 mail ..
 Any useful links , please update me... 

 THanks in Advance ... 

 Regards,
 V.Karunkaran



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

2012-11-29 Thread bob
 

Maybe it stands for Auto-Sense Darkness?

On Thursday, November 29, 2012 8:52:48 AM UTC-6, Spooky wrote:
>
> I recently got a new Android phone, with an 8 MP camera.  It has a 
> scene mode that I'm not familiar with, and is not listed in the 
> Camera.Parameters page:  "asd".  If/when I ever finish my camera app 
> (when my tablet died, so did my only useful test platform...the new 
> phone has enabled me to get back to work on it, after another priority 
> is taken care of).  I'd like to add explanations for the not-so-obvious 
> stuff, like this "asd" scene mode. 
>
> Does anyone here know what this mode is, and what it does?  Is its use 
> limited to a given API level and above?  Or is it only limited by the 
> device that supports it? 
>
> Thanks, 
>--jim 
>
> -- 
> THE SCORE:  ME:  2  CANCER:  0 
> 73 DE N5IAL (/4)| 1) "Smoking habanero powder helps defeat 
> that 
> < Running Mac OS X Lion >   |off taste' quite nicely." 
> spook...@gmail.com | 2) "I figure a couple bong hits 
> of [habanero] 
> ICBM/Hurr.: / 30.44406N |powder would defeat just about anything!" 
> | 86.59909W--seen in Chile-Heads list 
>
>

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

2012-11-29 Thread TreKing
This group is for developing apps with the Android SDK. If you have a
feature request for a particular app, you have to contact that app's
developer(s). I have no idea how you go about doing that for a Google app,
but it's not going to be acknowledged on this forum. I would start with the
Google Drive website and help sections, if there are any.

-
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] Force Screen Orientation Landscape crashes when in Portrait

2012-11-29 Thread Rob Thompson
setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE 
);
int orientation = getResources().getConfiguration().orientation;

orientation should equal ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, but it 
does not.  It equals ActivityInfo.SCREEN_ORIENTATION_PORTRAIT.

Any solutions?

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

2012-11-29 Thread Jim Graham
On Thu, Nov 29, 2012 at 08:01:56AM -0800, bob wrote:
>  
> Maybe it stands for Auto-Sense Darkness?

I was wondering about that, myself, and tried it out.  I didn't notice
any change (and I'm in a room that isn't all that well lit, and was
aiming the camera into an area that is even less well lit.  I've also
tried it in much darker areas, and never noticed any change in the
preview.  There ARE scene modes for dark, dark portrait, and candlelight
(side note:  the candlelight mode really works nicely).  I've tried
searching through the dev guide, google, etc., and haven't found anything
that appears to match.  Besides, scene modes, in virtually all cases that
I've seen on this new phone (asd and AR being the only exceptions, and
I'm 99.% certain that AR refers to AR ... Augmented Reality) have all
been spelled out.

I have a feeling that it's either going to be something incredibly
obvious once you know what it is, or incredibly strange.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
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

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

2012-11-29 Thread Simon Giddings
The only way I found to get this to work is to reboot the system.
A bit extreme, but it works.

On Thursday, 29 November 2012 11:24:53 UTC+1, Simon Giddings wrote:
>
> I have installed the intel x86 image for 4.1.2 (API 16) via the SDK 
> Manager.
> Now, when I go into the AVD Manager and select a target of "Android 4.1.2 
> - API Level 16", it still automatically selects the ARM CPU/ABI and 
> disables the dropdown list.
>
> How do I get it to recognise that the x86 system image has been installed 
> and is 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] Re: Google Docs Writer for Tablets

2012-11-29 Thread bob
 

What do you mean by GDocs?


Are you referring to the app called GDocs by WILDART?


If so, maybe get the paid version and maybe it will have what you want?



On Saturday, November 24, 2012 8:05:30 AM UTC-6, Corbett Ball wrote:
>
> It would be great for Android Tablet users to write directly onto Google 
> Documents with a stylus.  
>
> As a teacher, I am much quicker at marking with a pen than I am at typing 
> on my tablet.  For those times when I'm at my son's hockey practice, and 
> marking student work via GDocs, it would be even better to circle things 
> and add comments with a stylus.
>
> Any way this is possible?
>
> Not sure if there's already a thread for this suggestion.
>
> Thanks.
>

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

[android-developers] Re: Top Developer?

2012-11-29 Thread John Coryat
Can you reply to comments now? (you do this in the developer console)

-John Coryat

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

[android-developers] extend class and constructors

2012-11-29 Thread Simon Giddings
This may seem a bit basic, but I come from a C++ background and it is 
confusing me a little.

When I extend a base class, do I need to create a constructor for each base 
class constructor ?
What I mean is this. Given :

public class base
{
protected int m_iValue;

public base()
{
m_iValue = 0;
}

public base(int iVal)
{
m_iValue = iVal;
}
}

If I want to create a new class based on this base class, will I need to 
declare the two constructors again for them to be visible ?
The following seems to hide the second constructor of the base class.

public class Derived extends base
{
public Derived()
{
super();
}
}

What is the correct way to do 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] hi..

2012-11-29 Thread Jovish P
 Also we would like to know, if we install the application which has SQLite
DBs using the .apk file, where is the Database saved in an Android Device.

the sqlite database will be stored in the application directory. the user
can delete this if he goes to settings and "clear data".
then it will be a problem in ur case since u generating ui from the
database.

you can find your created database, named *
location ;  //data/data//databases/<
your-database-name>*

two options r there

restrict user from deleting application data using android:
manageSpaceActivity
="*string*", which is not a good solution
second check for the database every time whn user log in. if not download
it and populate the ui

regards
jovish


On Thu, Nov 29, 2012 at 3:46 PM, Ibrahim Sada wrote:

> Also we would like to know, if we install the application which has SQLite
> DBs using the .apk file, where is the Database saved in an Android Device.

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

2012-11-29 Thread Παύλος-Πέτρος Τουρνάρης
No you don't need do. But if you want to call the base constructors you
just call super with the appropriate parameters.Also you can create new
constructors for your new class that extends the base one! For example!

public class base {
public base(){
   int i = 0;
}
}


public class newBase extends base {

public newBase(){
  super();//if you want to call the mother constructor
  int i=0;
}

}


On Thu, Nov 29, 2012 at 7:34 PM, Simon Giddings wrote:

> This may seem a bit basic, but I come from a C++ background and it is
> confusing me a little.
>
> When I extend a base class, do I need to create a constructor for each
> base class constructor ?
> What I mean is this. Given :
>
> public class base
> {
> protected int m_iValue;
>
> public base()
> {
> m_iValue = 0;
> }
>
> public base(int iVal)
> {
> m_iValue = iVal;
> }
> }
>
> If I want to create a new class based on this base class, will I need to
> declare the two constructors again for them to be visible ?
> The following seems to hide the second constructor of the base class.
>
> public class Derived extends base
> {
> public Derived()
> {
> super();
> }
> }
>
> What is the correct way to do this ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: extend class and constructors

2012-11-29 Thread Streets Of Boston
public class Derived extends base
{
public Derived()
{
super();
}

public Derived(int iVal)
{
super(iVal);
}
}

On Thursday, November 29, 2012 12:34:56 PM UTC-5, Simon Giddings wrote:
>
> This may seem a bit basic, but I come from a C++ background and it is 
> confusing me a little.
>
> When I extend a base class, do I need to create a constructor for each 
> base class constructor ?
> What I mean is this. Given :
>
> public class base
> {
> protected int m_iValue;
>
> public base()
> {
> m_iValue = 0;
> }
>
> public base(int iVal)
> {
> m_iValue = iVal;
> }
> }
>
> If I want to create a new class based on this base class, will I need to 
> declare the two constructors again for them to be visible ?
> The following seems to hide the second constructor of the base class.
>
> public class Derived extends base
> {
> public Derived()
> {
> super();
> }
> }
>
> What is the correct way to do 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] hi friends

2012-11-29 Thread Jovish P
first image

listview with custom adapter and custom layout for each row.
based on the check u can strike of the text view text

TextView tv=(TextView) v.findViewById(android.R.id.text1);
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);



second image

listview  itself and on click you can show quick contact badge.
http://mobile.tutsplus.com/tutorials/android/android-sdk_contact-badge/

regards,
jovish

On Thu, Nov 29, 2012 at 10:07 AM, TreKing  wrote:

> On Wed, Nov 28, 2012 at 10:26 PM, sree android <
> android.sreeni...@gmail.com> wrote:
>
>> in first attachment(1.jpg) Checkboxes 5 and 6 are selected,after
>> selecting mark is came.How, which concept is follow here.
>>  help me with link or code.
>>
>> and in second attachment,when i click third checkbox another window is
>> open here it is tabs concept or expandable listview.plz replay me.
>>
>
> Your questions are not very clear and hard to follow. You will have to
> clarify if you want some help. Maybe use Google translate or something.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] GCMBroadcast Receiver Enable/Disable

2012-11-29 Thread Παύλος-Πέτρος Τουρνάρης
/BUMP

Anyone Please???


On Wed, Nov 28, 2012 at 7:53 PM, Paul-Peter Tournaris  wrote:

> Hello guys. In my application i have a gcmbroadcast receiver registered,
> so that i can receive PushNotifications.
>
> It is the Basic GCMReceiver Class provided by Google and i have an element
>  in my Manifest for it.
>
> I added a CheckBox in my Preferences Screen in order to enable/disable it
> but i had issues with it. The behaviour i want is to enable and disable the
> Receiver based on the value of the CheckBox.
>
> So when the App starts i added a new method to check the value and trigger
> it as needed using the ComponentName object and its methods.
>
> Although at first it worked like a charm, in the Preferences Screen, when
> i restarted the App it stopped working.
>
> Is there any appropriate way to enable/disable such a Receiver across the
> Application?
>
> Thank you in advance.
>
>   android:**permission="com.google.**android.c2dm.permission.SEND" **
> android:enabled="true">
>
> Receivers registration inside Manifest.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-29 Thread Kristopher Micinski
you could simply do it in onPause and take care of that anyway... but yes.

kris


On Thu, Nov 29, 2012 at 2:23 AM, Johan Appelgren
wrote:

> You'd probably want to persist data even if you have a confirmation dialog
> on back since the user might task switch or press home.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Error Fetching 4.2.1 Source Code

2012-11-29 Thread Dritan
Hello,

I am trying to download the source for Android 4.2.1 using repo. I did a 
listing of all available branches:
  
  origin/android-4.1.1_r4
  origin/android-4.1.1_r5
  origin/android-4.1.1_r6
  origin/android-4.1.1_r6.1
  origin/android-4.1.2_r1
  origin/android-4.2.1_r1
  origin/android-4.2_r1
  origin/android-cts-2.2_r8
  origin/android-cts-2.3_r10
  origin/android-cts-2.3_r11
  origin/android-cts-2.3_r12
  

as you can see there is a branch "  *origin/android-4.2.1_r1*  " which is 
what I'm interested in.

So then I go about to download this branch but all I get is *"error: 
revision origin/android-4.2.1_r1 in manifests not found"*

*dritan-xl:android_src dritan$ repo init -u 
https://android.googlesource.com/platform/manifest -b 
origin/android-4.2.1_r1*
remote: Counting objects: 493, done
remote: Finding sources: 100% (70/70)
remote: Getting sizes: 100% (16/16)
remote: Total 70 (delta 28), reused 70 (delta 28)
Unpacking objects: 100% (70/70), done.
>From https://android.googlesource.com/platform/manifest
 * [new branch]  android-4.1.1_r6.1 -> origin/android-4.1.1_r6.1
 * [new branch]  android-4.2.1_r1 -> origin/android-4.2.1_r1
 * [new branch]  android-4.2_r1 -> origin/android-4.2_r1
 * [new branch]  jb-mr1-dev -> origin/jb-mr1-dev
   f46b8df..aefb147  master -> origin/master
   87ea759..43545df  master-dalvik -> origin/master-dalvik
 * [new branch]  tools_r21  -> origin/tools_r21
   5a09f80..fbb30a8  tradefed   -> origin/tradefed
 * [new tag] android-4.1.1_r6.1 -> android-4.1.1_r6.1
 * [new tag] android-4.2.1_r1 -> android-4.2.1_r1
 * [new tag] android-4.2_r1 -> android-4.2_r1
 * [new tag] android-4.2_r1_ -> android-4.2_r1_
error: revision origin/android-4.2.1_r1 in manifests not found
*dritan-xl:android_src dritan$ repo init -u 
https://android.googlesource.com/platform/manifest -b 
origin/android-4.2.1_r1*
error: revision origin/android-4.2.1_r1 in manifests not found

I don't think I'm doing anything wrong on my end, does anyone have a fix?

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

2012-11-29 Thread Jovish P
Check out this post
*
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/S5nmfJvBCws
*

Jovish

On Wed, Nov 28, 2012 at 2:48 PM, Russell Wheeler <
russellpeterwhee...@gmail.com> wrote:

> I am writing an app that will want to read images and audio files from
> another 'data' app, that I'm writing.
>
> I have found a couple of examples of how to grab the resources using
> packagemanager, but was wondering if this was the best/most secure, way.
>
> Can everyone read my resources or do they need to know the package name?
> (I expect this is easily found)
> What about rooted users using a file manager app?
> Why use resources over assets?
> What is internal storage? Is it diff to ass/res? Is that unreadable? If
> so, how would I access the files from the other app? Content provider?
>
> Thanks
>
> Russ
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Display contents of a database in a listview

2012-11-29 Thread Jovish P
Adapter that exposes data from a
Cursorto
a
ListViewwidget.
The Cursor must include a column named "_id" or this class will not
work.

http://developer.android.com/reference/android/widget/CursorAdapter.html
http://chetanandroidarora.wordpress.com/2011/12/18/customcursoradapter/

Regards,
jovi

On Tue, Nov 27, 2012 at 10:32 PM, Giannis Sarridis <
giannis.sarri...@gmail.com> wrote:

> I would like to display the contents of a database in a listview...and I
> am new at this..so if there's anyone who could show me the way how to do
> this I would really appreciate it :)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-11-29 Thread Jovish P
wht do u mean by "files in localhost" ?

if the files are under asstes folder of ur application and  u want to open
it from there .
you can use 
AssetManager,
through this class we can easily access any files lying inside the Assets
directory of android application. (or any sub-folders inside the Assets
directory).

Regards,
jovi


On Wed, Nov 21, 2012 at 9:47 PM, Firman Charles wrote:

> hi mates... please help me
>
> How to read/open files .doc .ppt .pdf without downloading.
>
> my files in localhost, so i have to caled the files first and then chose
> one and than read/open the file.
>
> sorry for my bad english
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Clearing Activity History

2012-11-29 Thread Jovish P
finish the splash screen activity using this.finish() and move to search
item screen.
so it will be not there in the activity stack history. don't kwn it helped
u or not.

regards
jovi

On Fri, Nov 23, 2012 at 8:59 AM, Wayne  wrote:

> I am having trouble clearing the activity history in my Android App.
>
> Basically I have 3 screens, each is its own Activity:
> [ SPLASH ] - [ SEARCH ITEMS ] - [ VIEW ITEM ]
>
> I never want a user to be able to get back to the SPLASH activity.
> I want to wipe the Activity stack/history completely on the SEARCH ITEMS
> Activity.
>
> I thought Intent.FLAG_ACTIVITY_CLEAR_TOP did this, but it does not seem to
> do anything -- People can still navigate back to the splash.
>
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Top Developer?

2012-11-29 Thread Piren
google now allows you to do that without being a top developer, you need to 
request it.


On Thursday, November 29, 2012 11:59:14 AM UTC-5, John Coryat wrote:
>
> Can you reply to comments now? (you do this in the developer console)
>
> -John Coryat
>
>

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

[android-developers] Re: Display contents of a database in a listview

2012-11-29 Thread lbendlin
Define "contents of a database".  You probably meant a table in a database.

On Tuesday, November 27, 2012 12:02:16 PM UTC-5, Giannis Sarridis wrote:
>
> I would like to display the contents of a database in a listview...and I 
> am new at this..so if there's anyone who could show me the way how to do 
> this I would really appreciate it :)
>

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

[android-developers] Re: Force Screen Orientation Landscape crashes when in Portrait

2012-11-29 Thread Piren
did you force a specific orientation in the manifest?

On Thursday, November 29, 2012 11:28:04 AM UTC-5, Rob Thompson wrote:
>
> setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE 
> );
> int orientation = getResources().getConfiguration().orientation;
>
> orientation should equal ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, but it 
> does not.  It equals ActivityInfo.SCREEN_ORIENTATION_PORTRAIT.
>
> Any solutions?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How do you show 'Are you sure you want to quit' dialog?

2012-11-29 Thread lbendlin
Seconded. It's the only reason we have it in our app, so users cannot 
(falsely) accuse us of draining their battery.

On Wednesday, November 28, 2012 1:09:48 PM UTC-5, Kristopher Micinski wrote:
>
> To add, the "exit" button also has the effect of turning off GPS updates, 
> so "exiting" also has a feature that implies something else: that you quit 
> draining the user's battery.
>
>
> On Wed, Nov 28, 2012 at 12:38 PM, Latimerius 
> > wrote:
>
>> On Wed, Nov 28, 2012 at 6:24 PM, TreKing > 
>> wrote:
>> > On Wed, Nov 28, 2012 at 11:18 AM, TreKing 
>> > > 
>> wrote:
>> >>
>> >> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius 
>> >> > 
>> wrote:
>> >>>
>> >>> Yeah, well, it's probably not by Google, or one that Google had any
>> >>> say in. None of the built-in apps on my devices have an exit button,
>> >>> not even games (that in general do include it AFAICT).
>> >>
>> >>
>> >> Google Maps Navigation has "Exit Navigation" as an option in the menu 
>> (at
>> >> least on my device running 2.3.4).
>> >
>> >
>> > Oh, and in reference to the original point of this thread, if you press
>> > back, it asks you "Exit Navigation? This will end all route guidance". 
>> If
>> > this check wasn't there, and you exited the app accidentally, you would 
>> have
>> > to re-enter the app and re-input your route guidance parameters and 
>> restart
>> > the process, which would be a pain in the ass if you're in the middle of
>> > driving. So seems like there are some valid use cases for such 
>> validation.
>>
>> Interesting, thanks for pointing this out.  I'm guessing something
>> about Navigation must be somehow expensive or slow so they had to put
>> that check in.  Or otherwise, was the crusade against exit buttons I
>> remember seeing all over the net back in 2009/2010 misguided?
>>
>> --
>> 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
>>
>
>

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

Re: [android-developers] how to get the location of an incoming call

2012-11-29 Thread Jovish P
did u got any solution for this ?

regards,
jovi

On Fri, Nov 23, 2012 at 12:49 AM, babrit <0678...@gmail.com> wrote:

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

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

[android-developers] Re: Adsense and WebView

2012-11-29 Thread alexandros mouzakidis
Adsense will stop for feed in 4 days so dont waste your time with this

On Sunday, September 23, 2012 6:45:04 AM UTC+3, Ildar Nigmatzyanov wrote:
>
> Hello. Please, help me )
>
> I try to create app. It is like RSS reader, but we use our own rss feeds. 
> It works together with WebView. Also, we use adsenes in feedburner, but 
> then i start my app I see feed (like html page), but dont see adsense.
>
> Is it possible to see adsense in app on android?
>
> Thanks.
>

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

Re: [android-developers] Re: Top Developer?

2012-11-29 Thread Παύλος-Πέτρος Τουρνάρης
How do you request it ?


On Thu, Nov 29, 2012 at 8:46 PM, Piren  wrote:

> google now allows you to do that without being a top developer, you need
> to request it.
>
>
> On Thursday, November 29, 2012 11:59:14 AM UTC-5, John Coryat wrote:
>>
>> Can you reply to comments now? (you do this in the developer console)
>>
>> -John Coryat
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] how to play a video on an OpenGL texture

2012-11-29 Thread bob
Does anyone know how to play a video on an OpenGL texture?

I tried something like this, but no dice:

int[] textures = new int[1];
GLES20.glGenTextures(1, textures, 0);
SurfaceTexture st = new SurfaceTexture(textures[0]);
Statics.mp.setSurface(new Surface(st));



try {
Statics.mp.prepare();
} catch (IllegalStateException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
Statics.mp.start();


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

2012-11-29 Thread Lew
Paul-Peter Tournaris wrote:

> No you don't need do. But if you want to call the base constructors you 
> just call super with the appropriate parameters.Also you can create new 
> constructors for your new class that extends the base one! For example!


This is basic Java. Check out http://docs.oracle.com/javase/tutorial/ 

>
> public class base {
>

Please conform more or less to the Java coding conventions, particularly 
with regard to naming:
http://www.oracle.com/technetwork/java/codeconv-138413.html

You don't extend constructors in Java.
http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.8
"Constructor declarations are not members. They are never inherited and 
therefore are not subject to hiding or overriding."

So the original question is flawed. 

What's going on is that  

> public base(){
>int i = 0;
> }
> }
>
>
> public class newBase extends base {
>
> public newBase(){
>   super();//if you want to call the mother constructor
>

This is done for you automatically by the compiler. Adding 'super()' to a 
constructor 
implementation is a rookie move.

You need to add a super-constructor call when you need to specify an 
overload of 
the parent constructor, i.e., one with parameters. For the no-arg 
constructor it's a waste
of boilerplate.
 

>   int i=0;
>

How does this help the pedagogy?
 

> }
>
> }
>
> Simon Giddings wrote:
>
>> This may seem a bit basic, but I come from a C++ background and it is 
>> confusing me a little.
>>
>> When I extend a base class, do I need to create a constructor for each 
>> base class constructor ?
>>
>
You don't.

You only need to create a constructor that is required by the child class 
itself. It is not uncommon 
to use a no-arg child-class constructor that invokes a superclass 
constructor with arguments.

public class DynamicType
{
  final Class token;
  protected DynamicType(Class tok)
  {
if (tok == null) { throw new IllegalArgumentException("Null token"); }
token = tok;
assert token != null : "No IllegalArgumentException";
  }
  // more stuff ...
}

public class DynamicFoo extends DynamicType
{
  public DynamicFoo()
  {
super(Foo.class);
  }
  // more stuff ...
}
 

> What I mean is this. Given :
>>
>> public class base
>> {
>> protected int m_iValue;
>>
>
Please follow the naming conventions. 
 

>
>> public base()
>> {
>> m_iValue = 0;
>> }
>>
>> public base(int iVal)
>> {
>> m_iValue = iVal;
>> }
>> }
>>
>> If I want to create a new class based on this base class, will I need to 
>> declare the two constructors again for them to be visible ?
>>
>
They won't be visible even if you do declare a bunch of constructors in the 
child class.

Constructors are not inherited.
 

> The following seems to hide the second constructor of the base class.
>>
>
Doesn't.
 

>
>> public class Derived extends base
>> {
>> public Derived()
>> {
>> super();
>> }
>> }
>
>
You only declared one constructor. You didn't hide any. If you want a 
constructor
that takes a parameter, you have to declare it. Check out the Java 
tutorials. 
 

> What is the correct way to do this ?
>
>
Forget C++.

Since constructors aren't inherited, you must explicitly call any no-arg 
super 
constructor that you wish used. You must write every constructor needed by 
the class itself. You don't need to invoke any super-constructors the child 
class doesn't need.

BIG WARNING!

Do not do too much in a constructor. Constructors' roles should be 
constrained to setting up INITIAL conditions only, and only those needed 
to construct the object itself, at that. It is a common mistake to cram too 
much logic into the constructor. The danger is that such logic perforce 
operates on an incomplete instance of 'this'. That is very bad.

CONSTRUCT IN CONSTRUCTORS. PERFORM IN METHODS.

-- 
Lew

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

Re: [android-developers] how to play a video on an OpenGL texture

2012-11-29 Thread Romain Guy
You must call updateTexImage() on SurfaceTexture when a new frame is
available (use an OnFrameAvailableListener to be notified.)


On Thu, Nov 29, 2012 at 11:39 AM, bob  wrote:

> Does anyone know how to play a video on an OpenGL texture?
>
> I tried something like this, but no dice:
>
> int[] textures = new int[1];
> GLES20.glGenTextures(1, textures, 0);
> SurfaceTexture st = new SurfaceTexture(textures[0]);
> Statics.mp.setSurface(new Surface(st));
>
>
>
> try {
>  Statics.mp.prepare();
> } catch (IllegalStateException e1) {
> // TODO Auto-generated catch block
>  e1.printStackTrace();
> } catch (IOException e1) {
> // TODO Auto-generated catch block
>  e1.printStackTrace();
> }
> Statics.mp.start();
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

Re: [android-developers] Error Fetching 4.2.1 Source Code

2012-11-29 Thread Joman Chu
origin is your local git repository's name for the AOSP remote repository.

Try the repo init again, but this time using -b android-4.2.1_r1, without
the origin/.

Also, this question might be better directed at the android-platform list.


On Thu, Nov 29, 2012 at 1:35 PM, Dritan  wrote:

> Hello,
>
> I am trying to download the source for Android 4.2.1 using repo. I did a
> listing of all available branches:
>   
>   origin/android-4.1.1_r4
>   origin/android-4.1.1_r5
>   origin/android-4.1.1_r6
>   origin/android-4.1.1_r6.1
>   origin/android-4.1.2_r1
>   origin/android-4.2.1_r1
>   origin/android-4.2_r1
>   origin/android-cts-2.2_r8
>   origin/android-cts-2.3_r10
>   origin/android-cts-2.3_r11
>   origin/android-cts-2.3_r12
>   
>
> as you can see there is a branch "  *origin/android-4.2.1_r1*  " which is
> what I'm interested in.
>
> So then I go about to download this branch but all I get is *"error:
> revision origin/android-4.2.1_r1 in manifests not found"*
>
> *dritan-xl:android_src dritan$ repo init -u
> https://android.googlesource.com/platform/manifest -b
> origin/android-4.2.1_r1*
> remote: Counting objects: 493, done
> remote: Finding sources: 100% (70/70)
> remote: Getting sizes: 100% (16/16)
> remote: Total 70 (delta 28), reused 70 (delta 28)
> Unpacking objects: 100% (70/70), done.
> From https://android.googlesource.com/platform/manifest
>  * [new branch]  android-4.1.1_r6.1 -> origin/android-4.1.1_r6.1
>  * [new branch]  android-4.2.1_r1 -> origin/android-4.2.1_r1
>  * [new branch]  android-4.2_r1 -> origin/android-4.2_r1
>  * [new branch]  jb-mr1-dev -> origin/jb-mr1-dev
>f46b8df..aefb147  master -> origin/master
>87ea759..43545df  master-dalvik -> origin/master-dalvik
>  * [new branch]  tools_r21  -> origin/tools_r21
>5a09f80..fbb30a8  tradefed   -> origin/tradefed
>  * [new tag] android-4.1.1_r6.1 -> android-4.1.1_r6.1
>  * [new tag] android-4.2.1_r1 -> android-4.2.1_r1
>  * [new tag] android-4.2_r1 -> android-4.2_r1
>  * [new tag] android-4.2_r1_ -> android-4.2_r1_
> error: revision origin/android-4.2.1_r1 in manifests not found
> *dritan-xl:android_src dritan$ repo init -u
> https://android.googlesource.com/platform/manifest -b
> origin/android-4.2.1_r1*
> error: revision origin/android-4.2.1_r1 in manifests not found
>
> I don't think I'm doing anything wrong on my end, does anyone have a fix?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] google map problem

2012-11-29 Thread doğan
I don't think because I added the internet permission in the manifest.xml
On Wednesday, November 28, 2012 5:41:09 PM UTC+2, bob wrote:
>
> Maybe you forgot INTERNET permission in the first project?
>
> On Wednesday, November 28, 2012 8:49:06 AM UTC-6, doğan wrote:
>>
>> I dont understand this situation.Problem solved  when I create a new 
>> project.
>>
>> On Wednesday, November 28, 2012 4:15:57 PM UTC+2, Ralph Bergmann wrote:
>>>
>>> Am 20.11.12 15:14, schrieb doğan: 
>>> > I want to use google map api .But i have problem about show the 
>>> > coordinates.I added a screencast and some part of codes.Any idea this 
>>> > problem? 
>>>
>>> do you use the right Maps Api key? 
>>>
>>> https://developers.google.com/android/maps-api-signup 
>>>
>>> You need one for development and one for the release build. 
>>>
>>>
>>> Ralph 
>>>
>>

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

Re: [android-developers] how to play a video on an OpenGL texture

2012-11-29 Thread bob
I'm calling updateTexImage now, and I'm getting some weird error:

E/libEGL  ( 4995): validate_display:198 error 3008 (EGL_BAD_DISPLAY)
E/SurfaceTexture( 4995): [unnamed-4995-0] error creating EGLImage: 0x3008
D/AndroidRuntime( 4995): Shutting down VM
W/dalvikvm( 4995): threadid=1: thread exiting with uncaught exception 
(group=0x40c521f8)
E/AndroidRuntime( 4995): FATAL EXCEPTION: main
E/AndroidRuntime( 4995): java.lang.RuntimeException: Error during 
updateTexImage (see logs)
E/AndroidRuntime( 4995): at 
android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:164)
E/AndroidRuntime( 4995): at 
com.example.android.basicglsurfaceview.GLES20TriangleRenderer$1.onFrameAvailable(GLES20TriangleRenderer.java:137)
E/AndroidRuntime( 4995): at 
android.graphics.SurfaceTexture$EventHandler.handleMessage(SurfaceTexture.java:244)
E/AndroidRuntime( 4995): at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4995): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 4995): at 
android.app.ActivityThread.main(ActivityThread.java:4507)
E/AndroidRuntime( 4995): at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 4995): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 4995): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978)
E/AndroidRuntime( 4995): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
E/AndroidRuntime( 4995): at dalvik.system.NativeStart.main(Native Method)

Any ideas?


On Thursday, November 29, 2012 1:49:55 PM UTC-6, Romain Guy (Google) wrote:
>
> You must call updateTexImage() on SurfaceTexture when a new frame is 
> available (use an OnFrameAvailableListener to be notified.)
>
>
> On Thu, Nov 29, 2012 at 11:39 AM, bob 
> > wrote:
>
>> Does anyone know how to play a video on an OpenGL texture?
>>
>> I tried something like this, but no dice:
>>
>> int[] textures = new int[1];
>> GLES20.glGenTextures(1, textures, 0);
>> SurfaceTexture st = new SurfaceTexture(textures[0]);
>> Statics.mp.setSurface(new Surface(st));
>> 
>> 
>> 
>> try {
>>  Statics.mp.prepare();
>> } catch (IllegalStateException e1) {
>> // TODO Auto-generated catch block
>>  e1.printStackTrace();
>> } catch (IOException e1) {
>> // TODO Auto-generated catch block
>>  e1.printStackTrace();
>> }
>> Statics.mp.start();
>> 
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> -- 
> Romain Guy
> Android framework engineer
> roma...@android.com 
>
>  

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

2012-11-29 Thread Joman Chu
Try taking a look at the AOSP source code for packages/apps/DeskClock to
see how it's implemented.


On Thu, Nov 29, 2012 at 1:54 AM, Etienne  wrote:

> Originally posted here :
> http://stackoverflow.com/questions/13523350/android-alarm-clock-ui/13523970#comment18608151_13523970
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Intent camera option with the gallery

2012-11-29 Thread Ricardo Cardoso
Hello, I wonder how can I call the Intent of the camera with the option
flag gallery too?

Same is the Instagram app ...

hugs

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

2012-11-29 Thread Piren
heh... actually i'm not sure... you can try the google play developers 
support email, or contact one of your local google advocates and see if 
they can be of help


On Thursday, November 29, 2012 2:21:51 PM UTC-5, Paul-Peter Tournaris wrote:
>
> How do you request it ?
>
>
> On Thu, Nov 29, 2012 at 8:46 PM, Piren >wrote:
>
>> google now allows you to do that without being a top developer, you need 
>> to request it.
>>
>>
>> On Thursday, November 29, 2012 11:59:14 AM UTC-5, John Coryat wrote:
>>>
>>> Can you reply to comments now? (you do this in the developer console)
>>>
>>> -John Coryat
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-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
>>
>
>

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

Re: [android-developers] how to get the location of an incoming call

2012-11-29 Thread Piren
http://code.google.com/p/libphonenumber/

On Thursday, November 29, 2012 2:05:28 PM UTC-5, Jovish P wrote:
>
> did u got any solution for this ?
>
> regards,
> jovi
>
> On Fri, Nov 23, 2012 at 12:49 AM, babrit <067...@gmail.com 
> >wrote:
>
>>
>>  -- 
>> 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
>
>
>

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

2012-11-29 Thread Francisco Marzoa
Same problem here.

The only workaround I found was registering a credit card, so you are
trusted that way without verifying your phone.

Best regards,
On Nov 28, 2012 10:08 AM, "Elena Aa"  wrote:

> When I try to registred as a Developer, I never recive the code to verify!
> Somebody can help me? Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Why would SIGSEGV crash occur in Galaxy S3 Android WebView?

2012-11-29 Thread Johnabre
Hmm…I've still got a long way to go in narrowing this down to a simple test 
case, but I've gotten reproduction of the above SIGSEGV down to 2 HTML 
pages loaded from a plain webview app.  The webview simply starts up and 
loads the first page:

http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/crash.html

The pages link to each other, and don't necessarily crash on the first 
view, but eventually they crash 100% on the Android 4.1.1 emulator and my 
Galaxy Nexus (4.1.1).  Note that the thread title is wrong - this 
definately isn't S3 only.

The interesting thing is,
- Using the webview inside my real app, loading 1 page (crash.html or any 
heavy HTML5 page) repeatedly is enough to cause the SIGSEGV.
- Using this plain webview app for testing, the two pages need each other 
to crash - just loading 1 page repeatedly will not die.
- Loading the pages in the Android 4.1.1 web browser, even the 2 pages 
aren't enough - it will die eventually but it takes many pages.

In terms of error location, there are different stack traces on the 
crashes, some related to stylesheets, others related to destructors at 
HTMLImageElement.  Android 2.x, iOS, any other browser is rock solid.

Javascript changes the DOM, and that appears to be enough to cause the 
crash here…but why?  
At first glance this strikes me as a garbage collection problem - my app 
would garbage collect earlier than the plain webview app because it has 
used more memory in other places.  I'm not getting memory error messages, 
however.  I'll continue working to narrow this down, but anyone with any 
ideas as to how to proceed or what might be the issue truly has my eternal 
undying affection.

Test App Code: 
http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/CrashApp.zip
Test App APK: 
http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/CrashApp.apk
All HTML resources: 
http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/CrashHTMLPagFull.zip

Test App's startup code:

public class MainActivity extends Activity {
 
private WebView webView;
 
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
 
webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);

webView.setWebViewClient(new WebViewClient()); 
webView.setWebChromeClient(new WebChromeClient()); 
webView.loadUrl("http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/crash.html";);
}
 
}


On Wednesday, October 17, 2012 8:53:58 PM UTC+8, Johnabre wrote:
>
> Thanks for replying!
>
> I've tried HW acceleration both ON and OFF, but unfortunately neither 
> stopped the crashing.  I also just tried lowering android:targetSdkVersion 
> to 11, but that didn't help either =(
>
> There's some interplay with other parts of the app that I just have to 
> find.  For the record the HTML5 doesn't hang in the S3 web browser, so I 
> know that the system isn't intrinsically incapable of this ;^^
>
> On Friday, October 12, 2012 7:39:04 PM UTC+8, Anthony Prieur wrote:
>>
>> Try HW acceleration ON or OFF, ICS Webview has troubles with some 
>> CSS/CSS3 + HW acceleration. Also try to lower android:targetSdkVersion to 
>> 11 for example.
>>
>>
>> Le jeudi 11 octobre 2012 08:09:54 UTC+2, Johnabre a écrit :
>>>
>>> I have a complex, interactive HTML5 in an Android WebView - and it works 
>>> fine on basically all platforms except Galaxy S3.  On Galaxy S3 (Android 
>>> 4.0.4), once out of every 5 times or so, just after the load completes, 
>>> /system/lib/libwebcore.so tries to access invalid memory and a Fatal signal 
>>> 11 (SIGSEGV) at [various addresses] (code=1) is thrown.
>>>
>>> The HTML5 is a tiny battle where enemies appear and the user slashes 
>>> them to proceed.  In between battles are normal html pages: normal page -> 
>>> HTML5 battle -> normal page -> HTML5 battle -> normal page -> HTML5 battle. 
>>>  The HTML5 doesn't do anything particularly out-of-the-box - there's a lot 
>>> of -webkit-animation calls...
>>>
>>> .enemy {
>>> position:absolute;
>>> opacity:0;
>>> -webkit-animation:enemyAnim 0.6s linear 0.2s;
>>> }
>>>
>>> …that reference a lot of -webkit-keyframes...
>>>
>>> @-webkit-keyframes enemyAnim {
>>> from {
>>>  -webkit-transform: matrix(1, 0, 0, 1, 144.25, 150.25) scale(1, 1);
>>>  opacity:1;
>>> }
>>> 8.33% {
>>>  -webkit-transform: matrix(1, 0, 0, 1, 189.406, 102.206) 
>>> scale(1.3066, 1.3066);
>>>  opacity:1;
>>> }
>>> 16.66% {
>>>  -webkit-transform: matrix(1, 0, 0, 1, 200.424, 82.649) scale(1.414, 
>>> 1.414);
>>>  opacity:1;
>>> }
>>> /*…*/
>>>
>>> And a fairly complex div tree, but nothing particularly experimental. 
>>>  There's some level of Javascript, but the hangs appear to occur even with 
>>> all Javascript turned off.
>>>
>>> Has anyone ever had a problem with a Galaxy S3 being…different?  No 
>>> Android 2.x devices have this problem, and even a Gala

Re: [android-developers] Reduce Battery Usage via Airplane Mode

2012-11-29 Thread Robert Greenwalt
It an interesting idea.

Note that toggling APM will consume more power than maintaining a
connection for some period.  If APM is on for long enough you can make this
a positive change.  If you have no coverage, it's definitely a positive
change.  Of course your texting, chatting, location services, basically
everything you have a smartphone for will be broken during that time - you
may as well have the phone off.  Even phone calls will fail during that
time.  Turning APM off may also be slow.  In some situations it may take
30s or longer to get a data connection, and then apps need to reconnect and
check for updates.

I'll enter a feature request.


On Tue, Nov 27, 2012 at 9:16 AM, Javo  wrote:

>
> I've never created an android app, however I am a computer science major
> (sophomore), so I am relatively familiar with some java code. However, I'm
> still new to programming so forgive me if I say anything ignorant.
>
> I have noticed that the less service I have, the more battery power that
> is used to search for service.
> My ultimate goal is to create an app that will put my phone on Airplane
> mode when it is locked and periodically turn off Airplane mode every X
> minutes.
> The purpose of putting the phone on Airplane Mode when it is locked is to
> prevent the phone from using battery searching for service when I am not
> using it.
> The purpose of turning off Airplane Mode every X minutes is to allow my
> phone to "update," by searching and hopefully connecting to a network so
> that I can be alerted of any missed text messages and/or calls that I have
> received since being on airplane mode.
> If the phone is unlocked, I would like Airplane mode to be turned off.
>
> Ideally, I would rather not have to write this code at all. I would really
> appreciate it if someone else could write it for me, not because I am lazy,
> but because this is an app that my phone desperately needs because I spend
> a lot of time in areas where I have too little service for the phone to
> effectively use the networks to send information, but just enough service
> that my phone can still receive information from senders (texts/emails).
> -Thank you to whomever may be able to help me.
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-11-29 Thread sree android
Thank you bro.

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

2012-11-29 Thread Ananda Krishna
Hi,
Can anyone tell how to develop a smart tv remote app using android i.e 
topics that we need to know and how to begin..
Any help in this regard is appriciated..
Regards,
AnandaKrishna S

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

2012-11-29 Thread Techni
I am getting some really STUPID comments and it's infuriating that I can do 
nothing about them

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

[android-developers] Re: smart tv app using android

2012-11-29 Thread Zsolt Vasvari
Do you have Google access in your country?

On Friday, November 30, 2012 1:20:01 PM UTC+8, Ananda Krishna wrote:
>
> Hi,
> Can anyone tell how to develop a smart tv remote app using android i.e 
> topics that we need to know and how to begin..
> Any help in this regard is appriciated..
> Regards,
> AnandaKrishna S
>

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

2012-11-29 Thread Zsolt Vasvari
Dec 12, 6:00pm.

On Friday, November 30, 2012 2:31:00 PM UTC+8, Techni wrote:
>
> I am getting some really STUPID comments and it's infuriating that I can 
> do nothing about 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