[android-developers] Growth of Unified Network Management Market - Deployment Model, Solutions, Service and Industry Verticals

2017-08-31 Thread Albert Morris


*FREE | Request Sample Copy is Available at 
http://www.theinsightpartners.com/sample/TIPTE10585 
 *

Unified Network Management is the administration of wired as well as 
wireless infrastructure laid out inside any organization through a common 
single console or interface. A wide range of network functions are managed 
through a single console that include provisioning, planning, monitoring, 
configuring, handling expectations, logging and reporting. Apart from 
these, the console needs to have separate features for wired and wireless 
networks that serve criticality over the network. Connection reliability, 
spectrum management and monitoring, added security functions. Growing 
trends of using personalized mobile devices such as smartphones and tablets 
and remotely accessing organization data through a secured network is 
resulting in the increasing demands for such network management 
technologies. The rise of virtualization technologies has opened a 
potential avenue of application for Unified Network Management market and 
will bring new opportunities in the market. The global unified network 
management market is expected to witness rapid growth during the forecast 
period.

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


[android-developers] Cannot resolve symbol "r" on android studio

2016-09-08 Thread Albert Muñoz
I'm doing on UDACITY the android development for begginers course and in 
one exercice we must put this code o the activity_main.xml:



http://schemas.android.com/apk/res/android;
xmlns:tools="http://schemas.android.com/tools;
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.android.justjava.MainActivity">
















and on the MainActivity.java this code:








/**

 * Add your package below. Package name can be found in the project's 
AndroidManifest.xml file.

 * This is the package name our example uses:

 *

 * package com.example.android.justjava;

 */



import android.os.Bundle;

import android.support.v7.app.AppCompatActivity;

import android.view.View;

import android.widget.TextView;


/**

 * This app displays an order form to order coffee.

 */

public class MainActivity extends AppCompatActivity {



@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

}



/**

 * This method is called when the order button is clicked.

 */

public void submitOrder(View view) {

display(1);

}


/**

 * This method displays the given quantity value on the screen.

 */

private void display(int number) {

TextView quantityTextView = (TextView) 
findViewById(R.id.quantity_text_view);

quantityTextView.setText("" + number);

}

}







And on the MainActivity.java code the R is in red and i don't understand why???

I've tryed to clean the project, build the project and changing the code but i 
cannot resolve the problem.

Please HELP ME!

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


[android-developers] Promo codes.

2016-04-27 Thread Albert Magdelphi
my Android software Promo Codes -> PROMO 
I wonder your comments. 

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


[android-developers] VoiceRecognition at minimum

2013-01-07 Thread Albert v Ee
Hello

Is it possibe to get the minimum of the speaker icon visible when 
i activate the VoiceRecognition? I mean 

when i start the VoiceRecognition i see the google logo on it and i see the 
lanauge but how can i get it with rhe minimals that I only se the speaker 
icon (same as google voice search at adroid 4.1 ) 

Because I work with talkback and everytime i start the VoiceRecognition 
talkback wil talk tru the voice regonision and record his own speech!

Hope you understand it my english is not so good.

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

[android-developers] Android SDK manager

2012-09-26 Thread Albert
Hi!
I'm using linux Mint and I install the Android SDK  and downloading the 
packages, the manager log says in red: Stopping ADB server failed (code 
-1)
And then when I connect my phone to the usb laptop, this one doesn't 
recognize any device because there is no ADB. How can I fix this problem, 
please?

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

2012-07-07 Thread Albert Rosa
Rolplkttl
L
sent from my mobile thoughts.
On Jul 7, 2012 12:30 AM, Akki akshay.iitr@gmail.com wrote:

 I was trying to send an image file between 2 emulators using a TCP socket
 connection.The socket connection has been successfully made and the image
 file is stored on the SD-card of one of the emulators. I want to ask how
 can I convert the image file into byte stream and how on the other side can
 I convert back the bytestream to image format?? I tried to search a lot but
 couldn't find the right function in the API.

 Any other ideas for the same are welcomed

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

2012-04-04 Thread Albert Rosa
You're looking to have two apps with the same code base, different package
/ app name. Releasing two apks. The only way I see this likely is to use
two different projects with a core library containing the code that you'd
like to reuse.

sent from my mobile thoughts.
On Apr 4, 2012 7:16 AM, Mark mlybar...@gmail.com wrote:

 themes don't quite seem to handle what's needed.  i have one
 application or project that i want to deploy as 2 applications. build
 as app a, then build as app b.  i can easily copy in / out a different
 resource folder, but that doesn't handle the application package.
 each app in the store needs a different package.  my app code uses
 the namespace, org.bnb for the classes, but i want to deploy for
 Bob's Bed n Breakfast and for Sue's Bed and Breakfast, com.bbnb
 and com.sbnb.  Android seems to use the package name as the
 application name (from the manifest).  i've been able to override thus
 far the package name that the R class uses, but when i try to run, the
 other classes seem to want to come from the manifest package naming.

 ar.

 any help on this is most appreciated.  android could use an app name
 and keep that separate from the code naming.

 On Apr 4, 12:28 am, TreKing treking...@gmail.com wrote:
  On Tue, Apr 3, 2012 at 6:49 AM, Mark mlybar...@gmail.com wrote:
   How would i go about switching the resources and the R class?
 
   Are there other ideas on how to properly brand an application?
 
  I'd would investigate using Themes.
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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

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

2012-04-04 Thread Albert Rosa
Just curious where is the file you are opening stored? Is it within your
APK and within the Raw folder?

On Wed, Apr 4, 2012 at 10:07 AM, guich guiha...@gmail.com wrote:

 Hi,

 Some users are having a very serious problem with some android devices
 (motorola, samsung): after running the application for several hours,
 some data files are being corrupted by the OS. The most strangest
 thing is that these files are opened using fopen(.., rb), thus, in
 read-only mode. They are never written from our code.

 I can easily detect that the corruption occured when the program
 starts. I was thinking, in this case, to call the installer again. I
 know that the installer are stored at /data/app/*.apk. Is it possible
 to call the installer from the application in a non-rooted android
 device or is this blocked?

 thanks

   guich

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




-- 
Albert Rosa
(Phone) 646-389-ROSA
rosalb...@gmail.com | http://www.albert-rosa.com |
http://blog.albert-rosa.com
Twitter: http://twitter.com/albertrosa | LinkedIn:
http://linkedin.com/in/albertrosa

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

2012-01-09 Thread Albert
Have you had any solution to this? I'm also seeing this on one of my
apps...


On 12 dic 2011, 15:53, freezy phree...@gmail.com wrote:
 Hi everyone,

 I have an app that connects to a HTTP service using an URLConnection. The
 app is in the market over a year now and works quite well, however recently
 problems with Galaxy Nexus users came up:

 When getting the input stream from the URLConnection using
 getInputStream(), an EOFException is thrown. I really wonder why this is,
 because at this point, only the headers are being read from the stream. The
 code of the line where it crashes can be seen here[1].

 First I thought this may be an ICS problem, so I installed a early build on
 my Nexus S, but no reproduction there. Then I got access to a Galaxy Nexus
 and it crashed the same way as the bug reports I've received, which makes
 me think that it's probably not a case of a single phone acting weird.

 The stack trace of the crash can be seen here[2] (also, the message of the
 exception is null, hence the NPE). It's really quite bothersome, the app
 has 100k+ installations and the problem does only seem to occur on the
 Galaxy Nexus.

 Any suggestions, hints or comments would be really appreciated.

 Cheers,

    -freezy.

 [1]https://github.com/freezy/android-xbmcremote/blob/master/src/org/xbmc...
 [2]http://code.google.com/p/android-xbmcremote/issues/detail?id=581

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


[android-developers] Re: ADT Eclipse: Failed to parse the output of 'adb version'

2012-01-05 Thread Albert Pi
Lucio,
Try to use sdk android revision 15. This revision is working on my PC
(Windows XP/jdk 1.7.0_02/Eclipse 3.7.1(Indigo)/sdk android revsion
15).

On Jan 4, 8:33 am, LucPel lucio.pellecc...@gmail.com wrote:
 I have the problem with my installation ADT Android on Eclipse Indigo,
 the problem is this:

                    When I open Eclipse this error appears :  Failed
 to parse the output of 'adb version' 

 I've read numerous posts on this site but i can not solve my problem.

 I use:
    Windows 7
    jdk 1.7.0_02
    Eclipse Indigo
    sdk android revision 16

 I tried:
    adb kill-server
    adb start-server
    restart eclipse

    my Environment Variables is ok...
    and when I compile and run it as a prompt, okay! works

 but I don't solve the problem with eclipse! :(

 I noticed that immediately restarting Windows and opening Eclipse ...
 ADT on Eclipse WORKS!!! I close Eclipse and ADT on Eclipse does NOT
 work!!!

 Help me please...

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


[android-developers] Re: Can't see Hello World on AVD Unable to create sensors port:

2012-01-03 Thread Albert Pi
Opa,
I use Windows XP/Dell Optplex with 4GB M and JDK 6  eclipse Indigo.
Before you do anything, just make sure you have right tools for coding
Android app.
1. Have JDK 6.0 (nit jre) installed
2. Have Eclipse(3.6/3.7) installed and have already installed the ADT
Plugin.
3.created an good Android Virtual Device (AVD)
 if you already have these done and recreate a Hello world Android
project again.
 make sure spellings in all xml files are correct.
 after this you still have problem then use  'LogCat to look Unable
to create sensors port error.

On Jan 1, 6:14 pm, OpaSmurf opasmur...@gmail.com wrote:
 Attempting to use Hello Android as confirmation that my ADK is
 working.  Have installed tools on Linux and XP with same results.
 Divide and conquer approach appears to exonerate eclipse.  The
 following terminal commands give the same result without eclipse.  An
 incredible animated virtual android appears without the expected
 text.  The error message ...  Connection refused appears.  My thanks
 to Albert Pi for answering my previous post.

 opa@opa-desktop:~/android-sdk-linux/tools$ emulator -avd my_avd 

 [1] 16686

 opa@opa-desktop:~/android-sdk-linux/tools$ emulator: WARNING: Unable
 to create sensors port: Connection refused

 My version of the ADK appears out of sync with the following pages:
 1http://developer.android.com/sdk/installing.html Note: latest ADK
 has separated SDK and AVD
 android opens SDK manager only.  Use “android create avd -n
 another_avd -t 1” for example to create an AVD
 2http://guide/developing/building/building-cmdline.htmlpage fails to
 load
 3http://developer.android.com/resources/tutorials/hello-world.html
 Note: ref 5 below
 4http://developer.android.com/guide/developing/devices/index.html
 Note: ref 5 below
 5http://developer.android.com/guide/developing/devices/managing-avds-c...
 Note: See for creating an AVD target

 It would appear that the warning about the sensor port would be a good
 place to start. Are there any suggestions out there on how to start
 tracking this down?

 Thanks,
 Opa

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

2011-12-30 Thread Albert Pi
1.this is url: http://developer.android.com/resources/tutorials/hello-world.html
and just follow steps.
2. Also make sure your AndroidManifest.xml has a correct activity to
match the name of java code. (see below)
   activity
  android:name=HelloAndroidActivity
   android:label=@string/app_name
   android:icon=@drawable/ic_launcher
intent-filter
action android:name=android.intent.action.MAIN /

category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
3. HelloAndroidActivity.java

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;


public class HelloAndroidActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);



}
}


On Dec 29, 11:22 am, alan4100 alansbl...@verizon.net wrote:
 HelloWorld Application

 My first posting is at OTN Discussions Forum (under Oracle). Somebody
 recommended to this forum; faster responses. 99.9% Solved. I am not
 sure which one I am in because I am just a complete beginner.

 I was getting the android SDK to work from Android3 SDK Programming by
 Ramnath, but it does not look good for two reasons. The book I
 purchased few days ago is actually February 2009 version. Maybe it is
 on bookstore shelf for three years. Secondly, it run with some errors.
 I am posting with little hope.

 First my ACER Windows 7 is 64 bit operating system.
 I installed JAVA SDK 7  then Eclipse IDE in 64 bit.
 Then installed SDK Android Starter Package. I downloaded all virtual
 devices.
 Then installed ADT plug 3.1 recommended in book for Eclipse by 
 typinghttps://dl-ssl.google.com/android/eclipseand then click add.

 To make it short, I run Hello Android Project in Eclipse as Android
 Project.
 What I got is black screen with no HelloWorld as displayed in the
 book.

 At the bottom of Eclipse in console displayed some errors.
 Can you help me correct errors?
 It looks like there is not much hope. I think something to do with
 Android emulator software.
 [2011-12-30 00:04:50 - First application]

 [2011-12-30 00:04:50 - First application] Android Launch!
 [2011-12-30 00:04:50 - First application] adb is running normally.
 [2011-12-30 00:04:50 - First application] Performing
 com.wiley.androidfordummies.HelloAndroid.FirstapplicationActivity
 activity launch
 [2011-12-30 00:04:50 - First application] Automatic Target Mode:
 launching new emulator with compatible AVD 'android3'
 [2011-12-30 00:04:50 - First application] Launching a new emulator
 with Virtual Device 'android3'
 [2011-12-30 00:05:00 - Emulator] emulator: WARNING: Unable to create
 sensors port: Unknown error
 [2011-12-30 00:05:00 - Emulator] emulator: emulator window was out of
 view and was recentered
 [2011-12-30 00:05:00 - Emulator]
 [2011-12-30 00:05:00 - First application] New emulator found:
 emulator-5554
 [2011-12-30 00:05:00 - First application] Waiting for HOME
 ('android.process.acore') to be launched...
 [2011-12-30 00:05:06 - First application] emulator-5554 disconnected!
 Cancelling
 'com.wiley.androidfordummies.HelloAndroid.FirstapplicationActivity
 activity launch'!

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


[android-developers] Re: Can Android apps access both the Wi-Fi and cellular data networks at the same time?

2011-12-30 Thread Albert Pi
Try to use three tcps, one is for wifi , second is for cellular
network, third is for android.

On Dec 29, 11:43 am, DigiGuy digigo...@gmail.com wrote:
 I'm working on an application that will run on a phone where the phone
 will be a station on a private Wi-Fi network.  The phone will be a
 station, not an access point, and the private Wi-Fi network does not
 route to the Internet.  My application needs to communicate with
 servers on the Internet as well as devices on the local Wi-Fi network,
 so it needs to have connections on both networks at the same time.
 I've been trying to figure out how to do this.

 I've been trying the technique described in the discussion Can
 Android 2.X connect to 3G and Wifi data networks simultaneously?, but
 it is not working well.  What I find is that when I enable the
 cellular network by calling
 ConnectivityManager.setNetworkPreference(ConnectivityManager.TYPE_MOBILE),
 any sockets I have open on the Wi-Fi network are closed.  I haven't
 tried it, but I suspect the same thing will happen to sockets on the
 cellular network when I switch back to Wi-Fi.  Another problem is that
 these calls operate on a global level, changing the network settings
 for the entire phone, not just the application.  Switching the network
 set up globally like this will interfere with any other app that
 happens to be running on the phone.  Even after my application exits,
 the phone continues to run with the last network configuration it set.

 I'm looking for a way to have connections open on both the cellular
 data and Wi-Fi networks at the same time, and without interfering with
 other applications running on the phone.  Does anyone know how to do
 this?  Does anyone know if this is possible?

 Thanks for your help.

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


[android-developers] Re: Can't see Hello World on hello_avd screen ?????????

2011-12-29 Thread Albert Pi
 if there are any errors that may be causing it to crash early, or
  not start.

  On Wed, Dec 28, 2011 at 3:33 PM, Albert Pi albertpi0...@gmail.comg  wrote:

   Sander,
   I am not seeing hello, android in my emulator and I waited more than
   20 mints also restart emulator three times. Need help ???

   [2011-12-28 15:21:43 - HelloLinearLayout]
   --
   [2011-12-28 15:21:43 - HelloLinearLayout] Android Launch!
   [2011-12-28 15:21:43 - HelloLinearLayout] adb is running normally.
   [2011-12-28 15:21:43 - HelloLinearLayout] Performing
   com.test.hellolinearlayout.HelloLinearLayoutActivity activity launch
   [2011-12-28 15:21:43 - HelloLinearLayout] Automatic Target Mode:
   launching new emulator with compatible AVD 'my_avd'
   [2011-12-28 15:21:43 - HelloLinearLayout] Launching a new emulator
   with Virtual Device 'my_avd'
   [2011-12-28 15:21:51 - HelloLinearLayout] New emulator found:
   emulator-5554
   [2011-12-28 15:21:51 - HelloLinearLayout] Waiting for HOME
   ('android.process.acore') to be launched...
   [2011-12-28 15:22:41 - HelloLinearLayout] HOME is up on device
   'emulator-5554'
   [2011-12-28 15:22:41 - HelloLinearLayout] Uploading
   HelloLinearLayout.apk onto device 'emulator-5554'
   [2011-12-28 15:22:41 - HelloLinearLayout] Installing
   HelloLinearLayout.apk...

   I didn't get any response message says : [2011-12-28 15:22:41 -
   HelloLinearLayout] Success !   -- this is the message I suppose to get
   from Android ???

   Is anything else I missed ?  Can you shed some light on it ?

   On Dec 27, 5:45 am, Sander Theetaert sander.theeta...@gmail.com
   wrote:
I think patience is the key:

it actually does take some time before the application shows up, even
'hello world'.

I had a colleague who also 'suffered from the same problem' and the
'solution' was sitting next to him and stopping him 3 times from killing
the emulator.

S.

2011/12/22 Albert Pi albertpi0...@gmail.com

 I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell
 optiplex 755 has 4GB Memory.
 I had no issue to compile Hello World program and  to create
 my_avd. When I ran program, my emulator only took a few minutes to
 show up then I saw  lock icon  Android, after I click menu from
 the right panel of the emulator's screen, I can see default android
 screen. It seems everything went well but I just can't see Hello
 world text in the grey bar is actually the application title of
 screen. It's not  like from tutorial Hello World.

 Pleas see below my log file:
 2011-12-22 15:06:26 - Hello] --
 [2011-12-22 15:06:26 - Hello] Android Launch!
 [2011-12-22 15:06:26 - Hello] adb is running normally.
 [2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity
 activity launch
 [2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new
 emulator with compatible AVD 'hello_avd'
 [2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual
 Device 'hello_avd'
 [2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554
 [2011-12-22 15:07:00 - Hello] Waiting for HOME
 ('android.process.acore') to be launched...
 [2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554'
 [2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device
 'emulator-5554'
 [2011-12-22 15:07:59 - Hello] Installing Hello.apk...

  I thought it's very simple and easy android tutorial program. Do I
 miss something ?  Help /

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

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

  --
  I know that you believe you understand what you think I said, but I'm not
  sure you realize that what you heard is not what I meant.
  - Robert McCloskey

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


[android-developers] Re: Can't see Hello World on hello_avd screen ?????????

2011-12-28 Thread Albert Pi
Sander,
I am not seeing hello, android in my emulator and I waited more than
20 mints also restart emulator three times. Need help ???

[2011-12-28 15:21:43 - HelloLinearLayout]
--
[2011-12-28 15:21:43 - HelloLinearLayout] Android Launch!
[2011-12-28 15:21:43 - HelloLinearLayout] adb is running normally.
[2011-12-28 15:21:43 - HelloLinearLayout] Performing
com.test.hellolinearlayout.HelloLinearLayoutActivity activity launch
[2011-12-28 15:21:43 - HelloLinearLayout] Automatic Target Mode:
launching new emulator with compatible AVD 'my_avd'
[2011-12-28 15:21:43 - HelloLinearLayout] Launching a new emulator
with Virtual Device 'my_avd'
[2011-12-28 15:21:51 - HelloLinearLayout] New emulator found:
emulator-5554
[2011-12-28 15:21:51 - HelloLinearLayout] Waiting for HOME
('android.process.acore') to be launched...
[2011-12-28 15:22:41 - HelloLinearLayout] HOME is up on device
'emulator-5554'
[2011-12-28 15:22:41 - HelloLinearLayout] Uploading
HelloLinearLayout.apk onto device 'emulator-5554'
[2011-12-28 15:22:41 - HelloLinearLayout] Installing
HelloLinearLayout.apk...

I didn't get any response message says : [2011-12-28 15:22:41 -
HelloLinearLayout] Success !   -- this is the message I suppose to get
from Android ???

Is anything else I missed ?  Can you shed some light on it ?



On Dec 27, 5:45 am, Sander Theetaert sander.theeta...@gmail.com
wrote:
 I think patience is the key:

 it actually does take some time before the application shows up, even
 'hello world'.

 I had a colleague who also 'suffered from the same problem' and the
 'solution' was sitting next to him and stopping him 3 times from killing
 the emulator.

 S.

 2011/12/22 Albert Pi albertpi0...@gmail.com







  I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell
  optiplex 755 has 4GB Memory.
  I had no issue to compile Hello World program and  to create
  my_avd. When I ran program, my emulator only took a few minutes to
  show up then I saw  lock icon  Android, after I click menu from
  the right panel of the emulator's screen, I can see default android
  screen. It seems everything went well but I just can't see Hello
  world text in the grey bar is actually the application title of
  screen. It's not  like from tutorial Hello World.

  Pleas see below my log file:
  2011-12-22 15:06:26 - Hello] --
  [2011-12-22 15:06:26 - Hello] Android Launch!
  [2011-12-22 15:06:26 - Hello] adb is running normally.
  [2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity
  activity launch
  [2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new
  emulator with compatible AVD 'hello_avd'
  [2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual
  Device 'hello_avd'
  [2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554
  [2011-12-22 15:07:00 - Hello] Waiting for HOME
  ('android.process.acore') to be launched...
  [2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554'
  [2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device
  'emulator-5554'
  [2011-12-22 15:07:59 - Hello] Installing Hello.apk...

   I thought it's very simple and easy android tutorial program. Do I
  miss something ?  Help /

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

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

2011-12-26 Thread Albert Rosa
It could be due to println not exististing in the packages included with
android. I would suggest using Log.w(), Log.e() or Log.n() for logging and
viewing points.  Not entirely sure why the println doesn't work.

Sent via Mobile device... mind the spelling errors I might have rushed!
On Dec 26, 2011 8:25 AM, John Goche johngoch...@googlemail.com wrote:


 Hello,

 I have run across the following strange error message. From within an
 button's on click
 listener I call System.out.println(Foo.bar) so as to debug my program and
 get the following
 error message:

 D/AndroidRuntime( 2313): Shutting down VM

 W/dalvikvm( 2313): threadid=1: thread exiting with uncaught exception
 (group=0x40015560)

 E/AndroidRuntime( 2313): FATAL EXCEPTION: main

 E/AndroidRuntime( 2313): java.lang.NullPointerException

 E/AndroidRuntime( 2313): at
 com.android.internal.os.LoggingPrintStream.println(LoggingPrintStream.java:298)

 Anyone know what this is all about?

 Thanks,

 John Goche

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Can't see Hello World on hello_avd screen ?????????

2011-12-22 Thread Albert Pi
I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell
optiplex 755 has 4GB Memory.
I had no issue to compile Hello World program and  to create
my_avd. When I ran program, my emulator only took a few minutes to
show up then I saw  lock icon  Android, after I click menu from
the right panel of the emulator's screen, I can see default android
screen. It seems everything went well but I just can't see Hello
world text in the grey bar is actually the application title of
screen. It's not  like from tutorial Hello World.

Pleas see below my log file:
2011-12-22 15:06:26 - Hello] --
[2011-12-22 15:06:26 - Hello] Android Launch!
[2011-12-22 15:06:26 - Hello] adb is running normally.
[2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity
activity launch
[2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new
emulator with compatible AVD 'hello_avd'
[2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual
Device 'hello_avd'
[2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554
[2011-12-22 15:07:00 - Hello] Waiting for HOME
('android.process.acore') to be launched...
[2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554'
[2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device
'emulator-5554'
[2011-12-22 15:07:59 - Hello] Installing Hello.apk...


 I thought it's very simple and easy android tutorial program. Do I
miss something ?  Help /


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


[android-developers] Can't see Hello World text on hello_avd screen ?

2011-12-22 Thread Albert Pi
I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell
optiplex 755 has 4GB Memory.
I had no issue to compile Hello World program and  to create
my_avd. When I ran program, my emulator only took a few minutes to
show up then I saw  lock icon  Android, after I click menu from
the right panel of the emulator's screen, I can see default android
screen. It seems everything went well but I just can't see Hello
world text in the grey bar is actually the application title of
screen. It's not  like from tutorial Hello World.

Pleas see below my log file:
2011-12-22 15:06:26 - Hello] --
[2011-12-22 15:06:26 - Hello] Android Launch!
[2011-12-22 15:06:26 - Hello] adb is running normally.
[2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity
activity launch
[2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new
emulator with compatible AVD 'hello_avd'
[2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual
Device 'hello_avd'
[2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554
[2011-12-22 15:07:00 - Hello] Waiting for HOME
('android.process.acore') to be launched...
[2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554'
[2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device
'emulator-5554'
[2011-12-22 15:07:59 - Hello] Installing Hello.apk...


 I thought it's very simple and easy android tutorial program. Do I
miss something ?  Help 

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


Re: [android-developers] ADMOB HELP!

2011-11-28 Thread Albert Rosa
Hey there,

I wouldn't be too worries at first for the first 6 months I didn't earn
over 25 cents but after a year and more popularity i've gone to just about
$4 a day for one app. It takes a while.

Though you can also check your analytics if any to make a judgment on it.

-Al

Sent via Mobile device... mind the spelling errors I might have rushed!
On Nov 28, 2011 6:03 PM, keken mportnoy...@yahoo.com wrote:

 Hello, can somebody help?,
 how much you guys usually earned per day using admob?
 I just want to know cause I'm a bit worried with my earnings.
 My app is still about 2-3 weeks since published.

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

2011-08-17 Thread Albert
They are known to have attacked IPhone developers in the past. Maybe
they are having a go at Android??


On Aug 17, 1:56 pm, David Erosa García soul...@gmail.com wrote:
 On Wed, Aug 17, 2011 at 2:48 PM, TreKing treking...@gmail.com wrote:
  On Wed, Aug 17, 2011 at 6:52 AM, David Erosa García soul...@gmail.com
  wrote:

  They have attached a screenshot of my webpage in which there are two
  links, one for the lite version and another one for the full version...

  Wait, they are basing their claim on your having *links* for your app on
  your *website* ? Not having a link *in your free app* to the paid one?

 The Claim Chart shows an screenshot of my app menu, followed by a
 screenshot of my webpage (http://www.forgotten-systems.com/collage/)
 pointing to the Market links. Of course there's a link to my web page
 from my app...

  The other sshots are from the Market ,concretely the Buy button and
 the OK button of the Purchase and allow access dialog (¿?) This
 last one is related to Collecting the results of the interaction from
 usersin a central location to allow for an upgrade to occur in the
 product.









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


[android-developers] Re: HttpURLConnection with POST method

2011-08-16 Thread Albert
Are you testing this on a 2.3.3 device?


On Aug 16, 4:37 am, Budi Wibowo budiat...@gmail.com wrote:
 I'm very new to android programming. I'm more used to c# programming.

 I'm having problem sending POST data to a PHP page using HttpURLConnection.

 i know that POST data has to be encoded in ascii and sent to the server in
 bytes format. this is what i did, and i have been unsuccessful. I tried
 following several web instruction to no avail.
 *URL url;
 HttpURLConnection conn;
 url=new URL(https://mysite.com/test.php;);
 conn=(HttpURLConnection)loginUrl.openConnection();
 conn.setRequestMethod(POST);
 String charset = UTF-8;
 String qry =URLEncoder.encode(param1=holeparam2=ass,charse t);
 conn.setRequestProperty(Accept-Charset, charset);
 conn.setRequestProperty(Content-Type, application/x-ww-form-urlencoded);
 conn.setRequestProperty(Content-Length,
 +Integer.toString(qry.getBytes().length));
 conn.setUseCaches(false);
 conn.setDoInput(true);
 conn.setDoOutput(true);

 //sendrequest
 DataOutputStream out= new DataOutputStream(conn.getOutputStream());
 txtResponse.setText(out.toString());
 out.writeBytes(qry);
 out.flush();
 **out.close();*

 I did not include the response code here, because it was running fine.

 in my PHP code, all i'm doing is spitting out the value of param1 and param
 2. they all turned out empty.

 i tried modifying the parameter so that it will encode only the values, but
 not the key. however i still can't make it to work.

 i tried out.write(qry.getBytes);
 also tried out.write((param1=1param2=2).getBytes));
 nothing works!

 what am i doing wrong

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

2011-07-08 Thread Albert
Hi,

I am trying to use proguard when exporting the build but it's failing
on Proguard returned with error code 1 - the problem comes from
having the twitter4j jar.

I have tried this: -libraryjars libs/twitter4j-core-android-2.2.3.jar
but with no luck. Have anyone done this before?

Thanks in advance,
Alberto

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

2011-06-24 Thread Albert
Hi all,

I am using twitter4j library to integrate my app with Twitter. I am
past the authorization request, callback and I have the token and
tokenSecret back from the authentication.

What's the problem? I am getting a
java.lang.IllegalArgumentException: Invalid access token format
error when I try to use these

AccessToken accessToken = new AccessToken(token, tokenSecret); //
throws exception

Anyone else seen 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


[android-developers] Re: Twitter integration - AccessToken issue

2011-06-24 Thread Albert
This is what im doing to update a tweet.

Twitter twitter = new TwitterFactory().getInstance();

twitter.setOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET);

twitter.setOAuthAccessToken(accessToken);

twitter.updateStatus(Send from my app!);

Everything seems fine apart from the AccessToken...


On Jun 24, 12:54 pm, ram dharan rdhara...@gmail.com wrote:
 On Fri, Jun 24, 2011 at 5:16 PM, Albert albert8...@googlemail.com wrote:
  Hi all,

  I am using twitter4j library to integrate my app with Twitter. I am
  past the authorization request, callback and I have the token and
  tokenSecret back from the authentication.

  What's the problem? I am getting a
  java.lang.IllegalArgumentException: Invalid access token format
  error when I try to use these

  AccessToken accessToken = new AccessToken(token, tokenSecret); //
  throws exception

  Anyone else seen 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

 what do u want to do in the next step?

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

2011-06-24 Thread Albert
ummm... this is what Im doing:


commonHttpOAuthConsumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY,
CONSUMER_SECRET);

//DefaultOAuthProvider
authProvider = new CommonsHttpOAuthProvider(https://
api.twitter.com/oauth/request_token,
https://api.twitter.com/oauth/access_token;, 
https://
api.twitter.com/oauth/authorize);

authProvider.setOAuth10a(true);

try {
String oAuthURL =
authProvider.retrieveRequestToken(commonHttpOAuthConsumer,
CALLBACK_URL);

persistProviderConsumer(); //here i save the 
provider and comsumer

this.startActivity(new 
Intent(Intent.ACTION_VIEW,
Uri.parse(oAuthURL)));

} catch (OAuthMessageSignerException e) {
Toast.makeText(this, e.getMessage(), 
Toast.LENGTH_LONG).show();
e.printStackTrace();
} catch (OAuthNotAuthorizedException e) {
Toast.makeText(this, e.getMessage(), 
Toast.LENGTH_LONG).show();
e.printStackTrace();
} catch (OAuthExpectationFailedException e) {
Toast.makeText(this, e.getMessage(), 
Toast.LENGTH_LONG).show();
e.printStackTrace();
} catch (OAuthCommunicationException e) {
Toast.makeText(this, e.getMessage(), 
Toast.LENGTH_LONG).show();
e.printStackTrace();
}

Then when the authorization is made on the web, it returns to my
activity and i get the uri:

String otoken =
uri.getQueryParameter(OAuth.OAUTH_TOKEN);
String verifier = 
uri.getQueryParameter(OAuth.OAUTH_VERIFIER);

Log.d(TAG, verifier +verifier);
Log.d(TAG, oToken +otoken);

loadProviderConsumer(); //here i recover the provider 
and comsumer

Log.d(TAG, comsumer oToken 
+commonHttpOAuthConsumer.getToken());

// this will populate token and token_secret in consumer
try {

authProvider.retrieveAccessToken(commonHttpOAuthConsumer,
verifier);

} catch (OAuthMessageSignerException e) {
Log.d(TAG, OAuthMessageSignerException - );
e.printStackTrace();
} catch (OAuthNotAuthorizedException e) {
Log.d(TAG, OAuthNotAuthorizedException - );
e.printStackTrace();
} catch (OAuthExpectationFailedException e) {
Log.d(TAG, OAuthExpectationFailedException - 
);
e.printStackTrace();
} catch (OAuthCommunicationException e) {
Log.d(TAG, OAuthCommunicationException - );
e.printStackTrace();
}

String token = commonHttpOAuthConsumer.getToken();
String tokenSecret = 
commonHttpOAuthConsumer.getTokenSecret();

Log.d(TAG, token +token+ token secret +tokenSecret);

saveToken(this, token);
saveTokenSecret(this, tokenSecret);


On Jun 24, 1:05 pm, ram dharan rdhara...@gmail.com wrote:
  AccessToken actoken=new AccessToken(CONSUMER_KEY, CONSUMER_SECRET);
          Twitter twitter=new TwitterFactory().getInstance();

  twitter.setOAuthConsumer(ConstantsDemo.CONSUMER_KEY,ConstantsDemo.CONSUMER_ 
 SECRET);
              twitter.setOAuthAccessToken(actoken);
              try {
 twitter.updateStatus(msg);} catch (TwitterException e) {

 // TODO Auto-generated catch block
 e.printStackTrace();
 This is what i did too,r u sending ConsumerKey and Consumer_Secret
 Properly







 On Fri, Jun 24, 2011 at 5:29 PM, Albert albert8...@googlemail.com wrote:
  This is what im doing to update a tweet.

                 Twitter twitter = new TwitterFactory().getInstance();

                 twitter.setOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET);

                 twitter.setOAuthAccessToken(accessToken);

                 twitter.updateStatus(Send from my app!);

  Everything seems fine apart from the AccessToken...

  On Jun 24, 12:54 pm, ram dharan rdhara...@gmail.com wrote:
   On Fri, Jun 24, 2011 at 5:16 PM, Albert albert8...@googlemail.com
  wrote:
Hi all,

I am using twitter4j library to integrate my app with Twitter. I am
past the authorization request, callback and I have the token and
tokenSecret back from the authentication.

What's the problem? I am getting

Re: [android-developers] I can't link tweeter to my blog

2011-05-16 Thread Albert Rosa
Peter,

I believe you have sent this question to the incorrect group.
On May 16, 2011 2:53 AM, Peter Crocker pbcroc...@gmail.com wrote:
 I can install the Twitter icon on my blog but when I click it, not
 found. I adjusted the html code to state my Twitter domain name but
 it says that it doesn't exist. I tried to do a search but it still
 says that it doesn't exist even though I see it in my profile. Once
 in my Twitter page, I look at the URL box but it only says,http://
 twitter.com.

 What gives? Thanks.
 Peter

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

2011-05-16 Thread Albert Rosa
It might be that you are missing the activity in the android manifest xml.
At times i end up forgetting to add each activity there.
On May 16, 2011 9:24 PM, TreKing treking...@gmail.com wrote:
 On Mon, May 16, 2011 at 6:17 AM, SproutinGeek arun.avp...@gmail.com
wrote:

 I was trying a demo database application. But Every time I try different
 different mentodes the same class not found exception is coming... the
error
 on the Logcat is given bellow .


 You should consult wherever you found this demo for clear instructions on
 running it.


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

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

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

2011-05-16 Thread Albert Rosa
Also on the top there should be a few lines stating emulator and the port
its using depending if you just ran it a few times or debug. You may have to
select one of those in order to view the respected log cat output.
On May 16, 2011 8:56 PM, Nicholas Johnson metthejohn...@gmail.com wrote:
 Are you seeing any logs in your Logcat? You should see lots of stuff which

 Android pumps out into a log, even if you don't have any Log's in your
 code...

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

2011-05-13 Thread Albert
Hi there,

Does anyone knows what broadcast event gets launched before a device
is turned off (if any) - I want to be able to receive it on an app
that is installed on the sd card, which complicates things...

Cheers,
Alberto

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

2011-05-13 Thread Albert
Thanks for the link! Although I have a feeling that an app installed
on the sdcard won't be able to receive that. Will test it...


On May 13, 11:03 pm, Filip Havlicek havlicek.fi...@gmail.com wrote:
 http://developer.android.com/reference/android/content/Intent.html#AC...

 2011/5/13 Albert albert8...@googlemail.com







  Hi there,

  Does anyone knows what broadcast event gets launched before a device
  is turned off (if any) - I want to be able to receive it on an app
  that is installed on the sd card, which complicates things...

  Cheers,
  Alberto

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

2011-05-03 Thread Albert Rosa
Yes I changed the VERSION number on both the dbHelper file as well as the 
manifest

below is the code for the db helper:

public class RecipeDbHelper extends SQLiteOpenHelper {


private static final String DATABASE_NAME = test;
private static final String DATABASE_TABLE = recipe;
private static final int DATABASE_VERSION = 10;

private static final String DATABASE_CREATE = CREATE TABLE recipe ( 
_id INTEGER PRIMARY KEY, title text not null, ingredients text not null, 
instructions text not null, mealtime INTEGER not null, calories INTEGER not 
null);;

private static final String INITIAL_SETUP = 
INSERT INTO recipe (_id, title, instructions,ingredients, 
mealtime, calories) 
+ VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and 
set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray 
and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and 
pepper and cook until eggs are firm. \n4. Serve on toasted english muffin with 
sliced pear on the side.',
+'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped 
tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 
Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to 
taste', 1, 124);
;

public RecipeDbHelper(Context context){
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

public void clearReset(SQLiteDatabase db) {
Log.w(Upgrading, Upgrading database from version);
db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
onCreate(db);
}

@Override
public void onCreate(SQLiteDatabase db){
db.execSQL(DATABASE_CREATE);
db.execSQL(INITIAL_SETUP);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int 
newVersion){
Log.w(Upgrading, Upgrading database from version  + 
oldVersion +  to 
+ newVersion + , which will destroy all old data);
db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
onCreate(db);
}

thanks again I truly appreciate it.

Albert Rosa
rosalb...@gmail.com
alb...@albert-rosa.com
(m) 718-825-7838
(aim) albertrosa2000
(gchat) rosalbert
(gvoice) (646) 389-7672

On May 3, 2011, at 4:18 AM, harsh chandel wrote:

 can you put the code
 
 On May 3, 5:58 am, Albert Rosa rosalb...@gmail.com wrote:
 So this is my first time working with android and the sqlite db. I followed
 the instructions and was able to have a db connection where i was able to
 create and edit records. However i changed the schema of the db just to make
 it easier on me.
 
 Here is when i get slapped, i updated the version number, and modified the
 create statement to reflect the change. The onUpdate function is not being
 hit when i run the app again.
 
 Im not sure what I may be doing wrong. Any help suggestions are greatly
 welcomed and appreciated.
 
 Thanks for the help!
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

2011-05-03 Thread Albert Rosa
Ok so I've been able to place crazy amounts of logs every where and it does see 
to call onUpgrade to the next version and it is able to drop the table. 

I want validate the sql that its generating in order to get all the items. is 
there a way to get the raw sql that it's generating. I feel like i may be doing 
something wrong, rather I know I'm doing something wrong I just don't know... 

clearReset was a function I created in order to drop the table and reset it 
with preset data. it can be ignored.

I will try to find the db in the emulator by adb maybe I might surprise myself.


Albert Rosa
rosalb...@gmail.com
alb...@albert-rosa.com
(m) 718-825-7838
(aim) albertrosa2000
(gchat) rosalbert
(gvoice) (646) 389-7672

On May 3, 2011, at 11:55 AM, Kostya Vasilyev wrote:

 No idea what clearReset is, but
 
 Call SQLiteDatabase.getVersion() somewhere, just to make sure your db's 
 version is not already 10 (which would mean that there is nothing to upgrade).
 
 -- Kostya
 
 PS - Can I use butter instead of cooking spray? :)
 
 03.05.2011 18:09, Albert Rosa пишет:
 Yes I changed the VERSION number on both the dbHelper file as well as the 
 manifest
 
 below is the code for the db helper:
 
 public class RecipeDbHelper extends SQLiteOpenHelper {
 
 
  private static final String DATABASE_NAME = test;
  private static final String DATABASE_TABLE = recipe;
  private static final int DATABASE_VERSION = 10;
  
  private static final String DATABASE_CREATE = CREATE TABLE recipe ( 
 _id INTEGER PRIMARY KEY, title text not null, ingredients text not null, 
 instructions text not null, mealtime INTEGER not null, calories INTEGER not 
 null);;
  
  private static final String INITIAL_SETUP =
  INSERT INTO recipe (_id, title, instructions,ingredients, 
 mealtime, calories) 
  + VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and 
 set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray 
 and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and 
 pepper and cook until eggs are firm. \n4. Serve on toasted english muffin 
 with sliced pear on the side.',
  +'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped 
 tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 
 Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to 
 taste', 1, 124);
  ;
  
  public RecipeDbHelper(Context context){
  super(context, DATABASE_NAME, null, DATABASE_VERSION);
  }
  
  public void clearReset(SQLiteDatabase db) {
  Log.w(Upgrading, Upgrading database from version);
  db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
  onCreate(db);
  }
  
  @Override
  public void onCreate(SQLiteDatabase db){
  db.execSQL(DATABASE_CREATE);
  db.execSQL(INITIAL_SETUP);
  }
  
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int 
 newVersion){
  Log.w(Upgrading, Upgrading database from version  + 
 oldVersion +  to 
 + newVersion + , which will destroy all old data);
 db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
 onCreate(db);
  }
 
 thanks again I truly appreciate it.
 
 Albert Rosa
 rosalb...@gmail.com
 alb...@albert-rosa.com
 (m) 718-825-7838
 (aim) albertrosa2000
 (gchat) rosalbert
 (gvoice) (646) 389-7672
 
 
 -- 
 Kostya Vasilyev -- http://kmansoft.wordpress.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


Re: [android-developers] Re: Database updates

2011-05-03 Thread Albert Rosa

OK so here's what I gathered,

after doing some investigation in the adb (AWESOME by the way) I noticed that 
there was nothing wrong with my inserts. But for some reason the second insert 
that is attached to INITIAL_SETUP is not run. wierd I know. but that clears up 
my confusion a bit. I am thinking that each db.execSQL can only use one 
statement at a time. I may be wrong but for now I think that's how it is. 

Luckily I found an article on copying db's over so I can pre-populate the db 
and then copy it over.

Thanks everyone for the advice and If i'm wrong in my assumptions please feel 
free to let me know. 


Albert Rosa
rosalb...@gmail.com
alb...@albert-rosa.com
(m) 718-825-7838
(aim) albertrosa2000
(gchat) rosalbert
(gvoice) (646) 389-7672

On May 3, 2011, at 11:55 AM, Kostya Vasilyev wrote:

 No idea what clearReset is, but
 
 Call SQLiteDatabase.getVersion() somewhere, just to make sure your db's 
 version is not already 10 (which would mean that there is nothing to upgrade).
 
 -- Kostya
 
 PS - Can I use butter instead of cooking spray? :)
 
 03.05.2011 18:09, Albert Rosa пишет:
 Yes I changed the VERSION number on both the dbHelper file as well as the 
 manifest
 
 below is the code for the db helper:
 
 public class RecipeDbHelper extends SQLiteOpenHelper {
 
 
  private static final String DATABASE_NAME = test;
  private static final String DATABASE_TABLE = recipe;
  private static final int DATABASE_VERSION = 10;
  
  private static final String DATABASE_CREATE = CREATE TABLE recipe ( 
 _id INTEGER PRIMARY KEY, title text not null, ingredients text not null, 
 instructions text not null, mealtime INTEGER not null, calories INTEGER not 
 null);;
  
  private static final String INITIAL_SETUP =
  INSERT INTO recipe (_id, title, instructions,ingredients, 
 mealtime, calories) 
  + VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and 
 set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray 
 and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and 
 pepper and cook until eggs are firm. \n4. Serve on toasted english muffin 
 with sliced pear on the side.',
  +'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped 
 tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 
 Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to 
 taste', 1, 124);
  ;
  
  public RecipeDbHelper(Context context){
  super(context, DATABASE_NAME, null, DATABASE_VERSION);
  }
  
  public void clearReset(SQLiteDatabase db) {
  Log.w(Upgrading, Upgrading database from version);
  db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
  onCreate(db);
  }
  
  @Override
  public void onCreate(SQLiteDatabase db){
  db.execSQL(DATABASE_CREATE);
  db.execSQL(INITIAL_SETUP);
  }
  
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int 
 newVersion){
  Log.w(Upgrading, Upgrading database from version  + 
 oldVersion +  to 
 + newVersion + , which will destroy all old data);
 db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
 onCreate(db);
  }
 
 thanks again I truly appreciate it.
 
 Albert Rosa
 rosalb...@gmail.com
 alb...@albert-rosa.com
 (m) 718-825-7838
 (aim) albertrosa2000
 (gchat) rosalbert
 (gvoice) (646) 389-7672
 
 
 -- 
 Kostya Vasilyev -- http://kmansoft.wordpress.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


[android-developers] Database updates

2011-05-02 Thread Albert Rosa
So this is my first time working with android and the sqlite db. I followed
the instructions and was able to have a db connection where i was able to
create and edit records. However i changed the schema of the db just to make
it easier on me.

Here is when i get slapped, i updated the version number, and modified the
create statement to reflect the change. The onUpdate function is not being
hit when i run the app again.

Im not sure what I may be doing wrong. Any help suggestions are greatly
welcomed and appreciated.

Thanks for the help!

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

[android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Albert
My guess is that you would want to use a LinearLayout if the dashboard
will be static (you know before hand where everything goes) and prefer
a GridView if you have a dynamic dashboard - maybe you will even want
it to scroll (like places in Google Maps)

Now I have actually used a ListView in my app's dashboard - is just
slightly different as I got a profile section that takes the full
width:

https://ssl.gstatic.com/android/market/com.alportela.tracker.view/ss-0-320-480-160-0-bfe11461b144d969f0242f525bf500f21057cfe8

cant see how I can get that using a gridview.

- Alberto

On Apr 22, 7:13 pm, Robert rloude...@gmail.com wrote:
 Following the dashboard interface from the Google I/O 2010 
 conferencehttp://code.google.com/p/iosched/,
 I see that they use a LinearLayout to make the dashboard. Other examples
 also use this style. I was wondering why wouldn't you use a GridView
 instead, seeing that it's mostly organized for you already? You can also
 more easily set a listener for the entire GridView, as oppose to
 individually writing a line of code for setting a listener for each button.
 Does it really matter or is there any difference?

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


[android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Albert
I wasnt implementing the standard dashboard since I had an x numbers
of items plus I wanted to add a button below the dashboard that
would take the whole width - couldnt use a GridView since I wanted
that button to scroll with the dashboard.

I used a LinearLayout as the row with 2 containers left  right and
they both cover the whole width of the device.


On Apr 22, 10:26 pm, Robert Louden rloude...@gmail.com wrote:
 Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView also
 be used with a LinearLayout template, so I guess it really is preference at
 that point.

 I must say that I never thought of using a ListView for the dashboard. I'm
 not even sure how. Do you use two views in each list row? What benefit do
 you see with using the ListView?







 On Fri, Apr 22, 2011 at 5:14 PM, Albert albert8...@googlemail.com wrote:
  My guess is that you would want to use a LinearLayout if the dashboard
  will be static (you know before hand where everything goes) and prefer
  a GridView if you have a dynamic dashboard - maybe you will even want
  it to scroll (like places in Google Maps)

  Now I have actually used a ListView in my app's dashboard - is just
  slightly different as I got a profile section that takes the full
  width:

 https://ssl.gstatic.com/android/market/com.alportela.tracker.view/ss-https://ssl.gstatic.com/android/market/com.alportela.tracker.view/ss-...
  0-320-480-160-0-bfe11461b144d969f0242f525bf500f21057cfe8

  cant see how I can get that using a gridview.

  - Alberto

  On Apr 22, 7:13 pm, Robert rloude...@gmail.com wrote:
   Following the dashboard interface from the Google I/O 2010 conference
 http://code.google.com/p/iosched/,
   I see that they use a LinearLayout to make the dashboard. Other examples
   also use this style. I was wondering why wouldn't you use a GridView
   instead, seeing that it's mostly organized for you already? You can also
   more easily set a listener for the entire GridView, as oppose to
   individually writing a line of code for setting a listener for each
  button.
   Does it really matter or is there any difference?

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

2011-04-13 Thread Albert Liu
Hi,

 Do you mean the page curl visual effect of Apple's iBooks ? Maybe you
can have look at the FBReaderJ's source code (
http://www.fbreader.org/FBReaderJ/ ). The code is
src/org/geometerplus/zlibrary/ui/android/view/CurlAnimationProvider.java.
Seems that they use quadratic bezier lines as the edge of the page
curl, not quite sure.

BRs,
Albert

On Tue, Apr 12, 2011 at 4:22 PM, yogendra G yogi2...@gmail.com wrote:
 Hi All,

 Can Any one help me in Page Curl Coding by proiding me Some sample codes
 Plz...I need it to implement it in my App so...

 Regards,
 Yogi

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

2011-04-06 Thread Albert
Looks awesome!

On Apr 6, 4:28 am, Corey Ledin, LLC coreyledin...@gmail.com wrote:
 We have really pushed to get the site in perfect working order and
 after today's hard work the site seems bug free and working better the
 expected pro app tracking available which updates by the hour plus new
 features and more go check it out and any feedback would be great!

 also ranks by country coming soon.

 Let me know what you think







 Jake Colman wrote:
   CL == Corey Ledin Corey writes:

     CL Hi All,

     CL I have yet to contribute to this group just start off by saying
     CL hi and if you haven't heard of me I developed Beer Pong Free for
     CL the android and iPhone etc. Recently I was trying to find a
     CL decent app rank website for the android like that of all of
     CL iPhone pones with not really any luck besides that one app. So I
     CL said what the heck and built my own...  It is still in beta /
     CL testing phase since i only started the project with my partner 4
     CL days ago lol. But go check it out!

     CLhttp://androidapptracker.com

     CL Let me know what you think and if you have any ideas.

  Looks good.  Is tracking of my own apps supposed to be working?  I tried
  adding my app and it says that it is not found.

  --
  Jake Colman -- Android Tinkerer

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

2011-04-04 Thread Albert Chung
Hello,

I'd like to dump a buffer contains camera preview image into SD card
in camera HAL layer.
There are two point where I'd like to dump a buffer.
   1. Native camera HAL layer
   2. Camera Kernel driver layer

Could you let me know the way to save a image into SD card at both 2
points respectively ?

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: Install % drop again?

2011-03-17 Thread Albert
Have anyone seen the peak of 17th February?? That might have been done
to balance out the drop of the 1st December?

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

2011-03-17 Thread Albert
 So, it may be that it is US-related or just random.

Umm that would make sense, 78% of my users are from the US and the
bump of the 17th February is for me bigger that the drop of the 1st
January

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

2011-01-18 Thread Albert
Cool thanks for the answers!

Alberto

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

2011-01-17 Thread Albert
Hi,

I would like to retrieve tweets from my own account. I have seen that
there are libraries to integrate your app with twitter and post
messages, etc but all I want is to read from an account. Is that
possible? and more importantly, is it easy to implement? :) can't
really afford to spend a lot of time on this as it is just an idea.

Thanks in advance for your help

Alberto

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Nexus S - Please provide as DEV phone, asap :-)

2010-12-08 Thread Albert Rosa
I concur i would totally love it as a dev phone!

On Dec 7, 2010 9:29 PM, gjs garyjamessi...@gmail.com wrote:

Hi,

Google Nexus S - Please provide as DEV phone, asap :-)

Regards

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

2010-11-24 Thread Albert Rosa
Afternoon All,

I am working on trying to streamline my app a bit and i want to get
the most out of my custom view and the xml layout.

So I have a custom object with 4 images and a textview in the whole
view, I have created functions to inject the images I want to use in
code, but I am looking to do something like the following:

customView
image1Property.src ='img;/

I may not be too clear and for that I apologize for now.

All I want to do is populate a child view form a parent view more or
less ...but in the xml and not by the setup code.

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


Re: [android-developers] can we create app to use phone camera as magnifier

2010-11-24 Thread Albert Rosa
I feel its very plausable the deal is that it would be a digital zoom and
not an actual zoom. And quality of the view is scewed by the way the camera
focuses and its hardware. But all in all yep.

-albert

On Nov 24, 2010 7:40 AM, Atik atik0...@gmail.com wrote:

hi guys

i need to know that can we use android phone camera as magnifier
glass.
i want to create such application, which will open the camera and zoom
it to read some small text etc, it wont capture any picture neither it
will record any video.

pls suggest if any one have any ideas

Thanks
'Atik

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Is anyone's active install % dropping like a rock lately?

2010-11-14 Thread Albert

This is still showing up, has been happening to me for the last 5-6
days with a 0.50% decrease after an steady 2 months!

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


[android-developers] Re: SQLite Database Issues

2010-10-26 Thread Albert
Hi, still randomly see that the DB does not recognize one of my
tables. The table is shipped along with the database and unlike others
is not modified at any time. I can also see through my own tests that
the way I open the database has a great impact on this.

What is the recommended way to open the DB, considering that I will
write on it?

SQLiteDatabase.openDatabase(myPath, null,
SQLiteDatabase.OPEN_READWRITE);
SQLiteDatabase.openDatabase(myPath, null,
SQLiteDatabase.NO_LOCALIZED_COLLATORS);
this.getWritableDatabase();

the latest is working more reliable for me so far...

Thanks in advance.

On Oct 15, 3:45 pm, Albert albert8...@googlemail.com wrote:
  I have an app that does something similar and the way I ensure that
  the copy is finished is that I have a special end-of-load (EOL) record
  that goes into the table as the last item. My app does a select for
  that EOL record each time it's launched. If the table isn't created
  yet or the EOL is missing then the app puts up a screen asking the
  user to wait a moment.

 That's a very good idea. Thanks for the tip.

 I have setup Acra (Error reporting) and I send myself reports when I
 catch this exception, I see it happening with some users but I know
 the table is there because next time the user tries the table with the
 records are all good. I managed to get an user to send me the log and
 I verified 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


[android-developers] Re: SQLite Database Issues

2010-10-26 Thread Albert
In most cases retrying would be simple, I guess I could try that and
see what I get...

In my case I take care of not multi-thread access the DB, so if I
launch a new thread I wait for its callback until I do anything else
on the DB. One question, if you open your DB as READ-ONLY would it
matter if you access it from different threads?

Any idea of why it would fail to find a table/column that exits and is
not corrupted or anything?

Alberto

On Oct 26, 10:13 pm, Bret Foreman bret.fore...@gmail.com wrote:
 I think you should add logic that implements a backoff delay and retry
 when the table is not found. 100 mS between tries and 5 tries for a
 total of 1/2 second. In the rare case where it has to retry, the user
 should never notice.

 I have a lot of multi-threaded SQLite access and I had to implement
 something like this to handle collisions. In my case, I randomized the
 backoff time but that's not necessary unless you have multiple
 threads.

 On Oct 26, 1:27 pm, Albert albert8...@googlemail.com wrote:







  Hi, still randomly see that the DB does not recognize one of my
  tables. The table is shipped along with the database and unlike others
  is not modified at any time. I can also see through my own tests that
  the way I open the database has a great impact on this.

  What is the recommended way to open the DB, considering that I will
  write on it?

  SQLiteDatabase.openDatabase(myPath, null,
  SQLiteDatabase.OPEN_READWRITE);
  SQLiteDatabase.openDatabase(myPath, null,
  SQLiteDatabase.NO_LOCALIZED_COLLATORS);
  this.getWritableDatabase();

  the latest is working more reliable for me so far...

  Thanks in advance.

  On Oct 15, 3:45 pm, Albert albert8...@googlemail.com wrote:

I have an app that does something similar and the way I ensure that
the copy is finished is that I have a special end-of-load (EOL) record
that goes into the table as the last item. My app does a select for
that EOL record each time it's launched. If the table isn't created
yet or the EOL is missing then the app puts up a screen asking the
user to wait a moment.

   That's a very good idea. Thanks for the tip.

   I have setup Acra (Error reporting) and I send myself reports when I
   catch this exception, I see it happening with some users but I know
   the table is there because next time the user tries the table with the
   records are all good. I managed to get an user to send me the log and
   I verified 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


[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Well it should be very obvious but the table exits, im sure of that.
It just from time to time the database fails to recognise that is
there...

Cheers,
Alberto

On Oct 15, 3:34 am, Kumar Bibek coomar@gmail.com wrote:
 Well, the error is pretty obvious. There is no table with that name. If you
 have created the table, after your first installation, which didn't have
 this table, try uninstalling and re-installing this app. Make sure, you
 create all the tables that you need before you can start using them.





 On Fri, Oct 15, 2010 at 5:06 AM, Albert albert8...@googlemail.com wrote:
  Hi all,

  I can see from some user's logs that my app randomly gets the
  following SQLiteException:

  android.database.sqlite.SQLiteException: no such table: DietTip: ,
  while compiling: SELECT DISTINCT tip FROM DietTip
         at android.database.sqlite.SQLiteProgram.native_compile(Native
  Method)
         at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:
  117)
         at android.database.sqlite.SQLiteProgram.init(SQLiteProgram.java:
  66)
         at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:
  49)..

  It also happens often in another table that tracks the user's
  weight...

  Does anyone know a particular reason for this to be happening? It
  seems that it can't find the table or it can't compile the query. It
  has never happened to me in any of my phones.

  Thanks,
  Alberto

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

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


[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Sorry if it was not clear. It does work most of the time for those
users (meaning the table is there), it just fails from time to time...

I'm also shipping the database with the app and it gets copied to the
internal memory.

On Oct 15, 3:14 pm, Prakash Iyer thei...@gmail.com wrote:
 I think what Kumar means is that does this ever work for this user in
 question? One interpretation of your email is that it works for most users
 but fails for some.
 On Oct 15, 2010 10:07 AM, Albert albert8...@googlemail.com wrote:



  Well it should be very obvious but the table exits, im sure of that.
  It just from time to time the database fails to recognise that is
  there...

  Cheers,
  Alberto

  On Oct 15, 3:34 am, Kumar Bibek coomar@gmail.com wrote:
  Well, the error is pretty obvious. There is no table with that name. If
 you
  have created the table, after your first installation, which didn't have
  this table, try uninstalling and re-installing this app. Make sure, you
  create all the tables that you need before you can start using them.

  On Fri, Oct 15, 2010 at 5:06 AM, Albert albert8...@googlemail.com
 wrote:
   Hi all,

   I can see from some user's logs that my app randomly gets the
   following SQLiteException:

   android.database.sqlite.SQLiteException: no such table: DietTip: ,
   while compiling: SELECT DISTINCT tip FROM DietTip
          at android.database.sqlite.SQLiteProgram.native_compile(Native
   Method)
          at

 android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:  117)
          at

 android.database.sqlite.SQLiteProgram.init(SQLiteProgram.java:



   66)
          at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:
   49)..

   It also happens often in another table that tracks the user's
   weight...

   Does anyone know a particular reason for this to be happening? It
   seems that it can't find the table or it can't compile the query. It
   has never happened to me in any of my phones.

   Thanks,
   Alberto

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to

 android-developers@googlegroups.com  To unsubscribe from this group, send 
 email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
cr...@googlegroups.comandroid-developers%2Bunsubs

 cr...@googlegroups.com



   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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.comandroid-developers%2Bunsubs 
  cr...@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: SQLite Database Issues

2010-10-15 Thread Albert
Umm that's unlikely as I launch a spinner that blocks any user action
(it only takes a second or two to complete), and I certainly don't
touch it while its doing that. Also this only happens at the start and
were a new database version is available.


On Oct 15, 3:26 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Oct 15, 2010 at 10:23 AM, Albert albert8...@googlemail.com wrote:
  Sorry if it was not clear. It does work most of the time for those
  users (meaning the table is there), it just fails from time to time...

  I'm also shipping the database with the app and it gets copied to the
  internal memory.

 Might it be that you are opening the database before the copy is
 complete, or before the copy is initiated? It feels like you are
 connecting to a missing or empty database.

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

 Android Training in London:http://skillsmatter.com/go/os-mobile-server

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


[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert

 I have an app that does something similar and the way I ensure that
 the copy is finished is that I have a special end-of-load (EOL) record
 that goes into the table as the last item. My app does a select for
 that EOL record each time it's launched. If the table isn't created
 yet or the EOL is missing then the app puts up a screen asking the
 user to wait a moment.

That's a very good idea. Thanks for the tip.

I have setup Acra (Error reporting) and I send myself reports when I
catch this exception, I see it happening with some users but I know
the table is there because next time the user tries the table with the
records are all good. I managed to get an user to send me the log and
I verified 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


[android-developers] SQLite Database Issues

2010-10-14 Thread Albert
Hi all,

I can see from some user's logs that my app randomly gets the
following SQLiteException:

android.database.sqlite.SQLiteException: no such table: DietTip: ,
while compiling: SELECT DISTINCT tip FROM DietTip
at android.database.sqlite.SQLiteProgram.native_compile(Native
Method)
at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:
117)
at android.database.sqlite.SQLiteProgram.init(SQLiteProgram.java:
66)
at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:
49)..

It also happens often in another table that tracks the user's
weight...

Does anyone know a particular reason for this to be happening? It
seems that it can't find the table or it can't compile the query. It
has never happened to me in any of my phones.

Thanks,
Alberto

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Listview's ArrayAdapter notifydatasetchanged() very slow redraw

2010-10-06 Thread Albert
I've a quite simple list with 3 textview fields on each row. We are
updating their values every 2 seconds or so with data coming from a
background webservice call ( AsyncTask )

We compare the coming values with the current ones, update them
accordingly on the Adapter and finally calling notifyDataSetChanged()
if needed

The thing is that the redraw gets really slow thus hanging the whole
UI when we got more than 3 update rows at once. Of course we are using
all ListView well-known optimizations such as the EfficientAdapter
approach ( setTag() and holders ), and getViewTypecount()/
getItemViewType() . We have also tried to optimize our interface as
much as possible with layoutopt and trying to avoid wrap_content
widths and heights to lighten things up .

We don't do expensive operations on our updates either, just standard
stuff: changing TextView text, textcolor, and backgroundcolor values.

The only weird thing I can see is that getView() is called 3-4-5 times
for each row, although I've read all those Romain's messages [1]
telling that is nothing wrong with that

Any ideas or hints on how can we speed it up?

Thank you very much!

[1] 
http://groups.google.com/group/android-developers/browse_thread/thread/4c4aedde22fe4594/aeb04288064f495e?show_docid=aeb04288064f495e


pd: following list's recomendations I've been posted this also on
stackoverflow - 
http://stackoverflow.com/questions/3805700/listviews-arrayadapter-notifydatasetchanged-very-slow-redraw

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

2010-10-01 Thread Albert
Hi all,

I have implemented a GalleryView using a custom BaseAdapter. The issue
is that when the gallery reaches either end, the getView() calls the
last/first item and right after calls the prev/next one, therefore it
shows the wrong data. I understand why it needs to call its neighbour
items but is it not supposed to call the position where you actually
stopped as last?

Thanks,
Alberto

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

2010-10-01 Thread Albert
Hi all,

I have implemented a GalleryView using a custom BaseAdapter. The issue
is that when the gallery reaches either end, the getView() calls the
last/first item and right after calls the prev/next one, therefore it
shows the wrong data. I understand why it needs to call its neighbour
items but is it not supposed to call the position where you actually
stopped as last?

Thanks,
Alberto

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

2010-10-01 Thread Albert
I have actually followed that tutorial. Look at this log:

: getView 6
: getView 5
: getView 7
: getView 6

the gallery has stopped at the last item (7) but the getView bounces
back to 6, so the data displayed is for item 6 instead of 7...

Thanks,
Alberto

On Oct 1, 4:04 pm, AnasSamara anas86sam...@gmail.com wrote:
 Follow the tutorial you will get every thing working 
 correctlyhttp://developer.android.com/resources/tutorials/views/hello-gallery

 thanks
 -AnasSamara

 On Oct 1, 4:35 pm, Albert albert8...@googlemail.com wrote:



  Hi all,

  I have implemented a GalleryView using a custom BaseAdapter. The issue
  is that when the gallery reaches either end, the getView() calls the
  last/first item and right after calls the prev/next one, therefore it
  shows the wrong data. I understand why it needs to call its neighbour
  items but is it not supposed to call the position where you actually
  stopped as last?

  Thanks,
  Alberto

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

2010-10-01 Thread Albert
Problem solved by implementing OnItemSelectedListener and avoiding
getView() to update my views

Thanks!
Alberto

On Oct 1, 4:30 pm, Albert albert8...@googlemail.com wrote:
 I have actually followed that tutorial. Look at this log:

 : getView 6
 : getView 5
 : getView 7
 : getView 6

 the gallery has stopped at the last item (7) but the getView bounces
 back to 6, so the data displayed is for item 6 instead of 7...

 Thanks,
 Alberto

 On Oct 1, 4:04 pm, AnasSamara anas86sam...@gmail.com wrote:



  Follow the tutorial you will get every thing working 
  correctlyhttp://developer.android.com/resources/tutorials/views/hello-gallery

  thanks
  -AnasSamara

  On Oct 1, 4:35 pm, Albert albert8...@googlemail.com wrote:

   Hi all,

   I have implemented a GalleryView using a custom BaseAdapter. The issue
   is that when the gallery reaches either end, the getView() calls the
   last/first item and right after calls the prev/next one, therefore it
   shows the wrong data. I understand why it needs to call its neighbour
   items but is it not supposed to call the position where you actually
   stopped as last?

   Thanks,
   Alberto

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


[android-developers] Re: Activity onResumed not getting called

2010-09-24 Thread Albert
Is it possible by using different activity attributes to:

-Have the app launch from the last activity IF the process of the app
has not being killed

The issue is that the info that the app needs is downloaded and parsed
at the entry point of the app, then depending of where you go it
downloads more data, so if the app tries to launch an activity that
does not have the info it needs to display... I would like to keep the
activity available but only for as long as the process is active.

Thanks a lot, im playing around with the attributes but no luck yet.

Alberto

On Sep 24, 12:49 am, Dianne Hackborn hack...@android.com wrote:
 What you are seeing is the normal user interaction.  The user is not aware
 the process has been killed, so they expect to return to the app in the way
 they last saw it.

 alwaysRetainTaskState is a totally separate thing, and allows you to turn
 off a facility where if the user hasn't been in your app for a while, upon
 returning to it its task can be reset.  This is independent of whether or
 not its process needs to be restarted.





 On Thu, Sep 23, 2010 at 8:22 AM, Albert albert8...@googlemail.com wrote:

  It looks like attribute this could solve the issue:

  --- 
  -
  android:alwaysRetainTaskState

  Whether or not the state of the task that the activity is in will
  always be maintained by the system — true if it will be, and false
  if the system is allowed to reset the task to its initial state in
  certain situations. The default value is false. This attribute is
  meaningful only for the root activity of a task; it's ignored for all
  other activities.
  Normally, the system clears a task (removes all activities from the
  stack above the root activity) in certain situations when the user re-
  selects that task from the home screen. Typically, this is done if the
  user hasn't visited the task for a certain amount of time, such as 30
  minutes.
  However, when this attribute is true, users will always return to
  the task in its last state, regardless of how they get there. This is
  useful, for example, in an application like the web browser where
  there is a lot of state (such as multiple open tabs) that users would
  not like to lose.

  --- 
  

  I will try it and post back the results.

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

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

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

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


[android-developers] Re: Activity onResumed not getting called

2010-09-24 Thread Albert
 -Have the app launch from the last activity IF the process of the app
 has not being killed

OK, it now works and behaves as I wanted. I could not do it through
activities attributes so I set a static variable that would signal
whether the process is alive or dead, if dead I just launch my main
screen and I clear the stack using the flags...

If anyone has a better solution I'm all ears.

Cheers,
Alberto


On Sep 24, 10:33 am, Albert albert8...@googlemail.com wrote:
 Is it possible by using different activity attributes to:

 -Have the app launch from the last activity IF the process of the app
 has not being killed

 The issue is that the info that the app needs is downloaded and parsed
 at the entry point of the app, then depending of where you go it
 downloads more data, so if the app tries to launch an activity that
 does not have the info it needs to display... I would like to keep the
 activity available but only for as long as the process is active.

 Thanks a lot, im playing around with the attributes but no luck yet.

 Alberto

 On Sep 24, 12:49 am, Dianne Hackborn hack...@android.com wrote:



  What you are seeing is the normal user interaction.  The user is not aware
  the process has been killed, so they expect to return to the app in the way
  they last saw it.

  alwaysRetainTaskState is a totally separate thing, and allows you to turn
  off a facility where if the user hasn't been in your app for a while, upon
  returning to it its task can be reset.  This is independent of whether or
  not its process needs to be restarted.

  On Thu, Sep 23, 2010 at 8:22 AM, Albert albert8...@googlemail.com wrote:

   It looks like attribute this could solve the issue:

   ---
-
   android:alwaysRetainTaskState

   Whether or not the state of the task that the activity is in will
   always be maintained by the system — true if it will be, and false
   if the system is allowed to reset the task to its initial state in
   certain situations. The default value is false. This attribute is
   meaningful only for the root activity of a task; it's ignored for all
   other activities.
   Normally, the system clears a task (removes all activities from the
   stack above the root activity) in certain situations when the user re-
   selects that task from the home screen. Typically, this is done if the
   user hasn't visited the task for a certain amount of time, such as 30
   minutes.
   However, when this attribute is true, users will always return to
   the task in its last state, regardless of how they get there. This is
   useful, for example, in an application like the web browser where
   there is a lot of state (such as multiple open tabs) that users would
   not like to lose.

   ---


   I will try it and post back the results.

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

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

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

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


[android-developers] Activity onResumed not getting called

2010-09-23 Thread Albert
Hi,

I'm having a very odd issue. I launch my app, use it then press the
Home key and the app pauses and goes to the background. I can also
resume it by launch it again, so far so good but if I leave it sitting
on the background for a couple of hours and try to launch it, it calls
onCreate() (on the paused activity) instead of just resuming,
therefore loosing the previous state, it behaves as that screen is the
entry point of the app.

Has anyone seen a similar issue. Does someone know if this is a normal
behaviour?? What I am missing here?

Thanks,
Alberto

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


[android-developers] Re: Activity onResumed not getting called

2010-09-23 Thread Albert
Yes I'm good with all that. My question is:

Why doesn't the app starts from the initial entry point screen? Why
does it try to start from the last opened Activity since the process
has effectively being killed.

Ex. app launched and ActivityA(entry point of the app) starts, from
there I go to Activity2, then Activity3 and press Home. In the mid
time the process gets killed by the OS, I then launch the app and
instead to start from Activity1 it does from Actitvity3

Thanks!


On Sep 23, 4:10 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Yeah I think by default if the app is not resumed for some period of
 time, android will restart the app instead of resuming it:

 http://developer.android.com/guide/topics/manifest/activity-element.html

 look at:  android:alwaysRetainTaskState

 On Sep 23, 11:01 am, Albert albert8...@googlemail.com wrote:



  Hi,

  I'm having a very odd issue. I launch my app, use it then press the
  Home key and the app pauses and goes to the background. I can also
  resume it by launch it again, so far so good but if I leave it sitting
  on the background for a couple of hours and try to launch it, it calls
  onCreate() (on the paused activity) instead of just resuming,
  therefore loosing the previous state, it behaves as that screen is the
  entry point of the app.

  Has anyone seen a similar issue. Does someone know if this is a normal
  behaviour?? What I am missing here?

  Thanks,
  Alberto

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


[android-developers] Re: Activity onResumed not getting called

2010-09-23 Thread Albert

It looks like attribute this could solve the issue:


android:alwaysRetainTaskState

Whether or not the state of the task that the activity is in will
always be maintained by the system — true if it will be, and false
if the system is allowed to reset the task to its initial state in
certain situations. The default value is false. This attribute is
meaningful only for the root activity of a task; it's ignored for all
other activities.
Normally, the system clears a task (removes all activities from the
stack above the root activity) in certain situations when the user re-
selects that task from the home screen. Typically, this is done if the
user hasn't visited the task for a certain amount of time, such as 30
minutes.
However, when this attribute is true, users will always return to
the task in its last state, regardless of how they get there. This is
useful, for example, in an application like the web browser where
there is a lot of state (such as multiple open tabs) that users would
not like to lose.
---

I will try it and post back the results.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Is anyone's active install % dropping like a rock lately?

2010-09-15 Thread Albert


 This is crazy.

 Tom


Indeed it is. One of my apps is dropping the percentage active
installs by 0.50 %, and the other is increasing by 0.50%. I was
happily thinking the new updates have attracted users to use the app
more, but after these issues one can't be sure...

Alberto

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


[android-developers] Re: SQLite DB: insert VERY slow

2010-09-11 Thread Albert
SQLite DBs are very fast, it takes less than half a second to insert a
record/records. 1000 records is a lot! I haven't seen your code but
what you should do is:

openDatabase once
insert all records
close DB

Avoid open/close database 1000 times. Also the GC is probably very
busy during the operation so look for optimizations(avoid unnecessary
object creation, StringBuilder instead of String when appropiate,
etc...)

 Hope this helps!

Alberto



On Sep 11, 4:41 am, ls02 agal...@audible.com wrote:
 I need to insert 1000 rows into SQLite DB. Each row has 12 columns,
 text and numbers, none is big. It takes literraly minutes to insert
 all 1000 items. I use SQLiteDatabase.insert to insert each row.

 What can I do to improve this performance?

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

2010-09-10 Thread Albert
Anyone? No hidden code to achieve the above?

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: Know if my Alarm is active

2010-09-10 Thread Albert
Thanks for your reply.

I have all that set up. The thing is that if an user kills my app/
service with a task killer app, then my alarm would go away.

I would like to be able to do a check about whether I have a alarm
ready to go off at some point in the future. I do not want to re-set
the alarm if I know that one is already in place.

Something like:
AlarmManager mgr
=(AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
if (mgr(with my pending intent).isActive()) {
//all is good
}

Thanks,

Alberto


On Sep 10, 11:38 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Setting an alarm cancels any previous alarms set with the same pending
 intent, where same has a certain definition.

 This means that it's OK to set your alarm if it's already set - this will
 not result in extraneous events.

 For initializing the alarm in the first place, implement a broadcast
 receiver for BOOT_COMPLETED.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 10.09.2010 13:39 пользователь Albert albert8...@googlemail.com написал:

 Anyone? No hidden code to achieve the above?

 Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers ...

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

2010-09-10 Thread Albert


 If they did that, then they do not want your alarm. And, starting with
 Android 2.2, they can't do this anyway.

Yes I noticed that it doesn't happen in 2.2, users can easily switch
the alarm off by going to the app settings and unchecking the
notifications.


  I would like to be able to do a check about whether I have a alarm
  ready to go off at some point in the future.

 Sorry, there's no API for that.

Thanks for answering. At least I know now that I can't do more than
what I'm doing already.

Alberto

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

2010-09-10 Thread Albert
We can't expect the user to know all that. In fact we have to treat
the user as total ignorant of the Android way of work. So I guess we
have to find ways to react to those things. A way is to save the time
in milliseconds of the last alarm and check for discrepancies...

When android terminates a process AFAIK it doesn't wipe the alarm off,
so we are save there.

Alberto

On Sep 10, 9:34 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 I don't think we can count on the user automatically making this
 association, that using the task killer to kill an app will also kill
 the alarm. Sure, that is the logical thing to do, once you think about
 it, but of course, we cannot count on the user to think about it in
 that way. The user might expect the app to restart when the alarm
 requires it to do so -- especially if he is already somewhat mystified
 by how the Android system already decides to restart apps the user
 never asked for in the first place, such as My Downloads;)

 On Sep 10, 4:06 am, Mark Murphy mmur...@commonsware.com wrote:



  2010/9/10 Albert albert8...@googlemail.com:

   I have all that set up. The thing is that if an user kills my app/
   service with a task killer app, then my alarm would go away.

  If they did that, then they do not want your alarm. And, starting with
  Android 2.2, they can't do this anyway.

  Hence, I would not worry much about it. Keep a log of work you do in
  the alarm handler, and if the user starts your activity and you
  determine, via the log, that your alarm had been stopped, restart it
  and perhaps pop a dialog to tell the user the ramifications of them
  having attacked you with a task killer.

   I would like to be able to do a check about whether I have a alarm
   ready to go off at some point in the future.

  Sorry, there's no API for that.

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

  Android Training in London:http://skillsmatter.com/go/os-mobile-server

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

2010-09-10 Thread Albert

 Now, why aren't there any task killer killers? :)


Because that would be another task killer and we would enter a endless
loop :p

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

2010-09-09 Thread Albert
I have implemented the custom notification successfully. Thank you all
for your help.

/n was a typo :D

Cheers,

Alberto


On Sep 9, 8:30 am, Kostya Vasilyev kmans...@gmail.com wrote:
   A custom notification view has already been suggested.

 But it may work just as it is, if you use \n instead of the /n you
 have now (assuming it's not a typo in the email only).

 -- Kostya

 08.09.2010 23:54, Albert пишет:

  Helllo there,

  Is there any settings/flags to expand the summary text of a
  notification to two lines instead of 1? The text I am trying to put is
  too long and it goes over the visible area?

  Will try something like (text+/n+restOfText) tomorrow but I don't
  think it's going to work...

  Thanks,

  Alberto

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com

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


[android-developers] Know if my Alarm is active

2010-09-09 Thread Albert
Hi,

Is there a way to know if a previously set alarm is still active and
ready to go off? I'm currently saving the alarm state in a
SharedPreferences but it would be a lot more reliable to be able to
directly check on the alarm itself.

Trying to detect this scenario:
-Service schedules the alarm
-User cleverly kills the service/app thus killing the alarm with it
-Service stops updating until user boot the phone

I want to check within the app, I know that if A and B are true then
an alarm should be ready to go off at some point in the future

Thanks,

Alberto

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

2010-09-08 Thread Albert
Helllo there,

Is there any settings/flags to expand the summary text of a
notification to two lines instead of 1? The text I am trying to put is
too long and it goes over the visible area?

Will try something like (text+/n+restOfText) tomorrow but I don't
think it's going to work...

Thanks,

Alberto

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

2010-09-08 Thread Albert
Thanks for your quick answer. That looks like it could work. The only
issue is that, from what I have seen I can only set 1 TextView as I
pass it to the RemoteViews. Would it work if I define 2 textviews with
one of them with a static text and the other dynamic? Have you tried
something like that?

I don't have my tools now so I can't try it till tomorrow.

Cheers

http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView

On Sep 8, 9:32 pm, Al alcapw...@googlemail.com wrote:
 Use a custom notification view. Check out Notification#remoteView.


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


[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-08-27 Thread Albert
Hi Zarah,

I have reports of the app launching a blank screen but not crash. I am
getting a Samsung Spica this week but you have already stated that it
works there so that won't be of any use. For my app is wan't so
critical so I just instruct Galaxy S users to insert those details
manually. The best is probably to contact Samsung development
department and find out what mess they have done and from there find a
suitable solution.

If you ever find a solution, please let me know.

Alberto

On Aug 23, 10:20 am, Zarah Dominguez zarah.doming...@gmail.com
wrote:
 Hi Alberto,

 I saw this on the Galaxy S also.  I have tested the app on the Galaxy
 Spica (i5700), it is working perfectly.  But when I tested the app on
 the Galaxy S, the app crashes.

 I haven't found a solution yet, but this is what I found from Logcat:
 08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
 com.android.contacts/
 com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
 452 ms)

 Versus what is seen from the emulator:
 08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
 com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
 348 ms)

 Looks like the Galaxy S has a different way of handling intents for
 the Phonebook.

 If you find a solution, please let me know also.

 Thanks!
 -Zarah

 On Aug 12, 7:06 pm, Albert albert8...@googlemail.com wrote:



  I have an user from my app that has reported this issue on aSamsung
  Galaxy S. Do you know why it's happening? Did you find a solution?

  -Alberto

  On Aug 6, 1:46 pm, Alok Kulkarni kulsu...@gmail.com wrote:

   yeah it is only happening on that deviuce. But i have found a different
   solution to it which i will put up here tomorrow.

   On Wed, Aug 4, 2010 at 12:51 PM, dan raaka danra...@gmail.com wrote:
Is this happening only on Europa ?

-Dan

On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni kulsu...@gmail.com 
wrote:

Hi , i am using
startActivityForResult(intent,PICK_CONTACT);
Its working on Android 1.5 to 2.1 except for the 2.1 deviceSamsung
Europa..On that device , i am not able to read thecontacts, its 
returning
empty result.
here is the link i referred for the code
   http://www.droidnova.com/use-intents-to-start-other-activities,76.html
Is thr something i m missing ?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@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.comandroid-developers%2Bunsubs
 cr...@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: Supporting multiple screens

2010-08-20 Thread Albert
You are right, it is detected as normal, but 1024x...@240 is detected
as normal too and it should be detected as large. As I can see in
http://developer.android.com/guide/practices/screens_support.html only
screens of 160dpi can be large. I hope it will be fixed in future
versions.

On 20 ago, 03:30, Dianne Hackborn hack...@android.com wrote:
 800x...@240dpi is definitely a normal screen.  If the device is reporting it
 as large, it is broken.



 On Wed, Aug 18, 2010 at 11:00 PM, Albert alberto.cresp...@gmail.com wrote:
  Hi,

  My application will have two layouts, one for large screens and one
  for normal. For testing I'm working with one phone (800x480 240dpi)
  and one tablet (1024x600 240dpi) but both are detected as large screen
  hdpi and long aspect ratio, so I'm not able to assign different
  layouts.

  The only approach I think that can work is to create layout-large and
  layout-normal, get the resolution and programmatically set the layout
  folder. Is that possible?

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

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

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

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


[android-developers] Supporting multiple screens

2010-08-19 Thread Albert
Hi,

My application will have two layouts, one for large screens and one
for normal. For testing I'm working with one phone (800x480 240dpi)
and one tablet (1024x600 240dpi) but both are detected as large screen
hdpi and long aspect ratio, so I'm not able to assign different
layouts.

The only approach I think that can work is to create layout-large and
layout-normal, get the resolution and programmatically set the layout
folder. Is that possible?

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


[android-developers] Re: Supporting multiple screens

2010-08-19 Thread Albert
Ok, thank you.

On 20 ago, 00:28, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Aug 19, 2010 at 2:00 AM, Albert alberto.cresp...@gmail.com wrote:
  My application will have two layouts, one for large screens and one
  for normal. For testing I'm working with one phone (800x480 240dpi)
  and one tablet (1024x600 240dpi) but both are detected as large screen
  hdpi and long aspect ratio, so I'm not able to assign different
  layouts.

  The only approach I think that can work is to create layout-large and
  layout-normal, get the resolution and programmatically set the layout
  folder. Is that possible?

 AFAIK, you cannot programmatically set the layout folder.

 1024x600 is not a supported screen resolution at this time. It seems
 likely that the upcoming Gingerbread release will add support for this
 resolution or similar ones. At that point, you should receive official
 instructions on how to best support such resolutions.

 In the meantime, use two different names for the layouts, use
 DisplayMetrics to figure out your screen size, and choose which layout
 to load by name.

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

 _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-08-12 Thread Albert
I have an user from my app that has reported this issue on a Samsung
Galaxy S. Do you know why it's happening? Did you find a solution?

-Alberto

On Aug 6, 1:46 pm, Alok Kulkarni kulsu...@gmail.com wrote:
 yeah it is only happening on that deviuce. But i have found a different
 solution to it which i will put up here tomorrow.



 On Wed, Aug 4, 2010 at 12:51 PM, dan raaka danra...@gmail.com wrote:
  Is this happening only on Europa ?

  -Dan

  On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni kulsu...@gmail.com wrote:

  Hi , i am using
  startActivityForResult(intent,PICK_CONTACT);
  Its working on Android 1.5 to 2.1 except for the 2.1 device Samsung
  Europa..On that device , i am not able to read the contacts, its returning
  empty result.
  here is the link i referred for the code
 http://www.droidnova.com/use-intents-to-start-other-activities,76.html
  Is thr something i m missing ?
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@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.comandroid-developers%2Bunsubs 
  cr...@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: Android Market Abusive developers...

2010-08-06 Thread Albert


 2. Charging a *small* fee per app would actually work, without unduly
 hurting most legitimate devs. Maybe $5 or $10 per app; if your app
 isn't worth $10 to you to list, how serious can you be? OTOH, even
 such a small fee would stop the spam dead in its tracks. There might
 be a few legitimate edge cases which would be adversely affected, but
 it's worth considering nonetheless.

This could be a good solution, at least it would keep a few spammers
out and I would not mind at all to pay such a small fee to publish my
app even if I do it for free.


 3. Improving the discoverability of quality apps on the Market, and
 letting the crap fall to the bottom. This seems like the best
 solution, if it's done well - but so far, Google has shown itself to
 be either unwilling or unable to do this.

I like this a lot. Appbrain does this in their version of the market
(which I honestly use more than the Android one). They have pretty
well managed to filter out spammers and bring up some good apps that
would not be easily discovered.

http://blog.appbrain.com/2010/03/appbrain-launches-automatic-filtering.html

Surely Google could come up with a even better system, right?

Alberto

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

2010-08-03 Thread Albert

I recommend Unlocking Android and The Busy Coder's Guide to
Advanced Android Development from that list as they were of great
help on my first steps in Android Development.

Cheers,

Alberto

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


[android-developers] Re: How to update pre-installed apps

2010-07-24 Thread Albert
Thanks everyone for your answers. TreKing suggestion should work fine
and I agree the Market should handle this cases better. I hope to see
that in future versions :-)

Cheers,

Alberto

On Jul 24, 10:14 pm, Joseph Earl joseph.w.e...@gmail.com wrote:
 If it's possible, please give the user an option to remove the program
 if they want, since it's well... kind of their phone and I think users
 (quite rightly) expect a degree of control.
 Some of the apps that come with phones I love and use to this day, and
 some I don't. I really don't care aboutpre-installedapps (it's
 generally expected), but forcing a user to have apps lying around that
 they may never use cannot be good design practice by any book.

 Please do keep us updated on how you do, and how well it works.
 Wish you all the best.

 On Jul 24, 9:49 pm, Xenplex xenp...@gmail.com wrote:



  Well I don't thinkpre-installedapps are the best way to get apps on
  the phone.
  Very often, users simply don't keep thosepre-installedapps or they
  don't want to use them at least but normally those
  apps are hard, sometimes impossible, to remove without taking big
  changes in the system itself.
  And most of the times, the apps are already outdated when they're
  chipped so every new device has to update itself immediately after
  first boot.
  That's to much Windows like where you install Windows for 40 Min (Max.
  for me) and you're doing updates for at least 3 hours.

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

2010-07-23 Thread Albert
Hi all,

I am working on an app that will be shipped on some phones. I have
been thinking about how to update them once a new version is ready.
How that would work for a pre-installed app? As an initial thought I
think I could pop up a message letting the user know there is a new
version ready, but if I could avoid unnecessary request to the server
it would be better.

If a google engineer comes across this please give me a hint as you do
this for Google Maps...

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: How to update pre-installed apps

2010-07-23 Thread Albert
The thing is that because the app is pre-installed it does not appear
under the downloads section on the Android Market. How do I tell the
users that a new version is available without checking the server
every time the app is launched??

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


[android-developers] Re: How to update pre-installed apps

2010-07-23 Thread Albert
Thanks for your reply.


 You could release two versions together - the pre-installed one on the
 device and one for the market that has a higher version code. The
 pre-installed one could be programmed to tell the user to download the
 latest update from the market. Then they get that version (which has the
 checking removed) and it sticks in the downloads list.

 No idea if that will actually work.

It makes perfect sense, I think it should work. I am pretty sure it
should stick in the downloads list, I will post here the result of
that when we launch it.



 No need to check every time the app is launched. Let them set an
 update-check interval and check periodically (every day, every week, every
 month). I assume you won't be having THAT many updates that something more
 frequent would be required.

Yes I wouldn't have check everytime :-) i said it out of frustration.
I will have something in place in case the above fails...

Thanks again!


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

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


[android-developers] Re: Remove a row in a Listview

2010-07-09 Thread Albert
Thanks karteek for your answer but it does not work as my adapter
takes a list of Strings.

mAdapter.remove(String) should actually work, I have override
getCount() as well but still no luck...

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

2010-07-09 Thread Albert


On Jul 9, 2:23 pm, JoksanCPEN joksan...@gmail.com wrote:
 have you tried to delete the element from the array instead of
 deleting it from the listview?


Yes and then I call notifyDataSetChanged() and it only deletes the
last one.

A temporary solution I'm using is when a row is deleted, the item gets
deleted from the database and then I just initialise everything again
and get all the info from the DB.

It would obviously nice not to have to do that...

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


[android-developers] Remove a row in a Listview

2010-07-08 Thread Albert
Hi all,

Does someone know how to remove a row from a Listview?

I have an Adapter that takes care of the List and when I try
mAdapter.remove(Object) it does not remove the Object I passed but
instead the last row on the list. I have tried different ways and it
always ends up deleting the last row.

Thanks in advance,
Alberto

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

2010-06-25 Thread Albert
Thanks a lot Kostya, I was not fully aware of the onEnable(),
onDisable() funcionality. It works pretty well now :)


On Jun 24, 10:08 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Albert,

 25.06.2010 0:29, Albert ?:



    The AppWidgetProvider is notified on every add and remove operation,
    along with first-add and last-remove operations.

  I have tried that but there are scenarios in which is does not work,
  the user for example could have 2 instances of the widget and then
  delete one...

 It works, first you get APPWIDGET_DELETED for the deleted widget id,
 then possibly APPWIDGET_DELETED for the other one (or APPWIDGET_UPDATE
 with some new widget id).



    Or, you can ask your AppWidgetManager getAppWidgetIds().

  I can definetly use this. I have played a bit with the onUpdate() and
  onDeleted() methods and I can see a new value (id) generated for each
  instance of the widget, so now I can use it to know whether I have any
  on the homescreen, thus I will not have a service running with no
  widget:)

 There are actions just for this:

 http://developer.android.com/reference/android/appwidget/AppWidgetPro...

     public static final String ACTION_APPWIDGET_ENABLED

     Sent when an instance of an AppWidget is added to a host for the
     first time. This broadcast is sent at boot time if there is a
     AppWidgetHost installed with an instance for this provider.
     See Also AppWidgetProvider.onEnabled(Context context)

     public static final String ACTION_APPWIDGET_DISABLED

     Sent when an instance of an AppWidget is removed from the last host.
     See Also AppWidgetProvider.onEnabled(Context context)

 However, if your service is for just updating the widget, you can do
 startService from onUpdate(), have the service update all your widgets
 (using AppWidgetManager updateAppWidget (ComponentName provider,
 RemoteViews views)), and exit.

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

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


[android-developers] Re: Know if your widget is on the homescreen

2010-06-25 Thread Albert
Ok I found an issue here,

If I add the widget and there is no room on the homescreen my widget
does not get added but both onEnable() and onUpdate() get called. Then
after I delete my truly last instance, appWidgetHost still thinks
there is another one out there. Is there a way to get a callback
somehow that the widget could not be added?

Thanks


On Jun 25, 9:36 am, Albert albert8...@googlemail.com wrote:
 Thanks a lot Kostya, I was not fully aware of the onEnable(),
 onDisable() funcionality. It works pretty well now :)

 On Jun 24, 10:08 pm, Kostya Vasilyev kmans...@gmail.com wrote:



  Albert,

  25.06.2010 0:29, Albert ?:

 The AppWidgetProvider is notified on every add and remove operation,
 along with first-add and last-remove operations.

   I have tried that but there are scenarios in which is does not work,
   the user for example could have 2 instances of the widget and then
   delete one...

  It works, first you get APPWIDGET_DELETED for the deleted widget id,
  then possibly APPWIDGET_DELETED for the other one (or APPWIDGET_UPDATE
  with some new widget id).

 Or, you can ask your AppWidgetManager getAppWidgetIds().

   I can definetly use this. I have played a bit with the onUpdate() and
   onDeleted() methods and I can see a new value (id) generated for each
   instance of the widget, so now I can use it to know whether I have any
   on the homescreen, thus I will not have a service running with no
   widget:)

  There are actions just for this:

 http://developer.android.com/reference/android/appwidget/AppWidgetPro...

      public static final String ACTION_APPWIDGET_ENABLED

      Sent when an instance of an AppWidget is added to a host for the
      first time. This broadcast is sent at boot time if there is a
      AppWidgetHost installed with an instance for this provider.
      See Also AppWidgetProvider.onEnabled(Context context)

      public static final String ACTION_APPWIDGET_DISABLED

      Sent when an instance of an AppWidget is removed from the last host.
      See Also AppWidgetProvider.onEnabled(Context context)

  However, if your service is for just updating the widget, you can do
  startService from onUpdate(), have the service update all your widgets
  (using AppWidgetManager updateAppWidget (ComponentName provider,
  RemoteViews views)), and exit.

  --
  Kostya Vasilev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

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


[android-developers] Re: Know if your widget is on the homescreen

2010-06-25 Thread Albert
Thanks Kostya for your reply,

Your implementation is great, and I had something like this in mind.
The onEnable() and onDisable() actually work pretty well but, there is
one scenario which affects that approach and I think your approach
too:

The user picks your widget to add it to the screen, gets pass
configuration and boom there is no room in the homescreen. You get a
toast message saying No more room on this homescreen but the
onEnable(), onUpdate() and your configuration screen were all
successful but the widget never got added.Then next time you try the
widgetId is different, meaning you have lost the last ID and you will
always think that it is on the homescreen as you will never receive a
onDeleted() with that ID.

Note: This is happening in 1.5 and 1.6 (haven't tested on 2.0) but in
2.1 and 2.2 I see the widget call onDeleted() instantly when it fails
to add due to not having room. Probably it was a bug before and the
platform dev fixed now.

Please let me know what you think in this case

A

On Jun 25, 2:16 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Albert,

 Yes, Android sometimes forgets to forget widget Ids. Also happens if a
 widget has a configuration activity and the user cancels.

 I recently ran into this, my solution is here:

 http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid...

 -- Kostya

 25.06.2010 12:44, Albert пишет:





  Ok I found an issue here,

  If I add the widget and there is no room on the homescreen my widget
  does not get added but both onEnable() and onUpdate() get called. Then
  after I delete my truly last instance, appWidgetHost still thinks
  there is another one out there. Is there a way to get a callback
  somehow that the widget could not be added?

  Thanks

  On Jun 25, 9:36 am, Albertalbert8...@googlemail.com  wrote:

  Thanks a lot Kostya, I was not fully aware of the onEnable(),
  onDisable() funcionality. It works pretty well now :)

  On Jun 24, 10:08 pm, Kostya Vasilyevkmans...@gmail.com  wrote:

  Albert,

  25.06.2010 0:29, Albert ?:

    The AppWidgetProvider is notified on every add and remove operation,
    along with first-add and last-remove operations.

  I have tried that but there are scenarios in which is does not work,
  the user for example could have 2 instances of the widget and then
  delete one...

  It works, first you get APPWIDGET_DELETED for the deleted widget id,
  then possibly APPWIDGET_DELETED for the other one (or APPWIDGET_UPDATE
  with some new widget id).

    Or, you can ask your AppWidgetManager getAppWidgetIds().

  I can definetly use this. I have played a bit with the onUpdate() and
  onDeleted() methods and I can see a new value (id) generated for each
  instance of the widget, so now I can use it to know whether I have any
  on the homescreen, thus I will not have a service running with no
  widget:)

  There are actions just for this:

 http://developer.android.com/reference/android/appwidget/AppWidgetPro...

       public static final String ACTION_APPWIDGET_ENABLED

       Sent when an instance of an AppWidget is added to a host for the
       first time. This broadcast is sent at boot time if there is a
       AppWidgetHost installed with an instance for this provider.
       See Also AppWidgetProvider.onEnabled(Context context)

       public static final String ACTION_APPWIDGET_DISABLED

       Sent when an instance of an AppWidget is removed from the last host.
       See Also AppWidgetProvider.onEnabled(Context context)

  However, if your service is for just updating the widget, you can do
  startService from onUpdate(), have the service update all your widgets
  (using AppWidgetManager updateAppWidget (ComponentName provider,
  RemoteViews views)), and exit.

  --
  Kostya Vasilev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

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


[android-developers] Know if your widget is on the homescreen

2010-06-24 Thread Albert
Hi there,

Is there a way to know if there is an instance of your widget
currently on the homescreen? I always end up using variables that
change state with onUpdate() and onDeleted()  calls, but that
obviously that isn't effective in every scenario.

Thanks in advance

Alberto

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

2010-06-24 Thread Albert


 The AppWidgetProvider is notified on every add and remove operation,
 along with first-add and last-remove operations.

I have tried that but there are scenarios in which is does not work,
the user for example could have 2 instances of the widget and then
delete one...


 Or, you can ask your AppWidgetManager getAppWidgetIds().

I can definetly use this. I have played a bit with the onUpdate() and
onDeleted() methods and I can see a new value (id) generated for each
instance of the widget, so now I can use it to know whether I have any
on the homescreen, thus I will not have a service running with no
widget :)

Thanks


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

 Android App Developer Books:http://commonsware.com/books

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

2010-06-22 Thread Albert
Hi there,

I am wondering whether is possible to use a BroadcastReceiver to
listen for an Activity being launched. I have no control of the
Activity I need to know about as it is from the Android platform.

Is there any trick around to do this?

Thanks,
Alberto

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

2010-06-22 Thread Albert
Thanks for answering so quickly.

On Jun 22, 11:01 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jun 22, 2010 at 5:59 PM, Albert albert8...@googlemail.com wrote:
  I am wondering whether is possible to use a BroadcastReceiver to
  listen for an Activity being launched.

 No, sorry, there are no broadcast Intents for Activity launches.


Umm what a shame, I half expected it anyway...

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

 Android Training...At Your Office:http://commonsware.com/training

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

2010-06-09 Thread Albert
Yes you are correct, as Froyo isn't and official release yet it blocks
all copy-protected apps...

http://developer.android.com/guide/appendix/market-filters.html

Forward-Locked Applications at the bottom.


On Jun 8, 4:33 pm, Mark his...@gmail.com wrote:
 Hi everyone, I've read about copy-protected apps missing on FroYo. I
 think I'm having the same problem with Eclair on my Alltel HTC Hero.
 Some apps I've heard of like Square, The New York Times, etc, I can't
 find in the Market. Any ideas or ways to check?

 Thanks,

 Mark

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

2010-05-13 Thread Albert
Hi Devs,

Have anyone notice yesterday anything strange in the downloads/active
install data from your apps? My app lost more than 100 downloads(which
should be impossible) from which most of them were active installs, so
now my apps is 15 places down and my percentage of active installs
badly affected.

Has anyone else been affected?

Alberto

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

2010-05-03 Thread Albert

As far as I know most task killer apps will kill processes only if you
tap on the process itself, so your users are probably killing the
process of your widget to then wonder why it has stopped working...

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

2010-02-27 Thread Albert
You need to use:

yourbitmap.compress(Bitmap.CompressFormat.PNG, 100, out); //PNG better
supported, you will see a loss of quality if you use JPEG

where out is your FileOutputStream with the file's destination

you can get it back with BitmapFactory.decodeStream(in, null, null);

where in is your InputStream...

for more info:
http://developer.android.com/intl/zh-TW/reference/android/graphics/Bitmap.html#compress%28android.graphics.Bitmap.CompressFormat,%20int,%20java.io.OutputStream%29

Hope it helps!
Alberto



On Feb 27, 4:32 am, Dan danieljonharring...@gmail.com wrote:
 I am going to be saving some jpeg images to the sdcard and I don't
 know the best way to get those images back off, one at a time.  They
 will be in a folder named /sdcard/images/ I will just need one image
 at a time, so this folder will act more as a cache of images pulled
 from the web that will be used in the application.  Therefore, I can't
 just put them in the res/drawable folder because I won't know which
 images they are beforehand. Thanks for any help on the subject.

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


  1   2   >