Re: [android-developers] My published app does not appear in Google Play

2013-05-01 Thread Michael Banzon
How long time have you waited?

On the left hand side of the store page, it says that I am unable to
install on any of my devices due to country restrictions.

On Wed, May 1, 2013 at 4:29 AM, scrayne susancra...@gmail.com wrote:
 It appears on the website, but not in Google Play on my phone, even using
 the direct url.  I have attached the manifest, and I don't think there are
 any filtering problems.  The phone is a Droid Razr M running Android version
 4.1.2.  I have successfully run this app on the phone during development.
 Any help would be much appreciated.

 Susan

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





-- 
Michael Banzon
http://michaelbanzon.com/

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




Re: [android-developers] Re: Running a song after every one hour..

2013-05-01 Thread Piren
seriously?
so by I need to create an app and can you help/guide me you actually 
meant can someone do the work for me? 



On Tuesday, April 30, 2013 5:58:19 PM UTC+3, Ravi Tewari wrote:

 Thanks Piren.. Will look at it... But I was looking if someone already has 
 done similar


 On Tue, Apr 30, 2013 at 8:23 PM, Piren gpi...@gmail.com javascript:wrote:

 http://developer.android.com/guide/topics/media/mediaplayer.html

 http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED
 http://developer.android.com/reference/android/app/AlarmManager.html

 Figure it out :)


 On Tuesday, April 30, 2013 5:40:59 PM UTC+3, Ravi Tewari wrote:

  
 I need to create an app that will play a song after every one hour. The 
 app will be running all the times but in background. As soon as it is 9 
 o'clock, it will play a song. Once song is over, app should go idle. Again 
 as soon as it is 10 o'clock, it will again play that song. So on for 
 365*24*7... Even after boot up the device, the app should get started 
 automatically.
  
 So is this possible, if yes, can you help/guide me in this?
 Appreciate your response !
  
 Peaceful time ahead...
  
  

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




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




Re: [android-developers] Re: Application forced Close

2013-05-01 Thread Piren
how could we have missed that? 


:-D

On Tuesday, April 30, 2013 10:02:33 PM UTC+3, TreKing wrote:


 On Tue, Apr 30, 2013 at 9:14 AM, bob b...@coolfone.comze.comjavascript:
  wrote:

 The problem is that you are not calling super.onCreate.  Make this the 
 first line of your onCreate method:

 *super.onCreate(savedInstanceState);*

 Thanks.


 No, no, no. It's clearly a NullPointerException on line 42 of 
 MainActivity.java trying to access the variable poodle. *DUH.*


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

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




[android-developers] Re: Console stopped giving output.

2013-05-01 Thread Piren
Do you meant Logcat? cause the Console is pretty much useless in eclipse in 
eclipse when it comes to Android development... the only thing it is good 
for is noticing errors with file names and problems installing the app.
If you meant Logcat and it stopped showing new information from the 
device/emulator, you need to select the device again in the Devices window 
(and make sure the device is marked as Online.. if it is not, reconnect it 
to the USB port to jump start it )

On Wednesday, May 1, 2013 12:50:13 AM UTC+3, Tobiah wrote:

 That's about it.  I went as far as to reboot my system, 
 but when I run or debug Android apps, I get nothing anymore 
 out of the Console.  I'm pretty new to Eclipse so thanks 
 for any help. 

 Tobiah 


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




Re: [android-developers] Re: Any good guide lines for using TAG when using Log. statements

2013-05-01 Thread Piren
I did something similar by first retrieving the PID of the app and then 
filtering by PID.. i rather keep the tag clean and specific to what it is.

Regarding your question, it's a personal choice... i personally tag by 
logical/functional meanings in the app  (if you have a specific code path 
you'd like to follow it would get a tag of its own)  and by specific code 
layers (UI, BL, DB and etc)... logging by class name would be hard to 
follow. 


On Wednesday, May 1, 2013 1:25:11 AM UTC+3, Subodh Nijsure wrote:

 But I wanted to run something outside the eclipse. 

 Something like adb logcat | grep -i 'packagename' or adb logcat | grep 
 -i companyname from command line. 


 -Subodh 

 On Tue, Apr 30, 2013 at 2:04 PM, lbendlin lu...@bendlin.us javascript: 
 wrote: 
  Adding the company name is not necessary as the Eclipse debug widget 
 already 
  gives you the option to filter by your app. 
  
  
  On Tuesday, April 30, 2013 2:02:41 PM UTC-4, Subodh Nijsure wrote: 
  
  I am wondering if there any good practices that people have come up 
  when it comes to defining TAG prefix for large android applications. 
  So one can easily filter your application logs. 
  
  Currently all my code uses: 
  
  final String TAG = MyClassName.class.getSimpleName(); 
  
  We have just recently moved to adding our company prefix to the TAG so 
  we can only see log messages to our own application. 
  
  i.e. 
  
  final String TAG = GlobalConst.companyName + 
  MyClassName.class.getSimpleName(); 
  
  Are there any other techniques people have used to define TAG for 
 log.X()? 
  
  -Subodh 
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  Android Developers group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


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




Re: [android-developers] Re: Running a song after every one hour..

2013-05-01 Thread Ravi Tewari
 
Hi Piran/Bob,
I meant, I just needed a start and thanks to both of you to guide in a 
right direction.
I have started developing it. At first, I am creating a Service to run the 
music.
But need your help to clarify why it is not running for me (when I run it 
using activity alone, it plays the song).
 
Here is my main activity java file:
 
public class MainActivity extends Activity {
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
 }
 public boolean onCreateOptionsMenu(Menu menu) {
  getMenuInflater().inflate(R.menu.main, menu);
  return true;
 }
}
 
 
And below is another class MyService.java which essentially is a service:
 
public class MyService extends Service implements OnPreparedListener {
 private static final String ACTION_PLAY = com.example.action.PLAY;
 MediaPlayer mMediaPlayer = null;
 Uri myUri=Uri.parse(getPackageResourcePath() + R.raw.shanti);
 public int onStartCommand(Intent intent, int flags, int startId) {
  if(intent.getAction().equals(ACTION_PLAY)){
   try {
mMediaPlayer=new MediaPlayer();
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMediaPlayer.setDataSource(getApplicationContext(), myUri);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.prepareAsync();
   }catch(IOException e){
mMediaPlayer=null;
   }
  }
  return 0;
 }
 public void onPrepared(MediaPlayer mMediaPlayer) {
  mMediaPlayer.start();
 }
 public IBinder onBind(Intent intent) {
  return null;
 }
}
 
In the Manifest file, I have included the service just by placing this code:
service android:name=os.musicplay.MyService /
 
When I am running it, nothing is happening !! 
Can you please advise whats going wrong here?
Appreciate your reply.
 
Peaceful Time Ahead...
 

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




[android-developers] Fwd: How to Fetch user name in twitter with out authentication.

2013-05-01 Thread Seshu
Hi,
  How can we fetch the public data like username, profile pic
in twitter with out autentication. please help if any one knows?

Thanks and Regards,
S.Seshu.

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




Re: [android-developers] Maps api key v1?

2013-05-01 Thread user123
I didn't create a release keystore because I have not released yet, and I 
didn't need it. I was using the debug keystore.

I created the release keystore when I was finished, to put the app in 
Google Play.



Am Dienstag, 30. April 2013 04:12:34 UTC+2 schrieb Ian Ni-Lewis:

 I agree, you should have been notified. I do not know why you weren't.

 I don't understand the issue with the debug certificate. Do you not have a 
 valid release key certificate that you can use for development?
 Ian


 On Fri, Apr 26, 2013 at 6:59 AM, Craig Payne craig@gmail.comjavascript:
  wrote:

 Not quite true, Ian. I am trying to fix a bug in an app I released over a 
 year ago, and my debug.keystore certificate has expired. Given that this is 
 the default behaviour (365 day expiry), most developers are not going to be 
 able to use their old API keys to continue development for very long.

 I need to make a tiny change, and to do this I will be forced to upgrade 
 to v2, which means I can no longer support Android 1.6.  This will 
 immediately cut out 8% of my users, who will loudly complain and give me 
 bad reviews in Google Play.  They are not able to upgrade because of 
 fragmentation, and are stuck with an old version of Android, which up to 
 now I have been able to support.
 I didn't see the clear communications that this would be deprecated 
 either, and I pay special attention to emails from Google.  I WAS told by 
 Google that the v2 web-based maps would be deprecated and DID update them 
 in time.
 While I might expect something like this from the cowboys at Facebook, I 
 hold Google to a higher standard and I am shocked and disappointed.

 It sounds like you're actually from Google, so do you have any solution 
 for us developers who are trying to support Android, but who have existing 
 keys with expired debug certificates?

 In any case, you appear to be assuming that we shut down a service 
 without informing its users. This is not the case. We stopped accepting new 
 users into a service which we intend to keep online for a period of several 
 years. No existing users were affected by this change. No users who 
 obtained an API key before beginning development (as they were clearly 
 instructed to do) should have been affected. 

   -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 a topic in the 
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/R2dwCWyC3TQ/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Ian Ni-Lewis
 Staff Developer Programs Engineer
 Android Developer Relations

  

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




Re: [android-developers] Re: Running a song after every one hour..

2013-05-01 Thread Ravi Tewari
forgot to mention how I am calling my service in main activity class. Here 
is how I call the service:
 
..


setContentView(R.layout.activity_main);

MyService ms=new MyService();
ms.startService(new 
Intent(this,MyService.class).setAction(com.example.action.PLAY));


...

 

On Wednesday, May 1, 2013 1:49:11 PM UTC+5:30, Ravi Tewari wrote:

  
 Hi Piran/Bob,
 I meant, I just needed a start and thanks to both of you to guide in a 
 right direction.
 I have started developing it. At first, I am creating a Service to run the 
 music.
 But need your help to clarify why it is not running for me (when I run it 
 using activity alone, it plays the song).
  
 Here is my main activity java file:
  
 public class MainActivity extends Activity {
  protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);
  }
  public boolean onCreateOptionsMenu(Menu menu) {
   getMenuInflater().inflate(R.menu.main, menu);
   return true;
  }
 }
  
  
 And below is another class MyService.java which essentially is a service:
  
 public class MyService extends Service implements OnPreparedListener {
  private static final String ACTION_PLAY = com.example.action.PLAY;
  MediaPlayer mMediaPlayer = null;
  Uri myUri=Uri.parse(getPackageResourcePath() + R.raw.shanti);
  public int onStartCommand(Intent intent, int flags, int startId) {
   if(intent.getAction().equals(ACTION_PLAY)){
try {
 mMediaPlayer=new MediaPlayer();
 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
 mMediaPlayer.setDataSource(getApplicationContext(), myUri);
 mMediaPlayer.setOnPreparedListener(this);
 mMediaPlayer.prepareAsync();
}catch(IOException e){
 mMediaPlayer=null;
}
   }
   return 0;
  }
  public void onPrepared(MediaPlayer mMediaPlayer) {
   mMediaPlayer.start();
  }
  public IBinder onBind(Intent intent) {
   return null;
  }
 }
  
 In the Manifest file, I have included the service just by placing this 
 code:
 service android:name=os.musicplay.MyService /
  
 When I am running it, nothing is happening !! 
 Can you please advise whats going wrong here?
 Appreciate your reply.
  
 Peaceful Time Ahead...
  


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




[android-developers] progaurd.cfg built apk not working

2013-05-01 Thread vani reddy
Hi All,

I have a class which extends android.app.Application.

In the progaurd.cfg file I have given

-keep public class * extends android.app.Application{*;}
-keep public class  packagename.application class name

-dontwarn   packagename.application class name.**

I am able to export the apk successfully but after installing it in device
its throwing
ClassNotFoundException for application class.


How to solve this issue??

-- 
Regards,
Vani Reddy

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




[android-developers] Re: SQLite Frustration

2013-05-01 Thread Marty Ballard
It appears to me that you are always inserting key_id = 0, therefore this 
would be a duplicate insert.  I believe you should be increasing this by +1 
for each insert.

On Friday, April 26, 2013 11:20:20 AM UTC-5, Nathan wrote:

 I can not figure out what is happening here for the life of me. Everything 
 was working fine. I went to bed one night and came back the next and now my 
 app will not read or write to my db and gives me no errors. Please help any 
 advice would be great.


 My DB Handler:

 ===
 import android.content.ContentValues;
 import android.content.Context;
 import android.database.Cursor;
 import android.database.sqlite.SQLiteDatabase;
 import android.database.sqlite.SQLiteOpenHelper;

 public class DatabaseHandler extends SQLiteOpenHelper {
 // All Static variables
 // Database Version
 private static final int DATABASE_VERSION = 1;
  
 // Database Name
 private static final String DATABASE_NAME = GP;
  
 // Contacts table name
 private static final String TABLE_VERSION = GPVersion;
 
  
 // Contacts Table Columns names
 private static final String KEY_ID = id;
 private static final String KEY_VERSION = name;
 
 public DatabaseHandler(Context context) {
 super(context, DATABASE_NAME, null, DATABASE_VERSION);
 }

 @Override
 public void onCreate(SQLiteDatabase db) {
 // TODO Auto-generated method stub
 String CREATE_VERSION_TABLE = CREATE TABLE IF NOT EXISTS  + 
 TABLE_VERSION + (
 + KEY_ID +  INTEGER PRIMARY KEY, + KEY_VERSION +  TEXT 
 + );
 db.execSQL(CREATE_VERSION_TABLE);
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 // TODO Auto-generated method stub
 //db.execSQL(DROP TABLE IF EXISTS  + TABLE_VERSION);
  
 // Create tables again
 //onCreate(db);
 }

   // Adding new version 
 void addGPVersion(String version) {
 SQLiteDatabase db = this.getWritableDatabase();
  
 ContentValues values = new ContentValues();
 values.put(KEY_ID, 0); // Pair
 values.put(KEY_VERSION, version); // Pair
  
 // Inserting Row
 db.insert(TABLE_VERSION, null, values);
 db.close(); // Closing database connection
 }
 
 
 // Getting students Count
 public String getGPVersion() {
 SQLiteDatabase db = this.getReadableDatabase();
 String q=SELECT  + KEY_VERSION +  FROM  + TABLE_VERSION +  WHERE 
  + KEY_ID + ='0';
 String z;
 
 Cursor cursor = db.rawQuery(q,null);
 if (cursor != null  cursor.getCount()0) {
 cursor.moveToFirst();
 z=cursor.getString(0);
 cursor.close();
 db.close();
 return z;
 
 } 
 else
 {
 cursor.close();
 db.close();
  return na;
 }
 }
 


 ===



 Main Activity:

 ===
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState); 

 setContentView(R.layout.main);
CheckGPVersion();
 }


 private void CheckGPVersion()
 {
  DatabaseHandler db = new DatabaseHandler(this);
  String a = ;
  a = db.getGPVersion();

  EditText txtEffortCode = (EditText) 
 findViewById(R.id.txtEffortCode);
  txtEffortCode.setText(a);
 }


 public void onGoClick(View view)  // Input Effort Code
 {  
  EditText txtEffortCode = (EditText) findViewById(R.id.txtEffortCode);

  if (txtEffortCode.getText().length() != 0){
 //Do Something
  DatabaseHandler db = new DatabaseHandler(this);
  
 db.addGPVersion(txtEffortCode.getText().toString().toUpperCase(Locale.getDefault()));
  txtEffortCode.setText();
  Toast.makeText(this, Input Success!, Toast.LENGTH_SHORT).show();
  }
  else
  {
  //Alert no code input
  Toast.makeText(this, You must enter 'EFFORT CODE'!, 
 Toast.LENGTH_SHORT).show();
  }  
  }  

 ===


 While it creates the database or so I think it does as the app shows under 
 data 4.00K. When it was inputting data the other night, the data field 
 showed 12.00K. Argh, what is going on here? I use sqlite on many other apps 
 and they work fine. Did something get corrupt? I tried cleaning the 
 project, rebooting etc. nothing. 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] Re: progaurd.cfg built apk not working

2013-05-01 Thread Piren
remove the curly braces at the end...
just this is enough:

-keep public class * extends android.app.Application

On Wednesday, May 1, 2013 3:40:45 PM UTC+3, vani wrote:

 Hi All,

 I have a class which extends android.app.Application.

 In the progaurd.cfg file I have given 

 -keep public class * extends android.app.Application{*;}
 -keep public class  packagename.application class name

 -dontwarn   packagename.application class name.**

 I am able to export the apk successfully but after installing it in device 
 its throwing
 ClassNotFoundException for application class.


 How to solve this issue??

 -- 
 Regards,
 Vani Reddy
  

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




Re: [android-developers] open street maps with native android apps

2013-05-01 Thread Tom Opgenorth
Give OSMDroid - https://code.google.com/p/osmdroid/. I've had luck
with it in the past.

On Tue, Apr 30, 2013 at 12:28 PM, Gink Labrev gink.lab...@gmail.com wrote:
 How to use open street maps with native android apps ?
 There are a lot of applications in this link, but any information about used
 components.

 http://wiki.openstreetmap.org/wiki/Android

 Regards,
   Gink

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





-- 
http://www.opgenorth.net

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




[android-developers] Re: My published app does not appear in Google Play

2013-05-01 Thread bob
 

It looks like it is there now:

https://lh6.googleusercontent.com/-g-exvaE1Kc0/UYEjN5hZNvI/Abg/9LIOx65ESI8/s1600/sidefx2.png



Thanks.



On Tuesday, April 30, 2013 9:29:02 PM UTC-5, scrayne wrote:

 It appears on the website, but not in Google Play on my phone, even using 
 the direct url.  I have attached the manifest, and I don't think there are 
 any filtering problems.  The phone is a Droid Razr M running Android 
 version 4.1.2.  I have successfully run this app on the phone during 
 development.  Any help would be much appreciated.

 Susan


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




[android-developers] Proper way to request an email or whatever data at first load of the app

2013-05-01 Thread Dan Cha
I have an app, that ive been working on from time to time. And now that its 
more stable, im working on improvements and changes to help make it better.
So one of those things is to request an email address to use when pulling 
up history data, which would be specific to the individual using the app.
 
I dont want to automatically gather the email, as they may not want to use 
that for the purpose of the app, so would rather present a popup or 
something
that prompts them before they can use the app to supply a email, then from 
that point forward, when data is submitted that email is passed along in 
the insert
and now the history data would be displayed for only them.
 
Currently, since this was just a test app and working thru making it 
better, if you chose to view history, you will see ALL submitted data for 
anyone. 
 
Can someone offer suggestion on what i need to focus on like a certain 
method to accomplish this, or maybe provide liinks to sites that may show 
exactly what im asking about.
 
thank you

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




[android-developers] Re: My published app does not appear in Google Play

2013-05-01 Thread scrayne
Bob, I can't see your image. When I search in google play my app is still not 
listed
Susan

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




[android-developers] Re: My published app does not appear in Google Play

2013-05-01 Thread bob
What happens when you go here?

https://play.google.com/store/apps/details?id=com.oryxtech.android.sideeffects

Thanks.


On Wednesday, May 1, 2013 9:56:06 AM UTC-5, scrayne wrote:

 Bob, I can't see your image. When I search in google play my app is still 
 not listed
 Susan

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




Re: [android-developers] Re: My published app does not appear in Google Play

2013-05-01 Thread Daniel Chacon
I can see an app Side Effects listing all medical side effects.


On Wed, May 1, 2013 at 10:24 AM, bob b...@coolfone.comze.com wrote:

 What happens when you go here?


 https://play.google.com/store/apps/details?id=com.oryxtech.android.sideeffects

 Thanks.


 On Wednesday, May 1, 2013 9:56:06 AM UTC-5, scrayne wrote:

 Bob, I can't see your image. When I search in google play my app is still
 not listed
 Susan

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




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




Re: [android-developers] Re: SQLite Frustration

2013-05-01 Thread Παύλος-Πέτρος Τουρνάρης
Make your key_id autoincrement and it should be fine!


On 1 May 2013 16:49, Marty Ballard marty...@gmail.com wrote:

 It appears to me that you are always inserting key_id = 0, therefore this
 would be a duplicate insert.  I believe you should be increasing this by +1
 for each insert.


 On Friday, April 26, 2013 11:20:20 AM UTC-5, Nathan wrote:

 I can not figure out what is happening here for the life of me.
 Everything was working fine. I went to bed one night and came back the next
 and now my app will not read or write to my db and gives me no errors.
 Please help any advice would be great.


 My DB Handler:
 ==**==**
 ==**=
 import android.content.ContentValues;
 import android.content.Context;
 import android.database.Cursor;
 import android.database.sqlite.**SQLiteDatabase;
 import android.database.sqlite.**SQLiteOpenHelper;

 public class DatabaseHandler extends SQLiteOpenHelper {
 // All Static variables
 // Database Version
 private static final int DATABASE_VERSION = 1;

 // Database Name
 private static final String DATABASE_NAME = GP;

 // Contacts table name
 private static final String TABLE_VERSION = GPVersion;


 // Contacts Table Columns names
 private static final String KEY_ID = id;
 private static final String KEY_VERSION = name;

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

 @Override
  public void onCreate(SQLiteDatabase db) {
 // TODO Auto-generated method stub
 String CREATE_VERSION_TABLE = CREATE TABLE IF NOT EXISTS  +
 TABLE_VERSION + (
 + KEY_ID +  INTEGER PRIMARY KEY, + KEY_VERSION + 
 TEXT + );
 db.execSQL(CREATE_VERSION_**TABLE);
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 // TODO Auto-generated method stub
 //db.execSQL(DROP TABLE IF EXISTS  + TABLE_VERSION);

 // Create tables again
 //onCreate(db);
 }

   // Adding new version
 void addGPVersion(String version) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(KEY_ID, 0); // Pair
 values.put(KEY_VERSION, version); // Pair

 // Inserting Row
 db.insert(TABLE_VERSION, null, values);
 db.close(); // Closing database connection
 }


 // Getting students Count
 public String getGPVersion() {
 SQLiteDatabase db = this.getReadableDatabase();
 String q=SELECT  + KEY_VERSION +  FROM  + TABLE_VERSION + 
 WHERE  + KEY_ID + ='0';
 String z;

 Cursor cursor = db.rawQuery(q,null);
 if (cursor != null  cursor.getCount()0) {
 cursor.moveToFirst();
 z=cursor.getString(0);
 cursor.close();
 db.close();
 return z;

 }
 else
 {
 cursor.close();
 db.close();
  return na;
 }
 }


 ==**==**
 ==**=



 Main Activity:
 ==**==**
 ==**=
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);

 setContentView(R.layout.main);
CheckGPVersion();
 }


 private void CheckGPVersion()
 {
  DatabaseHandler db = new DatabaseHandler(this);
  String a = ;
  a = db.getGPVersion();

   EditText txtEffortCode = (EditText) findViewById(R.id.**
 txtEffortCode);
  txtEffortCode.setText(a);
 }


 public void onGoClick(View view)  // Input Effort Code
 {
  EditText txtEffortCode = (EditText) findViewById(R.id.**txtEffortCode);

  if (txtEffortCode.getText().**length() != 0){
 //Do Something
  DatabaseHandler db = new DatabaseHandler(this);
  db.addGPVersion(txtEffortCode.**getText().toString().**
 toUpperCase(Locale.getDefault(**)));
  txtEffortCode.setText();
  Toast.makeText(this, Input Success!, Toast.LENGTH_SHORT).show();
  }
  else
  {
  //Alert no code input
  Toast.makeText(this, You must enter 'EFFORT CODE'!,
 Toast.LENGTH_SHORT).show();
  }
  }
 ==**==**
 ==**=


 While it creates the database or so I think it does as the app shows
 under data 4.00K. When it was inputting data the other night, the data
 field showed 12.00K. Argh, what is going on here? I use sqlite on many
 other apps and they work fine. Did something get corrupt? I tried cleaning
 the project, rebooting etc. nothing. 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] Google Play Services Library question: GetRemoteContext

2013-05-01 Thread Jeffry
Hi,
While looking at the google play services library's APIs, i found that 
there is a method called:
GooglePlayServicesUtil.getRemoteContext() which according to the reference 
document it will return the buddy APK's context..
So I am assuming the buddy APK here is referencing the Google play services 
we are connected with?? (Google plus, Maps, etc)
Out of curiosity, what would be the use case of this API for? The same 
questions goes with the getRemoteResource()?


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




[android-developers] Re: My published app does not appear in Google Play

2013-05-01 Thread scrayne
I see the listing for SideEffects in my browser on my phone.  By the way, 
it says that the app is compatible with my Verizon Motorola XT907, which is 
the phone I'm using.  I just checked Google Play again.  Now I see it. 
 Thanks.

Susan

On Wednesday, May 1, 2013 11:24:02 AM UTC-4, bob wrote:

 What happens when you go here?


 https://play.google.com/store/apps/details?id=com.oryxtech.android.sideeffects

 Thanks.


 On Wednesday, May 1, 2013 9:56:06 AM UTC-5, scrayne wrote:

 Bob, I can't see your image. When I search in google play my app is still 
 not listed
 Susan



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




Re: [android-developers] SQLite Frustration

2013-05-01 Thread 超人迪迦
在 2013年5月1日星期三,Παύλος-Πέτρος Τουρνάρης 写道:

 Make your key_id autoincrement and it should be fine!


 On 1 May 2013 16:49, Marty Ballard marty...@gmail.com wrote:

 It appears to me that you are always inserting key_id = 0, therefore this
 would be a duplicate insert.  I believe you should be increasing this by +1
 for each insert.


 On Friday, April 26, 2013 11:20:20 AM UTC-5, Nathan wrote:

 I can not figure out what is happening here for the life of me. Everything
 was working fine. I went to bed one night and came back the next and now my
 app will not read or write to my db and gives me no errors. Please help any
 advice would be great.


 My DB Handler:
 ==**==**
 ==**=
 import android.content.ContentValues;
 import android.content.Context;
 import android.database.Cursor;
 import android.database.sqlite.**SQLiteDatabase;
 import android.database.sqlite.**SQLiteOpenHelper;

 public class DatabaseHandler extends SQLiteOpenHelper {
 // All Static variables
 // Database Version
 private static final int DATABASE_VERSION = 1;

 // Database Name
 private static final String DATABASE_NAME = GP;

 // Contacts table name
 private static final String TABLE_VERSION = GPVersion;


 // Contacts Table Columns names
 private static final String KEY_ID = id;
 private static final String KEY_VERSION = name;

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

 @Override
  public void onCreate(SQLiteDatabase db) {
 // TODO Auto-generated method stub
 String CREATE_VERSION_TABLE = CREATE TABLE IF NOT EXISTS  +
 TABLE_VERSION + (
 + KEY_ID +  INTEGER PRIMARY KEY, + KEY_VERSION +  TEXT
 + );
 db.execSQL(CREATE_VERSION_**TABLE);
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 // TODO Auto-generated method stub
 //db.execSQL(DROP TABLE IF EXISTS  + TABLE_VERSION);

 // Create tables again
 //onCreate(db);
 }

   // Adding new version
 void addGPVersion(String version) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(KEY_ID, 0); // Pair
 values.put(KEY_VERSION, version); // Pair

 // Inserting Row
 db.insert(TABLE_VERSION, null, values);
 db.close(); // Closing database connection
 }


 // Getting students Count
 public String getGPVersion() {
 SQLiteDatabase db = this.getReadableDatabase();
 String q=SELECT  + KEY_VERSION +  FROM  + TABLE_VERSION +  WHERE
  + KEY_ID + ='0';
 String z;

 Cursor cursor = db.rawQuery(q,null);
 if (cursor != null  cursor.getCount()0) {
 cursor.moveToFirst();
 z=cursor.getString(0);


 --
 *Παύλος-Πέτρος Τουρνάρης*
 *Android   Software Developer*

- *http://goo.gl/TsJ8u*
- *http://acschedule.org*

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@googlegroups.comjavascript:_e({}, 'cvml', 
 'android-developers@googlegroups.com');
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:_e({},
 'cvml', 'android-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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.comjavascript:_e({}, 
 'cvml',
 'android-developers%2bunsubscr...@googlegroups.com');.
 For more options, visit https://groups.google.com/groups/opt_out.




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




[android-developers] Re: To play gif from a file

2013-05-01 Thread bob
 

I have looked further into this issue, and the issue is actually a bug in 
FileInputStream.  Basically, every class that derives from InputStream 
needs to implement the reset() method, and FileInputStream neglects to do 
so.  


Please see this in the InputStream source code:


https://lh5.googleusercontent.com/-YogltbfLGX4/UYFag1esuRI/Abw/SLb_MigbW9Y/s1600/reset.png



Thanks.



On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote:

 Hi,
 I have found tutorials about how to play animated gifs in android by 
 reading it from an asset or using a drawable object. But what I want is to 
 read a gif file from sdcard. 
 I have changed the project reading gif from assets a little bit.

 In the main activity, I basically create gifMovieView then setContent(
 gifMovieView)
 In the constructor of the GifMovieView class, I have initailized the Movie 
 object like in the project eu.andlabs.tutorial.animatedgifs. But I have 
 used decodeFile giving the file path instead of decodeStream getting 
 inputStream.

 File file = new File 
 (Environment.getExternalStorageDirectory().getAbsolutePath(),piggy.gif);

 if(file.exists()){
 
mMovie = Movie.decodeFile(file.getPath()); 
}


 I HAVE GİVEN I/O EXCEPTION for this line. It finds the file but decodeFile 
 gives exception.


 In onDraw ;

 @Override
 protected void onDraw(Canvas canvas) {
 canvas.drawColor(Color.TRANSPARENT);
 super.onDraw(canvas);
 final long now = SystemClock.uptimeMillis();

 if (mMoviestart == 0) { 
 mMoviestart = now;
 }

 
 Log.i(,+mMovie.duration());
 
 Log.i(,+mMoviestart);
 
 final int relTime = (int)((now - mMoviestart) % mMovie.duration());
 mMovie.setTime(relTime);
 mMovie.draw(canvas, 10, 10);
 this.invalidate();
 }


 BECAUSE OF THE EXCEPTION, movie.duration becomes 0 causing the error.

 Any suggestions?

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




[android-developers] Re: To play gif from a file

2013-05-01 Thread bob
As a workaround, you can probably do something like this:

*FileInputStream  fis = new FileInputStream(/mnt/sdcard/piggy.gif);*
*BufferedInputStream bis = new BufferedInputStream(fis);*
*bis.mark(10);*
*Movie movie = Movie.decodeStream(bis);*
*int width = movie.width();*
*int height = movie.height();*
*Log.d(gif, width =  + width + , height =  + height);*

Basically, you need to create an InputStream where reset() works (or at 
least doesn't throw an Exception).

For me, the code correctly showed the width and height of the GIF to be 
85x85.

Thanks.


On Wednesday, May 1, 2013 1:10:22 PM UTC-5, bob wrote:

 I have looked further into this issue, and the issue is actually a bug in 
 FileInputStream.  Basically, every class that derives from InputStream 
 needs to implement the reset() method, and FileInputStream neglects to do 
 so.  


 Please see this in the InputStream source code:


 https://lh5.googleusercontent.com/-YogltbfLGX4/UYFag1esuRI/Abw/SLb_MigbW9Y/s1600/reset.png



 Thanks.



 On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote:

 Hi,
 I have found tutorials about how to play animated gifs in android by 
 reading it from an asset or using a drawable object. But what I want is to 
 read a gif file from sdcard. 
 I have changed the project reading gif from assets a little bit.

 In the main activity, I basically create gifMovieView then setContent(
 gifMovieView)
 In the constructor of the GifMovieView class, I have initailized the 
 Movie object like in the project eu.andlabs.tutorial.animatedgifs. But I
  have used decodeFile giving the file path instead of decodeStream 
 getting inputStream.

 File file = new File 
 (Environment.getExternalStorageDirectory().getAbsolutePath(),piggy.gif);

 if(file.exists()){
 
mMovie = Movie.decodeFile(file.getPath()); 
}


 I HAVE GİVEN I/O EXCEPTION for this line. It finds the file but 
 decodeFile gives exception.


 In onDraw ;

 @Override
 protected void onDraw(Canvas canvas) {
 canvas.drawColor(Color.TRANSPARENT);
 super.onDraw(canvas);
 final long now = SystemClock.uptimeMillis();

 if (mMoviestart == 0) { 
 mMoviestart = now;
 }

 
 Log.i(,+mMovie.duration());
 
 Log.i(,+mMoviestart);
 
 final int relTime = (int)((now - mMoviestart) % 
 mMovie.duration());
 mMovie.setTime(relTime);
 mMovie.draw(canvas, 10, 10);
 this.invalidate();
 }


 BECAUSE OF THE EXCEPTION, movie.duration becomes 0 causing the error.

 Any suggestions?

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




Re: [android-developers] Problems playing diferents songs with Android MediaPlayer

2013-05-01 Thread TreKing
On Mon, Apr 29, 2013 at 4:44 PM, Luis Torres Coronel bran...@gmail.comwrote:

 Return to the previous activity, select a new song and this also is
 playing together with the above at once, how could avoid this?


Seems like the obvious solution is to stop whatever song is currently
playing before starting a new one.

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

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




Re: [android-developers] Re: Problems playing diferents songs with Android MediaPlayer

2013-05-01 Thread TreKing
On Tue, Apr 30, 2013 at 10:20 AM, bob b...@coolfone.comze.com wrote:

 Maybe in the *onPause* method of the SongPlay activity, you tell it to
 stop playing the song?

 That would mean you'd have to keep that activity on top or it would stop
playing the song if you tried to do anything else on your device, which
would be the worst media player ever conceived on Android.

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

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




Re: [android-developers] Pixelated interface

2013-05-01 Thread TreKing
On Sun, Apr 28, 2013 at 3:04 PM, Vlad vlad20p...@gmail.com wrote:

 How can I simulate a big pixel


Draw a big square.


 and how can I animate the big pixels?


Look at the documentation section on animation.

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

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




[android-developers] Re: Pixelated interface

2013-05-01 Thread bob
 

You can draw to a Bitmap.


Then scale it down real small like *100x100* using this function:


  static 
Bitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html
 
createScaledBitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap(android.graphics.Bitmap,%20int,%20int,%20boolean)
(Bitmaphttp://developer.android.com/reference/android/graphics/Bitmap.htmlsrc,
 int dstWidth, int dstHeight, boolean filter)

Creates a new bitmap, scaled from an existing bitmap, when possible.


Then scale it back up to about 800x1280 or whatever the screen size is.  
Then it will be very pixelated.


Thanks.



On Sunday, April 28, 2013 3:04:40 PM UTC-5, Vlad wrote:

 I wat to create an android app, a tamagochi to be more specific. For that 
 i need to create a pixelated interface. How can I simulate a big pixel 
 and how can I animate the big pixels?


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




Re: [android-developers] Fwd: How to Fetch user name in twitter with out authentication.

2013-05-01 Thread TreKing
On Wed, May 1, 2013 at 3:52 AM, Seshu s.seshu...@gmail.com wrote:

 How can we fetch the public data like username, profile pic
 in twitter with out autentication. please help if any one knows?


Consult the Twitter documentation - this has nothing to do with Android
development.

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

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




[android-developers] Re: To play gif from a file

2013-05-01 Thread Beyza Nur Kökcan
Thank you so much, it works fine now

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




Re: [android-developers] program crashes when i try to create a table for my app

2013-05-01 Thread TreKing
On Tue, Apr 23, 2013 at 8:43 AM, Manish Jain jainmanishin...@gmail.comwrote:

 here is the code of my database java file


And ...? You want someone to debug your application for you when you've
provide no information about the issue itself?

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

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




Re: [android-developers] Running logcat from an application only shows the apps logs.

2013-05-01 Thread TreKing
On Fri, Apr 19, 2013 at 1:28 PM, Federico Cesari ficoces...@gmail.comwrote:

 I'm developing an application on JB 4.2 that needs to read the logs from
 all processes running in the device.


That is no longer possible as of 4.1. Apps can only read the logs from
their own processes.

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

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




Re: [android-developers] new in development plz help

2013-05-01 Thread Michael Leung
I think you should start from the basic.
maybe, finding some training courses about programming.



On Wed, May 1, 2013 at 5:34 AM, TreKing treking...@gmail.com wrote:

 On Tue, Apr 16, 2013 at 5:03 PM, yaqub seyidov seyidov.ya...@gmail.comwrote:

 i have no java knowledge


 Before you do anything else, get some Java knowledge, outside of Android.


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

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






-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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




Re: [android-developers] instal different versions of same app

2013-05-01 Thread Michael Leung
you need to change namespace as I remener


On Sun, Apr 28, 2013 at 3:26 AM, Carlos Costa up2...@gmail.com wrote:

 Hi guys

 I am developing a game with eclipse, I try it in my mobile phone, to get
 the real feeling

 Sometimes I do little changes in my app and I want to install it in the
 phone but without remove the previous version, which is the best way to do
 it?

 I tried to change the app name in the manifest, but it doesn't work

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






-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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




Re: [android-developers] EditText lose focus when appears keyboard in ListView

2013-05-01 Thread Bazlur Rahman
I found this solution doesn't work on Samsung s2 and S3 phone.


Sincerely
A. N. M. Bazlur Rahman
Software Engineer
Therap Services, LLC




On Sun, Sep 23, 2012 at 3:17 AM, biosstar bios...@googlemail.com wrote:

 Try to set
 android:windowSoftInputMode=adjustPan
 for your activity in the AndroidManifest.xml

 That solved the problem for me


 Am Donnerstag, 29. April 2010 05:12:23 UTC+2 schrieb krekar:

 Hi, all :D

 I make ListView that has some items that has one EditText and one
 ImageButton.

 When touch the EditText in ListView's Item, Keyboard was appeared but
 EditText lose focus.

 what can i do for resolve this problem?

 ps: I can use ScrollView instead of ListView by addView in ScrollView.

  And in ScrollView, when i touch the EditText, keyboard was
 appeared and EditText keep the focus.

  but I must optimize the list because the list may has many items.

  in ListView, I can optimize list in getView. But in ScrollVIew,
 there was not way to optimaize list.

  so, I must use ListView.

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

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

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