[android-developers] Error Overriding a SuperClass

2011-06-22 Thread Kromosome
I am having to modify some code from another developer's codebase and
his coding style is totally different to mine. Take the following for
instance, instead of having a single onClick handler for all views,
the developer has implemented the onClick function inline for each
event.

In the Eclipse IDE, I am getting the following error, "The method
onClick(View) of type new View.OnClickListener(){} must override a
superclass method".

If I look to the quick fix it tells me to, "Remove the @Override
annotation", however when doing so, the error is corrected. This seems
to be the reverse of my understanding in that the superclass must be
overriden. Has anyone seen or encountered this previously? Any
suggestions? Would it have something to do with the fact that the
superclass method is overrided multiple times in a similar manner?



llSelDOB.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
StringDOB = new String();
Calendar c = Calendar.getInstance();
int cyear = c.get(Calendar.YEAR);
int cmonth = c.get(Calendar.MONTH);
int cday = c.get(Calendar.DAY_OF_MONTH);

DatePickerDialog dp = new DatePickerDialog(Registration.this,
mDateSetListener,  cyear, cmonth, cday);
dp.show();
}




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

2011-07-24 Thread Kromosome
Check this resource

http://developer.android.com/resources/articles/faster-screen-orientation-change.html

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


[android-developers] Re: Dispalying PDF files within a tablet application

2013-05-21 Thread Kromosome
What's wrong 
with https://github.com/jblough/Android-Pdf-Viewer-Library#readme ?



On Sunday, May 12, 2013 1:33:23 AM UTC+10, Simon Giddings wrote:
>
> I have seen that this topic has been raised a number of times over the 
> last few years.
> I am surprised that Google has not thought of adding a native API to "keep 
> up" with the other side (IOS and iPad).
>
> I am needing to display PDF files of sheet music within my application
> - this might be a scanned image
> - or a real "print" to PDF format, which means mixed text and image
>
> Commercial libraries are way over priced for what I could ever hope for in 
> terms of revenue as this will be distributed in France to 
> evangelical/protestant churches.
> So I will not be able to charge high prices for this.
>
> Can anyone recommend a good, robust PDF display engine which will allow me 
> to determine how the user can navigate within the file, zoom levels, etc ?
> Or perhaps there is a commercial engine provider who would be willing to 
> make a commercial gesture for this case ? :-D
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Broadcast Receiver service in a widget

2013-05-28 Thread Kromosome
try start_sticky :) 

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

2013-06-02 Thread Kromosome
ağabey, kullandığınız İngilizcesi anladığını için çok zor,  ondan dolayı cevabı 
alamadıniz. 


Daha net anlatabilir misiniz?

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

2013-06-02 Thread Kromosome
ağabey, kullandığınız İngilizcesi anladığını için çok zor,  ondan dolayı cevabı 
alamadıniz. 


Daha net anlatabilir misiniz?

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

2011-04-20 Thread Kromosome
Where exactly are the images? Resources Sd card etc???

On Apr 19, 4:28 pm, Steven Le  wrote:
> Hi,
> In my own app, I have bunches of png files: file1.png, file2.png, file3.png.
> I want to use Gallery to display image in my own directory only. When a user
> clicks onto the image, it will give back the filename (ex: file1.png).
>
> How do you use Intent to filter only image on my app only and register a
> callback to get back path or file name?
> Or It's better way to implement a Custom gallery View for my app?

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

2011-04-20 Thread Kromosome

Check this out:

http://developer.android.com/reference/android/widget/LinearLayout.html

Look under the XML Attributes heading!

On Apr 19, 4:22 pm, Nandagopal T  wrote:
> I am using the canvas to display an image in Android. I want an image
> to occupy the center of the screen irrespective of the sizes of the
> screen. So how could i achieve it.
>
> This is the snippet that i tried with, Please let me know your ideas
> too.
>
> @Override
>         protected void onDraw(Canvas canvas) {
>         ..
>             ..
>              // This moves the image to right end of the view.
>             sampleImage.draw(canvas,getWidth(),getHeight());
>             // Tried with this code too, but not getting the image at
> the center of the screen.
>             sampleImage.draw(canvas,getWidth()/2 - imageWidth/
> 2 ,getHeight()/2 - imageHeight/2);
>
>             ..
>             ..
>
> 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


[android-developers] Re: Making something happen in an activity from another thread.

2011-04-20 Thread Kromosome
What about:

http://en.wikipedia.org/wiki/Observer_pattern


On Apr 21, 3:26 am, Tobiah  wrote:
> I know about AsyncTask, and I use it for this
> in some cases, but I was wondering whether
> there is another way for a background thread
> to initiate a call to the UI thread.  In some
> cases I have the UI thread polling to look for
> changes in the database, but that is kludgy.
>
> Thanks,
>
> Toby

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

2011-04-20 Thread Kromosome
You need to research SharedPreferences due to the Activity Life cycle

On Apr 19, 6:32 pm, manish  wrote:
> Hi,
>
> I am very new to android development. I am trying to create a chat
> application, where I have one activity which displays, the list of
> people and when u click on a list it calls another activity called
> chatActivity, which is basically the chat screen view.
> Now, the problem I am facing is: When a user clicks on a list and
> starts a chat, types some message and sends it, receives some message,
> and then he goes back to the list, and then comes back again to the
> chat screen. he looses all the previous messages, that he had typed. I
> understand that it happens cause I startActivity again, so I tried
> using a array of intents. But then again the same problem persists.
> What would be the best way to store this chat data in a non persistent
> way that I can give back to the user if, he comes back to same screen.
>
> I hope I have been clear enough with my problem. Any help would be
> greatly appreciated.
>
> Thanks,
> Manish

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

2011-04-07 Thread Kromosome
Get a clue!

On Apr 5, 8:32 pm, Kirti Joshi  wrote:
> hello everyone,
>
> i wanna code for same application,  can any one help me ?
>
> https://market.android.com/details?id=br.com.android.appointments.ota...
>
> 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: Create a list of items on top of an activity running a video

2011-04-07 Thread Kromosome
Depending upon what kind of data is in your list and what you want the
selection to do you could use a Dialog:

http://developer.android.com/guide/topics/ui/dialogs.html



On Apr 7, 4:52 am, DM  wrote:
> Hi,
>
> I am not quite sure how to achieve this.
> The requirement is to Create a list of ite.ms on top of an activity
> running a video
>
> While doing so the video must be running.
> Once an item is selected of the list the list disapears and video is
> still running.
>
> Please provide with how to implement this,
>
> Thanks,
> DM

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

2011-04-07 Thread Kromosome
Refer here:

http://groups.google.com/group/android-developers/browse_thread/thread/112887fbb59f3ee2

On Apr 6, 10:08 pm, आशुतोष हिन्दुस्तानी  
wrote:
> can i make a autostart or startup application in android.
>
> --
> Thanks
> Ashutosh Mohle
> Software Engineer
> CS-KNIT-2010

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Reusing the same external class with 2 different Activities

2011-04-07 Thread Kromosome
You should include some code and the actual error, I can't clearly
understand the error you are encountering

On Apr 5, 1:54 pm, Digeridoo  wrote:
> Hi All,
>
> I am trying to reuse an external class in the same package in 2
> Activities thus:
>
> First.class
> Manual.class
> Auto.class
> Tower.class
>
> The app starts up in First.class with a Select Case statement that
> directs it either to the Manual.class or the Auto.class each with its
> own intent and View. From there the user plays the same game either in
> manual or auto.
>
> My problem is when I seperate out the Tower.class from the
> Manual.class and from the Auto.class the app will not run even though
> I instantiate it in both Manual and Auto. I have remembered to include
> the Manual.class and Auto.class in the manifest.
>
> I get a runtime error which basically refuses to run a method in the
> Tower.class.
>
> Any ideas?

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

2011-04-07 Thread Kromosome
"Hello, I'm trying to do some work in a thread"

For starters you're still in the UI thread, your application is not
multi threaded, try using a real thread:

http://developer.android.com/reference/android/os/AsyncTask.html

This will most likely guide you as to when you can update a progress
dialog.


On Apr 6, 2:45 pm, SD315  wrote:
> Hello, i'm trying to do some work in a thread while showing a progress
> dialog until the work is done in the most simple possible way, so far
> i got this:
>
> // "this" is the current activity
> final ProgressDialog prgDialog = ProgressDialog.show(this, "",
>                 "Working...", true, false);
>
> new Thread() {
>   public void run()
>     {
>     Util.DoSomeWork(); // a static method
>     prgDialog.dismiss();
>     }}.start();
>
> at least it work fine in the emulator, but i'm concerned about it's
> correctness, specifically about calling prgDialog.dismiss(); (note
> that the variable prgDialog is created in the main thread), is this
> correct?
>
> bye

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